LibreOffice Module oox (master)  1
Public Types | Public Member Functions | Private Attributes | List of all members
oox::drawingml::DataLabelsRange Class Reference

A helper container class to collect the chart data point labels and the address of the cell[range] from which the labels are sourced if that is the case. More...

#include <chartexport.hxx>

Public Types

typedef std::map< sal_Int32, OUString > LabelsRangeMap
 type of the internal container that stores the indexed label text. More...
 

Public Member Functions

bool empty () const
 Returns whether the container is empty or not. More...
 
size_t count () const
 Returns the count of labels stored. More...
 
bool hasLabel (sal_Int32 nIndex) const
 Indicates whether the container has a label with index specified by nIndex. More...
 
OUString getRange () const
 Returns the address of the cell[range] from which label contents are sourced. More...
 
void setRange (const OUString &rRange)
 Sets the address of the cell[range] from which label contents are sourced. More...
 
void setLabel (sal_Int32 nIndex, const OUString &rText)
 Adds a new indexed label text. More...
 
LabelsRangeMap::const_iterator begin () const
 
LabelsRangeMap::const_iterator end () const
 

Private Attributes

OUString maRange
 
LabelsRangeMap maLabels
 

Detailed Description

A helper container class to collect the chart data point labels and the address of the cell[range] from which the labels are sourced if that is the case.

This is then used to write the label texts under the extension tag <c15:datalabelsRange>.

Available since:
LibreOffice 7.3.0

Definition at line 101 of file chartexport.hxx.

Member Typedef Documentation

type of the internal container that stores the indexed label text.

Definition at line 106 of file chartexport.hxx.

Member Function Documentation

DataLabelsRange::LabelsRangeMap::const_iterator oox::drawingml::DataLabelsRange::begin ( ) const

Definition at line 522 of file chartexport.cxx.

References maLabels.

size_t oox::drawingml::DataLabelsRange::count ( ) const

Returns the count of labels stored.

Definition at line 497 of file chartexport.cxx.

References maLabels.

bool oox::drawingml::DataLabelsRange::empty ( ) const

Returns whether the container is empty or not.

Definition at line 492 of file chartexport.cxx.

References maLabels.

Referenced by oox::drawingml::ChartExport::exportSeries().

DataLabelsRange::LabelsRangeMap::const_iterator oox::drawingml::DataLabelsRange::end ( ) const

Definition at line 527 of file chartexport.cxx.

References maLabels.

OUString oox::drawingml::DataLabelsRange::getRange ( ) const

Returns the address of the cell[range] from which label contents are sourced.

Definition at line 507 of file chartexport.cxx.

References maRange.

bool oox::drawingml::DataLabelsRange::hasLabel ( sal_Int32  nIndex) const

Indicates whether the container has a label with index specified by nIndex.

Definition at line 502 of file chartexport.cxx.

References maLabels.

void oox::drawingml::DataLabelsRange::setLabel ( sal_Int32  nIndex,
const OUString &  rText 
)

Adds a new indexed label text.

Definition at line 517 of file chartexport.cxx.

References maLabels.

void oox::drawingml::DataLabelsRange::setRange ( const OUString &  rRange)

Sets the address of the cell[range] from which label contents are sourced.

Definition at line 512 of file chartexport.cxx.

References maRange.

Member Data Documentation

LabelsRangeMap oox::drawingml::DataLabelsRange::maLabels
private

Definition at line 127 of file chartexport.hxx.

OUString oox::drawingml::DataLabelsRange::maRange
private

Definition at line 126 of file chartexport.hxx.


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