summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2016-01-16 12:24:17 +1100
committerChris Sherlock <chris.sherlock79@gmail.com>2016-01-16 05:59:52 +0000
commitbb3fc6cda5700e64eec3233737765e0ab55f5b9e (patch)
tree360f9fa9fd995927227a233e0f1a6c5daec0bd4c /include
parent65c1137757e394961808a29b5607ee0ed6977a34 (diff)
vcl: created accessors and mutators for font classes
Font accessors: - GetFamily() - GetPitch() - GetWidthType() - GetWeight() - GetItalic() - GetName() <--- shouldn't that be GetFamilyName()?!? - GetStyleName() Font mutators did not need to be added. Font unit tests are testing: - Setting and getting FontFamily private member - Setting and getting FontPitch private member - Setting and getting FontWidth private member - Setting and getting FontWeight private member - Setting and getting FontItalic private member - Setting and getting the family name and style ImplFont accessors: - GetFamilyNoAsk() - GetPitchNoAsk() - GetWidthTypeNoAsk() - GetWeightNoAsk() - GetItalicNoAsk() - GetFamilyName() - GetStyleName() (These "NoAsk" functions are necessary because the default getters call on a function that checks the configuration for default values, something that is not wanted in all cases). Change-Id: Icfbc8b4e5253d55a80892df050b0803dfc7d7c9f Reviewed-on: https://gerrit.libreoffice.org/21501 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/font.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/vcl/font.hxx b/include/vcl/font.hxx
index 04052ad3f47a..c8a2c2df9037 100644
--- a/include/vcl/font.hxx
+++ b/include/vcl/font.hxx
@@ -78,6 +78,7 @@ public:
long GetWidth() const;
void SetFamily( FontFamily );
+ FontFamily GetFamily();
FontFamily GetFamily() const;
void SetCharSet( rtl_TextEncoding );
rtl_TextEncoding GetCharSet() const;
@@ -94,6 +95,7 @@ public:
void SetCJKContextLanguage( LanguageType );
LanguageType GetCJKContextLanguage() const;
void SetPitch( FontPitch ePitch );
+ FontPitch GetPitch();
FontPitch GetPitch() const;
void SetOrientation( short nLineOrientation );
@@ -105,10 +107,13 @@ public:
bool IsKerning() const;
void SetWeight( FontWeight );
+ FontWeight GetWeight();
FontWeight GetWeight() const;
void SetWidthType( FontWidth );
+ FontWidth GetWidthType();
FontWidth GetWidthType() const;
void SetItalic( FontItalic );
+ FontItalic GetItalic();
FontItalic GetItalic() const;
void SetOutline( bool bOutline );
bool IsOutline() const;