LibreOffice Module chart2 (master) 1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
chart::DrawCommandDispatch Class Reference

This is a CommandDispatch implementation for drawing objects. More...

#include <DrawCommandDispatch.hxx>

Inheritance diagram for chart::DrawCommandDispatch:
[legend]
Collaboration diagram for chart::DrawCommandDispatch:
[legend]

Public Member Functions

 DrawCommandDispatch (const css::uno::Reference< css::uno::XComponentContext > &rxContext, ChartController *pController)
 
virtual ~DrawCommandDispatch () override
 
virtual bool isFeatureSupported (const OUString &rCommandURL) override
 
void setAttributes (SdrObject *pObj)
 
void setLineEnds (SfxItemSet &rAttr)
 
- Public Member Functions inherited from chart::FeatureCommandDispatchBase
 FeatureCommandDispatchBase (const css::uno::Reference< css::uno::XComponentContext > &rxContext)
 
virtual ~FeatureCommandDispatchBase () override
 
virtual void initialize () override
 
virtual bool isFeatureSupported (const OUString &rCommandURL)
 
- Public Member Functions inherited from chart::CommandDispatch
 CommandDispatch (const css::uno::Reference< css::uno::XComponentContext > &xContext)
 
virtual ~CommandDispatch () override
 
virtual void initialize ()
 
- Public Member Functions inherited from comphelper::WeakComponentImplHelper< typename... Ifc >
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 ()
 

Protected Member Functions

virtual void disposing (std::unique_lock< std::mutex > &rGuard) override
 is called when this is disposed More...
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 
virtual FeatureState getState (const OUString &rCommand) override
 
virtual void execute (const OUString &rCommand, const css::uno::Sequence< css::beans::PropertyValue > &rArgs) override
 
virtual void describeSupportedFeatures () override
 
- Protected Member Functions inherited from chart::FeatureCommandDispatchBase
virtual void SAL_CALL dispatch (const css::util::URL &URL, const css::uno::Sequence< css::beans::PropertyValue > &Arguments) override
 
virtual void fireStatusEvent (const OUString &rURL, const css::uno::Reference< css::frame::XStatusListener > &xSingleListener) override
 sends a status event for a specific command to all registered listeners or only the one given when set. More...
 
virtual FeatureState getState (const OUString &rCommand)=0
 
virtual void execute (const OUString &rCommand, const css::uno::Sequence< css::beans::PropertyValue > &rArgs)=0
 
virtual void describeSupportedFeatures ()=0
 
void implDescribeSupportedFeature (const char *pAsciiCommandURL, ChartCommandID nId, sal_Int16 nGroup)
 describes a feature supported by the controller More...
 
- Protected Member Functions inherited from chart::CommandDispatch
virtual void fireStatusEvent (const OUString &rURL, const css::uno::Reference< css::frame::XStatusListener > &xSingleListener)=0
 sends a status event for a specific command to all registered listeners or only the one given when set. More...
 
void fireAllStatusEvents (const css::uno::Reference< css::frame::XStatusListener > &xSingleListener)
 calls fireStatusEvent( OUString, xSingleListener ) More...
 
void fireStatusEventForURL (const OUString &rURL, const css::uno::Any &rState, bool bEnabled, const css::uno::Reference< css::frame::XStatusListener > &xSingleListener)
 sends a status event for a specific command to all registered listeners or only the one given when set. More...
 
virtual void SAL_CALL dispatch (const css::util::URL &URL, const css::uno::Sequence< css::beans::PropertyValue > &Arguments) override
 
virtual void SAL_CALL addStatusListener (const css::uno::Reference< css::frame::XStatusListener > &Control, const css::util::URL &URL) override
 
virtual void SAL_CALL removeStatusListener (const css::uno::Reference< css::frame::XStatusListener > &Control, const css::util::URL &URL) override
 
virtual void disposing (std::unique_lock< std::mutex > &rGuard) override
 is called when this is disposed More...
 
virtual void SAL_CALL modified (const css::lang::EventObject &aEvent) override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 
- Protected Member Functions inherited from comphelper::WeakComponentImplHelperBase
void throwIfDisposed (std::unique_lock< std::mutex > &)
 

Private Member Functions

void setInsertObj (SdrObjKind eObj)
 
rtl::Reference< SdrObjectcreateDefaultObject (const ChartCommandID nID)
 
bool parseCommandURL (const OUString &rCommandURL, ChartCommandID *pnFeatureId, OUString *pBaseCommand, OUString *pCustomShapeType)
 

Private Attributes

ChartControllerm_pChartController
 
OUString m_aCustomShapeType
 

Additional Inherited Members

- Protected Attributes inherited from chart::FeatureCommandDispatchBase
SupportedFeatures m_aSupportedFeatures
 
ChartCommandID m_nFeatureId
 
- 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 is a CommandDispatch implementation for drawing objects.

Definition at line 35 of file DrawCommandDispatch.hxx.

Constructor & Destructor Documentation

◆ DrawCommandDispatch()

chart::DrawCommandDispatch::DrawCommandDispatch ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
ChartController pController 
)

Definition at line 57 of file DrawCommandDispatch.cxx.

◆ ~DrawCommandDispatch()

chart::DrawCommandDispatch::~DrawCommandDispatch ( )
overridevirtual

Definition at line 64 of file DrawCommandDispatch.cxx.

Member Function Documentation

◆ createDefaultObject()

rtl::Reference< SdrObject > chart::DrawCommandDispatch::createDefaultObject ( const ChartCommandID  nID)
private

◆ describeSupportedFeatures()

void chart::DrawCommandDispatch::describeSupportedFeatures ( )
overrideprotectedvirtual

◆ disposing() [1/2]

virtual void SAL_CALL chart::DrawCommandDispatch::disposing ( const css::lang::EventObject &  Source)
overrideprotectedvirtual

Reimplemented from chart::CommandDispatch.

◆ disposing() [2/2]

void chart::DrawCommandDispatch::disposing ( std::unique_lock< std::mutex > &  rGuard)
overrideprotectedvirtual

is called when this is disposed

Reimplemented from chart::CommandDispatch.

Definition at line 204 of file DrawCommandDispatch.cxx.

◆ execute()

void chart::DrawCommandDispatch::execute ( const OUString &  rCommand,
const css::uno::Sequence< css::beans::PropertyValue > &  rArgs 
)
overrideprotectedvirtual

◆ getState()

FeatureState chart::DrawCommandDispatch::getState ( const OUString &  rCommand)
overrideprotectedvirtual

◆ isFeatureSupported()

bool chart::DrawCommandDispatch::isFeatureSupported ( const OUString &  rCommandURL)
overridevirtual

◆ parseCommandURL()

bool chart::DrawCommandDispatch::parseCommandURL ( const OUString &  rCommandURL,
ChartCommandID pnFeatureId,
OUString *  pBaseCommand,
OUString *  pCustomShapeType 
)
private

◆ setAttributes()

void chart::DrawCommandDispatch::setAttributes ( SdrObject pObj)

◆ setInsertObj()

void chart::DrawCommandDispatch::setInsertObj ( SdrObjKind  eObj)
private

◆ setLineEnds()

void chart::DrawCommandDispatch::setLineEnds ( SfxItemSet rAttr)

Member Data Documentation

◆ m_aCustomShapeType

OUString chart::DrawCommandDispatch::m_aCustomShapeType
private

Definition at line 69 of file DrawCommandDispatch.hxx.

Referenced by execute(), and setAttributes().

◆ m_pChartController

ChartController* chart::DrawCommandDispatch::m_pChartController
private

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