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

DataTableView is responsible to create the table object, set the cell properties accordingly to the model and fill it with the chart series data. More...

#include <DataTableView.hxx>

Collaboration diagram for chart::DataTableView:
[legend]

Public Member Functions

 DataTableView (rtl::Reference<::chart::ChartModel > const &xChartDoc, rtl::Reference< DataTable > const &rDataTableModel, css::uno::Reference< css::uno::XComponentContext > const &rComponentContext, bool bAlignAxisValuesWithColumns)
 
void initializeShapes (const rtl::Reference< SvxShapeGroupAnyD > &xTarget)
 Initializes and prepares the target and data table shape. More...
 
void initializeValues (std::vector< std::unique_ptr< VSeriesPlotter > > &rSeriesPlotterList)
 Prepares the values of the chart, which will be shown it the data table. More...
 
void createShapes (basegfx::B2DVector const &rStart, basegfx::B2DVector const &rEnd, sal_Int32 nAxisStepWidth)
 Creates the data table and fills the values. More...
 
void changePosition (sal_Int32 x, sal_Int32 y)
 Repositions the data table shape. More...
 

Private Member Functions

void setCellCharAndParagraphProperties (css::uno::Reference< css::beans::XPropertySet > &xPropertySet)
 Set the char and paragraph properties for the input (value) cell. More...
 
void setCellProperties (css::uno::Reference< css::beans::XPropertySet > &xPropertySet, bool bLeft, bool bTop, bool bRight, bool bBottom)
 Set the common cell properties (for all cells in the data table, including headers) More...
 

Private Attributes

rtl::Reference<::chart::ChartModel > m_xChartModel
 
rtl::Reference< SvxShapeGroupAnyDm_xTarget
 
rtl::Reference< SvxTableShapem_xTableShape
 
rtl::Reference< DataTablem_xDataTableModel
 
css::uno::Reference< css::uno::XComponentContext > m_xComponentContext
 
css::uno::Reference< css::table::XTable > m_xTable
 
VLineProperties m_aLineProperties
 
std::vector< VSeriesPlotter * > m_pSeriesPlotterList
 
std::vector< OUString > m_aDataSeriesNames
 
std::vector< OUString > m_aXValues
 
std::vector< std::vector< OUString > > m_pDataSeriesValues
 
bool m_bAlignAxisValuesWithColumns
 

Detailed Description

DataTableView is responsible to create the table object, set the cell properties accordingly to the model and fill it with the chart series data.

Definition at line 31 of file DataTableView.hxx.

Constructor & Destructor Documentation

◆ DataTableView()

chart::DataTableView::DataTableView ( rtl::Reference<::chart::ChartModel > const &  xChartDoc,
rtl::Reference< DataTable > const &  rDataTableModel,
css::uno::Reference< css::uno::XComponentContext > const &  rComponentContext,
bool  bAlignAxisValuesWithColumns 
)

Member Function Documentation

◆ changePosition()

void chart::DataTableView::changePosition ( sal_Int32  x,
sal_Int32  y 
)

Repositions the data table shape.

Definition at line 507 of file DataTableView.cxx.

References m_xTable, m_xTarget, x, and y.

Referenced by createShapes().

◆ createShapes()

void chart::DataTableView::createShapes ( basegfx::B2DVector const &  rStart,
basegfx::B2DVector const &  rEnd,
sal_Int32  nAxisStepWidth 
)

◆ initializeShapes()

void chart::DataTableView::initializeShapes ( const rtl::Reference< SvxShapeGroupAnyD > &  xTarget)

Initializes and prepares the target and data table shape.

Definition at line 521 of file DataTableView.cxx.

References m_xTarget, and xTarget.

◆ initializeValues()

void chart::DataTableView::initializeValues ( std::vector< std::unique_ptr< VSeriesPlotter > > &  rSeriesPlotterList)

Prepares the values of the chart, which will be shown it the data table.

Definition at line 526 of file DataTableView.cxx.

References i, m_aDataSeriesNames, m_aXValues, m_pDataSeriesValues, m_pSeriesPlotterList, and nValue.

◆ setCellCharAndParagraphProperties()

void chart::DataTableView::setCellCharAndParagraphProperties ( css::uno::Reference< css::beans::XPropertySet > &  xPropertySet)
private

Set the char and paragraph properties for the input (value) cell.

Definition at line 101 of file DataTableView.cxx.

References m_xDataTableModel.

Referenced by createShapes().

◆ setCellProperties()

void chart::DataTableView::setCellProperties ( css::uno::Reference< css::beans::XPropertySet > &  xPropertySet,
bool  bLeft,
bool  bTop,
bool  bRight,
bool  bBottom 
)
private

Set the common cell properties (for all cells in the data table, including headers)

Definition at line 159 of file DataTableView.cxx.

References chart::VLineProperties::Color, o3tl::convert(), chart::VLineProperties::DashName, chart::VLineProperties::LineStyle, m_aLineProperties, m_xChartModel, m_xDataTableModel, o3tl::mm100, o3tl::pt, o3tl::twip, and chart::VLineProperties::Width.

Referenced by createShapes().

Member Data Documentation

◆ m_aDataSeriesNames

std::vector<OUString> chart::DataTableView::m_aDataSeriesNames
private

Definition at line 47 of file DataTableView.hxx.

Referenced by createShapes(), and initializeValues().

◆ m_aLineProperties

VLineProperties chart::DataTableView::m_aLineProperties
private

Definition at line 43 of file DataTableView.hxx.

Referenced by DataTableView(), and setCellProperties().

◆ m_aXValues

std::vector<OUString> chart::DataTableView::m_aXValues
private

Definition at line 49 of file DataTableView.hxx.

Referenced by createShapes(), and initializeValues().

◆ m_bAlignAxisValuesWithColumns

bool chart::DataTableView::m_bAlignAxisValuesWithColumns
private

Definition at line 54 of file DataTableView.hxx.

Referenced by createShapes().

◆ m_pDataSeriesValues

std::vector<std::vector<OUString> > chart::DataTableView::m_pDataSeriesValues
private

Definition at line 51 of file DataTableView.hxx.

Referenced by createShapes(), and initializeValues().

◆ m_pSeriesPlotterList

std::vector<VSeriesPlotter*> chart::DataTableView::m_pSeriesPlotterList
private

Definition at line 44 of file DataTableView.hxx.

Referenced by createShapes(), and initializeValues().

◆ m_xChartModel

rtl::Reference<::chart::ChartModel> chart::DataTableView::m_xChartModel
private

Definition at line 34 of file DataTableView.hxx.

Referenced by createShapes(), and setCellProperties().

◆ m_xComponentContext

css::uno::Reference<css::uno::XComponentContext> chart::DataTableView::m_xComponentContext
private

Definition at line 41 of file DataTableView.hxx.

Referenced by createShapes().

◆ m_xDataTableModel

rtl::Reference<DataTable> chart::DataTableView::m_xDataTableModel
private

◆ m_xTable

css::uno::Reference<css::table::XTable> chart::DataTableView::m_xTable
private

Definition at line 42 of file DataTableView.hxx.

Referenced by changePosition(), and createShapes().

◆ m_xTableShape

rtl::Reference<SvxTableShape> chart::DataTableView::m_xTableShape
private

Definition at line 38 of file DataTableView.hxx.

Referenced by createShapes().

◆ m_xTarget

rtl::Reference<SvxShapeGroupAnyD> chart::DataTableView::m_xTarget
private

Definition at line 36 of file DataTableView.hxx.

Referenced by changePosition(), createShapes(), and initializeShapes().


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