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 () |
bool | IsEqual (const ScFormatEntry &r, bool bIgnoreSrcPos) const override |
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... | |
Public Member Functions inherited from ScColorFormat | |
ScColorFormat (ScDocument *pDoc) | |
virtual | ~ScColorFormat () override |
const ScRangeList & | GetRange () const |
void | SetCache (const std::vector< double > &aValues) |
std::vector< double > | GetCache () const |
virtual void | SetParent (ScConditionalFormat *pParent) override |
virtual void | startRendering () override |
virtual void | endRendering () override |
virtual void | updateValues () override |
Public Member Functions inherited from ScFormatEntry | |
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 () |
virtual void | updateValues () |
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 | |
Public Types inherited from ScFormatEntry | |
enum class | Type { Condition , ExtCondition , Colorscale , Databar , Iconset , Date } |
Protected Member Functions inherited from ScColorFormat | |
std::vector< double > & | getValues () const |
double | getMinValue () const |
double | getMaxValue () const |
Protected Attributes inherited from ScColorFormat | |
ScConditionalFormat * | mpParent |
Protected Attributes inherited from ScFormatEntry | |
ScDocument * | mpDoc |
Definition at line 301 of file colorscale.hxx.
ScDataBarFormat::ScDataBarFormat | ( | ScDocument * | pDoc | ) |
Definition at line 757 of file colorscale.cxx.
Referenced by Clone().
ScDataBarFormat::ScDataBarFormat | ( | ScDocument * | pDoc, |
const ScDataBarFormat & | rFormat | ||
) |
Definition at line 763 of file colorscale.cxx.
|
overridevirtual |
Implements ScFormatEntry.
Definition at line 789 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 1042 of file colorscale.cxx.
References mpFormatData.
ScDataBarFormatData * ScDataBarFormat::GetDataBarData | ( | ) |
Definition at line 779 of file colorscale.cxx.
References mpFormatData.
const ScDataBarFormatData * ScDataBarFormat::GetDataBarData | ( | ) | const |
Definition at line 784 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 919 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 895 of file colorscale.cxx.
References COLORSCALE_AUTO, COLORSCALE_MAX, COLORSCALE_PERCENT, COLORSCALE_PERCENTILE, ScColorFormat::getValues(), and mpFormatData.
Referenced by GetDataBarInfo().
|
private |
Definition at line 868 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 804 of file colorscale.cxx.
References ScFormatEntry::Databar.
Referenced by IsEqual().
|
overridevirtual |
Reimplemented from ScFormatEntry.
Definition at line 809 of file colorscale.cxx.
References ScFormatEntry::GetType(), GetType(), and mpFormatData.
void ScDataBarFormat::SetDataBarData | ( | ScDataBarFormatData * | pData | ) |
Definition at line 769 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 794 of file colorscale.cxx.
References mpFormatData, and ScColorFormat::SetParent().
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
private |
Definition at line 335 of file colorscale.hxx.
Referenced by EnsureSize(), GetDataBarData(), GetDataBarInfo(), getMax(), getMin(), IsEqual(), SetDataBarData(), SetParent(), UpdateDeleteTab(), UpdateInsertTab(), UpdateMoveTab(), and UpdateReference().