LibreOffice Module reportdesign (master) 1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
reportdesign::OShape Class Reference

implementation of a More...

#include <Shape.hxx>

Inheritance diagram for reportdesign::OShape:
[legend]
Collaboration diagram for reportdesign::OShape:
[legend]

Public Member Functions

 OShape (css::uno::Reference< css::uno::XComponentContext > const &_xContext)
 
 OShape (css::uno::Reference< css::uno::XComponentContext > const &_xContext, const css::uno::Reference< css::lang::XMultiServiceFactory > &_xFactory, css::uno::Reference< css::drawing::XShape > &_xShape, OUString _sServiceName)
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () 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 &PropertyName) 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 &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
 
virtual void SAL_CALL addVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
 
virtual void SAL_CALL removeVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
 
virtual OUString SAL_CALL getCustomShapeEngine () override
 
virtual void SAL_CALL setCustomShapeEngine (const OUString &_customshapeengine) override
 
virtual OUString SAL_CALL getCustomShapeData () override
 
virtual void SAL_CALL setCustomShapeData (const OUString &_customshapedata) override
 
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getCustomShapeGeometry () override
 
virtual void SAL_CALL setCustomShapeGeometry (const css::uno::Sequence< css::beans::PropertyValue > &_customshapegeometry) override
 
virtual sal_Bool SAL_CALL getOpaque () override
 
virtual void SAL_CALL setOpaque (sal_Bool _opaque) override
 
virtual OUString SAL_CALL getShapeType () override
 
virtual ::sal_Int32 SAL_CALL getZOrder () override
 
virtual void SAL_CALL setZOrder (::sal_Int32 _zorder) override
 
virtual css::drawing::HomogenMatrix3 SAL_CALL getTransformation () override
 
virtual void SAL_CALL setTransformation (const css::drawing::HomogenMatrix3 &_transformation) override
 
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone () override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) override
 
virtual void SAL_CALL removeEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) override
 
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getParent () override
 
virtual void SAL_CALL setParent (const css::uno::Reference< css::uno::XInterface > &Parent) override
 
virtual void SAL_CALL addContainerListener (const css::uno::Reference< css::container::XContainerListener > &xListener) override
 
virtual void SAL_CALL removeContainerListener (const css::uno::Reference< css::container::XContainerListener > &xListener) override
 
virtual css::uno::Type SAL_CALL getElementType () override
 
virtual sal_Bool SAL_CALL hasElements () override
 
virtual void SAL_CALL replaceByIndex (::sal_Int32 Index, const css::uno::Any &Element) override
 
virtual void SAL_CALL insertByIndex (::sal_Int32 Index, const css::uno::Any &Element) override
 
virtual void SAL_CALL removeByIndex (::sal_Int32 Index) override
 
virtual ::sal_Int32 SAL_CALL getCount () override
 
virtual css::uno::Any SAL_CALL getByIndex (::sal_Int32 Index) override
 

Static Public Member Functions

static css::uno::Sequence< OUString > getSupportedServiceNames_Static ()
 
static OUString getImplementationName_Static ()
 
static css::uno::Reference< css::uno::XInterface > create (css::uno::Reference< css::uno::XComponentContext > const &xContext)
 

Protected Member Functions

virtual ~OShape () override
 
- Protected Member Functions inherited from cppu::PropertySetMixin< typename T >
 PropertySetMixin (css::uno::Reference< css::uno::XComponentContext > const &context, Implements implements, css::uno::Sequence< rtl::OUString > const &absentOptional)
 
 ~PropertySetMixin ()
 
- Protected Member Functions inherited from cppu::PropertySetMixinImpl
void prepareSet (rtl::OUString const &propertyName, css::uno::Any const &oldValue, css::uno::Any const &newValue, BoundListeners *boundListeners)
 
void dispose ()
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &type) SAL_OVERRIDE
 
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () SAL_OVERRIDE
 
virtual void SAL_CALL setPropertyValue (rtl::OUString const &propertyName, css::uno::Any const &value) SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL getPropertyValue (rtl::OUString const &propertyName) SAL_OVERRIDE
 
