diff options
author | Noel Grandin <noel@peralex.com> | 2014-09-23 11:20:40 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-09-23 14:11:39 +0300 |
commit | 827c46e7d75000cb03b0ce21759f9d0825f0c096 (patch) | |
tree | 3a84ccc45d54607c61328b18f58f914c1d6ec240 /include/vcl/vclevent.hxx | |
parent | 7cbbefae224ab85343accb42b03f9431ec693a83 (diff) |
fdo#82577: Handle Window
Put the VCL Window class in the vcl namespace. Avoids clash with the X11
Window typedef.
Change-Id: Ib1beb7ab4ad75562a42aeb252732a073d25eff1a
Diffstat (limited to 'include/vcl/vclevent.hxx')
-rw-r--r-- | include/vcl/vclevent.hxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/vcl/vclevent.hxx b/include/vcl/vclevent.hxx index 25bc14709115..276321b0e5df 100644 --- a/include/vcl/vclevent.hxx +++ b/include/vcl/vclevent.hxx @@ -30,7 +30,7 @@ #include <list> #include <vector> -class Window; +namespace vcl { class Window; } class Menu; namespace com { namespace sun { namespace star { @@ -42,15 +42,15 @@ namespace com { namespace sun { namespace star { #define VCLEVENT_OBJECT_DYING 1 // VclWindowEvent: -#define VCLEVENT_WINDOW_CHILDCREATED 500 // pData = Window* -#define VCLEVENT_WINDOW_CHILDDESTROYED 501 // pData = Window* +#define VCLEVENT_WINDOW_CHILDCREATED 500 // pData = vcl::Window* +#define VCLEVENT_WINDOW_CHILDDESTROYED 501 // pData = vcl::Window* #define VCLEVENT_WINDOW_PAINT 1000 // pData = Rectangle* #define VCLEVENT_WINDOW_MOVE 1001 #define VCLEVENT_WINDOW_RESIZE 1002 #define VCLEVENT_WINDOW_SHOW 1003 #define VCLEVENT_WINDOW_HIDE 1004 #define VCLEVENT_WINDOW_ACTIVATE 1005 -#define VCLEVENT_WINDOW_DEACTIVATE 1006 // pData = Window* = pPrevActiveWindow +#define VCLEVENT_WINDOW_DEACTIVATE 1006 // pData = vcl::Window* = pPrevActiveWindow #define VCLEVENT_WINDOW_CLOSE 1007 #define VCLEVENT_WINDOW_GETFOCUS 1008 #define VCLEVENT_WINDOW_LOSEFOCUS 1009 @@ -217,15 +217,15 @@ public: class VCL_DLLPUBLIC VclWindowEvent : public VclSimpleEvent { private: - Window* pWindow; + vcl::Window* pWindow; void* pData; public: - VclWindowEvent( Window* pWin, sal_uLong n, void* pDat = NULL ) : VclSimpleEvent(n) { pWindow = pWin; pData = pDat; } + VclWindowEvent( vcl::Window* pWin, sal_uLong n, void* pDat = NULL ) : VclSimpleEvent(n) { pWindow = pWin; pData = pDat; } virtual ~VclWindowEvent() {} TYPEINFO_OVERRIDE(); - Window* GetWindow() const { return pWindow; } + vcl::Window* GetWindow() const { return pWindow; } void* GetData() const { return pData; } }; |