21#include <com/sun/star/drawing/XLayer.hpp>
22#include <com/sun/star/drawing/XLayerManager.hpp>
28#include <unomodel.hxx>
42class SdLayer :
public ::cppu::WeakImplHelper< css::drawing::XLayer,
43 css::lang::XServiceInfo,
44 css::container::XChild,
45 css::lang::XComponent >
49 virtual ~SdLayer()
noexcept override;
60 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL
getPropertySetInfo( )
override;
61 virtual void SAL_CALL
setPropertyValue(
const OUString& aPropertyName,
const css::uno::Any& aValue )
override;
62 virtual css::uno::Any SAL_CALL
getPropertyValue(
const OUString& PropertyName )
override;
63 virtual void SAL_CALL
addPropertyChangeListener(
const OUString& aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener )
override;
64 virtual void SAL_CALL
removePropertyChangeListener(
const OUString& aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener )
override;
65 virtual void SAL_CALL
addVetoableChangeListener(
const OUString& PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener )
override;
66 virtual void SAL_CALL
removeVetoableChangeListener(
const OUString& PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener )
override;
72 virtual css::uno::Reference< css::uno::XInterface > SAL_CALL
getParent( )
override;
75 virtual void SAL_CALL
dispose( )
override;
76 virtual void SAL_CALL
addEventListener(
const css::uno::Reference< css::lang::XEventListener >& xListener )
override;
77 virtual void SAL_CALL
removeEventListener(
const css::uno::Reference< css::lang::XEventListener >& aListener )
override;
82 virtual void SAL_CALL
setParent(
const css::uno::Reference< css::uno::XInterface >& Parent )
override;
98class SdLayerManager :
public ::cppu::WeakImplHelper< css::drawing::XLayerManager,
99 css::container::XNameAccess,
100 css::lang::XServiceInfo,
101 css::lang::XComponent >
115 virtual css::
uno::Reference< css::drawing::XLayer > SAL_CALL
insertNewByIndex( sal_Int32 nIndex ) override;
116 virtual
void SAL_CALL
remove( const css::
uno::Reference< css::drawing::XLayer >& xLayer ) override;
117 virtual
void SAL_CALL
attachShapeToLayer( const css::
uno::Reference< css::drawing::XShape >& xShape, const css::
uno::Reference< css::drawing::XLayer >& xLayer ) override;
118 virtual css::
uno::Reference< css::drawing::XLayer > SAL_CALL
getLayerForShape( const css::
uno::Reference< css::drawing::XShape >& xShape ) override;
121 virtual sal_Int32 SAL_CALL
getCount() override ;
125 virtual css::
uno::Any SAL_CALL
getByName( const OUString& aName ) override;
148 virtual
void SAL_CALL
dispose( ) override;
149 virtual
void SAL_CALL
addEventListener( const css::
uno::Reference< css::lang::XEventListener >& xListener ) override;
150 virtual
void SAL_CALL
removeEventListener( const css::
uno::Reference< css::lang::XEventListener >& aListener ) override;
SdXImpressDocument * mpModel
virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) override
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > &aListener) override
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 Index) override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
SdLayerManager(SdXImpressDocument &rMyModel) noexcept
virtual void SAL_CALL remove(const css::uno::Reference< css::drawing::XLayer > &xLayer) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual sal_Bool SAL_CALL hasElements() override
std::unique_ptr< SvUnoWeakContainer > mpLayers
virtual css::uno::Reference< css::drawing::XLayer > SAL_CALL getLayerForShape(const css::uno::Reference< css::drawing::XShape > &xShape) override
virtual css::uno::Reference< css::drawing::XLayer > SAL_CALL insertNewByIndex(sal_Int32 nIndex) override
::sd::DrawDocShell * GetDocShell() const noexcept
virtual void SAL_CALL dispose() override
virtual void SAL_CALL attachShapeToLayer(const css::uno::Reference< css::drawing::XShape > &xShape, const css::uno::Reference< css::drawing::XLayer > &xLayer) 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.
virtual ~SdLayerManager() noexcept override
void UpdateLayerView() const noexcept
If something was changed at the layers, this methods takes care that the changes are made visible in ...
virtual css::uno::Any SAL_CALL getByName(const OUString &aName) override
virtual css::uno::Type SAL_CALL getElementType() override
::sd::View * GetView() const noexcept
virtual OUString SAL_CALL getImplementationName() override
virtual sal_Bool SAL_CALL hasByName(const OUString &aName) override
virtual sal_Int32 SAL_CALL getCount() override
bool get(LayerAttribute what) noexcept
rtl::Reference< SdLayerManager > mxLayerManager
virtual void SAL_CALL setParent(const css::uno::Reference< css::uno::XInterface > &Parent) override
Not implemented.
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
virtual OUString SAL_CALL getImplementationName() override
void set(LayerAttribute what, bool flag) noexcept
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 css::uno::Reference< css::uno::XInterface > SAL_CALL getParent() override
Returns the layer manager that manages this layer.
virtual void SAL_CALL dispose() override
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
SdrLayer * GetSdrLayer() const noexcept
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual ~SdLayer() noexcept override
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > &aListener) override
const SvxItemPropertySet * pPropSet
virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) override
SdLayer(SdLayerManager *pLayerManager_, SdrLayer *pSdrLayer_)
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
::sd::DrawDocShell * mpDocShell