LibreOffice Module svx (master) 1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SvxDrawPage Class Reference

#include <unopage.hxx>

Inheritance diagram for SvxDrawPage:
[legend]
Collaboration diagram for SvxDrawPage:
[legend]

Public Member Functions

 SvxDrawPage (SdrPage *pPage)
 
virtual ~SvxDrawPage () noexcept override
 
SdrPageGetSdrPage () const
 
rtl::Reference< SdrObjectCreateSdrObject (const css::uno::Reference< css::drawing::XShape > &xShape, bool bBeginning=false) noexcept
 
virtual rtl::Reference< SdrObjectCreateSdrObject_ (const css::uno::Reference< css::drawing::XShape > &xShape)
 
virtual css::uno::Reference< css::drawing::XShape > CreateShape (SdrObject *pObj) const
 
virtual void SAL_CALL release () noexcept override
 
virtual void SAL_CALL add (const css::uno::Reference< css::drawing::XShape > &xShape) override
 
virtual void SAL_CALL remove (const css::uno::Reference< css::drawing::XShape > &xShape) override
 
virtual void SAL_CALL addTop (const css::uno::Reference< css::drawing::XShape > &xShape) override
 
virtual void SAL_CALL addBottom (const css::uno::Reference< css::drawing::XShape > &xShape) override
 
virtual void SAL_CALL sort (const css::uno::Sequence< sal_Int32 > &sortOrder) override
 
virtual css::uno::Type SAL_CALL getElementType () override
 
virtual sal_Bool SAL_CALL hasElements () override
 
virtual sal_Int32 SAL_CALL getCount () override
 
virtual css::uno::Any SAL_CALL getByIndex (sal_Int32 Index) override
 
virtual css::uno::Reference< css::drawing::XShapeGroup > SAL_CALL group (const css::uno::Reference< css::drawing::XShapes > &xShapes) override
 
virtual void SAL_CALL ungroup (const css::uno::Reference< css::drawing::XShapeGroup > &aGroup) override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () 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
 
- Public Member Functions inherited from cppu::WeakAggImplHelper7< css::drawing::XDrawPage, css::drawing::XShapeGrouper, css::drawing::XShapes2, css::drawing::XShapes3, css::lang::XServiceInfo, css::lang::XUnoTunnel, css::lang::XComponent >
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL queryAggregation (css::uno::Type const &rType) SAL_OVERRIDE
 
virtual void SAL_CALL acquire () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () SAL_OVERRIDE
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () SAL_OVERRIDE
 
- Public Member Functions inherited from cppu::OWeakAggObject
 OWeakAggObject ()
 
virtual void SAL_CALL acquire () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) SAL_OVERRIDE
 
virtual void SAL_CALL setDelegator (const css::uno::Reference< css::uno::XInterface > &Delegator) SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL queryAggregation (const css::uno::Type &rType) SAL_OVERRIDE
 
- Public Member Functions inherited from cppu::OWeakObject
 OWeakObject ()
 
 OWeakObject (const OWeakObject &)
 
OWeakObject &SAL_CALL operator= (const OWeakObject &)
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) SAL_OVERRIDE
 
virtual void SAL_CALL acquire () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL queryAdapter () SAL_OVERRIDE
 
SAL_CALL operator css::uno::Reference< css::uno::XInterface > ()
 

Static Public Member Functions

static void GetTypeAndInventor (SdrObjKind &rType, SdrInventor &rInventor, const OUString &aName) noexcept
 
static rtl::Reference< SvxShapeCreateShapeByTypeAndInventor (SdrObjKind nType, SdrInventor nInventor, SdrObject *pObj, SvxDrawPage *pPage=nullptr, OUString const &referer=OUString())
 

Protected Member Functions

void SelectObjectsInView (const css::uno::Reference< css::drawing::XShapes > &aShapes, SdrPageView *pPageView) noexcept
 
void SelectObjectInView (const css::uno::Reference< css::drawing::XShape > &xShape, SdrPageView *pPageView) noexcept
 
virtual void disposing () noexcept
 
- Protected Member Functions inherited from cppu::WeakAggImplHelper7< css::drawing::XDrawPage, css::drawing::XShapeGrouper, css::drawing::XShapes2, css::drawing::XShapes3, css::lang::XServiceInfo, css::lang::XUnoTunnel, css::lang::XComponent >
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL queryAggregation (css::uno::Type const &rType) SAL_OVERRIDE
 
