summaryrefslogtreecommitdiff
path: root/vcl/inc/outfont.hxx
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2014-03-20 00:22:26 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-03-20 16:11:58 -0500
commit7260bcd68726739b5fe26b4d29a1de47e7b0f5a7 (patch)
tree360f470874da345bf0723cfd90684942824df739 /vcl/inc/outfont.hxx
parent7154b092a716d4d0041a8a563294511ec9e5dbc6 (diff)
cosmetic: split PhysicalFontFamily/Collection out of outdev3.cxx
Change-Id: Iae8eb15413c0c069c14edd92c94ecb0113d9d371
Diffstat (limited to 'vcl/inc/outfont.hxx')
-rw-r--r--vcl/inc/outfont.hxx65
1 files changed, 0 insertions, 65 deletions
diff --git a/vcl/inc/outfont.hxx b/vcl/inc/outfont.hxx
index 12adb7cc7837..798f2611dcdc 100644
--- a/vcl/inc/outfont.hxx
+++ b/vcl/inc/outfont.hxx
@@ -161,71 +161,6 @@ public: // TODO: change to private
};
-// - PhysicalFontCollection -
-
-// TODO: merge with ImplFontCache
-// TODO: rename to LogicalFontManager
-
-class VCL_PLUGIN_PUBLIC PhysicalFontCollection
-{
-private:
- friend class WinGlyphFallbackSubstititution;
- mutable bool mbMatchData; // true if matching attributes are initialized
- bool mbMapNames; // true if MapNames are available
-
- typedef boost::unordered_map<const OUString, PhysicalFontFamily*,FontNameHash> PhysicalFontFamilies;
- PhysicalFontFamilies maPhysicalFontFamilies;
-
- ImplPreMatchFontSubstitution* mpPreMatchHook; // device specific prematch substitution
- ImplGlyphFallbackFontSubstitution* mpFallbackHook; // device specific glyh fallback substitution
-
-public:
- explicit PhysicalFontCollection();
- virtual ~PhysicalFontCollection();
-
- // fill the list with device fonts
- void Add( PhysicalFontFace* );
- void Clear();
- int Count() const { return maPhysicalFontFamilies.size(); }
-
- // find the device font
- PhysicalFontFamily* FindFontFamily( const OUString& rFontName ) const;
- PhysicalFontFamily* ImplFindByFont( FontSelectPattern& ) const;
- PhysicalFontFamily* ImplFindBySearchName( const OUString& ) const;
-
- // suggest fonts for glyph fallback
- PhysicalFontFamily* GetGlyphFallbackFont( FontSelectPattern&,
- OUString& rMissingCodes, int nFallbackLevel ) const;
-
- // prepare platform specific font substitutions
- void SetPreMatchHook( ImplPreMatchFontSubstitution* );
- void SetFallbackHook( ImplGlyphFallbackFontSubstitution* );
-
- // misc utilities
- PhysicalFontCollection* Clone( bool bScalable, bool bEmbeddable ) const;
- ImplGetDevFontList* GetDevFontList() const;
- ImplGetDevSizeList* GetDevSizeList( const OUString& rFontName ) const;
-
- PhysicalFontFamily* ImplFindByTokenNames(const OUString& rTokenStr) const;
-
-protected:
- void InitMatchData() const;
- bool AreMapNamesAvailable() const { return mbMapNames; }
-
- PhysicalFontFamily* ImplFindByAliasName(const OUString& rSearchName,
- const OUString& rShortName) const;
- PhysicalFontFamily* ImplFindBySubstFontAttr( const utl::FontNameAttr& ) const;
- PhysicalFontFamily* ImplFindByAttributes(sal_uLong nSearchType, FontWeight, FontWidth,
- FontItalic, const OUString& rSearchFamily) const;
- PhysicalFontFamily* FindDefaultFont() const;
-
-private:
- void InitGenericGlyphFallback() const;
- mutable PhysicalFontFamily** mpFallbackList;
- mutable int mnFallbackCount;
-};
-
-
// - ImplFontMetricData -