LibreOffice Module drawinglayer (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
drawinglayer::primitive2d::UnoPrimitive2D Class Referencefinal

Rather than make all the BasePrimitive2D classes bear the cost of being an UNO object, we just wrap the top level BasePrimitive2D in this class when we need to pass them over UNO. More...

#include <baseprimitive2d.hxx>

Inheritance diagram for drawinglayer::primitive2d::UnoPrimitive2D:
[legend]
Collaboration diagram for drawinglayer::primitive2d::UnoPrimitive2D:
[legend]

Public Member Functions

 UnoPrimitive2D (rtl::Reference< BasePrimitive2D > xPrimitive)
 
virtual ~UnoPrimitive2D () override
 
virtual css::uno::Sequence<::css::uno::Reference<::css::graphic::XPrimitive2D > > SAL_CALL getDecomposition (const css::uno::Sequence< css::beans::PropertyValue > &rViewParameters) override
 The getDecomposition implementation for UNO API will use getDecomposition from this implementation. More...
 
virtual css::geometry::RealRectangle2D SAL_CALL getRange (const css::uno::Sequence< css::beans::PropertyValue > &rViewParameters) override
 The getRange implementation for UNO API will use getRange from this implementation. More...
 
virtual sal_Int64 SAL_CALL estimateUsage () override
 
rtl::Reference< BasePrimitive2D > const & getBasePrimitive2D () const
 
- Public Member Functions inherited from comphelper::WeakComponentImplHelper< typename... Ifc >
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
virtual void SAL_CALL dispose () noexcept final override
 
virtual void SAL_CALL addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override
 
virtual void SAL_CALL removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
- Public Member Functions inherited from comphelper::WeakComponentImplHelperBase
virtual ~WeakComponentImplHelperBase () override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override
 
virtual void SAL_CALL removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) override
 
virtual void disposing (std::unique_lock< std::mutex > &)
 
- Public Member Functions inherited from comphelper::UnoImplBase
virtual ~UnoImplBase ()
 

Private Member Functions

 UnoPrimitive2D (const UnoPrimitive2D &)=delete
 
UnoPrimitive2Doperator= (const UnoPrimitive2D &)=delete
 

Private Attributes

rtl::Reference< BasePrimitive2DmxPrimitive
 

Additional Inherited Members

- Protected Member Functions inherited from comphelper::WeakComponentImplHelperBase
void throwIfDisposed (std::unique_lock< std::mutex > &)
 
- Protected Attributes inherited from comphelper::WeakComponentImplHelperBase
comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > maEventListeners
 
- Protected Attributes inherited from comphelper::UnoImplBase
std::mutex m_aMutex
 
bool m_bDisposed
 

Detailed Description

Rather than make all the BasePrimitive2D classes bear the cost of being an UNO object, we just wrap the top level BasePrimitive2D in this class when we need to pass them over UNO.

Definition at line 174 of file baseprimitive2d.hxx.

Constructor & Destructor Documentation

◆ UnoPrimitive2D() [1/2]

drawinglayer::primitive2d::UnoPrimitive2D::UnoPrimitive2D ( const UnoPrimitive2D )
privatedelete

◆ UnoPrimitive2D() [2/2]

drawinglayer::primitive2d::UnoPrimitive2D::UnoPrimitive2D ( rtl::Reference< BasePrimitive2D xPrimitive)
inline

Definition at line 181 of file baseprimitive2d.hxx.

◆ ~UnoPrimitive2D()

drawinglayer::primitive2d::UnoPrimitive2D::~UnoPrimitive2D ( )
overridevirtual

Definition at line 130 of file Primitive2DContainer.cxx.

Member Function Documentation

◆ estimateUsage()

sal_Int64 SAL_CALL drawinglayer::primitive2d::UnoPrimitive2D::estimateUsage ( )
overridevirtual

Definition at line 147 of file Primitive2DContainer.cxx.

References comphelper::UnoImplBase::m_aMutex, and mxPrimitive.

◆ getBasePrimitive2D()

rtl::Reference< BasePrimitive2D > const & drawinglayer::primitive2d::UnoPrimitive2D::getBasePrimitive2D ( ) const
inline

◆ getDecomposition()

css::uno::Sequence<::css::uno::Reference<::css::graphic::XPrimitive2D > > SAL_CALL drawinglayer::primitive2d::UnoPrimitive2D::getDecomposition ( const css::uno::Sequence< css::beans::PropertyValue > &  rViewParameters)
overridevirtual

The getDecomposition implementation for UNO API will use getDecomposition from this implementation.

It will construct a ViewInformation2D from the ViewParameters for that purpose

Definition at line 133 of file Primitive2DContainer.cxx.

References comphelper::UnoImplBase::m_aMutex, and mxPrimitive.

◆ getRange()

css::geometry::RealRectangle2D SAL_CALL drawinglayer::primitive2d::UnoPrimitive2D::getRange ( const css::uno::Sequence< css::beans::PropertyValue > &  rViewParameters)
overridevirtual

The getRange implementation for UNO API will use getRange from this implementation.

It will construct a ViewInformation2D from the ViewParameters for that purpose

Definition at line 141 of file Primitive2DContainer.cxx.

References comphelper::UnoImplBase::m_aMutex, and mxPrimitive.

◆ operator=()

UnoPrimitive2D & drawinglayer::primitive2d::UnoPrimitive2D::operator= ( const UnoPrimitive2D )
privatedelete

Member Data Documentation

◆ mxPrimitive

rtl::Reference<BasePrimitive2D> drawinglayer::primitive2d::UnoPrimitive2D::mxPrimitive
private

Definition at line 207 of file baseprimitive2d.hxx.

Referenced by estimateUsage(), getDecomposition(), and getRange().


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