LibreOffice Module sd (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
sd::SdUnoDrawView Class Referencefinal

This class implements the DrawViewShell specific part of the controller. More...

#include <SdUnoDrawView.hxx>

Inheritance diagram for sd::SdUnoDrawView:
[legend]
Collaboration diagram for sd::SdUnoDrawView:
[legend]

Public Member Functions

 SdUnoDrawView (DrawViewShell &rViewShell, View &rView) noexcept
 
virtual ~SdUnoDrawView () noexcept override
 
virtual sal_Bool SAL_CALL select (const css::uno::Any &aSelection) override
 
virtual css::uno::Any SAL_CALL getSelection () override
 
virtual void SAL_CALL addSelectionChangeListener (const css::uno::Reference< css::view::XSelectionChangeListener > &rxListener) override
 
virtual void SAL_CALL removeSelectionChangeListener (const css::uno::Reference< css::view::XSelectionChangeListener > &rxListener) override
 
virtual void SAL_CALL setCurrentPage (const css::uno::Reference< css::drawing::XDrawPage > &xPage) override
 
virtual css::uno::Reference< css::drawing::XDrawPage > SAL_CALL getCurrentPage () override
 
virtual void SAL_CALL setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) override
 
virtual css::uno::Any SAL_CALL getFastPropertyValue (sal_Int32 nHandle) 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
 
css::uno::Reference< css::drawing::XLayer > getActiveLayer () const
 Return a reference to the active layer object. More...
 
virtual OUString SAL_CALL getImplementationName () override=0
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override=0
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override=0
 
- Public Member Functions inherited from comphelper::WeakComponentImplHelper< css::drawing::XDrawSubController, css::lang::XServiceInfo >
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

bool getMasterPageMode () const noexcept
 
void setMasterPageMode (bool MasterPageMode_) noexcept
 
bool getLayerMode () const noexcept
 
void setLayerMode (bool LayerMode_) noexcept
 
void setActiveLayer (const css::uno::Reference< css::drawing::XLayer > &rxLayer)
 Make the specified object the active layer. More...
 
void SetZoom (sal_Int16 nZoom)
 
sal_Int16 GetZoom () const
 
void SetViewOffset (const css::awt::Point &rWinPos)
 
css::awt::Point GetViewOffset () const
 
void SetZoomType (sal_Int16 nType)
 
css::uno::Any getDrawViewMode () const
 
SdXImpressDocumentGetModel () const noexcept
 

Private Attributes

DrawViewShellmrDrawViewShell
 
sd::ViewmrView
 

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

This class implements the DrawViewShell specific part of the controller.

Definition at line 34 of file SdUnoDrawView.hxx.

Constructor & Destructor Documentation

◆ SdUnoDrawView()

sd::SdUnoDrawView::SdUnoDrawView ( DrawViewShell rViewShell,
View rView 
)
noexcept

Definition at line 51 of file SdUnoDrawView.cxx.

◆ ~SdUnoDrawView()

sd::SdUnoDrawView::~SdUnoDrawView ( )
overridevirtualnoexcept

Definition at line 59 of file SdUnoDrawView.cxx.

Member Function Documentation

◆ addSelectionChangeListener()

void SAL_CALL sd::SdUnoDrawView::addSelectionChangeListener ( const css::uno::Reference< css::view::XSelectionChangeListener > &  rxListener)
overridevirtual

Definition at line 283 of file SdUnoDrawView.cxx.

◆ getActiveLayer()

Reference< drawing::XLayer > sd::SdUnoDrawView::getActiveLayer ( ) const

Return a reference to the active layer object.

Returns
The returned value may be empty when the internal state of this view is not valid (like during destruction.)

Definition at line 93 of file SdUnoDrawView.cxx.

References SdrPaintView::GetActiveLayer(), SdXImpressDocument::GetDoc(), SdrLayerAdmin::GetLayer(), SdLayerManager::GetLayer(), SdrModel::GetLayerAdmin(), SdXImpressDocument::getLayerManager(), GetModel(), and mrView.

Referenced by getFastPropertyValue().

◆ getCurrentPage()

Reference< drawing::XDrawPage > SAL_CALL sd::SdUnoDrawView::getCurrentPage ( )
overridevirtual

◆ getDrawViewMode()

Any sd::SdUnoDrawView::getDrawViewMode ( ) const
private

◆ getFastPropertyValue()

Any SAL_CALL sd::SdUnoDrawView::getFastPropertyValue ( sal_Int32  nHandle)
overridevirtual

◆ getImplementationName()

OUString SAL_CALL sd::SdUnoDrawView::getImplementationName ( )
overridevirtual

