diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2016-01-19 14:10:02 +1100 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2016-01-19 19:45:48 +0000 |
commit | 94b7876e43a88618364c8256f0645e70d0daae6f (patch) | |
tree | 760041ea56da0f49b16a5d208de407e5ff411a79 /vcl/inc/impfont.hxx | |
parent | 9c09d4d0d36076d39926eeaf7774171df3b55e52 (diff) |
vcl: add quality accessor & mutator to Font
Change-Id: I261c717cabf966b8b20b8e6c921b38f4cd73e268
Reviewed-on: https://gerrit.libreoffice.org/21597
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-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, 6 insertions, 1 deletions
diff --git a/vcl/inc/impfont.hxx b/vcl/inc/impfont.hxx index f9c006f516ad..aaad50a2f421 100644 --- a/vcl/inc/impfont.hxx +++ b/vcl/inc/impfont.hxx @@ -66,7 +66,11 @@ public: void SetSymbolFlag( const bool bSymbolFlag ) { mbSymbol = bSymbolFlag; } // device dependent functions - /* Missing function: int GetQuality() const; */ + int GetQuality() const { return mnQuality; } + + void SetQuality( int nQuality ) { mnQuality = nQuality; } + void IncreaseQualityBy( int nQualityAmount ) { mnQuality += nQualityAmount; } + void DecreaseQualityBy( int nQualityAmount ) { mnQuality -= nQualityAmount; } /* Missing function: OUString GetMapNames() const; */ /* Missing function: bool IsBuiltInFont() const; */ @@ -121,6 +125,7 @@ private: mbShadow:1, mbVertical:1, mbTransparent:1; // compatibility, now on output device + int mnQuality; friend SvStream& ReadImplFont( SvStream& rIStm, ImplFont& ); friend SvStream& WriteImplFont( SvStream& rOStm, const ImplFont& ); |