LibreOffice Module sc (master) 1
|
#include <colorscale.hxx>
Public Member Functions | |
ScDataBarFormat (ScDocument *pDoc) | |
ScDataBarFormat (ScDocument *pDoc, const ScDataBarFormat &rFormat) | |
virtual ScColorFormat * | Clone (ScDocument *pDoc) const override |
virtual void | SetParent (ScConditionalFormat *pParent) override |
std::unique_ptr< ScDataBarInfo > | GetDataBarInfo (const ScAddress &rAddr) const |
void | SetDataBarData (ScDataBarFormatData *pData) |
const ScDataBarFormatData * | GetDataBarData () const |
ScDataBarFormatData * | GetDataBarData () |
virtual void | UpdateReference (sc::RefUpdateContext &rCxt) override |
virtual void | UpdateInsertTab (sc::RefUpdateInsertTabContext &rCxt) override |
virtual void | UpdateDeleteTab (sc::RefUpdateDeleteTabContext &rCxt) override |
virtual void | UpdateMoveTab (sc::RefUpdateMoveTabContext &rCxt) override |
virtual Type | GetType () const override |
void | EnsureSize () |
Makes sure that the mpFormatData does not contain valid entries. More... | |
![]() | |
ScColorFormat (ScDocument *pDoc) | |
virtual | ~ScColorFormat () override |
const ScRangeList & | GetRange () const |
virtual void | SetParent (ScConditionalFormat *pParent) override |
virtual void | startRendering () override |
virtual void | endRendering () override |
![]() | |
ScFormatEntry (ScDocument *pDoc) | |
virtual | ~ScFormatEntry () |
virtual Type | GetType () const =0 |
virtual void | UpdateReference (sc::RefUpdateContext &rCxt)=0 |
virtual void | UpdateInsertTab (sc::RefUpdateInsertTabContext &rCxt)=0 |
virtual void | UpdateDeleteTab (sc::RefUpdateDeleteTabContext &rCxt)=0 |
virtual void | UpdateMoveTab (sc::RefUpdateMoveTabContext &rCxt)=0 |
virtual ScFormatEntry * | Clone (ScDocument *pDoc) const =0 |
virtual void | SetParent (ScConditionalFormat *pNew)=0 |
bool | operator== (const ScFormatEntry &) const |
virtual bool | IsEqual (const ScFormatEntry &, bool bIgnoreSrcPos) const |
virtual void | startRendering () |
virtual void | endRendering () |
Private Member Functions | |
double | getMin (double nMin, double nMax) const |
double | getMax (double nMin, double nMax) const |
Private Attributes | |
std::unique_ptr< ScDataBarFormatData > | mpFormatData |
Additional Inherited Members | |
![]() | |
enum class | Type { Condition , ExtCondition , Colorscale , Databar , Iconset , Date } |
![]() | |
std::vector< double > & | getValues () const |
double | getMinValue () const |
double | getMaxValue () const |
![]() | |
ScConditionalFormat * | mpParent |
![]() | |
ScDocument * | mpDoc |
Definition at line 296 of file colorscale.hxx.
ScDataBarFormat::ScDataBarFormat | ( | ScDocument * | pDoc | ) |
Definition at line 714 of file colorscale.cxx.
Referenced by Clone().
ScDataBarFormat::ScDataBarFormat | ( | ScDocument * | pDoc, |
const ScDataBarFormat & | rFormat | ||
) |
Definition at line 720 of file colorscale.cxx.
|
overridevirtual |
Implements ScFormatEntry.
Definition at line 746 of file colorscale.cxx.
References ScDataBarFormat().
void ScDataBarFormat::EnsureSize | ( | ) |
Makes sure that the mpFormatData does not contain valid entries.
Should be called when it is not sure that the format is valid.
Definition at line 964 of file colorscale.cxx.
References mpFormatData.
ScDataBarFormatData * ScDataBarFormat::GetDataBarData | ( | ) |
Definition at line 736 of file colorscale.cxx.
References mpFormatData.
const ScDataBarFormatData * ScDataBarFormat::GetDataBarData | ( | ) | const |
Definition at line 741 of file colorscale.cxx.
References mpFormatData.
Referenced by ScXMLExport::ExportConditionalFormat(), ScDataBarEntryObj::getCoreObject(), ScDataBarFormatObj::getPropertyValue(), XclExpDataBar::SaveXml(), ScDataBarFrmtEntry::ScDataBarFrmtEntry(), ScDataBarFormatObj::setPropertyValue(), XclExpDataBar::XclExpDataBar(), and XclExpExtDataBar::XclExpExtDataBar().
std::unique_ptr< ScDataBarInfo > ScDataBarFormat::GetDataBarInfo | ( | const ScAddress & | rAddr | ) | const |
Definition at line 841 of file colorscale.cxx.
References databar::AUTOMATIC, COL_LIGHTRED(), COLORSCALE_AUTO, COLORSCALE_MAX, getMax(), ScColorFormat::getMaxValue(), getMin(), ScColorFormat::getMinValue(), ScRefCellValue::getValue(), ScRefCellValue::hasNumeric(), databar::MIDDLE, ScFormatEntry::mpDoc, mpFormatData, databar::NONE, and nValue.
Referenced by ScConditionalFormat::GetData().
|
private |
Definition at line 817 of file colorscale.cxx.
References COLORSCALE_AUTO, COLORSCALE_MAX, COLORSCALE_PERCENT, COLORSCALE_PERCENTILE, ScColorFormat::getValues(), and mpFormatData.
Referenced by GetDataBarInfo().
|
private |
Definition at line 790 of file colorscale.cxx.
References COLORSCALE_AUTO, COLORSCALE_MIN, COLORSCALE_PERCENT, COLORSCALE_PERCENTILE, ScColorFormat::getValues(), and mpFormatData.
Referenced by GetDataBarInfo().
|
overridevirtual |
Implements ScFormatEntry.
Definition at line 761 of file colorscale.cxx.
References ScFormatEntry::Databar.
void ScDataBarFormat::SetDataBarData | ( | ScDataBarFormatData * | pData | ) |
Definition at line 726 of file colorscale.cxx.
References mpFormatData, ScColorFormat::mpParent, and pData.
Referenced by ScDataBarFrmtEntry::createDatabarEntry(), ScXMLDataBarFormatContext::ScXMLDataBarFormatContext(), and oox::xls::DataBarRule::SetData().
|
overridevirtual |
Reimplemented from ScColorFormat.
Definition at line 751 of file colorscale.cxx.
References mpFormatData, and ScColorFormat::SetParent().
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
private |
Definition at line 328 of file colorscale.hxx.
Referenced by EnsureSize(), GetDataBarData(), GetDataBarInfo(), getMax(), getMin(), SetDataBarData(), SetParent(), UpdateDeleteTab(), UpdateInsertTab(), UpdateMoveTab(), and UpdateReference().