[Libreoffice-commits] core.git: vcl/inc vcl/source
Chris Sherlock
chris.sherlock79 at gmail.com
Wed Jan 27 17:10:14 PST 2016
vcl/inc/fontattributes.hxx | 1 +
vcl/source/font/fontattributes.cxx | 18 ++++++++++++++++++
2 files changed, 19 insertions(+)
New commits:
commit eea67332da825306abd3e49450850abb323eb91c
Author: Chris Sherlock <chris.sherlock79 at gmail.com>
Date: Thu Jan 28 12:08:43 2016 +1100
vcl: add in copy constructor for FontAttributes
Change-Id: I0627ee8ee699abd2afc87639c87f8c17f42c6e70
diff --git a/vcl/inc/fontattributes.hxx b/vcl/inc/fontattributes.hxx
index b94f4be..870afd3 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 b777227..4f5c9e4 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
{
More information about the Libreoffice-commits
mailing list