LibreOffice Module canvas (master) 1
|
Helper template base class for XGraphicDevice implementations. More...
#include <graphicdevicebase.hxx>
Public Types | |
typedef Base | BaseType |
typedef Mutex | MutexType |
typedef UnambiguousBase | UnambiguousBaseType |
typedef ::rtl::Reference< GraphicDeviceBase > | Reference |
Public Member Functions | |
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 Member Functions | |
~GraphicDeviceBase () | |
css::uno::Any | getDumpScreenContent () const |
void | setDumpScreenContent (const css::uno::Any &rAny) |
Protected Attributes | |
DeviceHelper | maDeviceHelper |
PropertySetHelper | maPropHelper |
bool | mbDumpScreenContent |
Private Member Functions | |
GraphicDeviceBase (const GraphicDeviceBase &)=delete | |
GraphicDeviceBase & | operator= (const GraphicDeviceBase &)=delete |
Helper template base class for XGraphicDevice implementations.
This base class provides partial implementations of the XGraphicDevice-related interface, such as XColorSpace.
This template basically interposes itself between the full interface you implement (i.e. not restricted to XGraphicDevice etc.). The problem with UNO partial interface implementation actually is, that you cannot do it the plain way, since deriving from a common base subclass always introduces the whole set of pure virtuals, that your baseclass helper just overridden) and your implementation class. You then only have to implement the functionality besides XGraphicDevice. If you want to support the optional debug XUpdatable interface, also add that to the base classes (client code will call the corresponding update() method, whenever a burst of animations is over).
Example: typedef ::cppu::WeakComponentImplHelper < css::rendering::XGraphicDevice, css::rendering::XColorSpace, css::rendering::XPropertySet, css::lang::XServiceInfo, css::lang::XServiceName > GraphicDeviceBase_Base; typedef ::canvas::internal::GraphicDeviceBase< GraphicDeviceBase, DeviceHelper > ExampleDevice_Base; class ExampleDevice : public ExampleDevice_Base { };
Definition at line 107 of file graphicdevicebase.hxx.
typedef Base canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::BaseType |
Definition at line 111 of file graphicdevicebase.hxx.
typedef Mutex canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::MutexType |
Definition at line 112 of file graphicdevicebase.hxx.
typedef ::rtl::Reference< GraphicDeviceBase > canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::Reference |
Definition at line 115 of file graphicdevicebase.hxx.
typedef UnambiguousBase canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::UnambiguousBaseType |
Definition at line 113 of file graphicdevicebase.hxx.
|
inline |
Definition at line 117 of file graphicdevicebase.hxx.
References canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::getDumpScreenContent(), canvas::PropertySetHelper::initProperties(), canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::maDeviceHelper, canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::maPropHelper, and canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::setDumpScreenContent().
|
inlineprotected |
Definition at line 324 of file graphicdevicebase.hxx.
|
privatedelete |
|
inlineoverridevirtual |
Definition at line 297 of file graphicdevicebase.hxx.
References canvas::PropertySetHelper::addPropertyChangeListener(), and canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::maPropHelper.
|
inlineoverridevirtual |
Definition at line 310 of file graphicdevicebase.hxx.
References canvas::PropertySetHelper::addVetoableChangeListener(), and canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::maPropHelper.
|
inlineoverridevirtual |
Definition at line 207 of file graphicdevicebase.hxx.
References canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::maDeviceHelper, size, and canvas::tools::verifyBitmapSize().
|
inlineoverridevirtual |
Definition at line 178 of file graphicdevicebase.hxx.
References canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::maDeviceHelper.
|
inlineoverridevirtual |
Definition at line 185 of file graphicdevicebase.hxx.
References canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::maDeviceHelper, size, and canvas::tools::verifyBitmapSize().
|
inlineoverridevirtual |
Definition at line 171 of file graphicdevicebase.hxx.
References canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::maDeviceHelper.
|
inlineoverridevirtual |
Definition at line 245 of file graphicdevicebase.hxx.
References canvas::ParametricPolyPolygon::create().
|
inlineoverridevirtual |
Definition at line 253 of file graphicdevicebase.hxx.
References canvas::ParametricPolyPolygon::create().
|
inlineoverridevirtual |
Definition at line 218 of file graphicdevicebase.hxx.
References canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::maDeviceHelper, size, and canvas::tools::verifyBitmapSize().
|
inlineoverridevirtual |
Definition at line 196 of file graphicdevicebase.hxx.
References canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::maDeviceHelper, size, and canvas::tools::verifyBitmapSize().
|
inlineoverridevirtual |
Reimplemented in canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >.
Definition at line 134 of file graphicdevicebase.hxx.
References canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::maDeviceHelper.
Referenced by canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::disposeThis().
|
inlineoverridevirtual |
Definition at line 239 of file graphicdevicebase.hxx.
|
inlineoverridevirtual |
Definition at line 261 of file graphicdevicebase.hxx.
References canvas::ParametricPolyPolygon::getAvailableServiceNames().
|
inlineoverridevirtual |
Reimplemented in canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >.
Definition at line 145 of file graphicdevicebase.hxx.
|
inlineoverridevirtual |
Definition at line 150 of file graphicdevicebase.hxx.
References canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::maDeviceHelper.
|
inlineprotected |
Definition at line 326 of file graphicdevicebase.hxx.
References canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::mbDumpScreenContent.
Referenced by canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::GraphicDeviceBase().
|
inlineoverridevirtual |
Definition at line 229 of file graphicdevicebase.hxx.
|
inlineoverridevirtual |
Definition at line 157 of file graphicdevicebase.hxx.
References canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::maDeviceHelper.
|
inlineoverridevirtual |
Definition at line 164 of file graphicdevicebase.hxx.
References canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::maDeviceHelper.
|
inlineoverridevirtual |
Definition at line 278 of file graphicdevicebase.hxx.
References canvas::PropertySetHelper::getPropertySetInfo(), and canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::maPropHelper.
|
inlineoverridevirtual |
Definition at line 291 of file graphicdevicebase.hxx.
References canvas::PropertySetHelper::getPropertyValue(), and canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::maPropHelper.
|
inlineoverridevirtual |
Definition at line 234 of file graphicdevicebase.hxx.
|
privatedelete |
|
inlineoverridevirtual |
Definition at line 305 of file graphicdevicebase.hxx.
|
inlineoverridevirtual |
Definition at line 318 of file graphicdevicebase.hxx.
|
inlineprotected |
Definition at line 331 of file graphicdevicebase.hxx.
References canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::mbDumpScreenContent.
Referenced by canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::GraphicDeviceBase().
|
inlineoverridevirtual |
Definition at line 284 of file graphicdevicebase.hxx.
References canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::maPropHelper, and canvas::PropertySetHelper::setPropertyValue().
|
inlineoverridevirtual |
|
protected |
Definition at line 338 of file graphicdevicebase.hxx.
Referenced by canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::boundsChanged(), canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::createCompatibleAlphaBitmap(), canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::createCompatibleBezierPolyPolygon(), canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::createCompatibleBitmap(), canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::createCompatibleLinePolyPolygon(), canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::createVolatileAlphaBitmap(), canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::createVolatileBitmap(), canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::disposeThis(), canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::getDeviceColorSpace(), canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::getPhysicalResolution(), canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::getPhysicalSize(), canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::GraphicDeviceBase(), canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::showBuffer(), canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::switchBuffer(), and canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::update().
|
protected |
Definition at line 339 of file graphicdevicebase.hxx.
Referenced by canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::addPropertyChangeListener(), canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::addVetoableChangeListener(), canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::BufferedGraphicDeviceBase(), canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::getPropertySetInfo(), canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::getPropertyValue(), canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::GraphicDeviceBase(), and canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::setPropertyValue().
|
protected |
Definition at line 340 of file graphicdevicebase.hxx.
Referenced by canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::getDumpScreenContent(), canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::setDumpScreenContent(), and canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::update().