virtual void SAL_CALL acquire () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () SAL_OVERRIDE
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () SAL_OVERRIDE
 
- Protected Member Functions inherited from cppu::OWeakAggObject
virtual ~OWeakAggObject () SAL_OVERRIDE
 
 OWeakAggObject ()
 
virtual void SAL_CALL acquire () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) SAL_OVERRIDE
 
virtual void SAL_CALL setDelegator (const css::uno::Reference< css::uno::XInterface > &Delegator) SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL queryAggregation (const css::uno::Type &rType) SAL_OVERRIDE
 
- Protected Member Functions inherited from cppu::OWeakObject
virtual ~OWeakObject () COVERITY_NOEXCEPT_FALSE
 
void disposeWeakConnectionPoint ()
 
 OWeakObject ()
 
 OWeakObject (const OWeakObject &)
 
OWeakObject &SAL_CALL operator= (const OWeakObject &)
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) SAL_OVERRIDE
 
virtual void SAL_CALL acquire () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL queryAdapter () SAL_OVERRIDE
 
SAL_CALL operator css::uno::Reference< css::uno::XInterface > ()
 

Protected Attributes

cppu::OBroadcastHelper mrBHelper
 
SdrPagempPage
 
SdrModelmpModel
 
std::unique_ptr< SdrViewmpView
 
- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 
- Protected Attributes inherited from cppu::OWeakAggObject
css::uno::WeakReferenceHelper xDelegator
 
- Protected Attributes inherited from cppu::OWeakObject
oslInterlockedCount m_refCount
 

Detailed Description

Definition at line 50 of file unopage.hxx.

Constructor & Destructor Documentation

◆ SvxDrawPage()

SvxDrawPage::SvxDrawPage ( SdrPage pPage)

Definition at line 66 of file unopage.cxx.

References m_aMutex, mpPage, mpView, and mpView.

◆ ~SvxDrawPage()

SvxDrawPage::~SvxDrawPage ( )
overridevirtualnoexcept

Member Function Documentation

◆ add()

void SAL_CALL SvxDrawPage::add ( const css::uno::Reference< css::drawing::XShape > &  xShape)
overridevirtual

◆ addBottom()

void SAL_CALL SvxDrawPage::addBottom ( const css::uno::Reference< css::drawing::XShape > &  xShape)
overridevirtual

◆ addEventListener()

void SAL_CALL SvxDrawPage::addEventListener ( const css::uno::Reference< css::lang::XEventListener > &  aListener)
overridevirtual

◆ addTop()

void SAL_CALL SvxDrawPage::addTop ( const css::uno::Reference< css::drawing::XShape > &  xShape)
overridevirtual

Definition at line 247 of file unopage.cxx.

References add().

◆ CreateSdrObject()

rtl::Reference< SdrObject > SvxDrawPage::CreateSdrObject ( const css::uno::Reference< css::drawing::XShape > &  xShape,
bool  bBeginning = false 
)
noexcept

Definition at line 833 of file unopage.cxx.

References mpPage.

Referenced by add(), and addBottom().

◆ CreateSdrObject_()

rtl::Reference< SdrObject > SvxDrawPage::CreateSdrObject_ ( const css::uno::Reference< css::drawing::XShape > &  xShape)
virtual

◆ CreateShape()

Reference< drawing::XShape > SvxDrawPage::CreateShape ( SdrObject pObj) const
virtual
Exceptions
css::uno::RuntimeException

Reimplemented in SvxFmDrawPage.

Definition at line 824 of file unopage.cxx.

References CreateShapeByTypeAndInventor(), SdrObject::GetObjIdentifier(), and SdrObject::GetObjInventor().

Referenced by SvxFmDrawPage::CreateShape(), and SdrObject::getUnoShape().

◆ CreateShapeByTypeAndInventor()

rtl::Reference< SvxShape > SvxDrawPage::CreateShapeByTypeAndInventor ( SdrObjKind  nType,
SdrInventor  nInventor,
SdrObject pObj,
SvxDrawPage pPage = nullptr,
OUString const &  referer = OUString() 
)
static

◆ dispose()

void SvxDrawPage::dispose ( void  )
overridevirtual

◆ disposing()

