[Libreoffice-commits] core.git: vcl/inc

Chris Sherlock chris.sherlock at collabora.com
Mon Dec 21 21:53:24 PST 2015


 vcl/inc/PhysicalFontCollection.hxx |   47 ++++++++++++++++++-------------------
 1 file changed, 23 insertions(+), 24 deletions(-)

New commits:
commit 0b1da98da44bc9acb9e42a5cd1842adf9d82a415
Author: Chris Sherlock <chris.sherlock at collabora.com>
Date:   Tue Dec 22 15:18:14 2015 +1100

    vcl: cleanup PhysicalFontCollection class formatting
    
    Change-Id: I943dd3ebc12eab96cd5e1e2e20d46382a4a63202
    Reviewed-on: https://gerrit.libreoffice.org/20858
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Chris Sherlock <chris.sherlock79 at gmail.com>

diff --git a/vcl/inc/PhysicalFontCollection.hxx b/vcl/inc/PhysicalFontCollection.hxx
index b201a3b..42655ec 100644
--- a/vcl/inc/PhysicalFontCollection.hxx
+++ b/vcl/inc/PhysicalFontCollection.hxx
@@ -35,17 +35,6 @@ class ImplPreMatchFontSubstitution;
 
 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 std::unordered_map<OUString, PhysicalFontFamily*,OUStringHash> PhysicalFontFamilies;
-    PhysicalFontFamilies    maPhysicalFontFamilies;
-
-    ImplPreMatchFontSubstitution* mpPreMatchHook;       // device specific prematch substitution
-    ImplGlyphFallbackFontSubstitution* mpFallbackHook;  // device specific glyph fallback substitution
-
 public:
     explicit                PhysicalFontCollection();
     virtual                 ~PhysicalFontCollection();
@@ -56,14 +45,14 @@ public:
     int                     Count() const { return maPhysicalFontFamilies.size(); }
 
     // find the device font
-    PhysicalFontFamily*    FindFontFamily( const OUString& rFontName ) const;
-    PhysicalFontFamily*    FindOrCreateFamily( const OUString &rFamilyName );
-    PhysicalFontFamily*    ImplFindByFont( FontSelectPattern& ) const;
-    PhysicalFontFamily*    ImplFindBySearchName( const OUString& ) const;
+    PhysicalFontFamily*     FindFontFamily( const OUString& rFontName ) const;
+    PhysicalFontFamily*     FindOrCreateFamily( const OUString &rFamilyName );
+    PhysicalFontFamily*     ImplFindByFont( FontSelectPattern& ) const;
+    PhysicalFontFamily*     ImplFindBySearchName( const OUString& ) const;
 
     // suggest fonts for glyph fallback
     PhysicalFontFamily*    GetGlyphFallbackFont( FontSelectPattern&,
-                        OUString& rMissingCodes, int nFallbackLevel ) const;
+                                                 OUString& rMissingCodes, int nFallbackLevel ) const;
 
     // prepare platform specific font substitutions
     void                    SetPreMatchHook( ImplPreMatchFontSubstitution* );
@@ -74,22 +63,32 @@ public:
     ImplGetDevFontList*     GetDevFontList() const;
     ImplGetDevSizeList*     GetDevSizeList( const OUString& rFontName ) const;
 
-    PhysicalFontFamily*    ImplFindByTokenNames(const OUString& rTokenStr) const;
+    PhysicalFontFamily*     ImplFindByTokenNames(const OUString& rTokenStr) const;
 
 protected:
     void                    InitMatchData() const;
 
-    PhysicalFontFamily*    ImplFindByAliasName(const OUString& rSearchName,
-        const OUString& rShortName) const;
-    PhysicalFontFamily*    ImplFindBySubstFontAttr( const utl::FontNameAttr& ) const;
-    PhysicalFontFamily*    ImplFindByAttributes(ImplFontAttrs nSearchType, FontWeight, FontWidth,
+    PhysicalFontFamily*     ImplFindByAliasName(const OUString& rSearchName,
+                                                const OUString& rShortName) const;
+    PhysicalFontFamily*     ImplFindBySubstFontAttr( const utl::FontNameAttr& ) const;
+    PhysicalFontFamily*     ImplFindByAttributes(ImplFontAttrs nSearchType, FontWeight, FontWidth,
                                                  FontItalic, const OUString& rSearchFamily) const;
-    PhysicalFontFamily*    FindDefaultFont() const;
+    PhysicalFontFamily*     FindDefaultFont() const;
 
 private:
+    friend class WinGlyphFallbackSubstititution;
+    mutable bool            mbMatchData;    // true if matching attributes are initialized
+    bool                    mbMapNames;     // true if MapNames are available
+
+    typedef std::unordered_map<OUString, PhysicalFontFamily*,OUStringHash> PhysicalFontFamilies;
+    PhysicalFontFamilies    maPhysicalFontFamilies;
+
+    ImplPreMatchFontSubstitution* mpPreMatchHook;       // device specific prematch substitution
+    ImplGlyphFallbackFontSubstitution* mpFallbackHook;  // device specific glyph fallback substitution
+
     void                    InitGenericGlyphFallback() const;
-    mutable PhysicalFontFamily**   mpFallbackList;
-    mutable int                     mnFallbackCount;
+    mutable PhysicalFontFamily**  mpFallbackList;
+    mutable int             mnFallbackCount;
 };
 
 #endif // INCLUDED_VCL_INC_PHYSICALFONTCOLLECTION_HXX


More information about the Libreoffice-commits mailing list