diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2016-01-14 09:34:59 +1100 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2016-01-14 09:34:59 +1100 |
commit | 9b0c3d99e667c532428193e020b9133dd6287bcc (patch) | |
tree | 820668ed1c72c15b6caaebfe016b9b77a40b0e42 /vcl/inc/impfont.hxx | |
parent | 59c5738e4d98addb271290c391435e844fd70741 (diff) |
vcl: split off ImplFontMetric into impfontmetric.hxx
The fact that there is now an impfontmetricdata.hxx and an
impfontmetric.hxx file in the same folder highlights the need
for refactoring :-)
Change-Id: Ic81f32cfa8523dccabe7b419bf97f1566e2d67da
Diffstat (limited to 'vcl/inc/impfont.hxx')
-rw-r--r-- | vcl/inc/impfont.hxx | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/vcl/inc/impfont.hxx b/vcl/inc/impfont.hxx index 09a78bc07016..66d9cc260015 100644 --- a/vcl/inc/impfont.hxx +++ b/vcl/inc/impfont.hxx @@ -87,59 +87,6 @@ private: friend SvStream& WriteImplFont( SvStream& rOStm, const ImplFont& ); }; -// - ImplFontMetric - - -class ImplFontMetric -{ -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(); - void AddReference(); - void DeReference(); - - long GetAscent() const { return mnAscent; } - long GetDescent() const { return mnDescent; } - long GetInternalLeading() const { return mnIntLeading; } - long GetExternalLeading() const { return mnExtLeading; } - long GetLineHeight() const { return mnLineHeight; } - long GetSlant() const { return mnSlant; } - long GetBulletOffset() const { return mnBulletOffset; } - - void SetAscent( long nAscent ) { mnAscent = nAscent; } - void SetDescent( long nDescent ) { mnDescent = nDescent; } - void SetInternalLeading( long nIntLeading ) { mnIntLeading = nIntLeading; } - void SetExternalLeading( long nExtLeading ) { mnExtLeading = nExtLeading; } - void SetLineHeight( long nHeight ) { mnLineHeight = nHeight; } - void SetSlant( long nSlant ) { mnSlant = nSlant; } - void SetBulletOffset( long nOffset ) { mnBulletOffset = nOffset; } - - bool IsScalable() const { return mbScalableFont; } - bool IsFullstopCentered() const { return mbFullstopCentered; } - bool IsBuiltInFont() const { return mbDevice; } - - void SetScalableFlag( bool bScalable ) { mbScalableFont = bScalable; } - void SetFullstopCenteredFlag( bool bCentered ) { mbFullstopCentered = bCentered; } - void SetBuiltInFontFlag( bool bIsBuiltInFont ) { mbDevice = bIsBuiltInFont; } - -}; - - #endif // INCLUDED_VCL_INC_IMPFONT_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |