summaryrefslogtreecommitdiff
path: root/psprint
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2007-06-20 09:07:18 +0000
committerKurt Zenker <kz@openoffice.org>2007-06-20 09:07:18 +0000
commit367d6f9226864707c7ad06ef77b1a3167a236795 (patch)
tree4f969c882143585a085f0f95030af8273513bc5e /psprint
parentdb3e8648cfd0f09a44e3db4dae6bc6d92cde0457 (diff)
INTEGRATION: CWS compmetric (1.32.8); FILE MERGED
2007/05/09 12:13:58 pl 1.32.8.1: #146890# backwards compatibility service for metrics
Diffstat (limited to 'psprint')
-rw-r--r--psprint/inc/psprint/fontmanager.hxx20
1 files changed, 14 insertions, 6 deletions
diff --git a/psprint/inc/psprint/fontmanager.hxx b/psprint/inc/psprint/fontmanager.hxx
index 988b9236efda..fc0e0a898302 100644
--- a/psprint/inc/psprint/fontmanager.hxx
+++ b/psprint/inc/psprint/fontmanager.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: fontmanager.hxx,v $
*
- * $Revision: 1.32 $
+ * $Revision: 1.33 $
*
- * last change: $Author: rt $ $Date: 2007-04-04 08:02:09 $
+ * last change: $Author: kz $ $Date: 2007-06-20 10:07:18 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -414,6 +414,7 @@ class PrintFontManager
std::hash_multimap< sal_uInt8, sal_Unicode > m_aAdobecodeToUnicode;
mutable FontCache* m_pFontCache;
+ mutable std::vector< fontID > m_aOverrideFonts;
rtl::OString getAfmFile( PrintFont* pFont ) const;
rtl::OString getFontFile( PrintFont* pFont ) const;
@@ -463,6 +464,8 @@ class PrintFontManager
void parseXLFD_appendAliases( const std::list< rtl::OString >& rXLFDs, std::list< XLFDEntry >& rEntries ) const;
void initFontsAlias();
+ bool readOverrideMetrics();
+
PrintFontManager();
~PrintFontManager();
public:
@@ -471,20 +474,25 @@ public:
int addFontFile( const rtl::OString& rFileName, int nFaceNum );
// initialize takes an X Display*
- // if NULL then an XOpendDisplay( NULL ) is performed
+ // if NULL then an XOpenDisplay( NULL ) is performed
// the Display connection is used to get the font path
void initialize( void* pDisplay = NULL );
// returns the number of managed fonts
int getFontCount() const { return m_aFonts.size(); }
+
+ // caution: the getFontList* methods can change the font list on demand
+ // depending on the pParser argument. That is getFontCount() may
+ // return a larger value after getFontList()
+
// returns the ids of all managed fonts. on pParser != NULL
// all fonttype::Builtin type fonts are not listed
// which do not occur in the PPD of pParser
- void getFontList( std::list< fontID >& rFontIDs, const PPDParser* pParser = NULL ) const;
+ void getFontList( std::list< fontID >& rFontIDs, const PPDParser* pParser = NULL, bool bUseOverrideMetrics = false );
// get the font list and detailed font info. see getFontList for pParser
- void getFontListWithInfo( std::list< PrintFontInfo >& rFonts, const PPDParser* pParser = NULL ) const;
+ void getFontListWithInfo( std::list< PrintFontInfo >& rFonts, const PPDParser* pParser = NULL, bool bUseOverrideMetrics = false );
// get the font list and fast font info. see getFontList for pParser
- void getFontListWithFastInfo( std::list< FastPrintFontInfo >& rFonts, const PPDParser* pParser = NULL ) const;
+ void getFontListWithFastInfo( std::list< FastPrintFontInfo >& rFonts, const PPDParser* pParser = NULL, bool bUseOverrideMetrics = false );
// get font info for a specific font
bool getFontInfo( fontID nFontID, PrintFontInfo& rInfo ) const;