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

#include <Chart2ModelContact.hxx>

Collaboration diagram for chart::wrapper::Chart2ModelContact:
[legend]

Public Member Functions

 Chart2ModelContact (const css::uno::Reference< css::uno::XComponentContext > &xContext)
 
 ~Chart2ModelContact ()
 
void setDocumentModel (ChartModel *pChartModel)
 
void clear ()
 
rtl::Reference< ChartModel > getDocumentModel () const
 
rtl::Reference< ::chart::DiagramgetDiagram () const
 
rtl::Reference< SvxDrawPagegetDrawPage () const
 
void getExplicitValuesForAxis (const rtl::Reference< ::chart::Axis > &xAxis, ExplicitScaleData &rOutExplicitScale, ExplicitIncrementData &rOutExplicitIncrement)
 get the current values calculated for an axis in the current view in case properties are 'auto'. More...
 
sal_Int32 getExplicitNumberFormatKeyForAxis (const rtl::Reference< ::chart::Axis > &xAxis)
 
css::awt::Size GetPageSize () const
 Returns the size of the page in logic coordinates. More...
 
css::awt::Rectangle SubstractAxisTitleSizes (const css::awt::Rectangle &rPositionRect)
 calculates the current axes title sizes and subtract that space them from the given rectangle More...
 
css::awt::Rectangle GetDiagramRectangleIncludingTitle () const
 Returns the position and size of the diagram in logic coordinates (100th mm) including the space used for axes including axes titles. More...
 
css::awt::Rectangle GetDiagramRectangleIncludingAxes () const
 Returns the position and size of the diagram in logic coordinates (100th mm) including the space used for axes excluding axes titles. More...
 
css::awt::Rectangle GetDiagramRectangleExcludingAxes () const
 Returns the position and size of the diagram in logic coordinates (100th mm) excluding the space used for axes (inner plot area). More...
 
css::awt::Size GetLegendSize () const
 Returns the size of the object in logic coordinates. More...
 
css::awt::Point GetLegendPosition () const
 Returns the position of the object in logic coordinates. More...
 
css::awt::Size GetTitleSize (const css::uno::Reference< css::chart2::XTitle > &xTitle) const
 Returns the size of the object in logic coordinates. More...
 
css::awt::Point GetTitlePosition (const css::uno::Reference< css::chart2::XTitle > &xTitle) const
 Returns the position of the object in logic coordinates. More...
 
css::awt::Size GetAxisSize (const css::uno::Reference< css::chart2::XAxis > &xAxis) const
 Returns the size of the object in logic coordinates. More...
 
css::awt::Point GetAxisPosition (const css::uno::Reference< css::chart2::XAxis > &xAxis) const
 Returns the position of the object in logic coordinates. More...
 

Static Public Member Functions

static sal_Int32 getExplicitNumberFormatKeyForSeries (const css::uno::Reference< css::chart2::XDataSeries > &xSeries)
 

Public Attributes

css::uno::Reference< css::uno::XComponentContext > m_xContext
 

Private Member Functions

ExplicitValueProvider * getExplicitValueProvider () const
 
rtl::Reference< ChartView > const & getChartView () const
 

Private Attributes

unotools::WeakReference< ChartModel > m_xChartModel
 
rtl::Reference< ChartViewm_xChartView
 
std::map< OUString, css::uno::Reference< css::container::XNameContainer > > m_aTableMap
 

Detailed Description

Definition at line 53 of file Chart2ModelContact.hxx.

Constructor & Destructor Documentation

◆ Chart2ModelContact()

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

Definition at line 48 of file Chart2ModelContact.cxx.

◆ ~Chart2ModelContact()

chart::wrapper::Chart2ModelContact::~Chart2ModelContact ( )

Definition at line 55 of file Chart2ModelContact.cxx.

References clear().

Member Function Documentation

◆ clear()

void chart::wrapper::Chart2ModelContact::clear ( )

Definition at line 79 of file Chart2ModelContact.cxx.

References m_xChartModel, and m_xChartView.

Referenced by setDocumentModel(), and ~Chart2ModelContact().

◆ GetAxisPosition()

awt::Point chart::wrapper::Chart2ModelContact::GetAxisPosition ( const css::uno::Reference< css::chart2::XAxis > &  xAxis) const

◆ GetAxisSize()

awt::Size chart::wrapper::Chart2ModelContact::GetAxisSize ( const css::uno::Reference< css::chart2::XAxis > &  xAxis) const

◆ getChartView()

rtl::Reference<::chart::ChartView > const & chart::wrapper::Chart2ModelContact::getChartView ( ) const
private

◆ getDiagram()

rtl::Reference<::chart::Diagram > chart::wrapper::Chart2ModelContact::getDiagram ( ) const

Definition at line 90 of file Chart2ModelContact.cxx.

References DBG_UNHANDLED_EXCEPTION, and getDocumentModel().

◆ GetDiagramRectangleExcludingAxes()

awt::Rectangle chart::wrapper::Chart2ModelContact::GetDiagramRectangleExcludingAxes ( ) const

Returns the position and size of the diagram in logic coordinates (100th mm) excluding the space used for axes (inner plot area).

Definition at line 211 of file Chart2ModelContact.cxx.

References chart::Excluding, unotools::WeakReference< class interface_type >::get(), chart::DiagramHelper::getDiagramRectangleFromModel(), getExplicitValueProvider(), and m_xChartModel.

◆ GetDiagramRectangleIncludingAxes()

