1 Index: svtools/source/dialogs/printdlg.cxx
2 ===================================================================
3 RCS file: /cvs/util/svtools/source/dialogs/printdlg.cxx,v
4 retrieving revision 1.16
5 --- svtools/source/dialogs/printdlg.cxx.orig 2004-03-30 19:47:51.000000000 +0000
6 +++ svtools/source/dialogs/printdlg.cxx 2004-03-30 19:51:29.000000000 +0000
11 + INetURLObject aLocation( maFiPrintFile.GetText(), INET_PROT_FILE );
13 + xFilePicker->setDefaultName( aLocation.GetLastName() );
14 + xFilePicker->setDisplayDirectory ( aLocation.GetPartBeforeLastName() );
16 // add PostScript and PDF
17 if( ! Application::IsRemoteServer() )
19 xFilterMgr->appendFilter( OUString( RTL_CONSTASCII_USTRINGPARAM( "PostScript" ) ), OUString( RTL_CONSTASCII_USTRINGPARAM( "*.ps" ) ) );
21 xFilterMgr->appendFilter( OUString( RTL_CONSTASCII_USTRINGPARAM( "Portable Document Format" ) ), OUString( RTL_CONSTASCII_USTRINGPARAM( "*.pdf" ) ) );
23 + String aFilter = pPrinter->GetJobValue( String::CreateFromAscii( "Filter#" ) );
25 + xFilterMgr->setCurrentFilter( aFilter );
28 xFilterMgr->appendFilter( OUString( RTL_CONSTASCII_USTRINGPARAM( "*.PRN" ) ), OUString( RTL_CONSTASCII_USTRINGPARAM( "*.prn" ) ) );
30 Sequence< OUString > aPathSeq( xFilePicker->getFiles() );
31 INetURLObject aObj( aPathSeq[0] );
32 maFiPrintFile.SetText( aObj.PathToFileName() );
34 + Printer* pPrinter = TEMPPRINTER() ? TEMPPRINTER() : mpPrinter;
36 + pPrinter->SetJobValue( String::CreateFromAscii( "Filter#" ),
37 + xFilterMgr->getCurrentFilter() );