LibreOffice Module sd (master) 1
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
SdLayerManager Class Reference

#include <unolayer.hxx>

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

Public Member Functions

 SdLayerManager (SdXImpressDocument &rMyModel) noexcept
 
virtual ~SdLayerManager () noexcept 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 css::uno::Reference< css::drawing::XLayer > SAL_CALL insertNewByIndex (sal_Int32 nIndex) override
 
virtual void SAL_CALL remove (const css::uno::Reference< css::drawing::XLayer > &xLayer) override
 
virtual void SAL_CALL attachShapeToLayer (const css::uno::Reference< css::drawing::XShape > &xShape, const css::uno::Reference< css::drawing::XLayer > &xLayer) override
 
virtual css::uno::Reference< css::drawing::XLayer > SAL_CALL getLayerForShape (const css::uno::Reference< css::drawing::XShape > &xShape) override
 
virtual sal_Int32 SAL_CALL getCount () override
 
virtual css::uno::Any SAL_CALL getByIndex (sal_Int32 Index) override
 
virtual css::uno::Any SAL_CALL getByName (const OUString &aName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames () override
 
virtual sal_Bool SAL_CALL hasByName (const OUString &aName) override
 
virtual css::uno::Type SAL_CALL getElementType () override
 
virtual sal_Bool SAL_CALL hasElements () override
 
css::uno::Reference< css::drawing::XLayer > GetLayer (SdrLayer *pLayer)
 Return the <type>XLayer</type> object that is associated with the given <type>SdrLayer</type> object. More...
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (const css::uno::Reference< css::lang::XEventListener > &xListener) override
 
virtual void SAL_CALL removeEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) override
 

Private Member Functions

::sd::ViewGetView () const noexcept
 
::sd::DrawDocShellGetDocShell () const noexcept
 
void UpdateLayerView () const noexcept
 If something was changed at the layers, this methods takes care that the changes are made visible in sdbcx::View. More...
 

Private Attributes

SdXImpressDocumentmpModel
 
std::unique_ptr< SvUnoWeakContainermpLayers
 

Friends

class SdLayer
 

Detailed Description

Definition at line 98 of file unolayer.hxx.

Constructor & Destructor Documentation

◆ SdLayerManager()

SdLayerManager::SdLayerManager ( SdXImpressDocument rMyModel)
explicitnoexcept

Definition at line 368 of file unolayer.cxx.

◆ ~SdLayerManager()

SdLayerManager::~SdLayerManager ( )
overridevirtualnoexcept

Definition at line 374 of file unolayer.cxx.

References dispose().

Member Function Documentation

◆ addEventListener()

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

Definition at line 390 of file unolayer.cxx.

◆ attachShapeToLayer()

void SAL_CALL SdLayerManager::attachShapeToLayer ( const css::uno::Reference< css::drawing::XShape > &  xShape,
const css::uno::Reference< css::drawing::XLayer > &  xLayer 
)
overridevirtual

◆ dispose()

void SAL_CALL SdLayerManager::dispose ( void  )
overridevirtual

Definition at line 380 of file unolayer.cxx.

References mpLayers, and mpModel.

Referenced by ~SdLayerManager().

◆ getByIndex()

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

◆ getByName()

uno::Any SAL_CALL SdLayerManager::getByName ( const OUString &  aName)
overridevirtual

◆ getCount()

sal_Int32 SAL_CALL SdLayerManager::getCount ( )
overridevirtual

◆ GetDocShell()

::sd::DrawDocShell * SdLayerManager::GetDocShell ( ) const
inlineprivatenoexcept

Definition at line 157 of file unolayer.hxx.

References SdXImpressDocument::mpDocShell, and mpModel.

◆ getElementNames()

uno::Sequence< OUString > SAL_CALL SdLayerManager::getElementNames ( )
overridevirtual

◆ getElementType()

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

Definition at line 604 of file unolayer.cxx.

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

◆ getImplementationName()

OUString SAL_CALL SdLayerManager::getImplementationName ( )
overridevirtual

Definition at line 401 of file unolayer.cxx.

◆ GetLayer()

uno::Reference< drawing::XLayer > SdLayerManager::GetLayer ( SdrLayer pLayer)

Return the <type>XLayer</type> object that is associated with the given <type>SdrLayer</type> object.

Use the <member>mpLayers</member> container of weak references to either retrieve and return a previously created <type>XLayer</type> object for the given <type>SdrLayer</type> object or create and remember a new one.

If the requested object does not yet exist it is created. All calls with the same argument return the same object.

Parameters
pLayerThe <type>SdrLayer</type> object for which to return the associated <type>XLayer</type> object.
Returns
The returned value is the unique <type>XLayer</type> object associated with the specified argument. If no layer can be created for the argument than an empty reference is returned.

Definition at line 680 of file unolayer.cxx.

References mpLayers, and SdLayer.

Referenced by sd::SdUnoDrawView::getActiveLayer(), getByIndex(), getByName(), getLayerForShape(), and insertNewByIndex().

◆ getLayerForShape()

uno::Reference< drawing::XLayer > SAL_CALL SdLayerManager::getLayerForShape ( const css::uno::Reference< css::drawing::XShape > &  xShape)
overridevirtual

◆ getSupportedServiceNames()

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

Definition at line 411 of file unolayer.cxx.

◆ GetView()

sd::View * SdLayerManager::GetView ( ) const
privatenoexcept

◆ hasByName()

sal_Bool SAL_CALL SdLayerManager::hasByName ( const OUString &  aName)
overridevirtual

◆ hasElements()

sal_Bool SAL_CALL SdLayerManager::hasElements ( )
overridevirtual

Definition at line 609 of file unolayer.cxx.

References getCount().

◆ insertNewByIndex()

uno::Reference< drawing::XLayer > SAL_CALL SdLayerManager::insertNewByIndex ( sal_Int32  nIndex)
overridevirtual

◆ remove()

void SAL_CALL SdLayerManager::remove ( const css::uno::Reference< css::drawing::XLayer > &  xLayer)
overridevirtual

◆ removeEventListener()

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

Definition at line 395 of file unolayer.cxx.

◆ supportsService()

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

Definition at line 406 of file unolayer.cxx.

References ServiceName, and cppu::supportsService().

◆ UpdateLayerView()

void SdLayerManager::UpdateLayerView ( ) const
privatenoexcept

If something was changed at the layers, this methods takes care that the changes are made visible in sdbcx::View.

Definition at line 618 of file unolayer.cxx.

References sd::DrawViewShell::ChangeEditMode(), sd::DrawViewShell::GetEditMode(), sd::DrawDocShell::GetViewShell(), sd::DrawViewShell::IsLayerModeActive(), SdXImpressDocument::mpDoc, SdXImpressDocument::mpDocShell, mpModel, and SdDrawDocument::SetChanged().

Referenced by remove().

Friends And Related Function Documentation

◆ SdLayer

friend class SdLayer
friend

Definition at line 103 of file unolayer.hxx.

Referenced by GetLayer().

Member Data Documentation

◆ mpLayers

std::unique_ptr<SvUnoWeakContainer> SdLayerManager::mpLayers
private

Definition at line 154 of file unolayer.hxx.

Referenced by dispose(), and GetLayer().

◆ mpModel

SdXImpressDocument* SdLayerManager::mpModel
private

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