diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-10-30 23:48:15 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-11-30 05:16:11 +0100 |
commit | 7514dc3424e703a58b0ae7b3b5fc0ee36ad52f9f (patch) | |
tree | 4e3fa00e17f4e66609b5fa906e72a06d333ca2d4 /vcl/inc/headless | |
parent | d59b971a4c8600208215a547a2de128de34b3299 (diff) |
move the iOS SalGraphics code back into the OSX one
Conflicts:
vcl/inc/headless/svpgdi.hxx
Change-Id: I4cd9163bcbb8cdee21e5bce3303894923c4238d6
Diffstat (limited to 'vcl/inc/headless')
-rw-r--r-- | vcl/inc/headless/svpframe.hxx | 2 | ||||
-rw-r--r-- | vcl/inc/headless/svpgdi.hxx | 73 | ||||
-rw-r--r-- | vcl/inc/headless/svpvd.hxx | 4 |
3 files changed, 4 insertions, 75 deletions
diff --git a/vcl/inc/headless/svpframe.hxx b/vcl/inc/headless/svpframe.hxx index 8e0bbd4da30c..4154252ac3b0 100644 --- a/vcl/inc/headless/svpframe.hxx +++ b/vcl/inc/headless/svpframe.hxx @@ -29,8 +29,8 @@ #include <list> #ifdef IOS -#define SvpSalGraphics AquaSalGraphics #define SvpSalInstance AquaSalInstance +#define SvpSalGraphics AquaSalGraphics #endif class SvpSalInstance; diff --git a/vcl/inc/headless/svpgdi.hxx b/vcl/inc/headless/svpgdi.hxx index 9ae3d0539796..23b76caeeea0 100644 --- a/vcl/inc/headless/svpgdi.hxx +++ b/vcl/inc/headless/svpgdi.hxx @@ -29,26 +29,13 @@ #include "sallayout.hxx" #ifdef IOS -#include "quartz/salgdi.h" -#include <premac.h> -#include <Foundation/Foundation.h> -#include <CoreGraphics/CoreGraphics.h> -#include <postmac.h> -#endif +#define SvpSalGraphics AquaSalGraphics +#else class ServerFont; -#ifdef IOS -// To keep changes to the CoreText code shared with AOO to a minimum, -// let's continue calling the SalGraphics subclass "AquaSalGraphics" even if it -// is used by us also on iOS, where of course the term "Aqua" has no meaning at all. -// (Note that even on OS X, using the term "Aqua" is a misunderstanding or obsolete.) -#define SvpSalGraphics AquaSalGraphics -#endif - class SvpSalGraphics : public SalGraphics { -#ifndef IOS basebmp::BitmapDeviceSharedPtr m_aDevice; basebmp::BitmapDeviceSharedPtr m_aOrigDevice; @@ -84,42 +71,6 @@ private: public: void setDevice( basebmp::BitmapDeviceSharedPtr& rDevice ); -#else - friend class CTLayout; - - CGLayerRef mxLayer; - // mirror AquaSalVirtualDevice::mbForeignContext for SvpSalGraphics objects related to such - bool mbForeignContext; - CGContextRef mrContext; - int mnContextStackDepth; - class XorEmulation* mpXorEmulation; - int mnXorMode; // 0: off 1: on 2: invert only - int mnWidth; - int mnHeight; - int mnBitmapDepth; // zero unless bitmap - - /// path representing current clip region - CGMutablePathRef mxClipPath; - - /// Drawing colors - /// pen color RGBA - RGBAColor maLineColor; - /// brush color RGBA - RGBAColor maFillColor; - - // Device Font settings - const CoreTextFontData* mpFontData; - CoreTextStyle* mpTextStyle; - RGBAColor maTextColor; - /// allows text to be rendered without antialiasing - bool mbNonAntialiasedText; - - /// is this a printer graphics - bool mbPrinter; - /// is this a virtual device graphics - bool mbVirDev; -#endif - protected: vcl::Region m_aClipRegion; @@ -252,28 +203,10 @@ public: virtual void BeginPaint() SAL_OVERRIDE { }; virtual void EndPaint() SAL_OVERRIDE { }; -#ifdef IOS void SetVirDevGraphics( CGLayerRef xLayer, CGContextRef xContext, int = 0 ); +}; - bool CheckContext(); - CGContextRef GetContext(); - bool GetRawFontData( const PhysicalFontFace* pFontData, - std::vector<unsigned char>& rBuffer, - bool* pJustCFF ); - void RefreshRect( const CGRect& ) { }; - void RefreshRect(float lX, float lY, float lWidth, float lHeight); - void SetState(); - void UnsetState(); - void InvalidateContext(); - bool IsPenVisible() const { return maLineColor.IsVisible(); } - bool IsBrushVisible() const { return maFillColor.IsVisible(); } - void ImplDrawPixel( long nX, long nY, const RGBAColor& ); // helper to draw single pixels - CGPoint* makeCGptArray(sal_uInt32 nPoints, const SalPoint* pPtAry); - bool IsFlipped() const { return false; } - void ApplyXorContext(); - void Pattern50Fill(); #endif -}; #endif // INCLUDED_VCL_INC_HEADLESS_SVPGDI_HXX diff --git a/vcl/inc/headless/svpvd.hxx b/vcl/inc/headless/svpvd.hxx index f6a9cc5307fe..e69bf8f4828c 100644 --- a/vcl/inc/headless/svpvd.hxx +++ b/vcl/inc/headless/svpvd.hxx @@ -24,10 +24,6 @@ #include <list> -#ifdef IOS -#define SvpSalGraphics AquaSalGraphics -#endif - class SvpSalGraphics; class SvpSalVirtualDevice : public SalVirtualDevice |