LibreOffice Module chart2 (master) 1
|
#include <Chart2ModelContact.hxx>
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::Diagram > | getDiagram () const |
rtl::Reference< SvxDrawPage > | getDrawPage () 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< ChartView > | m_xChartView |
std::map< OUString, css::uno::Reference< css::container::XNameContainer > > | m_aTableMap |
Definition at line 53 of file Chart2ModelContact.hxx.
|
explicit |
Definition at line 48 of file Chart2ModelContact.cxx.
chart::wrapper::Chart2ModelContact::~Chart2ModelContact | ( | ) |
Definition at line 55 of file Chart2ModelContact.cxx.
References 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().
awt::Point chart::wrapper::Chart2ModelContact::GetAxisPosition | ( | const css::uno::Reference< css::chart2::XAxis > & | xAxis | ) | const |
Returns the position of the object in logic coordinates.
Definition at line 289 of file Chart2ModelContact.cxx.
References chart::ObjectIdentifier::createClassifiedIdentifierForObject(), unotools::WeakReference< class interface_type >::get(), getExplicitValueProvider(), m_xChartModel, and chart::ToPoint().
awt::Size chart::wrapper::Chart2ModelContact::GetAxisSize | ( | const css::uno::Reference< css::chart2::XAxis > & | xAxis | ) | const |
Returns the size of the object in logic coordinates.
Definition at line 277 of file Chart2ModelContact.cxx.
References chart::ObjectIdentifier::createClassifiedIdentifierForObject(), unotools::WeakReference< class interface_type >::get(), getExplicitValueProvider(), m_xChartModel, and chart::ToSize().
|
private |
Definition at line 105 of file Chart2ModelContact.cxx.
References CHART_VIEW_SERVICE_NAME, m_xChartModel, and m_xChartView.
Referenced by GetDiagramRectangleIncludingTitle(), getExplicitValueProvider(), and SubstractAxisTitleSizes().
rtl::Reference<::chart::Diagram > chart::wrapper::Chart2ModelContact::getDiagram | ( | ) | const |
Definition at line 90 of file Chart2ModelContact.cxx.
References DBG_UNHANDLED_EXCEPTION, and getDocumentModel().
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.
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().
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.
rtl::Reference< ChartModel > chart::wrapper::Chart2ModelContact::getDocumentModel | ( | ) | const |
Definition at line 85 of file Chart2ModelContact.cxx.
References m_xChartModel.
Referenced by getDiagram().
rtl::Reference< SvxDrawPage > chart::wrapper::Chart2ModelContact::getDrawPage | ( | ) | const |
Definition at line 130 of file Chart2ModelContact.cxx.
References getExplicitValueProvider().
sal_Int32 chart::wrapper::Chart2ModelContact::getExplicitNumberFormatKeyForAxis | ( | const rtl::Reference< ::chart::Axis > & | xAxis | ) |
Definition at line 154 of file Chart2ModelContact.cxx.
References unotools::WeakReference< class interface_type >::get(), chart::AxisHelper::getCoordinateSystemOfAxis(), and m_xChartModel.
|
static |
Definition at line 165 of file Chart2ModelContact.cxx.
Referenced by chart::wrapper::WrappedNumberFormatProperty::getPropertyValue().
|
private |
Definition at line 122 of file Chart2ModelContact.cxx.
References getChartView(), and m_xChartView.
Referenced by GetAxisPosition(), GetAxisSize(), GetDiagramRectangleExcludingAxes(), GetDiagramRectangleIncludingAxes(), getDrawPage(), getExplicitValuesForAxis(), GetLegendPosition(), GetLegendSize(), GetTitlePosition(), and GetTitleSize().
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().
awt::Point chart::wrapper::Chart2ModelContact::GetLegendPosition | ( | ) | const |
Returns the position of the object in logic coordinates.
Definition at line 240 of file Chart2ModelContact.cxx.
References chart::ObjectIdentifier::createClassifiedIdentifierForObject(), unotools::WeakReference< class interface_type >::get(), getExplicitValueProvider(), chart::LegendHelper::getLegend(), m_xChartModel, and chart::ToPoint().
awt::Size chart::wrapper::Chart2ModelContact::GetLegendSize | ( | ) | const |
Returns the size of the object in logic coordinates.
Definition at line 227 of file Chart2ModelContact.cxx.
References chart::ObjectIdentifier::createClassifiedIdentifierForObject(), unotools::WeakReference< class interface_type >::get(), getExplicitValueProvider(), chart::LegendHelper::getLegend(), m_xChartModel, and chart::ToSize().
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.
awt::Point chart::wrapper::Chart2ModelContact::GetTitlePosition | ( | const css::uno::Reference< css::chart2::XTitle > & | xTitle | ) | const |
Returns the position of the object in logic coordinates.
Definition at line 265 of file Chart2ModelContact.cxx.
References chart::ObjectIdentifier::createClassifiedIdentifierForObject(), unotools::WeakReference< class interface_type >::get(), getExplicitValueProvider(), m_xChartModel, and chart::ToPoint().
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().
void chart::wrapper::Chart2ModelContact::setDocumentModel | ( | ChartModel * | pChartModel | ) |
Definition at line 60 of file Chart2ModelContact.cxx.
References clear(), m_aTableMap, and m_xChartModel.
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.
|
private |
Definition at line 143 of file Chart2ModelContact.hxx.
Referenced by setDocumentModel().
|
private |
Definition at line 139 of file Chart2ModelContact.hxx.
Referenced by clear(), GetAxisPosition(), GetAxisSize(), getChartView(), GetDiagramRectangleExcludingAxes(), GetDiagramRectangleIncludingAxes(), GetDiagramRectangleIncludingTitle(), getDocumentModel(), getExplicitNumberFormatKeyForAxis(), GetLegendPosition(), GetLegendSize(), GetPageSize(), GetTitlePosition(), GetTitleSize(), setDocumentModel(), and SubstractAxisTitleSizes().
|
mutableprivate |
Definition at line 141 of file Chart2ModelContact.hxx.
Referenced by clear(), getChartView(), and getExplicitValueProvider().
css::uno::Reference< css::uno::XComponentContext > chart::wrapper::Chart2ModelContact::m_xContext |
Definition at line 136 of file Chart2ModelContact.hxx.