virtual void SAL_CALL addPropertyChangeListener (rtl::OUString const &propertyName, css::uno::Reference< css::beans::XPropertyChangeListener > const &listener) SAL_OVERRIDE
 
virtual void SAL_CALL removePropertyChangeListener (rtl::OUString const &propertyName, css::uno::Reference< css::beans::XPropertyChangeListener > const &listener) SAL_OVERRIDE
 
virtual void SAL_CALL addVetoableChangeListener (rtl::OUString const &propertyName, css::uno::Reference< css::beans::XVetoableChangeListener > const &listener) SAL_OVERRIDE
 
virtual void SAL_CALL removeVetoableChangeListener (rtl::OUString const &propertyName, css::uno::Reference< css::beans::XVetoableChangeListener > const &listener) SAL_OVERRIDE
 
virtual void SAL_CALL setFastPropertyValue (sal_Int32 handle, css::uno::Any const &value) SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL getFastPropertyValue (sal_Int32 handle) SAL_OVERRIDE
 
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getPropertyValues () SAL_OVERRIDE
 
virtual void SAL_CALL setPropertyValues (css::uno::Sequence< css::beans::PropertyValue > const &props) SAL_OVERRIDE
 

Private Member Functions

 OShape (const OShape &)=delete
 
OShapeoperator= (const OShape &)=delete
 
void set (const OUString &_sProperty, sal_Int16 Value, css::style::ParagraphAdjust &_member)
 
template<typename T >
void set (const OUString &_sProperty, const T &Value, T &_member)
 
void set (const OUString &_sProperty, bool Value, bool &_member)
 
cppu::IPropertyArrayHelpergetInfoHelper ()
 

Private Attributes

::std::unique_ptr< ::comphelper::OPropertyArrayAggregationHelperm_pAggHelper
 
OReportControlModel m_aProps
 
css::drawing::HomogenMatrix3 m_Transformation
 
sal_Int32 m_nZOrder
 
bool m_bOpaque
 
OUString m_sServiceName
 
OUString m_CustomShapeEngine
 
OUString m_CustomShapeData
 
css::uno::Sequence< css::beans::PropertyValue > m_CustomShapeGeometry
 

Friends

class OShapeHelper
 

Additional Inherited Members

- Protected Types inherited from cppu::PropertySetMixinImpl
enum  Implements
 
- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 
- Protected Attributes inherited from cppu::PropertySetMixinImpl
 IMPLEMENTS_PROPERTY_SET
 
 IMPLEMENTS_FAST_PROPERTY_SET
 
 IMPLEMENTS_PROPERTY_ACCESS
 

Detailed Description

implementation of a

Definition at line 42 of file Shape.hxx.

Constructor & Destructor Documentation

◆ OShape() [1/3]

reportdesign::OShape::OShape ( const OShape )
privatedelete

◆ ~OShape()

reportdesign::OShape::~OShape ( )
overrideprotectedvirtual

Definition at line 85 of file Shape.cxx.

◆ OShape() [2/3]

reportdesign::OShape::OShape ( css::uno::Reference< css::uno::XComponentContext > const &  _xContext)
explicit

◆ OShape() [3/3]

reportdesign::OShape::OShape ( css::uno::Reference< css::uno::XComponentContext > const &  _xContext,
const css::uno::Reference< css::lang::XMultiServiceFactory > &  _xFactory,
css::uno::Reference< css::drawing::XShape > &  _xShape,
OUString  _sServiceName 
)
explicit

References DECLARE_XINTERFACE.

Member Function Documentation

◆ addContainerListener()

void SAL_CALL reportdesign::OShape::addContainerListener ( const css::uno::Reference< css::container::XContainerListener > &  xListener)
overridevirtual

Definition at line 332 of file Shape.cxx.

References m_aProps.

◆ addEventListener()

virtual void SAL_CALL reportdesign::OShape::addEventListener ( const css::uno::Reference< css::lang::XEventListener > &  aListener)
inlineoverridevirtual

