LibreOffice Module sc (master) 1
|
#include <colorscale.hxx>
Classes | |
struct | ScColorFormatCache |
Public Member Functions | |
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 () |
Protected Member Functions | |
std::vector< double > & | getValues () const |
double | getMinValue () const |
double | getMaxValue () const |
Protected Attributes | |
ScConditionalFormat * | mpParent |
Protected Attributes inherited from ScFormatEntry | |
ScDocument * | mpDoc |
Private Attributes | |
std::unique_ptr< ScColorFormatCache > | mpCache |
Additional Inherited Members | |
Public Types inherited from ScFormatEntry | |
enum class | Type { Condition , ExtCondition , Colorscale , Databar , Iconset , Date } |
Definition at line 220 of file colorscale.hxx.
ScColorFormat::ScColorFormat | ( | ScDocument * | pDoc | ) |
Definition at line 354 of file colorscale.cxx.
References mpParent.
|
overridevirtual |
Definition at line 360 of file colorscale.cxx.
|
overridevirtual |
Reimplemented from ScFormatEntry.
Definition at line 542 of file colorscale.cxx.
References mpCache.
std::vector< double > ScColorFormat::GetCache | ( | ) | const |
Definition at line 463 of file colorscale.cxx.
References mpCache.
Referenced by ScColorScaleFormat::ScColorScaleFormat().
|
protected |
Definition at line 529 of file colorscale.cxx.
References getValues().
Referenced by ScDataBarFormat::GetDataBarInfo(), ScColorScaleFormat::GetMaxValue(), ScIconSetFormat::GetMaxValue(), and updateValues().
|
protected |
Definition at line 521 of file colorscale.cxx.
References getValues().
Referenced by ScDataBarFormat::GetDataBarInfo(), ScColorScaleFormat::GetMinValue(), ScIconSetFormat::GetMinValue(), and updateValues().
const ScRangeList & ScColorFormat::GetRange | ( | ) | const |
Definition at line 458 of file colorscale.cxx.
References ScConditionalFormat::GetRange(), and mpParent.
Referenced by getValues(), XclExpColorScale::XclExpColorScale(), XclExpDataBar::XclExpDataBar(), and XclExpIconSet::XclExpIconSet().
|
protected |
Definition at line 475 of file colorscale.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), GetRange(), ScRefCellValue::getValue(), ScRefCellValue::hasNumeric(), i, ScDocument::MaxRow(), mpCache, ScFormatEntry::mpDoc, n, ScAddress::Row(), ScDocument::ShrinkToUsedDataArea(), ScRangeList::size(), and ScAddress::Tab().
Referenced by ScColorScaleFormat::CalcValue(), ScIconSetFormat::CalcValue(), ScDataBarFormat::getMax(), getMaxValue(), ScDataBarFormat::getMin(), and getMinValue().
void ScColorFormat::SetCache | ( | const std::vector< double > & | aValues | ) |
Definition at line 469 of file colorscale.cxx.
References mpCache.
Referenced by ScColorScaleFormat::ScColorScaleFormat().
|
overridevirtual |
Implements ScFormatEntry.
Reimplemented in ScColorScaleFormat, ScDataBarFormat, and ScIconSetFormat.
Definition at line 364 of file colorscale.cxx.
References mpParent.
Referenced by ScColorScaleFormat::SetParent(), ScDataBarFormat::SetParent(), and ScIconSetFormat::SetParent().
|
overridevirtual |
Reimplemented from ScFormatEntry.
Definition at line 537 of file colorscale.cxx.
References mpCache.
|
overridevirtual |
Reimplemented from ScFormatEntry.
Definition at line 547 of file colorscale.cxx.
References getMaxValue(), and getMinValue().
|
mutableprivate |
Definition at line 250 of file colorscale.hxx.
Referenced by endRendering(), GetCache(), getValues(), SetCache(), and startRendering().
|
protected |
Definition at line 242 of file colorscale.hxx.
Referenced by ScColorScaleFormat::AddEntry(), GetRange(), ScDataBarFormat::SetDataBarData(), ScIconSetFormat::SetIconSetData(), and SetParent().