summaryrefslogtreecommitdiff
path: root/vcl/inc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-11-02 02:13:29 +0100
committerMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-11-10 07:58:42 +0100
commit2e4b89bb283d6d744b5f04cdcc2749f56271741d (patch)
tree399ca79bc232144964ddc482f30da0f6c71340af /vcl/inc
parentf41f50e424a85e5186774ba38b92f26bbe044a1f (diff)
start to bring some sanity to windows backend
Just moving some of our variables from public to private to understand which ones are actively set from outside objects. Change-Id: I33998bb95c93195c6c39778e37ac1071b917c8fa
Diffstat (limited to 'vcl/inc')
-rw-r--r--vcl/inc/win/salgdi.h24
1 files changed, 18 insertions, 6 deletions
diff --git a/vcl/inc/win/salgdi.h b/vcl/inc/win/salgdi.h
index 09df7ca4912d..798a99b60233 100644
--- a/vcl/inc/win/salgdi.h
+++ b/vcl/inc/win/salgdi.h
@@ -148,11 +148,23 @@ private:
boost::scoped_ptr<SalGraphicsImpl> mpImpl;
HDC mhLocalDC; // HDC
+ bool mbPrinter : 1; // is Printer
+ bool mbVirDev : 1; // is VirDev
+ bool mbWindow : 1; // is Window
+ bool mbScreen : 1; // is Screen compatible
public:
HDC getHDC() const { return mhLocalDC; }
void setHDC(HDC aNew) { mhLocalDC = aNew; }
+ enum Type
+ {
+ PRINTER,
+ VIRTUAL_DEVICE,
+ WINDOW,
+ SCREEN
+ };
+
public:
HWND mhWnd; // Window-Handle, when Window-Graphics
@@ -179,18 +191,18 @@ public:
sal_uIntPtr mnFontKernPairCount;// Number of Kerning Pairs of the current Font
int mnPenWidth; // Linienbreite
- /// bitfield
- bool mbPrinter : 1; // is Printer
- bool mbVirDev : 1; // is VirDev
- bool mbWindow : 1; // is Window
- bool mbScreen : 1; // is Screen compatible
-
HFONT ImplDoSetFont( FontSelectPattern* i_pFont, float& o_rFontScale, HFONT& o_rOldFont );
public:
explicit WinSalGraphics();
+ explicit WinSalGraphics(WinSalGraphics::Type eType, bool bScreen);
virtual ~WinSalGraphics();
+ bool isPrinter();
+ bool isVirtualDevice();
+ bool isWindow();
+ bool isScreen();
+
protected:
virtual bool setClipRegion( const vcl::Region& );
// draw --> LineColor and FillColor and RasterOp and ClipRegion