summaryrefslogtreecommitdiff
path: root/psprint
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2003-06-30 13:25:57 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2003-06-30 13:25:57 +0000
commit556cafb36ee0936ac83ab7c7a6dcc324e6478c20 (patch)
tree9ea8eda3ce3d3e0fc12e8bb77c6917337aaf242b /psprint
parent5e2ba78f773148fef3a56a8d07374287b2d505d3 (diff)
INTEGRATION: CWS vcl13 (1.14.14); FILE MERGED
2003/06/24 12:16:40 pl 1.14.14.2: #i15935# enable multibyte PostScript fonts 2003/06/17 14:50:53 pl 1.14.14.1: #i15535# add support for uniXXXX PostScript glyph names
Diffstat (limited to 'psprint')
-rw-r--r--psprint/inc/psprint/fontmanager.hxx29
1 files changed, 14 insertions, 15 deletions
diff --git a/psprint/inc/psprint/fontmanager.hxx b/psprint/inc/psprint/fontmanager.hxx
index 53c3b51f01c2..f68acaf618d3 100644
--- a/psprint/inc/psprint/fontmanager.hxx
+++ b/psprint/inc/psprint/fontmanager.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: fontmanager.hxx,v $
*
- * $Revision: 1.14 $
+ * $Revision: 1.15 $
*
- * last change: $Author: rt $ $Date: 2003-04-17 15:10:22 $
+ * last change: $Author: hr $ $Date: 2003-06-30 14:25:57 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -273,6 +273,7 @@ class PrintFontManager
weight::type m_eWeight;
pitch::type m_ePitch;
rtl_TextEncoding m_aEncoding;
+ bool m_bFontEncodingOnly; // set if font should be only accessed by builtin encoding
CharacterMetric m_aGlobalMetricX;
CharacterMetric m_aGlobalMetricY;
PrintFontMetrics* m_pMetrics;
@@ -473,6 +474,13 @@ public:
return pFont ? pFont->m_aEncoding : RTL_TEXTENCODING_DONTKNOW;
}
+ // should i only use font's builtin encoding ?
+ bool getUseOnlyFontEncoding( fontID nFontID ) const
+ {
+ PrintFont* pFont = getFont( nFontID );
+ return pFont ? pFont->m_bFontEncodingOnly : false;
+ }
+
// get a specific fonts system dependent filename
rtl::OString getFontFileSysPath( fontID nFontID ) const
{
@@ -536,24 +544,15 @@ public:
bool isFontDownloadingAllowed( fontID nFont ) const;
// helper for type 1 fonts
- std::pair< std::hash_multimap< sal_Unicode, rtl::OString >::const_iterator,
- std::hash_multimap< sal_Unicode, rtl::OString >::const_iterator >
- getAdobeNameFromUnicode( sal_Unicode aChar ) const
- {
- return m_aUnicodeToAdobename.equal_range( aChar );
- }
+ std::list< rtl::OString > getAdobeNameFromUnicode( sal_Unicode aChar ) const;
+
std::pair< std::hash_multimap< sal_Unicode, sal_uInt8 >::const_iterator,
- std::hash_multimap< sal_Unicode, sal_uInt8 >::const_iterator >
+ std::hash_multimap< sal_Unicode, sal_uInt8 >::const_iterator >
getAdobeCodeFromUnicode( sal_Unicode aChar ) const
{
return m_aUnicodeToAdobecode.equal_range( aChar );
}
- std::pair< std::hash_multimap< rtl::OString, sal_Unicode, rtl::OStringHash >::const_iterator,
- std::hash_multimap< rtl::OString, sal_Unicode, rtl::OStringHash >::const_iterator >
- getUnicodeFromAdobeName( const rtl::OString& rName ) const
- {
- return m_aAdobenameToUnicode.equal_range( rName );
- }
+ std::list< sal_Unicode > getUnicodeFromAdobeName( const rtl::OString& rName ) const;
std::pair< std::hash_multimap< sal_uInt8, sal_Unicode >::const_iterator,
std::hash_multimap< sal_uInt8, sal_Unicode >::const_iterator >
getUnicodeFromAdobeCode( sal_uInt8 aChar ) const