LibreOffice Module sc (master) 1
Public Member Functions | Public Attributes | List of all members
ScDataBarFormatData Struct Reference

#include <colorscale.hxx>

Collaboration diagram for ScDataBarFormatData:
[legend]

Public Member Functions

 ScDataBarFormatData ()
 
 ScDataBarFormatData (const ScDataBarFormatData &r)
 

Public Attributes

Color maPositiveColor
 Color for all Positive Values and if mbNeg == false also for negative ones. More...
 
std::optional< ColormxNegativeColor
 Specifies the color for negative values. More...
 
Color maAxisColor
 Color of the axis if used Default color is black. More...
 
bool mbGradient
 Paint the bars with gradient. More...
 
bool mbNeg
 Use different color for negative values. More...
 
databar::ScAxisPosition meAxisPosition
 Paint negative values into the same direction as positive values If false we will set the mid point according to the upper and lower limit and negative values are painted to the left and positive to the right. More...
 
double mnMinLength
 Minimal length of a databar in percent of cell length Value has to be in the range [0, 100) More...
 
double mnMaxLength
 Maximal length of a databar in percent of cell length Value has to be in the range (0, 100]. More...
 
bool mbOnlyBar
 If TRUE we only show the bar and not the value. More...
 
std::unique_ptr< ScColorScaleEntry, o3tl::default_delete< ScColorScaleEntry > > mpUpperLimit
 
std::unique_ptr< ScColorScaleEntry, o3tl::default_delete< ScColorScaleEntry > > mpLowerLimit
 

Detailed Description

Definition at line 95 of file colorscale.hxx.

Constructor & Destructor Documentation

◆ ScDataBarFormatData() [1/2]

ScDataBarFormatData::ScDataBarFormatData ( )
inline

Definition at line 97 of file colorscale.hxx.

References AUTOMATIC, and COL_BLACK().

◆ ScDataBarFormatData() [2/2]

ScDataBarFormatData::ScDataBarFormatData ( const ScDataBarFormatData r)
inline

Definition at line 109 of file colorscale.hxx.

References mpLowerLimit, mpUpperLimit, and mxNegativeColor.

Member Data Documentation

◆ maAxisColor

Color ScDataBarFormatData::maAxisColor

◆ maPositiveColor

Color ScDataBarFormatData::maPositiveColor

◆ mbGradient

bool ScDataBarFormatData::mbGradient

◆ mbNeg

bool ScDataBarFormatData::mbNeg

Use different color for negative values.

Color is specified in mpNegativeColor and defaults to 0xFF0000

Default is true

Definition at line 159 of file colorscale.hxx.

Referenced by ScXMLExport::ExportConditionalFormat(), oox::xls::ExtCfDataBarRule::finalizeImport(), ScDataBarFormatObj::getPropertyValue(), ScXMLDataBarFormatContext::ScXMLDataBarFormatContext(), and ScDataBarFormatObj::setPropertyValue().

◆ mbOnlyBar

bool ScDataBarFormatData::mbOnlyBar

◆ meAxisPosition

databar::ScAxisPosition ScDataBarFormatData::meAxisPosition

Paint negative values into the same direction as positive values If false we will set the mid point according to the upper and lower limit and negative values are painted to the left and positive to the right.

Default is false

Definition at line 167 of file colorscale.hxx.

Referenced by ScXMLExport::ExportConditionalFormat(), oox::xls::ExtCfDataBarRule::finalizeImport(), ScDataBarFormatObj::getPropertyValue(), ScXMLDataBarFormatContext::ScXMLDataBarFormatContext(), ScDataBarFormatObj::setPropertyValue(), and XclExpExtDataBar::XclExpExtDataBar().

◆ mnMaxLength

double ScDataBarFormatData::mnMaxLength

Maximal length of a databar in percent of cell length Value has to be in the range (0, 100].

Definition at line 177 of file colorscale.hxx.

Referenced by ScXMLExport::ExportConditionalFormat(), XclExpDataBar::SaveXml(), ScXMLDataBarFormatContext::ScXMLDataBarFormatContext(), ScDataBarFormatObj::setPropertyValue(), and XclExpExtDataBar::XclExpExtDataBar().

◆ mnMinLength

double ScDataBarFormatData::mnMinLength

Minimal length of a databar in percent of cell length Value has to be in the range [0, 100)

Definition at line 172 of file colorscale.hxx.

Referenced by ScXMLExport::ExportConditionalFormat(), XclExpDataBar::SaveXml(), ScXMLDataBarFormatContext::ScXMLDataBarFormatContext(), ScDataBarFormatObj::setPropertyValue(), and XclExpExtDataBar::XclExpExtDataBar().

◆ mpLowerLimit

std::unique_ptr<ScColorScaleEntry, o3tl::default_delete<ScColorScaleEntry> > ScDataBarFormatData::mpLowerLimit

◆ mpUpperLimit

std::unique_ptr<ScColorScaleEntry, o3tl::default_delete<ScColorScaleEntry> > ScDataBarFormatData::mpUpperLimit

◆ mxNegativeColor

std::optional<Color> ScDataBarFormatData::mxNegativeColor

Specifies the color for negative values.

This is optional and depends on mbNeg.

Default color is 0xFF0000, this value is not set

Definition at line 140 of file colorscale.hxx.

Referenced by ScXMLExport::ExportConditionalFormat(), oox::xls::ExtCfDataBarRule::finalizeImport(), ScDataBarFormatObj::getPropertyValue(), ScDataBarFormatData(), ScXMLDataBarFormatContext::ScXMLDataBarFormatContext(), ScDataBarFormatObj::setPropertyValue(), and XclExpExtDataBar::XclExpExtDataBar().


The documentation for this struct was generated from the following file: