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

#include <ChartDocumentWrapper.hxx>

Inheritance diagram for chart::wrapper::ChartDocumentWrapper:
[legend]
Collaboration diagram for chart::wrapper::ChartDocumentWrapper:
[legend]

Public Member Functions

 ChartDocumentWrapper (const css::uno::Reference< css::uno::XComponentContext > &xContext)
 
virtual ~ChartDocumentWrapper () override
 
virtual OUString SAL_CALL getImplementationName () override
 XServiceInfo declarations. More...
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
void setAddIn (const css::uno::Reference< css::util::XRefreshable > &xAddIn)
 
const css::uno::Reference< css::util::XRefreshable > & getAddIn () const
 
void setUpdateAddIn (bool bUpdateAddIn)
 
bool getUpdateAddIn () const
 
void setBaseDiagram (const OUString &rBaseDiagram)
 
const OUString & getBaseDiagram () const
 
css::uno::Reference< css::drawing::XShapes > getAdditionalShapes () const
 
rtl::Reference< SvxDrawPageimpl_getDrawPage () const
 

Protected Member Functions

virtual css::uno::Reference< css::drawing::XShape > SAL_CALL getTitle () override
 
virtual css::uno::Reference< css::drawing::XShape > SAL_CALL getSubTitle () override
 
virtual css::uno::Reference< css::drawing::XShape > SAL_CALL getLegend () override
 
virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL getArea () override
 
virtual css::uno::Reference< css::chart::XDiagram > SAL_CALL getDiagram () override
 
virtual void SAL_CALL setDiagram (const css::uno::Reference< css::chart::XDiagram > &xDiagram) override
 
virtual css::uno::Reference< css::chart::XChartData > SAL_CALL getData () override
 
virtual void SAL_CALL attachData (const css::uno::Reference< css::chart::XChartData > &xData) override
 
virtual sal_Bool SAL_CALL attachResource (const OUString &URL, const css::uno::Sequence< css::beans::PropertyValue > &Arguments) override
 
virtual OUString SAL_CALL getURL () override
 
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getArgs () override
 
virtual void SAL_CALL connectController (const css::uno::Reference< css::frame::XController > &Controller) override
 
virtual void SAL_CALL disconnectController (const css::uno::Reference< css::frame::XController > &Controller) override
 
virtual void SAL_CALL lockControllers () override
 
virtual void SAL_CALL unlockControllers () override
 
virtual sal_Bool SAL_CALL hasControllersLocked () override
 
virtual css::uno::Reference< css::frame::XController > SAL_CALL getCurrentController () override
 
virtual void SAL_CALL setCurrentController (const css::uno::Reference< css::frame::XController > &Controller) override
 
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getCurrentSelection () override
 
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
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &aType) override
 
virtual void _disposing (const css::lang::EventObject &rSource) override
 
virtual css::uno::Reference< css::drawing::XDrawPage > SAL_CALL getDrawPage () override
 
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstance (const OUString &aServiceSpecifier) override
 
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceWithArguments (const OUString &ServiceSpecifier, const css::uno::Sequence< css::uno::Any > &Arguments) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getAvailableServiceNames () override
 
virtual void SAL_CALL setDelegator (const css::uno::Reference< css::uno::XInterface > &rDelegator) override
 
virtual css::uno::Any SAL_CALL queryAggregation (const css::uno::Type &aType) override
 
virtual const css::uno::Sequence< css::beans::Property > & getPropertySequence () override
 
virtual std::vector< std::unique_ptr< WrappedProperty > > createWrappedProperties () override
 
virtual css::uno::Reference< css::beans::XPropertySetgetInnerPropertySet () override
 
- Protected Member Functions inherited from utl::OEventListenerAdapter
 OEventListenerAdapter ()
 
virtual ~OEventListenerAdapter ()
 
void startComponentListening (const css::uno::Reference< css::lang::XComponent > &_rxComp)
 
void stopComponentListening (const css::uno::Reference< css::lang::XComponent > &_rxComp)
 
void stopAllComponentListening ()
 
virtual void _disposing (const css::lang::EventObject &_rSource)=0
 

Private Member Functions

void impl_resetAddIn ()
 

Private Attributes

std::shared_ptr< Chart2ModelContactm_spChart2ModelContact
 
