LibreOffice Module canvas (master) 1
|
Helper template base class for XGraphicDevice implementations on windows. More...
#include <bufferedgraphicdevicebase.hxx>
Public Types | |
typedef GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase > | BaseType |
typedef Mutex | MutexType |
Public Types inherited from canvas::GraphicDeviceBase< Base, DeviceHelper, ::osl::MutexGuard, css::uno::XInterface > | |
typedef Base | BaseType |
typedef ::osl::MutexGuard | MutexType |
typedef css::uno::XInterface | UnambiguousBaseType |
typedef ::rtl::Reference< GraphicDeviceBase > | Reference |
Public Member Functions | |
BufferedGraphicDeviceBase () | |
virtual css::uno::Reference< css::rendering::XBufferController > SAL_CALL | getBufferController () override |
virtual ::sal_Int32 SAL_CALL | createBuffers (::sal_Int32 nBuffers) override |
virtual void SAL_CALL | destroyBuffers () override |
virtual sal_Bool SAL_CALL | showBuffer (sal_Bool bUpdateAll) override |
virtual sal_Bool SAL_CALL | switchBuffer (sal_Bool bUpdateAll) override |
void | setWindow (const css::uno::Reference< css::awt::XWindow2 > &rWindow) |
Set corresponding canvas window. More... | |
css::uno::Any | getXWindow () const |
virtual void | disposeThis () override |
css::awt::Rectangle | transformBounds (const css::awt::Rectangle &rBounds) |
void | boundsChanged (const css::awt::WindowEvent &e) |
virtual void | disposeEventSource (const css::lang::EventObject &Source) override |
virtual void SAL_CALL | windowResized (const css::awt::WindowEvent &e) override |
virtual void SAL_CALL | windowMoved (const css::awt::WindowEvent &e) override |
virtual void SAL_CALL | windowShown (const css::lang::EventObject &) override |
virtual void SAL_CALL | windowHidden (const css::lang::EventObject &) override |
Public Member Functions inherited from canvas::GraphicDeviceBase< Base, DeviceHelper, ::osl::MutexGuard, css::uno::XInterface > | |
GraphicDeviceBase () | |
virtual void | disposeThis () override |
virtual css::uno::Reference< css::rendering::XBufferController > SAL_CALL | getBufferController () override |
virtual css::uno::Reference< css::rendering::XColorSpace > SAL_CALL | getDeviceColorSpace () override |
virtual css::geometry::RealSize2D SAL_CALL | getPhysicalResolution () override |
virtual css::geometry::RealSize2D SAL_CALL | getPhysicalSize () override |
virtual css::uno::Reference< css::rendering::XLinePolyPolygon2D > SAL_CALL | createCompatibleLinePolyPolygon (const css::uno::Sequence< css::uno::Sequence< css::geometry::RealPoint2D > > &points) override |
virtual css::uno::Reference< css::rendering::XBezierPolyPolygon2D > SAL_CALL | createCompatibleBezierPolyPolygon (const css::uno::Sequence< css::uno::Sequence< css::geometry::RealBezierSegment2D > > &points) override |
virtual css::uno::Reference< css::rendering::XBitmap > SAL_CALL | createCompatibleBitmap (const css::geometry::IntegerSize2D &size) override |
virtual css::uno::Reference< css::rendering::XVolatileBitmap > SAL_CALL | createVolatileBitmap (const css::geometry::IntegerSize2D &size) override |
virtual css::uno::Reference< css::rendering::XBitmap > SAL_CALL | createCompatibleAlphaBitmap (const css::geometry::IntegerSize2D &size) override |
virtual css::uno::Reference< css::rendering::XVolatileBitmap > SAL_CALL | createVolatileAlphaBitmap (const css::geometry::IntegerSize2D &size) override |
virtual css::uno::Reference< css::lang::XMultiServiceFactory > SAL_CALL | getParametricPolyPolygonFactory () override |
virtual sal_Bool SAL_CALL | hasFullScreenMode () override |
virtual sal_Bool SAL_CALL | enterFullScreenMode (sal_Bool) override |
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL | createInstance (const OUString &aServiceSpecifier) override |
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL | createInstanceWithArguments (const OUString &aServiceSpecifier, const css::uno::Sequence< css::uno::Any > &Arguments) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getAvailableServiceNames () override |
virtual void SAL_CALL | update () override |
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | getPropertySetInfo () override |
virtual void SAL_CALL | setPropertyValue (const OUString &aPropertyName, const css::uno::Any &aValue) override |
virtual css::uno::Any SAL_CALL | getPropertyValue (const OUString &aPropertyName) override |
virtual void SAL_CALL | addPropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override |
virtual void SAL_CALL | removePropertyChangeListener (const OUString &, const css::uno::Reference< css::beans::XPropertyChangeListener > &) override |
virtual void SAL_CALL | addVetoableChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &xListener) override |
virtual void SAL_CALL | removeVetoableChangeListener (const OUString &, const css::uno::Reference< css::beans::XVetoableChangeListener > &) override |
Protected Attributes | |
css::uno::Reference< css::awt::XWindow2 > | mxWindow |
css::awt::Rectangle | maBounds |
Current bounds of the owning Window. More... | |
bool | mbIsVisible |
True, if the window this canvas is contained in, is visible. More... | |
Protected Attributes inherited from canvas::GraphicDeviceBase< Base, DeviceHelper, ::osl::MutexGuard, css::uno::XInterface > | |
DeviceHelper | maDeviceHelper |
PropertySetHelper | maPropHelper |
bool | mbDumpScreenContent |
Private Attributes | |
bool | mbIsTopLevel |
True, if the window this canvas is contained in, is a toplevel window. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from canvas::GraphicDeviceBase< Base, DeviceHelper, ::osl::MutexGuard, css::uno::XInterface > | |
~GraphicDeviceBase () | |
css::uno::Any | getDumpScreenContent () const |
void | setDumpScreenContent (const css::uno::Any &rAny) |
Helper template base class for XGraphicDevice implementations on windows.
Use this base class if your target device is a window. Additionally to GraphicDeviceBase, this template provides an implementation of the awt::XWindowListener interface, to receive notifications about state changes of the associated window.
Definition at line 75 of file bufferedgraphicdevicebase.hxx.
typedef GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase > canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::BaseType |
Definition at line 79 of file bufferedgraphicdevicebase.hxx.
typedef Mutex canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::MutexType |
Definition at line 80 of file bufferedgraphicdevicebase.hxx.
|
inline |
Definition at line 82 of file bufferedgraphicdevicebase.hxx.
References canvas::PropertySetHelper::addProperties(), canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::getXWindow(), and canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::maPropHelper.
|
inline |
Definition at line 186 of file bufferedgraphicdevicebase.hxx.
References canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::maBounds, canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::maDeviceHelper, and canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::transformBounds().
Referenced by canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::windowMoved(), and canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::windowResized().
|
inlineoverride |
Definition at line 98 of file bufferedgraphicdevicebase.hxx.
References canvas::tools::verifyRange().
|
inlineoverridevirtual |
Definition at line 105 of file bufferedgraphicdevicebase.hxx.
|
inlineoverridevirtual |
Definition at line 207 of file bufferedgraphicdevicebase.hxx.
References canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::mxWindow, and Source.
|
inlineoverridevirtual |
Reimplemented from canvas::GraphicDeviceBase< Base, DeviceHelper, ::osl::MutexGuard, css::uno::XInterface >.
Definition at line 160 of file bufferedgraphicdevicebase.hxx.
References canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::disposeThis(), and canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::mxWindow.
|
inlineoverridevirtual |
Reimplemented from canvas::GraphicDeviceBase< Base, DeviceHelper, ::osl::MutexGuard, css::uno::XInterface >.
Definition at line 92 of file bufferedgraphicdevicebase.hxx.
|
inline |
Definition at line 155 of file bufferedgraphicdevicebase.hxx.
References canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::mxWindow.
Referenced by canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::BufferedGraphicDeviceBase().
|
inline |
Set corresponding canvas window.
Use this method to set the window this canvas displays on. Comes in handy when the canvas needs to adapt size or output position to the changing window.
Whenever the bounds of the window change, void notifySizeUpdate( const awt::Rectangle& rBounds )
is called, with rBounds the window bound rect relative to the frame window.
Definition at line 135 of file bufferedgraphicdevicebase.hxx.
References canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::maBounds, canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::mbIsTopLevel, canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::mbIsVisible, canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::mxWindow, and canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::transformBounds().
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inline |
Definition at line 174 of file bufferedgraphicdevicebase.hxx.
References canvas::tools::getAbsoluteWindowRect(), canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::mbIsTopLevel, and canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::mxWindow.
Referenced by canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::boundsChanged(), and canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::setWindow().
|
inlineoverridevirtual |
Definition at line 234 of file bufferedgraphicdevicebase.hxx.
References canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::mbIsVisible.
|
inlineoverridevirtual |
Definition at line 222 of file bufferedgraphicdevicebase.hxx.
References canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::boundsChanged().
|
inlineoverridevirtual |
Definition at line 217 of file bufferedgraphicdevicebase.hxx.
References canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::boundsChanged().
|
inlineoverridevirtual |
Definition at line 227 of file bufferedgraphicdevicebase.hxx.
References canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::mbIsVisible.
|
protected |
Current bounds of the owning Window.
Definition at line 245 of file bufferedgraphicdevicebase.hxx.
Referenced by canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::boundsChanged(), and canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::setWindow().
|
private |
True, if the window this canvas is contained in, is a toplevel window.
Definition at line 252 of file bufferedgraphicdevicebase.hxx.
Referenced by canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::setWindow(), and canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::transformBounds().
|
protected |
True, if the window this canvas is contained in, is visible.
Definition at line 248 of file bufferedgraphicdevicebase.hxx.
Referenced by canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::setWindow(), canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::showBuffer(), canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::switchBuffer(), canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::windowHidden(), and canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::windowShown().
|
protected |
Definition at line 242 of file bufferedgraphicdevicebase.hxx.
Referenced by canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::disposeEventSource(), canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::disposeThis(), canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::getXWindow(), canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::setWindow(), and canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::transformBounds().