diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2016-01-22 15:29:27 +1100 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2016-01-22 15:41:55 +0000 |
commit | 231d5c7db8188d53c6aab441b7080d3fa1a01446 (patch) | |
tree | 01c46774d4650a283eb2cdc3a04ad4ca2f2931bd /vcl/inc/impfont.hxx | |
parent | 3c1a343f6936f1dcefdf79a677f8c26ce29676e6 (diff) |
vcl: add orientation flag property to Font class
Add getter and setter for orientation flag to the Font class.
See commit description in 8bfccd3a71d911b6d ("vcl: Create accessor
and mutator for font scaling in FontMetric") for reasoning behind
patch.
Unit test added to vcl/qa/cppunit/font.cxx to test this flag.
Change-Id: I62d5a47f870702eeac4625830dd279dd53fbcc3d
Reviewed-on: https://gerrit.libreoffice.org/21696
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
Diffstat (limited to 'vcl/inc/impfont.hxx')
-rw-r--r-- | vcl/inc/impfont.hxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/vcl/inc/impfont.hxx b/vcl/inc/impfont.hxx index 52b9a1b5c798..c6667efed107 100644 --- a/vcl/inc/impfont.hxx +++ b/vcl/inc/impfont.hxx @@ -77,12 +77,12 @@ public: bool IsBuiltInFont() const { return mbDevice; } bool CanEmbed() const { return mbEmbeddable; } bool CanSubset() const { return mbSubsettable; } - /* Missing function: bool CanRotate() const; */ + bool CanRotate() const { return mbRotatable; } void SetBuiltInFontFlag( bool bIsBuiltInFont ) { mbDevice = bIsBuiltInFont; } void SetEmbeddableFlag( bool bEmbeddable ) { mbEmbeddable = bEmbeddable; } void SetSubsettableFlag( bool bSubsettable ) { mbSubsettable = bSubsettable; } - /* missing function: void SetOrientationFlag( bool ); */ + void SetOrientationFlag( bool bCanRotate ) { mbRotatable = bCanRotate; } bool operator==( const ImplFont& ) const; @@ -121,7 +121,8 @@ private: mbTransparent:1, // compatibility, now on output device mbDevice:1, mbEmbeddable:1, - mbSubsettable:1; + mbSubsettable:1, + mbRotatable:1; // is "rotatable" even a word?!? I'll keep it for consistency for now int mnQuality; OUString maMapNames; |