css::uno::Reference< css::uno::XInterface > m_xDelegator
 
css::uno::Reference< css::drawing::XShape > m_xTitle
 
css::uno::Reference< css::drawing::XShape > m_xSubTitle
 
css::uno::Reference< css::drawing::XShape > m_xLegend
 
css::uno::Reference< css::chart::XChartData > m_xChartData
 
css::uno::Reference< css::chart::XDiagram > m_xDiagram
 
css::uno::Reference< css::beans::XPropertySetm_xArea
 
css::uno::Reference< css::util::XRefreshable > m_xAddIn
 
OUString m_aBaseDiagram
 
bool m_bUpdateAddIn
 
rtl::Reference< ChartViewm_xChartView
 
css::uno::Reference< css::lang::XMultiServiceFactory > m_xShapeFactory
 
bool m_bIsDisposed
 

Detailed Description

Definition at line 53 of file ChartDocumentWrapper.hxx.

Constructor & Destructor Documentation

◆ ChartDocumentWrapper()

chart::wrapper::ChartDocumentWrapper::ChartDocumentWrapper ( const css::uno::Reference< css::uno::XComponentContext > &  xContext)
explicit

Definition at line 632 of file ChartDocumentWrapper.cxx.

References make_shared().

◆ ~ChartDocumentWrapper()

chart::wrapper::ChartDocumentWrapper::~ChartDocumentWrapper ( )
overridevirtual

Member Function Documentation

◆ _disposing()

void chart::wrapper::ChartDocumentWrapper::_disposing ( const css::lang::EventObject &  rSource)
overrideprotectedvirtual

◆ addEventListener()

void SAL_CALL chart::wrapper::ChartDocumentWrapper::addEventListener ( const css::uno::Reference< css::lang::XEventListener > &  xListener)
overrideprotectedvirtual

Definition at line 1011 of file ChartDocumentWrapper.cxx.

References m_spChart2ModelContact, and xModel.

◆ attachData()

void SAL_CALL chart::wrapper::ChartDocumentWrapper::attachData ( const css::uno::Reference< css::chart::XChartData > &  xData)
overrideprotectedvirtual

Definition at line 757 of file ChartDocumentWrapper.cxx.

References m_spChart2ModelContact, and m_xChartData.

◆ attachResource()

sal_Bool SAL_CALL chart::wrapper::ChartDocumentWrapper::attachResource ( const OUString &  URL,
const css::uno::Sequence< css::beans::PropertyValue > &  Arguments 
)
overrideprotectedvirtual

Definition at line 767 of file ChartDocumentWrapper.cxx.

References m_spChart2ModelContact, URL, and xModel.

◆ connectController()

void SAL_CALL chart::wrapper::ChartDocumentWrapper::connectController ( const css::uno::Reference< css::frame::XController > &  Controller)
overrideprotectedvirtual

Definition at line 793 of file ChartDocumentWrapper.cxx.

References m_spChart2ModelContact, and xModel.

◆ createInstance()

uno::Reference< uno::XInterface > SAL_CALL chart::wrapper::ChartDocumentWrapper::createInstance ( const OUString &  aServiceSpecifier)
overrideprotectedvirtual

◆ createInstanceWithArguments()

uno::Reference< uno::XInterface > SAL_CALL chart::wrapper::ChartDocumentWrapper::createInstanceWithArguments ( const OUString &  ServiceSpecifier,
const css::uno::Sequence< css::uno::Any > &  Arguments 
)
overrideprotectedvirtual

Definition at line 1296 of file ChartDocumentWrapper.cxx.

References createInstance().

◆ createWrappedProperties()

std::vector< std::unique_ptr< WrappedProperty > > chart::wrapper::ChartDocumentWrapper::createWrappedProperties ( )
overrideprotectedvirtual

Definition at line 1379 of file ChartDocumentWrapper.cxx.

References Any, and m_spChart2ModelContact.

◆ disconnectController()

void SAL_CALL chart::wrapper::ChartDocumentWrapper::disconnectController ( const css::uno::Reference< css::frame::XController > &  Controller)
overrideprotectedvirtual

Definition at line 800 of file ChartDocumentWrapper.cxx.

References m_spChart2ModelContact, and xModel.

◆ dispose()