awt::Rectangle chart::wrapper::Chart2ModelContact::GetDiagramRectangleIncludingAxes ( ) const

Returns the position and size of the diagram in logic coordinates (100th mm) including the space used for axes excluding axes titles.

Definition at line 195 of file Chart2ModelContact.cxx.

References unotools::WeakReference< class interface_type >::get(), chart::DiagramHelper::getDiagramRectangleFromModel(), getExplicitValueProvider(), chart::Including, and m_xChartModel.

Referenced by GetDiagramRectangleIncludingTitle().

◆ GetDiagramRectangleIncludingTitle()

awt::Rectangle chart::wrapper::Chart2ModelContact::GetDiagramRectangleIncludingTitle ( ) const

Returns the position and size of the diagram in logic coordinates (100th mm) including the space used for axes including axes titles.

Definition at line 184 of file Chart2ModelContact.cxx.

References unotools::WeakReference< class interface_type >::get(), get(), getChartView(), GetDiagramRectangleIncludingAxes(), and m_xChartModel.

◆ getDocumentModel()

rtl::Reference< ChartModel > chart::wrapper::Chart2ModelContact::getDocumentModel ( ) const

Definition at line 85 of file Chart2ModelContact.cxx.

References m_xChartModel.

Referenced by getDiagram().

◆ getDrawPage()

rtl::Reference< SvxDrawPage > chart::wrapper::Chart2ModelContact::getDrawPage ( ) const

Definition at line 130 of file Chart2ModelContact.cxx.

References getExplicitValueProvider().

◆ getExplicitNumberFormatKeyForAxis()

sal_Int32 chart::wrapper::Chart2ModelContact::getExplicitNumberFormatKeyForAxis ( const rtl::Reference< ::chart::Axis > &  xAxis)

◆ getExplicitNumberFormatKeyForSeries()

sal_Int32 chart::wrapper::Chart2ModelContact::getExplicitNumberFormatKeyForSeries ( const css::uno::Reference< css::chart2::XDataSeries > &  xSeries)
static

◆ getExplicitValueProvider()

ExplicitValueProvider * chart::wrapper::Chart2ModelContact::getExplicitValueProvider ( ) const
private

◆ getExplicitValuesForAxis()

void chart::wrapper::Chart2ModelContact::getExplicitValuesForAxis ( const rtl::Reference< ::chart::Axis > &  xAxis,
ExplicitScaleData rOutExplicitScale,
ExplicitIncrementData rOutExplicitIncrement 
)

get the current values calculated for an axis in the current view in case properties are 'auto'.

Definition at line 141 of file Chart2ModelContact.cxx.

References getExplicitValueProvider().

◆ GetLegendPosition()

awt::Point chart::wrapper::Chart2ModelContact::GetLegendPosition ( ) const

◆ GetLegendSize()

awt::Size chart::wrapper::Chart2ModelContact::GetLegendSize ( ) const

◆ GetPageSize()

awt::Size chart::wrapper::Chart2ModelContact::GetPageSize ( ) const

Returns the size of the page in logic coordinates.

This value is used for setting an appropriate "ReferencePageSize" for FontHeights.

Definition at line 172 of file Chart2ModelContact.cxx.

References unotools::WeakReference< class interface_type >::get(), chart::ChartModelHelper::getPageSize(), and m_xChartModel.

◆ GetTitlePosition()

awt::Point chart::wrapper::Chart2ModelContact::GetTitlePosition ( const css::uno::Reference< css::chart2::XTitle > &  xTitle) const

◆ GetTitleSize()

awt::Size chart::wrapper::Chart2ModelContact::GetTitleSize ( const css::uno::Reference< css::chart2::XTitle > &  xTitle) const

Returns the size of the object in logic coordinates.

Definition at line 253 of file Chart2ModelContact.cxx.

References chart::ObjectIdentifier::createClassifiedIdentifierForObject(), getExplicitValueProvider(), m_xChartModel, and chart::ToSize().

◆ setDocumentModel()

void chart::wrapper::Chart2ModelContact::setDocumentModel ( ChartModel *  pChartModel)

Definition at line 60 of file Chart2ModelContact.cxx.

References clear(), m_aTableMap, and m_xChartModel.

◆ SubstractAxisTitleSizes()

awt::Rectangle chart::wrapper::Chart2ModelContact::SubstractAxisTitleSizes ( const css::awt::Rectangle &  rPositionRect)

calculates the current axes title sizes and subtract that space them from the given rectangle

Definition at line 177 of file Chart2ModelContact.cxx.

References unotools::WeakReference< class interface_type >::get(), get(), getChartView(), and m_xChartModel.

Member Data Documentation

◆ m_aTableMap

std::map< OUString, css::uno::Reference< css::container::XNameContainer > > chart::wrapper::Chart2ModelContact::m_aTableMap
private

Definition at line 143 of file Chart2ModelContact.hxx.

Referenced by setDocumentModel().

◆ m_xChartModel

unotools::WeakReference< ChartModel > chart::wrapper::Chart2ModelContact::m_xChartModel
private

◆ m_xChartView

rtl::Reference< ChartView > chart::wrapper::Chart2ModelContact::m_xChartView
mutableprivate

Definition at line 141 of file Chart2ModelContact.hxx.

Referenced by clear(), getChartView(), and getExplicitValueProvider().

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > chart::wrapper::Chart2ModelContact::m_xContext

Definition at line 136 of file Chart2ModelContact.hxx.


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