void SvxDrawPage::disposing ( )
protectedvirtualnoexcept

Definition at line 92 of file unopage.cxx.

References mpModel, mpPage, and mpView.

Referenced by dispose().

◆ getByIndex()

uno::Any SAL_CALL SvxDrawPage::getByIndex ( sal_Int32  Index)
overridevirtual

◆ getCount()

sal_Int32 SAL_CALL SvxDrawPage::getCount ( )
overridevirtual

Definition at line 341 of file unopage.cxx.

References SdrObjList::GetObjCount(), mpModel, and mpPage.

◆ getElementType()

uno::Type SAL_CALL SvxDrawPage::getElementType ( )
overridevirtual

Definition at line 373 of file unopage.cxx.

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

◆ getImplementationName()

OUString SAL_CALL SvxDrawPage::getImplementationName ( )
overridevirtual

Definition at line 851 of file unopage.cxx.

◆ GetSdrPage()

SdrPage * SvxDrawPage::GetSdrPage ( ) const
inline

◆ getSupportedServiceNames()

uno::Sequence< OUString > SAL_CALL SvxDrawPage::getSupportedServiceNames ( )
overridevirtual

Definition at line 861 of file unopage.cxx.

References aSeq.

◆ GetTypeAndInventor()

void SvxDrawPage::GetTypeAndInventor ( SdrObjKind rType,
SdrInventor rInventor,
const OUString &  aName 
)
staticnoexcept

◆ group()

Reference< drawing::XShapeGroup > SAL_CALL SvxDrawPage::group ( const css::uno::Reference< css::drawing::XShapes > &  xShapes)
overridevirtual

◆ hasElements()

sal_Bool SAL_CALL SvxDrawPage::hasElements ( )
overridevirtual

Definition at line 378 of file unopage.cxx.

References SdrObjList::GetObjCount(), mpModel, and mpPage.

◆ release()

void SvxDrawPage::release ( )
overridevirtualnoexcept

◆ remove()

void SAL_CALL SvxDrawPage::remove ( const css::uno::Reference< css::drawing::XShape > &  xShape)
overridevirtual

◆ removeEventListener()

void SAL_CALL SvxDrawPage::removeEventListener ( const css::uno::Reference< css::lang::XEventListener > &  aListener)
overridevirtual

◆ SelectObjectInView()

void SvxDrawPage::SelectObjectInView ( const css::uno::Reference< css::drawing::XShape > &  xShape,
SdrPageView pPageView 
)
protectednoexcept

Definition at line 424 of file unopage.cxx.

References mpView, and SAL_WARN_IF.

Referenced by ungroup().

◆ SelectObjectsInView()

void SvxDrawPage::SelectObjectsInView ( const css::uno::Reference< css::drawing::XShapes > &  aShapes,
SdrPageView pPageView 
)
protectednoexcept

Definition at line 402 of file unopage.cxx.

References i, mpView, nCount, and SAL_WARN_IF.

Referenced by group().

◆ sort()

void SvxDrawPage::sort ( const css::uno::Sequence< sal_Int32 > &  sortOrder)
overridevirtual

Definition at line 329 of file unopage.cxx.

References mpModel, mpPage, and SdrObjList::sort().

◆ supportsService()

sal_Bool SAL_CALL SvxDrawPage::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 856 of file unopage.cxx.

References ServiceName, and cppu::supportsService().

◆ ungroup()

void SAL_CALL SvxDrawPage::ungroup ( const css::uno::Reference< css::drawing::XShapeGroup > &  aGroup)
overridevirtual

Definition at line 473 of file unopage.cxx.

References mpModel, mpPage, mpView, SAL_WARN_IF, SelectObjectInView(), and SdrModel::SetChanged().

Member Data Documentation

◆ mpModel

SdrModel* SvxDrawPage::mpModel
protected

◆ mpPage

SdrPage* SvxDrawPage::mpPage
protected

◆ mpView

std::unique_ptr<SdrView> SvxDrawPage::mpView
protected

Definition at line 65 of file unopage.hxx.

Referenced by disposing(), group(), SvxDrawPage(), and ungroup().

◆ mrBHelper

cppu::OBroadcastHelper SvxDrawPage::mrBHelper
protected

Definition at line 61 of file unopage.hxx.

Referenced by addEventListener(), dispose(), removeEventListener(), and ~SvxDrawPage().


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