void SAL_CALL chart::wrapper::ChartDocumentWrapper::dispose ( void  )
overrideprotectedvirtual

◆ getAddIn()

const css::uno::Reference< css::util::XRefreshable > & chart::wrapper::ChartDocumentWrapper::getAddIn ( ) const
inline

Definition at line 66 of file ChartDocumentWrapper.hxx.

References m_xAddIn.

Referenced by chart::wrapper::WrappedAddInProperty::getPropertyValue().

◆ getAdditionalShapes()

Reference< drawing::XShapes > chart::wrapper::ChartDocumentWrapper::getAdditionalShapes ( ) const

◆ getArea()

Reference< beans::XPropertySet > SAL_CALL chart::wrapper::ChartDocumentWrapper::getArea ( )
overrideprotectedvirtual

Definition at line 687 of file ChartDocumentWrapper.cxx.

References m_spChart2ModelContact, and m_xArea.

◆ getArgs()

Sequence< beans::PropertyValue > SAL_CALL chart::wrapper::ChartDocumentWrapper::getArgs ( )
overrideprotectedvirtual

Definition at line 785 of file ChartDocumentWrapper.cxx.

References m_spChart2ModelContact, and xModel.

◆ getAvailableServiceNames()

uno::Sequence< OUString > SAL_CALL chart::wrapper::ChartDocumentWrapper::getAvailableServiceNames ( )
overrideprotectedvirtual

Definition at line 1305 of file ChartDocumentWrapper.cxx.

References comphelper::mapKeysToSequence().

◆ getBaseDiagram()

const OUString & chart::wrapper::ChartDocumentWrapper::getBaseDiagram ( ) const
inline

◆ getCurrentController()

Reference< frame::XController > SAL_CALL chart::wrapper::ChartDocumentWrapper::getCurrentController ( )
overrideprotectedvirtual

Definition at line 830 of file ChartDocumentWrapper.cxx.

References m_spChart2ModelContact, and xModel.

◆ getCurrentSelection()

Reference< uno::XInterface > SAL_CALL chart::wrapper::ChartDocumentWrapper::getCurrentSelection ( )
overrideprotectedvirtual

Definition at line 846 of file ChartDocumentWrapper.cxx.

References m_spChart2ModelContact, and xModel.

◆ getData()

Reference< XChartData > SAL_CALL chart::wrapper::ChartDocumentWrapper::getData ( )
overrideprotectedvirtual

Definition at line 746 of file ChartDocumentWrapper.cxx.

References m_spChart2ModelContact, and m_xChartData.

◆ getDiagram()

Reference< XDiagram > SAL_CALL chart::wrapper::ChartDocumentWrapper::getDiagram ( )
overrideprotectedvirtual

◆ getDrawPage()

uno::Reference< drawing::XDrawPage > SAL_CALL chart::wrapper::ChartDocumentWrapper::getDrawPage ( )
overrideprotectedvirtual

Definition at line 1026 of file ChartDocumentWrapper.cxx.

References impl_getDrawPage().

◆ getImplementationName()

OUString SAL_CALL chart::wrapper::ChartDocumentWrapper::getImplementationName ( )
overridevirtual

XServiceInfo declarations.

Definition at line 1398 of file ChartDocumentWrapper.cxx.

References CHART_CHARTAPIWRAPPER_IMPLEMENTATION_NAME.

◆ getInnerPropertySet()

Reference< beans::XPropertySet > chart::wrapper::ChartDocumentWrapper::getInnerPropertySet ( )
overrideprotectedvirtual

Definition at line 1370 of file ChartDocumentWrapper.cxx.

◆ getLegend()

Reference< drawing::XShape > SAL_CALL chart::wrapper::ChartDocumentWrapper::getLegend ( )
overrideprotectedvirtual

Definition at line 677 of file ChartDocumentWrapper.cxx.

References m_spChart2ModelContact, and m_xLegend.

◆ getPropertySequence()

const Sequence< beans::Property > & chart::wrapper::ChartDocumentWrapper::getPropertySequence ( )
overrideprotectedvirtual

Definition at line 1374 of file ChartDocumentWrapper.cxx.

◆ getSubTitle()

Reference< drawing::XShape > SAL_CALL chart::wrapper::ChartDocumentWrapper::getSubTitle ( )
overrideprotectedvirtual

◆ getSupportedServiceNames()