Definition at line 174 of file Shape.hxx.

◆ addPropertyChangeListener()

void SAL_CALL reportdesign::OShape::addPropertyChangeListener ( const OUString &  aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  xListener 
)
overridevirtual

Definition at line 217 of file Shape.cxx.

References m_aProps.

◆ addVetoableChangeListener()

void SAL_CALL reportdesign::OShape::addVetoableChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  aListener 
)
overridevirtual

Definition at line 237 of file Shape.cxx.

References m_aProps.

◆ create()

uno::Reference< uno::XInterface > reportdesign::OShape::create ( css::uno::Reference< css::uno::XComponentContext > const &  xContext)
static

Definition at line 111 of file Shape.cxx.

◆ createClone()

uno::Reference< util::XCloneable > SAL_CALL reportdesign::OShape::createClone ( )
overridevirtual

Definition at line 292 of file Shape.cxx.

References DBG_UNHANDLED_EXCEPTION, SdrObject::getSdrObjectFromXShape(), and pObject.

◆ dispose()

void SAL_CALL reportdesign::OShape::dispose ( void  )
overridevirtual

Definition at line 105 of file Shape.cxx.

◆ getByIndex()

uno::Any SAL_CALL reportdesign::OShape::getByIndex ( ::sal_Int32  Index)
overridevirtual

Definition at line 376 of file Shape.cxx.

References m_aProps.

◆ getCount()

sal_Int32 SAL_CALL reportdesign::OShape::getCount ( )
override

Definition at line 371 of file Shape.cxx.

References m_aProps.

◆ getCustomShapeData()

OUString SAL_CALL reportdesign::OShape::getCustomShapeData ( )
overridevirtual

Definition at line 465 of file Shape.cxx.

References m_aMutex, m_aProps, and PROPERTY_CUSTOMSHAPEDATA.

◆ getCustomShapeEngine()

OUString SAL_CALL reportdesign::OShape::getCustomShapeEngine ( )
overridevirtual

Definition at line 451 of file Shape.cxx.

References m_aMutex, m_aProps, and PROPERTY_CUSTOMSHAPEENGINE.

◆ getCustomShapeGeometry()

uno::Sequence< beans::PropertyValue > SAL_CALL reportdesign::OShape::getCustomShapeGeometry ( )
overridevirtual

Definition at line 478 of file Shape.cxx.

References m_aMutex, m_aProps, and PROPERTY_CUSTOMSHAPEGEOMETRY.

◆ getElementType()

uno::Type SAL_CALL reportdesign::OShape::getElementType ( )
overridevirtual

Definition at line 343 of file Shape.cxx.

References cppu::UnoType< typename T >::get().

◆ getImplementationName()

OUString SAL_CALL reportdesign::OShape::getImplementationName ( )
overridevirtual

Definition at line 123 of file Shape.cxx.

◆ getImplementationName_Static()

OUString reportdesign::OShape::getImplementationName_Static ( )
static
Exceptions
css::uno::RuntimeException

Definition at line 117 of file Shape.cxx.

◆ getInfoHelper()

cppu::IPropertyArrayHelper & reportdesign::OShape::getInfoHelper ( )
private

Definition at line 183 of file Shape.cxx.

References m_aProps.

◆ getOpaque()

sal_Bool SAL_CALL reportdesign::OShape::getOpaque ( )
overridevirtual

Definition at line 426 of file Shape.cxx.

References m_aMutex.

◆ getParent()

uno::Reference< uno::XInterface > SAL_CALL reportdesign::OShape::getParent ( )
overridevirtual

Definition at line 316 of file Shape.cxx.

◆ getPropertySetInfo()

uno::Reference< beans::XPropertySetInfo > SAL_CALL reportdesign::OShape::getPropertySetInfo ( )
overridevirtual

Reimplemented from cppu::PropertySetMixinImpl.

Definition at line 176 of file Shape.cxx.

References cppu::OPropertySetHelper::createPropertySetInfo().

