diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2016-01-13 12:13:12 +1100 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2016-01-13 05:55:22 +0000 |
commit | bfd690701ff414496ad77c2b268bf7200947dc3a (patch) | |
tree | a25a8235d0c226a408e3f755878b88eeb8877597 /include | |
parent | 78efa95b8088f7e23a77d7a746186ae2ecd0055c (diff) |
vcl: Create accessor and mutator for full stop centered in FontMetric
Accessor and mutator created for full stop centered flag, removed
bit field.
See commit description in 8bfccd3a71d911b6d ("vcl: Create accessor
and mutator for font scaling in FontMetric") for reasoning behind
patch.
Unit tests
- check to ensure that can set full stop centered flag
- check equality operator on FontMetric after setting full stop
centered flag
Change-Id: I9cacb0fbf9ea65cfebcaebdc9f0481c0a796cbcf
Reviewed-on: https://gerrit.libreoffice.org/21413
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/metric.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/vcl/metric.hxx b/include/vcl/metric.hxx index e289b722cbb1..f3de0183bb3c 100644 --- a/include/vcl/metric.hxx +++ b/include/vcl/metric.hxx @@ -52,11 +52,13 @@ public: long GetExtLeading() const; long GetLineHeight() const; long GetSlant() const; + long GetBulletOffset() const; + bool IsScalable() const; bool IsFullstopCentered() const; - long GetBulletOffset() const; void SetScalableFlag(bool); + void SetFullstopCenteredFlag(bool); FontMetric& operator=( const FontMetric& rMetric ); bool operator==( const FontMetric& rMetric ) const; |