css::uno::Sequence< OUString > SAL_CALL chart::wrapper::ChartDocumentWrapper::getSupportedServiceNames ( )
overridevirtual

Definition at line 1408 of file ChartDocumentWrapper.cxx.

References CHART_CHARTAPIWRAPPER_SERVICE_NAME.

◆ getTitle()

Reference< drawing::XShape > SAL_CALL chart::wrapper::ChartDocumentWrapper::getTitle ( )
overrideprotectedvirtual

◆ getUpdateAddIn()

bool chart::wrapper::ChartDocumentWrapper::getUpdateAddIn ( ) const
inline

◆ getURL()

OUString SAL_CALL chart::wrapper::ChartDocumentWrapper::getURL ( )
overrideprotectedvirtual

Definition at line 777 of file ChartDocumentWrapper.cxx.

References m_spChart2ModelContact, and xModel.

◆ hasControllersLocked()

sal_Bool SAL_CALL chart::wrapper::ChartDocumentWrapper::hasControllersLocked ( )
overrideprotectedvirtual

Definition at line 822 of file ChartDocumentWrapper.cxx.

References m_spChart2ModelContact, and xModel.

◆ impl_getDrawPage()

rtl::Reference< SvxDrawPage > chart::wrapper::ChartDocumentWrapper::impl_getDrawPage ( ) const
Exceptions
css::uno::RuntimeException

Definition at line 1031 of file ChartDocumentWrapper.cxx.

References m_spChart2ModelContact.

Referenced by getAdditionalShapes(), and getDrawPage().

◆ impl_resetAddIn()

void chart::wrapper::ChartDocumentWrapper::impl_resetAddIn ( )
private

Definition at line 897 of file ChartDocumentWrapper.cxx.

References aSeq, DBG_UNHANDLED_EXCEPTION, and m_xAddIn.

Referenced by dispose(), and setAddIn().

◆ lockControllers()

void SAL_CALL chart::wrapper::ChartDocumentWrapper::lockControllers ( )
overrideprotectedvirtual

Definition at line 808 of file ChartDocumentWrapper.cxx.

References m_spChart2ModelContact, and xModel.

◆ queryAggregation()

uno::Any SAL_CALL chart::wrapper::ChartDocumentWrapper::queryAggregation ( const css::uno::Type &  aType)
overrideprotectedvirtual

Definition at line 1343 of file ChartDocumentWrapper.cxx.

Referenced by queryInterface().

◆ queryInterface()

uno::Any SAL_CALL chart::wrapper::ChartDocumentWrapper::queryInterface ( const css::uno::Type &  aType)
overrideprotectedvirtual

Definition at line 647 of file ChartDocumentWrapper.cxx.

References m_xDelegator, and queryAggregation().

◆ removeEventListener()

void SAL_CALL chart::wrapper::ChartDocumentWrapper::removeEventListener ( const css::uno::Reference< css::lang::XEventListener > &  aListener)
overrideprotectedvirtual

Definition at line 1018 of file ChartDocumentWrapper.cxx.

References m_spChart2ModelContact, and xModel.

◆ setAddIn()

void chart::wrapper::ChartDocumentWrapper::setAddIn ( const css::uno::Reference< css::util::XRefreshable > &  xAddIn)

◆ setBaseDiagram()

void chart::wrapper::ChartDocumentWrapper::setBaseDiagram ( const OUString &  rBaseDiagram)

◆ setCurrentController()

void SAL_CALL chart::wrapper::ChartDocumentWrapper::setCurrentController ( const css::uno::Reference< css::frame::XController > &  Controller)
overrideprotectedvirtual

Definition at line 838 of file ChartDocumentWrapper.cxx.

References m_spChart2ModelContact, and xModel.

◆ setDelegator()

void SAL_CALL chart::wrapper::ChartDocumentWrapper::setDelegator ( const css::uno::Reference< css::uno::XInterface > &  rDelegator)
overrideprotectedvirtual

◆ setDiagram()

void SAL_CALL chart::wrapper::ChartDocumentWrapper::setDiagram ( const css::uno::Reference< css::chart::XDiagram > &  xDiagram)
overrideprotectedvirtual

◆ setUpdateAddIn()

void chart::wrapper::ChartDocumentWrapper::setUpdateAddIn ( bool  bUpdateAddIn)

