Kaydet (Commit) 84972949 authored tarafından Caolán McNamara's avatar Caolán McNamara

fix build

Change-Id: I24e5ad4f27584aa982fa8a4d7ee80e7167bbcacf
üst 2ba0266f
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#include <unx/salunx.h> #include <unx/salunx.h>
#include <unx/saltype.h> #include <unx/saltype.h>
#include <unx/saldisp.hxx>
#include <salframe.hxx> #include <salframe.hxx>
#include <salwtype.hxx> #include <salwtype.hxx>
#include <salinst.hxx> #include <salinst.hxx>
...@@ -37,7 +37,6 @@ ...@@ -37,7 +37,6 @@
#include <list> #include <list>
class SalDisplay;
class X11SalGraphics; class X11SalGraphics;
class SalI18N_InputContext; class SalI18N_InputContext;
...@@ -171,9 +170,18 @@ public: ...@@ -171,9 +170,18 @@ public:
void Init( sal_uIntPtr nSalFrameStyle, SalX11Screen nScreen = SalX11Screen( -1 ), void Init( sal_uIntPtr nSalFrameStyle, SalX11Screen nScreen = SalX11Screen( -1 ),
SystemParentData* pParentData = NULL, bool bUseGeometry = false ); SystemParentData* pParentData = NULL, bool bUseGeometry = false );
SalDisplay* GetDisplay() const { return pDisplay_; } SalDisplay* GetDisplay() const
Display* GetXDisplay() const; {
XLIB_Window GetDrawable() const; return pDisplay_;
}
Display *GetXDisplay() const
{
return pDisplay_->GetDisplay();
}
XLIB_Window GetDrawable() const
{
return GetWindow();
}
SalX11Screen GetScreenNumber() const { return m_nXScreen; } SalX11Screen GetScreenNumber() const { return m_nXScreen; }
XLIB_Window GetWindow() const { return mhWindow; } XLIB_Window GetWindow() const { return mhWindow; }
XLIB_Window GetShellWindow() const { return mhShellWindow; } XLIB_Window GetShellWindow() const { return mhShellWindow; }
...@@ -183,8 +191,8 @@ public: ...@@ -183,8 +191,8 @@ public:
long Close() const { return CallCallback( SALEVENT_CLOSE, 0 ); } long Close() const { return CallCallback( SALEVENT_CLOSE, 0 ); }
sal_uIntPtr GetStyle() const { return nStyle_; } sal_uIntPtr GetStyle() const { return nStyle_; }
inline XLIB_Cursor GetCursor() const { return hCursor_; } XLIB_Cursor GetCursor() const { return hCursor_; }
inline sal_Bool IsCaptured() const { return nCaptured_ == 1; } sal_Bool IsCaptured() const { return nCaptured_ == 1; }
#if !defined(__synchronous_extinput__) #if !defined(__synchronous_extinput__)
void HandleExtTextEvent (XClientMessageEvent *pEvent); void HandleExtTextEvent (XClientMessageEvent *pEvent);
#endif #endif
......
...@@ -54,13 +54,24 @@ public: ...@@ -54,13 +54,24 @@ public:
SalX11Screen nXScreen, SalX11Screen nXScreen,
Pixmap hDrawable = None, Pixmap hDrawable = None,
XRenderPictFormat* pXRenderFormat = NULL ); XRenderPictFormat* pXRenderFormat = NULL );
inline void InitGraphics( X11SalVirtualDevice *pVD ); void InitGraphics( X11SalVirtualDevice *pVD )
{
inline Display *GetXDisplay() const; pGraphics_->Init( pVD );
inline SalDisplay *GetDisplay() const; }
inline sal_Bool IsDisplay() const; Display *GetXDisplay() const
inline Pixmap GetDrawable() const { return hDrawable_; } {
inline sal_uInt16 GetDepth() const { return nDepth_; } return pDisplay_->GetDisplay();
}
SalDisplay *GetDisplay() const
{
return pDisplay_;
}
sal_Bool IsDisplay() const
{
return pDisplay_->IsDisplay();
}
Pixmap GetDrawable() const { return hDrawable_; }
sal_uInt16 GetDepth() const { return nDepth_; }
int GetWidth() const { return nDX_; } int GetWidth() const { return nDX_; }
int GetHeight() const { return nDY_; } int GetHeight() const { return nDY_; }
SalX11Screen GetXScreenNumber() const { return m_nXScreen; } SalX11Screen GetXScreenNumber() const { return m_nXScreen; }
...@@ -73,6 +84,7 @@ public: ...@@ -73,6 +84,7 @@ public:
virtual void GetSize( long& rWidth, long& rHeight ); virtual void GetSize( long& rWidth, long& rHeight );
}; };
#endif // INCLUDED_VCL_INC_UNX_SALVD_H #endif // INCLUDED_VCL_INC_UNX_SALVD_H
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment