summaryrefslogtreecommitdiff
path: root/vcl/inc/ios
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-01-15 22:23:07 +0200
committerTor Lillqvist <tml@iki.fi>2013-01-19 10:52:40 +0200
commit0d816467302dae89fd2e326e97364d1d4db47e8e (patch)
treed30bd475450eea6fc536c554c0efe7be95f031c6 /vcl/inc/ios
parent8a894b4af476641062bf340a2fb802558bf1cbe3 (diff)
Fix iOS bit-rot and unify with OS X CoreText code
Adapt to the fairly pointless privatisations here, too. Unify with the OS X CoreText code. Yeah, probably should unify physically, i.e. use the same source files for both, with as little ifdefs as possible. Change-Id: I63bc477f0c979769bb995db37a3c4194e8091b30
Diffstat (limited to 'vcl/inc/ios')
-rw-r--r--vcl/inc/ios/salcoretextfontutils.hxx12
-rw-r--r--vcl/inc/ios/salcoretextstyle.hxx6
-rw-r--r--vcl/inc/ios/salgdi.h2
3 files changed, 9 insertions, 11 deletions
diff --git a/vcl/inc/ios/salcoretextfontutils.hxx b/vcl/inc/ios/salcoretextfontutils.hxx
index d1ee1b8435cd..6293392e8cd1 100644
--- a/vcl/inc/ios/salcoretextfontutils.hxx
+++ b/vcl/inc/ios/salcoretextfontutils.hxx
@@ -20,7 +20,7 @@
#ifndef _VCL_IOS_CORETEXT_SALCORETEXTFONTUTILS_HXX
#define _VCL_IOS_CORETEXT_SALCORETEXTFONTUTILS_HXX
-class ImplCoreTextFontData;
+class CoreTextPhysicalFontFace;
class ImplDevFontList;
#include <boost/unordered_map.hpp>
@@ -30,11 +30,11 @@ class ImplDevFontList;
#include "outfont.hxx"
#include "impfont.hxx"
-class ImplCoreTextFontData : public PhysicalFontFace
+class CoreTextPhysicalFontFace : public PhysicalFontFace
{
public:
- ImplCoreTextFontData(const ImplDevFontAttributes&, CTFontRef font);
- virtual ~ImplCoreTextFontData();
+ CoreTextPhysicalFontFace(const ImplDevFontAttributes&, CTFontRef font);
+ virtual ~CoreTextPhysicalFontFace();
virtual PhysicalFontFace* Clone() const;
virtual ImplFontEntry* CreateFontInstance( FontSelectPattern& ) const;
virtual sal_IntPtr GetFontId() const { return (sal_IntPtr)m_CTFontRef;};
@@ -70,10 +70,10 @@ public:
~SystemFontList();
void AnnounceFonts( ImplDevFontList& ) const;
- ImplCoreTextFontData* GetFontDataFromRef( CTFontRef ) const;
+ CoreTextPhysicalFontFace* GetFontDataFromRef( CTFontRef ) const;
private:
- typedef boost::unordered_map<CTFontRef,ImplCoreTextFontData*> CoreTextFontContainer;
+ typedef boost::unordered_map<CTFontRef,CoreTextPhysicalFontFace*> CoreTextFontContainer;
CoreTextFontContainer m_aFontContainer;
void InitGlyphFallbacks();
diff --git a/vcl/inc/ios/salcoretextstyle.hxx b/vcl/inc/ios/salcoretextstyle.hxx
index 37a8de3208cb..eafba5144226 100644
--- a/vcl/inc/ios/salcoretextstyle.hxx
+++ b/vcl/inc/ios/salcoretextstyle.hxx
@@ -23,7 +23,7 @@
#include "ios/salgdicommon.hxx"
class FontSelectPattern;
-class ImplCoreTextFontData;
+class CoreTextPhysicalFontFace;
class CoreTextStyleInfo
{
@@ -31,6 +31,7 @@ public:
CoreTextStyleInfo();
~CoreTextStyleInfo();
CTFontRef GetFont() const { return m_CTFont; };
+ CoreTextPhysicalFontFace* GetFontFace() const { return m_font_face; };
long GetFontStretchedSize() const;
float GetFontStretchFactor() const { return m_stretch_factor; };
CTParagraphStyleRef GetParagraphStyle() const { return m_CTParagraphStyle; } ;
@@ -50,8 +51,7 @@ private:
CTParagraphStyleRef m_CTParagraphStyle;
CTFontRef m_CTFont;
CGColorRef m_color;
- const ImplCoreTextFontData* m_font_data;
-
+ CoreTextPhysicalFontFace* m_font_face;
};
#endif // _VCL_AQUA_CORETEXT_SALCORETEXTSTYLE_HXX
diff --git a/vcl/inc/ios/salgdi.h b/vcl/inc/ios/salgdi.h
index 51099beb90d6..ac00f8c7918e 100644
--- a/vcl/inc/ios/salgdi.h
+++ b/vcl/inc/ios/salgdi.h
@@ -62,8 +62,6 @@ protected:
RGBAColor maLineColor; //< pen color RGBA
RGBAColor maFillColor; //< brush color RGBA
- ImplCoreTextFontData* m_pCoreTextFontData; //< Device Font settings
-
bool mbNonAntialiasedText; //< allows text to be rendered without antialiasing
// Graphics types