◆ getPropertyValue()

uno::Any SAL_CALL reportdesign::OShape::getPropertyValue ( const OUString &  PropertyName)
overridevirtual

Definition at line 206 of file Shape.cxx.

References m_aProps.

◆ getShapeType()

OUString SAL_CALL reportdesign::OShape::getShapeType ( )
overridevirtual

Definition at line 404 of file Shape.cxx.

References m_aMutex, and m_aProps.

◆ getSupportedServiceNames()

uno::Sequence< OUString > SAL_CALL reportdesign::OShape::getSupportedServiceNames ( )
overridevirtual

Definition at line 133 of file Shape.cxx.

References SERVICE_SHAPE.

◆ getSupportedServiceNames_Static()

uno::Sequence< OUString > reportdesign::OShape::getSupportedServiceNames_Static ( )
static
Exceptions
css::uno::RuntimeException

Definition at line 128 of file Shape.cxx.

References SERVICE_SHAPE.

◆ getTransformation()

drawing::HomogenMatrix3 SAL_CALL reportdesign::OShape::getTransformation ( )
overridevirtual

Definition at line 438 of file Shape.cxx.

References m_aMutex, m_aProps, and PROPERTY_TRANSFORMATION.

◆ getZOrder()

sal_Int32 SAL_CALL reportdesign::OShape::getZOrder ( )
override

Definition at line 412 of file Shape.cxx.

References m_aMutex, m_aProps, and PROPERTY_ZORDER.

◆ hasElements()

sal_Bool SAL_CALL reportdesign::OShape::hasElements ( )
overridevirtual

Definition at line 348 of file Shape.cxx.

References m_aProps.

◆ insertByIndex()

void SAL_CALL reportdesign::OShape::insertByIndex ( ::sal_Int32  Index,
const css::uno::Any &  Element 
)
overridevirtual

Definition at line 354 of file Shape.cxx.

References m_aProps.

◆ operator=()

OShape & reportdesign::OShape::operator= ( const OShape )
privatedelete

◆ removeByIndex()

void SAL_CALL reportdesign::OShape::removeByIndex ( ::sal_Int32  Index)
overridevirtual

Definition at line 359 of file Shape.cxx.

References m_aProps.

◆ removeContainerListener()

void SAL_CALL reportdesign::OShape::removeContainerListener ( const css::uno::Reference< css::container::XContainerListener > &  xListener)
overridevirtual

Definition at line 337 of file Shape.cxx.

References m_aProps.

◆ removeEventListener()

virtual void SAL_CALL reportdesign::OShape::removeEventListener ( const css::uno::Reference< css::lang::XEventListener > &  aListener)
inlineoverridevirtual

Definition at line 178 of file Shape.hxx.

◆ removePropertyChangeListener()

void SAL_CALL reportdesign::OShape::removePropertyChangeListener ( const OUString &  aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  aListener 
)
overridevirtual

Definition at line 227 of file Shape.cxx.

References m_aProps.

◆ removeVetoableChangeListener()

void SAL_CALL reportdesign::OShape::removeVetoableChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  aListener 
)
overridevirtual

Definition at line 247 of file Shape.cxx.

References m_aProps.

◆ replaceByIndex()

void SAL_CALL reportdesign::OShape::replaceByIndex ( ::sal_Int32  Index,
const css::uno::Any &  Element 
)
overridevirtual

Definition at line 365 of file Shape.cxx.

References m_aProps.

◆ set() [1/3]

void reportdesign::OShape::set ( const OUString &  _sProperty,
bool  Value,
bool &  _member 
)
inlineprivate

◆ set() [2/3]

template<typename T >
void reportdesign::OShape::set ( const OUString &  _sProperty,
const T &  Value,
T &  _member 
)
inlineprivate

◆ set() [3/3]

void reportdesign::OShape::set ( const OUString &  _sProperty,
sal_Int16  Value,
css::style::ParagraphAdjust &  _member 
)
inlineprivate

◆ setCustomShapeData()