Implements sd::DrawSubControllerInterfaceBase.

Definition at line 530 of file SdUnoDrawView.cxx.

◆ getLayerMode()

bool sd::SdUnoDrawView::getLayerMode ( ) const
privatenoexcept

Definition at line 78 of file SdUnoDrawView.cxx.

References sd::DrawViewShell::IsLayerModeActive(), and mrDrawViewShell.

Referenced by getFastPropertyValue().

◆ getMasterPageMode()

bool sd::SdUnoDrawView::getMasterPageMode ( ) const
privatenoexcept

Definition at line 63 of file SdUnoDrawView.cxx.

References sd::DrawViewShell::GetEditMode(), MasterPage, and mrDrawViewShell.

Referenced by getFastPropertyValue().

◆ GetModel()

SdXImpressDocument * sd::SdUnoDrawView::GetModel ( ) const
privatenoexcept

Definition at line 506 of file SdUnoDrawView.cxx.

References sd::View::GetDocSh(), SfxObjectShell::GetModel(), mrView, and xModel.

Referenced by getActiveLayer().

◆ getSelection()

Any SAL_CALL sd::SdUnoDrawView::getSelection ( )
overridevirtual

◆ getSupportedServiceNames()

Sequence< OUString > SAL_CALL sd::SdUnoDrawView::getSupportedServiceNames ( )
overridevirtual

Implements sd::DrawSubControllerInterfaceBase.

Definition at line 540 of file SdUnoDrawView.cxx.

◆ GetViewOffset()

awt::Point sd::SdUnoDrawView::GetViewOffset ( ) const
private

◆ GetZoom()

sal_Int16 sd::SdUnoDrawView::GetZoom ( ) const
private

◆ removeSelectionChangeListener()

void SAL_CALL sd::SdUnoDrawView::removeSelectionChangeListener ( const css::uno::Reference< css::view::XSelectionChangeListener > &  rxListener)
overridevirtual

Definition at line 287 of file SdUnoDrawView.cxx.

◆ select()

sal_Bool SAL_CALL sd::SdUnoDrawView::select ( const css::uno::Any &  aSelection)
overridevirtual

◆ setActiveLayer()

void sd::SdUnoDrawView::setActiveLayer ( const css::uno::Reference< css::drawing::XLayer > &  rxLayer)
private

Make the specified object the active layer.

Parameters
rxLayerThe new layer object.
Exceptions
css::uno::RuntimeException

Definition at line 126 of file SdUnoDrawView.cxx.

References SdrLayer::GetName(), SdLayer::GetSdrLayer(), mrDrawViewShell, mrView, sd::DrawViewShell::ResetActualLayer(), and SdrPaintView::SetActiveLayer().

Referenced by setFastPropertyValue().

◆ setCurrentPage()

void SAL_CALL sd::SdUnoDrawView::setCurrentPage ( const css::uno::Reference< css::drawing::XDrawPage > &  xPage)
overridevirtual

◆ setFastPropertyValue()

void sd::SdUnoDrawView::setFastPropertyValue ( sal_Int32  nHandle,
const css::uno::Any &  rValue 
)
overridevirtual

◆ setLayerMode()

void sd::SdUnoDrawView::setLayerMode ( bool  LayerMode_)
privatenoexcept

Definition at line 83 of file SdUnoDrawView.cxx.

Referenced by setFastPropertyValue().

◆ setMasterPageMode()

void sd::SdUnoDrawView::setMasterPageMode ( bool  MasterPageMode_)
privatenoexcept

Definition at line 68 of file SdUnoDrawView.cxx.

References MasterPage, and Page.

Referenced by select(), setCurrentPage(), and setFastPropertyValue().

◆ SetViewOffset()

void sd::SdUnoDrawView::SetViewOffset ( const css::awt::Point &  rWinPos)
private

◆ SetZoom()

void sd::SdUnoDrawView::SetZoom ( sal_Int16  nZoom)
private

◆ SetZoomType()

void sd::SdUnoDrawView::SetZoomType ( sal_Int16  nType)
private

◆ supportsService()

sal_Bool SAL_CALL sd::SdUnoDrawView::supportsService ( const OUString &  ServiceName)
overridevirtual

Implements sd::DrawSubControllerInterfaceBase.

Definition at line 535 of file SdUnoDrawView.cxx.

References ServiceName, and cppu::supportsService().

Member Data Documentation

◆ mrDrawViewShell

DrawViewShell& sd::SdUnoDrawView::mrDrawViewShell
private

◆ mrView

sd::View& sd::SdUnoDrawView::mrView
private

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