◆ supportsService()

sal_Bool SAL_CALL chart::wrapper::ChartDocumentWrapper::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 1403 of file ChartDocumentWrapper.cxx.

References cppu::supportsService().

◆ unlockControllers()

void SAL_CALL chart::wrapper::ChartDocumentWrapper::unlockControllers ( )
overrideprotectedvirtual

Definition at line 815 of file ChartDocumentWrapper.cxx.

References m_spChart2ModelContact, and xModel.

Member Data Documentation

◆ m_aBaseDiagram

OUString chart::wrapper::ChartDocumentWrapper::m_aBaseDiagram
private

Definition at line 158 of file ChartDocumentWrapper.hxx.

Referenced by getBaseDiagram(), and setBaseDiagram().

◆ m_bIsDisposed

bool chart::wrapper::ChartDocumentWrapper::m_bIsDisposed
private

Definition at line 165 of file ChartDocumentWrapper.hxx.

Referenced by dispose(), and setDelegator().

◆ m_bUpdateAddIn

bool chart::wrapper::ChartDocumentWrapper::m_bUpdateAddIn
private

Definition at line 159 of file ChartDocumentWrapper.hxx.

Referenced by getUpdateAddIn(), and setUpdateAddIn().

◆ m_spChart2ModelContact

std::shared_ptr< Chart2ModelContact > chart::wrapper::ChartDocumentWrapper::m_spChart2ModelContact
private

◆ m_xAddIn

css::uno::Reference< css::util::XRefreshable > chart::wrapper::ChartDocumentWrapper::m_xAddIn
private

Definition at line 157 of file ChartDocumentWrapper.hxx.

Referenced by _disposing(), getAddIn(), impl_resetAddIn(), and setAddIn().

◆ m_xArea

css::uno::Reference< css::beans::XPropertySet > chart::wrapper::ChartDocumentWrapper::m_xArea
private

Definition at line 155 of file ChartDocumentWrapper.hxx.

Referenced by _disposing(), dispose(), and getArea().

◆ m_xChartData

css::uno::Reference< css::chart::XChartData > chart::wrapper::ChartDocumentWrapper::m_xChartData
private

Definition at line 153 of file ChartDocumentWrapper.hxx.

Referenced by _disposing(), attachData(), dispose(), and getData().

◆ m_xChartView

rtl::Reference< ChartView > chart::wrapper::ChartDocumentWrapper::m_xChartView
private

Definition at line 161 of file ChartDocumentWrapper.hxx.

Referenced by _disposing(), createInstance(), and dispose().

◆ m_xDelegator

css::uno::Reference< css::uno::XInterface > chart::wrapper::ChartDocumentWrapper::m_xDelegator
private

Definition at line 148 of file ChartDocumentWrapper.hxx.

Referenced by dispose(), queryInterface(), and setDelegator().

◆ m_xDiagram

css::uno::Reference< css::chart::XDiagram > chart::wrapper::ChartDocumentWrapper::m_xDiagram
private

Definition at line 154 of file ChartDocumentWrapper.hxx.

Referenced by _disposing(), dispose(), getDiagram(), and setDiagram().

◆ m_xLegend

css::uno::Reference< css::drawing::XShape > chart::wrapper::ChartDocumentWrapper::m_xLegend
private

Definition at line 152 of file ChartDocumentWrapper.hxx.

Referenced by _disposing(), dispose(), and getLegend().

◆ m_xShapeFactory

css::uno::Reference< css::lang::XMultiServiceFactory> chart::wrapper::ChartDocumentWrapper::m_xShapeFactory
private

Definition at line 163 of file ChartDocumentWrapper.hxx.

Referenced by createInstance(), and dispose().

◆ m_xSubTitle

css::uno::Reference< css::drawing::XShape > chart::wrapper::ChartDocumentWrapper::m_xSubTitle
private

Definition at line 151 of file ChartDocumentWrapper.hxx.

Referenced by _disposing(), dispose(), and getSubTitle().

◆ m_xTitle

css::uno::Reference< css::drawing::XShape > chart::wrapper::ChartDocumentWrapper::m_xTitle
private

Definition at line 150 of file ChartDocumentWrapper.hxx.

Referenced by _disposing(), dispose(), and getTitle().


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