diff options
author | Oliver Bolte <obo@openoffice.org> | 2006-03-22 09:26:08 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2006-03-22 09:26:08 +0000 |
commit | 0e4734692fb0d5aabb2dc9d3e66f2052c9401746 (patch) | |
tree | e7f56db5c75c18e811f20471f291571624d8ae54 /padmin | |
parent | 3fb2b138c93a540458dcdcdc9b5de7071c206d2e (diff) |
INTEGRATION: CWS vcl55 (1.12.38); FILE MERGED
2006/03/07 17:56:56 pl 1.12.38.1: #i58360# use getPrinterPathList
Diffstat (limited to 'padmin')
-rw-r--r-- | padmin/source/newppdlg.cxx | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/padmin/source/newppdlg.cxx b/padmin/source/newppdlg.cxx index f941d19f3759..8f40d66b4275 100644 --- a/padmin/source/newppdlg.cxx +++ b/padmin/source/newppdlg.cxx @@ -4,9 +4,9 @@ * * $RCSfile: newppdlg.cxx,v $ * - * $Revision: 1.12 $ + * $Revision: 1.13 $ * - * last change: $Author: rt $ $Date: 2005-09-08 16:25:44 $ + * last change: $Author: obo $ $Date: 2006-03-22 10:26:08 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -195,16 +195,9 @@ IMPL_LINK( PPDImportDialog, ClickBtnHdl, PushButton*, pButton ) else if( pButton == &m_aOKBtn ) { // copy the files - ::std::list< String > aToDirs; - String aPathList( ::psp::getPrinterPath() ); - int nTokens = aPathList.GetTokenCount( ':' ); - for( int n = 0; n < nTokens; n++ ) - { - String aPath = aPathList.GetToken( n, ':' ); - aPath.AppendAscii( "/"PSPRINT_PPDDIR ); - aToDirs.push_back( aPath ); - } - ::std::list< String >::iterator writeDir = aToDirs.begin(); + ::std::list< rtl::OUString > aToDirs; + psp::getPrinterPathList( aToDirs, PSPRINT_PPDDIR ); + ::std::list< rtl::OUString >::iterator writeDir = aToDirs.begin(); for( int i = 0; i < m_aDriverLB.GetSelectEntryCount(); i++ ) { |