add phone number for unix fax solution
This commit is contained in:
parent
f82673b6d8
commit
8956a1f267
3 changed files with 57 additions and 7 deletions
|
@ -2,9 +2,9 @@
|
|||
*
|
||||
* $RCSfile: printdlg.cxx,v $
|
||||
*
|
||||
* $Revision: 1.1.1.1 $
|
||||
* $Revision: 1.2 $
|
||||
*
|
||||
* last change: $Author: hr $ $Date: 2000-09-18 16:58:58 $
|
||||
* last change: $Author: pl $ $Date: 2000-09-27 12:55:32 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
|
@ -77,6 +77,9 @@
|
|||
#ifndef _SVTOOLS_FILEDLG_HXX
|
||||
#include <filedlg.hxx>
|
||||
#endif
|
||||
#ifndef _SV_JOBSET_HXX
|
||||
#include <vcl/jobset.hxx>
|
||||
#endif
|
||||
#include <tools/urlobj.hxx>
|
||||
#pragma hdrstop
|
||||
|
||||
|
@ -118,7 +121,9 @@ PrintDialog::PrintDialog( Window* pWindow ) :
|
|||
maBtnOptions ( this, SvtResId( BTN_OPTIONS ) ),
|
||||
maBtnHelp ( this, SvtResId( BTN_HELP ) ),
|
||||
maBtnOK ( this, SvtResId( BTN_OK ) ),
|
||||
maBtnCancel ( this, SvtResId( BTN_CANCEL ) )
|
||||
maBtnCancel ( this, SvtResId( BTN_CANCEL ) ),
|
||||
maFiFaxNo ( this, SvtResId( FI_FAXNO ) ),
|
||||
maEdtFaxNo ( this, SvtResId( EDT_FAXNO ) )
|
||||
{
|
||||
FreeResource();
|
||||
|
||||
|
@ -155,6 +160,7 @@ PrintDialog::PrintDialog( Window* pWindow ) :
|
|||
maNumCopies.SetModifyHdl( aLink );
|
||||
maCbxCollate.SetClickHdl( aLink );
|
||||
maBtnOptions.SetClickHdl( aLink );
|
||||
maEdtFaxNo.SetModifyHdl( aLink );
|
||||
|
||||
maRbtAll.Check();
|
||||
|
||||
|
@ -194,6 +200,28 @@ void PrintDialog::ImplSetInfo()
|
|||
maFiComment.SetText( aTempStr );
|
||||
maFiStatus.SetText( aTempStr );
|
||||
}
|
||||
|
||||
#ifdef UNX
|
||||
if( pInfo && pInfo->GetLocation().EqualsAscii( "fax_queue" ) )
|
||||
{
|
||||
maFiPrintFile.Show( FALSE );
|
||||
maCbxFilePrint.Show( FALSE );
|
||||
maBtnBrowse.Show( FALSE );
|
||||
maFiFaxNo.Show( TRUE );
|
||||
maEdtFaxNo.Show( TRUE );
|
||||
Printer* pPrinter = mpTempPrinter ? mpTempPrinter : mpPrinter;
|
||||
maEdtFaxNo.SetText( pPrinter->GetJobValue( String::CreateFromAscii( "FAX#" ) ) );
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
maFiPrintFile.Show( TRUE );
|
||||
maCbxFilePrint.Show( TRUE );
|
||||
maBtnBrowse.Show( TRUE );
|
||||
maFiFaxNo.Show( FALSE );
|
||||
maEdtFaxNo.Show( FALSE );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
@ -398,6 +426,12 @@ IMPL_LINK( PrintDialog, ImplModifyControlHdl, void*, p )
|
|||
if ( p == &maEdtPages )
|
||||
ImplCheckOK();
|
||||
|
||||
if( p == &maEdtFaxNo )
|
||||
{
|
||||
Printer* pPrinter = mpTempPrinter ? mpTempPrinter : mpPrinter;
|
||||
pPrinter->SetJobValue( String::CreateFromAscii( "FAX#" ), maEdtFaxNo.GetText() );
|
||||
}
|
||||
|
||||
// Anzahl Kopien
|
||||
BOOL bNumCopies = FALSE;
|
||||
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
*
|
||||
* $RCSfile: printdlg.hrc,v $
|
||||
*
|
||||
* $Revision: 1.1.1.1 $
|
||||
* $Revision: 1.2 $
|
||||
*
|
||||
* last change: $Author: hr $ $Date: 2000-09-18 16:58:58 $
|
||||
* last change: $Author: pl $ $Date: 2000-09-27 12:55:32 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
|
@ -93,3 +93,6 @@
|
|||
#define BTN_CANCEL 28
|
||||
#define BTN_HELP 29
|
||||
#define BTN_OPTIONS 30
|
||||
|
||||
#define FI_FAXNO 31
|
||||
#define EDT_FAXNO 32
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
*
|
||||
* $RCSfile: printdlg.src,v $
|
||||
*
|
||||
* $Revision: 1.1.1.1 $
|
||||
* $Revision: 1.2 $
|
||||
*
|
||||
* last change: $Author: hr $ $Date: 2000-09-18 16:58:58 $
|
||||
* last change: $Author: pl $ $Date: 2000-09-27 12:55:32 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
|
@ -292,6 +292,19 @@ ModalDialog DLG_SVT_PRNDLG_PRINTDLG
|
|||
Pos = MAP_APPFONT ( 60 , 62 ) ;
|
||||
Size = MAP_APPFONT ( 188 , 10 ) ;
|
||||
};
|
||||
FixedText FI_FAXNO
|
||||
{
|
||||
Pos = MAP_APPFONT ( 12 , 77 ) ;
|
||||
Size = MAP_APPFONT ( 75 , 10 ) ;
|
||||
Text = "Fax Nummer";
|
||||
Text [ ENGLISH ] = "Fax number";
|
||||
};
|
||||
Edit EDT_FAXNO
|
||||
{
|
||||
Border = TRUE;
|
||||
Pos = MAP_APPFONT ( 90 , 77 );
|
||||
Size = MAP_APPFONT ( 141 , 12 );
|
||||
};
|
||||
CheckBox CBX_FILEPRINT
|
||||
{
|
||||
Pos = MAP_APPFONT ( 12 , 77 ) ;
|
||||
|
|
Loading…
Reference in a new issue