summaryrefslogtreecommitdiff
path: root/psprint
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2003-04-11 16:17:50 +0000
committerVladimir Glazounov <vg@openoffice.org>2003-04-11 16:17:50 +0000
commitceaac530ec094d857ab66834d6754cbe43c7500f (patch)
tree956bb408bf976a1b6aa2a10fad79475c4928185c /psprint
parent5367e92945012b50ef29dd93bbb588810a2b7adf (diff)
INTEGRATION: CWS vcl07 (1.2.26); FILE MERGED
2003/03/20 12:27:17 pl 1.2.26.3: RESYNC: (1.2-1.2.2.1); FILE MERGED 2003/03/12 21:40:30 pl 1.2.26.2: #103308# emergency printer configuration for setup 2003/03/12 13:09:27 pl 1.2.26.1: #i10309# more robust PPD file discovery
Diffstat (limited to 'psprint')
-rw-r--r--psprint/inc/psprint/ppdparser.hxx13
1 files changed, 10 insertions, 3 deletions
diff --git a/psprint/inc/psprint/ppdparser.hxx b/psprint/inc/psprint/ppdparser.hxx
index 64a68b59ad2f..33bf3fbd56dc 100644
--- a/psprint/inc/psprint/ppdparser.hxx
+++ b/psprint/inc/psprint/ppdparser.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ppdparser.hxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: hr $ $Date: 2003-03-26 14:24:02 $
+ * last change: $Author: vg $ $Date: 2003-04-11 17:17:50 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -168,8 +168,11 @@ public:
PPDConstraint() : m_pKey1( NULL ), m_pOption1( NULL ), m_pKey2( NULL ), m_pOption2( NULL ) {}
};
+private:
- static ::std::list< PPDParser* > aAllParsers;
+ static ::std::list< PPDParser* > aAllParsers;
+ static ::std::hash_map< rtl::OUString, rtl::OUString, rtl::OUStringHash >*
+ pAllPPDFiles;
hash_type m_aKeys;
value_type m_aOrderedKeys;
@@ -213,6 +216,10 @@ public:
void parseOpenUI( const String& rLine );
void parseConstraint( const String& rLine );
void parse( ::std::list< String >& rLines );
+
+ static void scanPPDDir( const String& rDir );
+ static void initPPDFiles();
+ static String getPPDFile( const String& rFile );
public:
static const PPDParser* getParser( String aFile );
static String getPPDPrinterName( const String& rFile );