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...
 
const 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: \n LibreOffice 7.3.0

Definition at line 101 of file chartexport.hxx.

Member Typedef Documentation

◆ LabelsRangeMap

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

Definition at line 106 of file chartexport.hxx.

Member Function Documentation

◆ begin()

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

Definition at line 514 of file chartexport.cxx.

References maLabels.

◆ count()

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

Returns the count of labels stored.

Definition at line 489 of file chartexport.cxx.

References maLabels.

◆ empty()

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

Returns whether the container is empty or not.

Definition at line 484 of file chartexport.cxx.

References maLabels.

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

◆ end()

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

Definition at line 519 of file chartexport.cxx.

References maLabels.

◆ getRange()

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

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

Definition at line 499 of file chartexport.cxx.

References maRange.

◆ hasLabel()

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

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

Definition at line 494 of file chartexport.cxx.

References maLabels, and nIndex.

◆ setLabel()

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

Adds a new indexed label text.

Definition at line 509 of file chartexport.cxx.

References maLabels, and nIndex.

◆ setRange()

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

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

Definition at line 504 of file chartexport.cxx.

References maRange.

Member Data Documentation

◆ maLabels

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

Definition at line 127 of file chartexport.hxx.

Referenced by begin(), count(), empty(), end(), hasLabel(), and setLabel().

◆ maRange

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

Definition at line 126 of file chartexport.hxx.

Referenced by getRange(), and setRange().


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