LibreOffice Module sc (master)
1
|
#include <colorscale.hxx>
Public Member Functions | |
ScColorScaleFormat (ScDocument *pDoc) | |
ScColorScaleFormat (ScDocument *pDoc, const ScColorScaleFormat &rFormat) | |
virtual | ~ScColorScaleFormat () override |
virtual ScColorFormat * | Clone (ScDocument *pDoc) const override |
virtual void | SetParent (ScConditionalFormat *pParent) override |
std::optional< Color > | GetColor (const ScAddress &rAddr) const |
void | AddEntry (ScColorScaleEntry *pEntry) |
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 |
ScColorScaleEntries::iterator | begin () |
ScColorScaleEntries::const_iterator | begin () const |
ScColorScaleEntries::iterator | end () |
ScColorScaleEntries::const_iterator | end () const |
ScColorScaleEntry * | GetEntry (size_t nPos) |
const ScColorScaleEntry * | GetEntry (size_t nPos) const |
size_t | size () const |
void | EnsureSize () |
Makes sure that the maColorScales contain at least 2 entries. More... | |
![]() | |
ScColorFormat (ScDocument *pDoc) | |
virtual | ~ScColorFormat () override |
const ScRangeList & | GetRange () const |
virtual void | startRendering () override |
virtual void | endRendering () override |
![]() | |
ScFormatEntry (ScDocument *pDoc) | |
virtual | ~ScFormatEntry () |
bool | operator== (const ScFormatEntry &) const |
virtual bool | IsEqual (const ScFormatEntry &, bool bIgnoreSrcPos) const |
Private Member Functions | |
double | GetMinValue () const |
double | GetMaxValue () const |
void | calcMinMax (double &nMin, double &nMax) const |
double | CalcValue (double nMin, double nMax, const ScColorScaleEntries::const_iterator &rItr) const |
Private Attributes | |
ScColorScaleEntries | maColorScales |
Additional Inherited Members | |
![]() | |
enum | Type { Type::Condition, Type::ExtCondition, Type::Colorscale, Type::Databar, Type::Iconset, Type::Date } |
![]() | |
std::vector< double > & | getValues () const |
double | getMinValue () const |
double | getMaxValue () const |
![]() | |
ScConditionalFormat * | mpParent |
![]() | |
ScDocument * | mpDoc |
Definition at line 253 of file colorscale.hxx.
ScColorScaleFormat::ScColorScaleFormat | ( | ScDocument * | pDoc | ) |
Definition at line 370 of file colorscale.cxx.
Referenced by Clone().
ScColorScaleFormat::ScColorScaleFormat | ( | ScDocument * | pDoc, |
const ScColorScaleFormat & | rFormat | ||
) |
Definition at line 375 of file colorscale.cxx.
References maColorScales.
|
overridevirtual |
Definition at line 389 of file colorscale.cxx.
void ScColorScaleFormat::AddEntry | ( | ScColorScaleEntry * | pEntry | ) |
Definition at line 402 of file colorscale.cxx.
References maColorScales, and ScColorFormat::mpParent.
Referenced by oox::xls::ColorScaleRule::AddEntries(), ScColorScale2FrmtEntry::createColorscaleEntry(), ScColorScale3FrmtEntry::createColorscaleEntry(), and ScXMLColorScaleFormatEntryContext::ScXMLColorScaleFormatEntryContext().
ScColorScaleEntries::iterator ScColorScaleFormat::begin | ( | ) |
Definition at line 660 of file colorscale.cxx.
References maColorScales.
Referenced by GetColor(), ScColorScale2FrmtEntry::ScColorScale2FrmtEntry(), ScColorScale3FrmtEntry::ScColorScale3FrmtEntry(), SetParent(), UpdateDeleteTab(), UpdateInsertTab(), UpdateMoveTab(), and UpdateReference().
ScColorScaleEntries::const_iterator ScColorScaleFormat::begin | ( | ) | const |
Definition at line 665 of file colorscale.cxx.
References maColorScales.
|
private |
Definition at line 432 of file colorscale.cxx.
References GetMaxValue(), and GetMinValue().
Referenced by GetColor().
|
private |
Definition at line 560 of file colorscale.cxx.
References COLORSCALE_MAX, COLORSCALE_MIN, COLORSCALE_PERCENT, COLORSCALE_PERCENTILE, and ScColorFormat::getValues().
Referenced by GetColor().
|
overridevirtual |
Implements ScFormatEntry.
Definition at line 384 of file colorscale.cxx.
References ScColorScaleFormat().
ScColorScaleEntries::iterator ScColorScaleFormat::end | ( | ) |
Definition at line 670 of file colorscale.cxx.
References maColorScales.
Referenced by GetColor(), SetParent(), UpdateDeleteTab(), UpdateInsertTab(), UpdateMoveTab(), and UpdateReference().
ScColorScaleEntries::const_iterator ScColorScaleFormat::end | ( | ) | const |
Definition at line 675 of file colorscale.cxx.
References maColorScales.
void ScColorScaleFormat::EnsureSize | ( | ) |
Makes sure that the maColorScales contain at least 2 entries.
Should be called when it is not sure that the format is valid.
Definition at line 701 of file colorscale.cxx.
References maColorScales.
Definition at line 589 of file colorscale.cxx.
References begin(), calcMinMax(), CalcValue(), end(), ScRefCellValue::getValue(), ScRefCellValue::hasNumeric(), maColorScales, and ScFormatEntry::mpDoc.
Referenced by ScConditionalFormat::GetData().
ScColorScaleEntry * ScColorScaleFormat::GetEntry | ( | size_t | nPos | ) |
Definition at line 680 of file colorscale.cxx.
References maColorScales.
Referenced by ScColorScaleEntryObj::getCoreObject().
const ScColorScaleEntry * ScColorScaleFormat::GetEntry | ( | size_t | nPos | ) | const |
Definition at line 688 of file colorscale.cxx.
References maColorScales.
|
private |
Definition at line 420 of file colorscale.cxx.
References COLORSCALE_FORMULA, COLORSCALE_VALUE, ScColorFormat::getMaxValue(), and maColorScales.
Referenced by calcMinMax().
|
private |
Definition at line 408 of file colorscale.cxx.
References COLORSCALE_FORMULA, COLORSCALE_VALUE, ScColorFormat::getMinValue(), and maColorScales.
Referenced by calcMinMax().
|
overridevirtual |
Implements ScFormatEntry.
Definition at line 655 of file colorscale.cxx.
References ScFormatEntry::Colorscale.
|
overridevirtual |
Reimplemented from ScColorFormat.
Definition at line 393 of file colorscale.cxx.
References begin(), end(), and ScColorFormat::SetParent().
size_t ScColorScaleFormat::size | ( | ) | const |
Definition at line 696 of file colorscale.cxx.
References maColorScales.
Referenced by ScColorScaleEntryObj::getCoreObject(), ScColorScaleFormatObj::getPropertyValue(), ScCondFormatList::init(), and ScColorScale3FrmtEntry::ScColorScale3FrmtEntry().
|
overridevirtual |
Implements ScFormatEntry.
Definition at line 643 of file colorscale.cxx.
|
overridevirtual |
Implements ScFormatEntry.
Definition at line 637 of file colorscale.cxx.
|
overridevirtual |
Implements ScFormatEntry.
Definition at line 649 of file colorscale.cxx.
|
overridevirtual |
Implements ScFormatEntry.
Definition at line 631 of file colorscale.cxx.
|
private |
Definition at line 256 of file colorscale.hxx.
Referenced by AddEntry(), begin(), end(), EnsureSize(), GetColor(), GetEntry(), GetMaxValue(), GetMinValue(), ScColorScaleFormat(), and size().