void SAL_CALL reportdesign::OShape::setCustomShapeData ( const OUString &  _customshapedata)
overridevirtual

Definition at line 472 of file Shape.cxx.

References m_aProps, PROPERTY_CUSTOMSHAPEDATA, and set().

◆ setCustomShapeEngine()

void SAL_CALL reportdesign::OShape::setCustomShapeEngine ( const OUString &  _customshapeengine)
overridevirtual

Definition at line 459 of file Shape.cxx.

References m_aProps, PROPERTY_CUSTOMSHAPEENGINE, and set().

◆ setCustomShapeGeometry()

void SAL_CALL reportdesign::OShape::setCustomShapeGeometry ( const css::uno::Sequence< css::beans::PropertyValue > &  _customshapegeometry)
overridevirtual

Definition at line 485 of file Shape.cxx.

References m_aProps, PROPERTY_CUSTOMSHAPEGEOMETRY, and set().

◆ setOpaque()

void SAL_CALL reportdesign::OShape::setOpaque ( sal_Bool  _opaque)
overridevirtual

Definition at line 432 of file Shape.cxx.

References m_aMutex, PROPERTY_OPAQUE, and set().

◆ setParent()

void SAL_CALL reportdesign::OShape::setParent ( const css::uno::Reference< css::uno::XInterface > &  Parent)
overridevirtual

Definition at line 321 of file Shape.cxx.

References m_aMutex, m_aProps, and Parent.

◆ setPropertyValue()

void SAL_CALL reportdesign::OShape::setPropertyValue ( const OUString &  aPropertyName,
const css::uno::Any &  aValue 
)
overridevirtual

Definition at line 196 of file Shape.cxx.

References m_aProps.

◆ setTransformation()

void SAL_CALL reportdesign::OShape::setTransformation ( const css::drawing::HomogenMatrix3 &  _transformation)
overridevirtual

Definition at line 445 of file Shape.cxx.

References m_aProps, PROPERTY_TRANSFORMATION, and set().

◆ setZOrder()

void SAL_CALL reportdesign::OShape::setZOrder ( ::sal_Int32  _zorder)
overridevirtual

Definition at line 419 of file Shape.cxx.

References m_aMutex, m_aProps, PROPERTY_ZORDER, and set().

◆ supportsService()

sal_Bool SAL_CALL reportdesign::OShape::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 145 of file Shape.cxx.

References ServiceName, and cppu::supportsService().

Friends And Related Function Documentation

◆ OShapeHelper

friend class OShapeHelper
friend

Definition at line 46 of file Shape.hxx.

Member Data Documentation

◆ m_aProps

OReportControlModel reportdesign::OShape::m_aProps
private

Definition at line 48 of file Shape.hxx.

◆ m_bOpaque

bool reportdesign::OShape::m_bOpaque
private

Definition at line 51 of file Shape.hxx.

◆ m_CustomShapeData

OUString reportdesign::OShape::m_CustomShapeData
private

Definition at line 55 of file Shape.hxx.

◆ m_CustomShapeEngine

OUString reportdesign::OShape::m_CustomShapeEngine
private

Definition at line 54 of file Shape.hxx.

◆ m_CustomShapeGeometry

css::uno::Sequence< css::beans::PropertyValue > reportdesign::OShape::m_CustomShapeGeometry
private

Definition at line 56 of file Shape.hxx.

◆ m_nZOrder

sal_Int32 reportdesign::OShape::m_nZOrder
private

Definition at line 50 of file Shape.hxx.

◆ m_pAggHelper

::std::unique_ptr< ::comphelper::OPropertyArrayAggregationHelper> reportdesign::OShape::m_pAggHelper
private

Definition at line 47 of file Shape.hxx.

◆ m_sServiceName

OUString reportdesign::OShape::m_sServiceName
private

Definition at line 53 of file Shape.hxx.

◆ m_Transformation

css::drawing::HomogenMatrix3 reportdesign::OShape::m_Transformation
private

Definition at line 49 of file Shape.hxx.


The documentation for this class was generated from the following files: