summaryrefslogtreecommitdiff
path: root/padmin
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2008-06-25 13:47:14 +0000
committerKurt Zenker <kz@openoffice.org>2008-06-25 13:47:14 +0000
commit9441cf1747b5c37318e6d268a2c4d27076882c82 (patch)
tree3b830940463bb776a7df1a22276dc0a8a8ad04b9 /padmin
parent180998cb4ea6f8168bf41f759c1ed2af6a0a637d (diff)
INTEGRATION: CWS vcl89 (1.15.4); FILE MERGED
2008/05/07 19:44:47 pl 1.15.4.2: #i72327# support for system ppd dir 2008/05/07 17:40:12 pl 1.15.4.1: #i72327# support for gzipped PPD files
Diffstat (limited to 'padmin')
-rw-r--r--padmin/source/newppdlg.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/padmin/source/newppdlg.cxx b/padmin/source/newppdlg.cxx
index bce5e61f09dd..957e8a062a7e 100644
--- a/padmin/source/newppdlg.cxx
+++ b/padmin/source/newppdlg.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: newppdlg.cxx,v $
- * $Revision: 1.15 $
+ * $Revision: 1.16 $
*
* This file is part of OpenOffice.org.
*
@@ -132,7 +132,7 @@ void PPDImportDialog::Import()
aProgress.startOperation( m_aLoadingPPD );
::std::list< String > aFiles;
- FindFiles( aImportPath, aFiles, String::CreateFromAscii( "PS;PPD" ) );
+ FindFiles( aImportPath, aFiles, String( RTL_CONSTASCII_USTRINGPARAM( "PS;PPD;PS.GZ;PPD.GZ" ) ), true );
int i = 0;
aProgress.setRange( 0, aFiles.size() );
@@ -169,7 +169,7 @@ IMPL_LINK( PPDImportDialog, ClickBtnHdl, PushButton*, pButton )
{
// copy the files
::std::list< rtl::OUString > aToDirs;
- psp::getPrinterPathList( aToDirs, PSPRINT_PPDDIR );
+ psp::getPrinterPathList( aToDirs, PRINTER_PPDDIR );
::std::list< rtl::OUString >::iterator writeDir = aToDirs.begin();
for( int i = 0; i < m_aDriverLB.GetSelectEntryCount(); i++ )
@@ -183,7 +183,6 @@ IMPL_LINK( PPDImportDialog, ClickBtnHdl, PushButton*, pButton )
{
INetURLObject aToFile( *writeDir, INET_PROT_FILE, INetURLObject::ENCODE_ALL );
aToFile.Append( aFile.GetName() );
- aToFile.setExtension( String::CreateFromAscii( "PPD" ) );
OUString aToUni( aToFile.GetMainURL(INetURLObject::DECODE_TO_IURI) );
if( ! File::copy( aFromUni, aToUni ) )
break;