From eea67332da825306abd3e49450850abb323eb91c Mon Sep 17 00:00:00 2001 From: Chris Sherlock <chris.sherlock79@gmail.com> Date: Thu, 28 Jan 2016 12:08:43 +1100 Subject: vcl: add in copy constructor for FontAttributes Change-Id: I0627ee8ee699abd2afc87639c87f8c17f42c6e70 --- vcl/inc/fontattributes.hxx | 1 + vcl/source/font/fontattributes.cxx | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) 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 { -- cgit