LibreOffice Module sd (master) 1
|
#include <unolayer.hxx>
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::View * | GetView () const noexcept |
::sd::DrawDocShell * | GetDocShell () 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 | |
SdXImpressDocument * | mpModel |
std::unique_ptr< SvUnoWeakContainer > | mpLayers |
Friends | |
class | SdLayer |
Definition at line 98 of file unolayer.hxx.
|
explicitnoexcept |
Definition at line 368 of file unolayer.cxx.
|
overridevirtualnoexcept |
Definition at line 374 of file unolayer.cxx.
References dispose().
|
overridevirtual |
Definition at line 390 of file unolayer.cxx.
|
overridevirtual |
Definition at line 469 of file unolayer.cxx.
References SdrLayer::GetID(), SdLayer::GetSdrLayer(), SdrObject::getSdrObjectFromXShape(), mpModel, SdrObject::SetLayer(), and SdXImpressDocument::SetModified().
|
overridevirtual |
Definition at line 380 of file unolayer.cxx.
References mpLayers, and mpModel.
Referenced by ~SdLayerManager().
|
overridevirtual |
Definition at line 530 of file unolayer.cxx.
References getCount(), SdrLayerAdmin::GetLayer(), GetLayer(), SdrModel::GetLayerAdmin(), SdXImpressDocument::mpDoc, and mpModel.
|
overridevirtual |
Definition at line 552 of file unolayer.cxx.
References aName, SdrLayerAdmin::GetLayer(), GetLayer(), SdrModel::GetLayerAdmin(), SdXImpressDocument::mpDoc, and mpModel.
|
overridevirtual |
Definition at line 514 of file unolayer.cxx.
References SdrModel::GetLayerAdmin(), SdrLayerAdmin::GetLayerCount(), SdXImpressDocument::mpDoc, and mpModel.
Referenced by getByIndex(), and hasElements().
|
inlineprivatenoexcept |
Definition at line 157 of file unolayer.hxx.
References SdXImpressDocument::mpDocShell, and mpModel.
|
overridevirtual |
Definition at line 567 of file unolayer.cxx.
References aSeq, SdrLayerAdmin::GetLayer(), SdrModel::GetLayerAdmin(), SdrLayerAdmin::GetLayerCount(), SdrLayer::GetName(), SdXImpressDocument::mpDoc, and mpModel.
|
overridevirtual |
Definition at line 604 of file unolayer.cxx.
References cppu::UnoType< typename T >::get().
|
overridevirtual |
Definition at line 401 of file unolayer.cxx.
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.
pLayer | The <type>SdrLayer</type> object for which to return the associated <type>XLayer</type> object. |
Definition at line 680 of file unolayer.cxx.
References mpLayers, and SdLayer.
Referenced by sd::SdUnoDrawView::getActiveLayer(), getByIndex(), getByName(), getLayerForShape(), and insertNewByIndex().
|
overridevirtual |
Definition at line 491 of file unolayer.cxx.
References SdrObject::GetLayer(), GetLayer(), SdrModel::GetLayerAdmin(), SdrLayerAdmin::GetLayerPerID(), SdrObject::getSdrObjectFromXShape(), SdXImpressDocument::mpDoc, and mpModel.
|
overridevirtual |
Definition at line 411 of file unolayer.cxx.
|
privatenoexcept |
Definition at line 636 of file unolayer.cxx.
References sd::ViewShell::GetView(), sd::DrawDocShell::GetViewShell(), SdXImpressDocument::mpDocShell, and mpModel.
Referenced by remove().
|
overridevirtual |
Definition at line 591 of file unolayer.cxx.
References aName, SdrLayerAdmin::GetLayer(), SdrModel::GetLayerAdmin(), SdXImpressDocument::mpDoc, and mpModel.
|
overridevirtual |
Definition at line 609 of file unolayer.cxx.
References getCount().
|
overridevirtual |
Definition at line 417 of file unolayer.cxx.
References SdrLayerAdmin::GetLayer(), GetLayer(), SdrModel::GetLayerAdmin(), SdrLayerAdmin::GetLayerCount(), SdXImpressDocument::mpDoc, mpModel, SdrLayerAdmin::NewLayer(), nIndex, SdResId(), and SdXImpressDocument::SetModified().
|
overridevirtual |
Definition at line 449 of file unolayer.cxx.
References SdrEditView::DeleteLayer(), SdrLayer::GetName(), SdLayer::GetSdrLayer(), GetView(), mpModel, SdXImpressDocument::SetModified(), and UpdateLayerView().
|
overridevirtual |
Definition at line 395 of file unolayer.cxx.
|
overridevirtual |
Definition at line 406 of file unolayer.cxx.
References ServiceName, and cppu::supportsService().
|
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().
|
friend |
Definition at line 103 of file unolayer.hxx.
Referenced by GetLayer().
|
private |
Definition at line 154 of file unolayer.hxx.
Referenced by dispose(), and GetLayer().
|
private |
Definition at line 153 of file unolayer.hxx.
Referenced by attachShapeToLayer(), dispose(), getByIndex(), getByName(), getCount(), GetDocShell(), getElementNames(), getLayerForShape(), GetView(), hasByName(), insertNewByIndex(), remove(), and UpdateLayerView().