summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2016-01-28 12:08:43 +1100
committerChris Sherlock <chris.sherlock79@gmail.com>2016-01-28 12:08:43 +1100
commiteea67332da825306abd3e49450850abb323eb91c (patch)
tree9eb6f637b4816642932a4ac0333475a5168fab32
parent2b0669eec0d86e973a7d8def8744c522bbf8af8b (diff)
vcl: add in copy constructor for FontAttributes
Change-Id: I0627ee8ee699abd2afc87639c87f8c17f42c6e70
-rw-r--r--vcl/inc/fontattributes.hxx1
-rw-r--r--vcl/source/font/fontattributes.cxx18
2 files changed, 19 insertions, 0 deletions
diff --git a/vcl/inc/fontattributes.hxx b/vcl/inc/fontattributes.hxx
index b94f4be5afce..870afd34343e 100644
--- a/vcl/inc/fontattributes.hxx
+++ b/vcl/inc/fontattributes.hxx
@@ -28,6 +28,7 @@ class FontAttributes
{
public:
explicit FontAttributes();
+ FontAttributes( const FontAttributes& );
// device independent font functions
const OUString& GetFamilyName() const { return maFamilyName; }
diff --git a/vcl/source/font/fontattributes.cxx b/vcl/source/font/fontattributes.cxx
index b777227f9a0c..4f5c9e4bfcce 100644
--- a/vcl/source/font/fontattributes.cxx
+++ b/vcl/source/font/fontattributes.cxx
@@ -37,6 +37,24 @@ FontAttributes::FontAttributes()
mbEmbeddable ( false )
{}
+FontAttributes::FontAttributes( const FontAttributes& rFontAttributes ) :
+ maFamilyName( rFontAttributes.maFamilyName ),
+ maStyleName( rFontAttributes.maStyleName ),
+ meWeight( rFontAttributes.meWeight ),
+ meFamily( rFontAttributes.meFamily ),
+ mePitch( rFontAttributes.mePitch ),
+ meWidthType( rFontAttributes.meWidthType ),
+ meItalic( rFontAttributes.meItalic ),
+ meCharSet( rFontAttributes.meCharSet ),
+ mbSymbolFlag( rFontAttributes.mbSymbolFlag ),
+ maMapNames( rFontAttributes.maMapNames ),
+ mnQuality( rFontAttributes.mnQuality ),
+ mbOrientation( rFontAttributes.mbOrientation ),
+ mbDevice( rFontAttributes.mbDevice ),
+ mbSubsettable( rFontAttributes.mbSubsettable ),
+ mbEmbeddable( rFontAttributes.mbEmbeddable )
+{}
+
bool FontAttributes::CompareDeviceIndependentFontAttributes(const FontAttributes& rOther) const
{