diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2016-01-15 06:22:44 +1100 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2016-01-15 06:22:54 +1100 |
commit | 6418f58bd3550b397127f7f8f4a708276593b5a9 (patch) | |
tree | 94dc64dec44ad45edd73ed42188261063558f639 /vcl | |
parent | 058314d2389d9bb9511d5014f33568b4a6250b2f (diff) |
vcl: reorganize ImplFontMetric to same layout as ImplFontMetricData
Change-Id: I40b850c7150327b0b7a8b1f081d237e6f5be3f51
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/impfontmetric.hxx | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/vcl/inc/impfontmetric.hxx b/vcl/inc/impfontmetric.hxx index 7b9413f9fe4f..e39a8bb5b668 100644 --- a/vcl/inc/impfontmetric.hxx +++ b/vcl/inc/impfontmetric.hxx @@ -31,25 +31,8 @@ class ImplFontMetric friend void intrusive_ptr_add_ref(ImplFontMetric* pImplFontMetric); friend void intrusive_ptr_release(ImplFontMetric* pImplFontMetric); -private: - long mnAscent; // Ascent - long mnDescent; // Descent - long mnIntLeading; // Internal Leading - long mnExtLeading; // External Leading - long mnLineHeight; // Ascent+Descent+EmphasisMark - long mnSlant; // Slant - long mnBulletOffset;// Offset for non-printing character - sal_uInt32 mnRefCount; // Reference Counter - - bool mbScalableFont; - bool mbFullstopCentered; - bool mbDevice; - public: - - bool operator==( const ImplFontMetric& ) const; - - ImplFontMetric(); + explicit ImplFontMetric(); long GetAscent() const { return mnAscent; } long GetDescent() const { return mnDescent; } @@ -75,6 +58,22 @@ public: void SetFullstopCenteredFlag( bool bCentered ) { mbFullstopCentered = bCentered; } void SetBuiltInFontFlag( bool bIsBuiltInFont ) { mbDevice = bIsBuiltInFont; } + bool operator==( const ImplFontMetric& ) const; + +private: + long mnAscent; // Ascent + long mnDescent; // Descent + long mnIntLeading; // Internal Leading + long mnExtLeading; // External Leading + long mnLineHeight; // Ascent+Descent+EmphasisMark + long mnSlant; // Slant + long mnBulletOffset; // Offset for non-printing character + sal_uInt32 mnRefCount; // Reference Counter + + bool mbScalableFont; + bool mbFullstopCentered; + bool mbDevice; + }; inline void intrusive_ptr_add_ref(ImplFontMetric* pImplFontMetric) |