22#include <com/sun/star/awt/XWindow2.hpp>
74 class Mutex=::osl::MutexGuard,
92 virtual css::uno::Reference< css::rendering::XBufferController > SAL_CALL
getBufferController( )
override
98 virtual ::sal_Int32 SAL_CALL
createBuffers( ::sal_Int32 nBuffers )
override
135 void setWindow(
const css::uno::Reference< css::awt::XWindow2 >& rWindow )
138 mxWindow->removeWindowListener(
this );
146 css::uno::Reference< css::awt::XTopWindow >(
148 css::uno::UNO_QUERY ).is();
151 mxWindow->addWindowListener(
this );
166 mxWindow->removeWindowListener(
this);
183 return css::awt::Rectangle( 0,0,rBounds.Width,rBounds.Height );
190 const css::awt::Rectangle& rNewBounds(
198 rNewBounds.Width !=
maBounds.Width ||
199 rNewBounds.Height !=
maBounds.Height )
214 BaseType::disposeEventSource(
Source);
217 virtual void SAL_CALL
windowResized(
const css::awt::WindowEvent& e )
override
222 virtual void SAL_CALL
windowMoved(
const css::awt::WindowEvent& e )
override
227 virtual void SAL_CALL
windowShown(
const css::lang::EventObject& )
override
234 virtual void SAL_CALL
windowHidden(
const css::lang::EventObject& )
override
242 css::uno::Reference< css::awt::XWindow2 >
mxWindow;
Helper template base class for XGraphicDevice implementations on windows.
virtual void SAL_CALL windowShown(const css::lang::EventObject &) override
bool mbIsVisible
True, if the window this canvas is contained in, is visible.
virtual void SAL_CALL destroyBuffers() override
virtual sal_Bool SAL_CALL switchBuffer(sal_Bool bUpdateAll) override
virtual void SAL_CALL windowResized(const css::awt::WindowEvent &e) override
css::awt::Rectangle maBounds
Current bounds of the owning Window.
virtual void SAL_CALL windowMoved(const css::awt::WindowEvent &e) override
virtual void disposeThis() override
virtual ::sal_Int32 SAL_CALL createBuffers(::sal_Int32 nBuffers) override
void setWindow(const css::uno::Reference< css::awt::XWindow2 > &rWindow)
Set corresponding canvas window.
css::uno::Any getXWindow() const
GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase > BaseType
virtual void disposeEventSource(const css::lang::EventObject &Source) override
void boundsChanged(const css::awt::WindowEvent &e)
virtual sal_Bool SAL_CALL showBuffer(sal_Bool bUpdateAll) override
BufferedGraphicDeviceBase()
bool mbIsTopLevel
True, if the window this canvas is contained in, is a toplevel window.
css::awt::Rectangle transformBounds(const css::awt::Rectangle &rBounds)
virtual void SAL_CALL windowHidden(const css::lang::EventObject &) override
virtual css::uno::Reference< css::rendering::XBufferController > SAL_CALL getBufferController() override
css::uno::Reference< css::awt::XWindow2 > mxWindow
Helper template base class for XGraphicDevice implementations.
virtual void disposeThis() override
PropertySetHelper maPropHelper
DeviceHelper maDeviceHelper
void addProperties(const InputMap &rMap)
Add given properties to helper.