LibreOffice Module sc (master) 1
|
#include <colorscale.hxx>
Public Types | |
typedef ScIconSetFormatData::Entries_t::iterator | iterator |
typedef ScIconSetFormatData::Entries_t::const_iterator | const_iterator |
![]() | |
enum class | Type { Condition , ExtCondition , Colorscale , Databar , Iconset , Date } |
Public Member Functions | |
ScIconSetFormat (ScDocument *pDoc) | |
ScIconSetFormat (ScDocument *pDoc, const ScIconSetFormat &rFormat) | |
virtual ScColorFormat * | Clone (ScDocument *pDoc) const override |
virtual void | SetParent (ScConditionalFormat *pParent) override |
std::unique_ptr< ScIconSetInfo > | GetIconSetInfo (const ScAddress &rAddr) const |
void | SetIconSetData (ScIconSetFormatData *pData) |
const ScIconSetFormatData * | GetIconSetData () const |
ScIconSetFormatData * | GetIconSetData () |
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 |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
size_t | size () const |
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 () |
Static Public Member Functions | |
static const char * | getIconSetName (ScIconSetType eType) |
static sal_Int32 | getIconSetElements (ScIconSetType eType) |
static OUString | getIconName (ScIconSetType eType, sal_Int32 nIndex) |
static BitmapEx & | getBitmap (sc::IconSetBitmapMap &rBitmapMap, ScIconSetType eType, sal_Int32 nIndex) |
Static Public Attributes | |
static const ScIconSetMap | g_IconSetMap [] |
Private Member Functions | |
double | GetMinValue () const |
double | GetMaxValue () const |
double | CalcValue (double nMin, double nMax, const ScIconSetFormat::const_iterator &itr) const |
Private Attributes | |
std::unique_ptr< ScIconSetFormatData > | mpFormatData |
Additional Inherited Members | |
![]() | |
std::vector< double > & | getValues () const |
double | getMinValue () const |
double | getMaxValue () const |
![]() | |
ScConditionalFormat * | mpParent |
![]() | |
ScDocument * | mpDoc |
Definition at line 357 of file colorscale.hxx.
typedef ScIconSetFormatData::Entries_t::const_iterator ScIconSetFormat::const_iterator |
Definition at line 387 of file colorscale.hxx.
typedef ScIconSetFormatData::Entries_t::iterator ScIconSetFormat::iterator |
Definition at line 386 of file colorscale.hxx.
ScIconSetFormat::ScIconSetFormat | ( | ScDocument * | pDoc | ) |
Definition at line 990 of file colorscale.cxx.
Referenced by Clone().
ScIconSetFormat::ScIconSetFormat | ( | ScDocument * | pDoc, |
const ScIconSetFormat & | rFormat | ||
) |
Definition at line 996 of file colorscale.cxx.
ScIconSetFormat::iterator ScIconSetFormat::begin | ( | ) |
Definition at line 1134 of file colorscale.cxx.
References mpFormatData.
Referenced by GetIconSetInfo(), GetMinValue(), SetParent(), UpdateDeleteTab(), UpdateInsertTab(), UpdateMoveTab(), and UpdateReference().
ScIconSetFormat::const_iterator ScIconSetFormat::begin | ( | ) | const |
Definition at line 1139 of file colorscale.cxx.
References mpFormatData.
|
private |
Definition at line 1178 of file colorscale.cxx.
References COLORSCALE_MAX, COLORSCALE_MIN, COLORSCALE_PERCENT, COLORSCALE_PERCENTILE, and ScColorFormat::getValues().
Referenced by GetIconSetInfo().
|
overridevirtual |
Implements ScFormatEntry.
Definition at line 1002 of file colorscale.cxx.
References ScIconSetFormat().
ScIconSetFormat::iterator ScIconSetFormat::end | ( | ) |
Definition at line 1144 of file colorscale.cxx.
References mpFormatData.
Referenced by GetIconSetInfo(), SetParent(), UpdateDeleteTab(), UpdateInsertTab(), UpdateMoveTab(), and UpdateReference().
ScIconSetFormat::const_iterator ScIconSetFormat::end | ( | ) | const |
Definition at line 1149 of file colorscale.cxx.
References mpFormatData.
void ScIconSetFormat::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 1431 of file colorscale.cxx.
References eType, g_IconSetMap, i, and mpFormatData.
|
static |
Definition at line 1414 of file colorscale.cxx.
References eType, getIconName(), and nIndex.
|
static |
Definition at line 1396 of file colorscale.cxx.
References eType, i, and nIndex.
Referenced by getBitmap(), and ScIconSetFrmtDataEntry::ScIconSetFrmtDataEntry().
ScIconSetFormatData * ScIconSetFormat::GetIconSetData | ( | ) |
Definition at line 1022 of file colorscale.cxx.
References mpFormatData.
const ScIconSetFormatData * ScIconSetFormat::GetIconSetData | ( | ) | const |
Definition at line 1027 of file colorscale.cxx.
References mpFormatData.
Referenced by ScXMLExport::ExportConditionalFormat(), ScIconSetEntryObj::getCoreObject(), ScIconSetFormatObj::getPropertyValue(), XclExpIconSet::SaveXml(), ScIconSetFrmtEntry::ScIconSetFrmtEntry(), ScIconSetFormatObj::setPropertyValue(), XclExpCondfmt::XclExpCondfmt(), XclExpExtConditionalFormatting::XclExpExtConditionalFormatting(), and XclExpExtIconSet::XclExpExtIconSet().
|
static |
Definition at line 1387 of file colorscale.cxx.
References eType, and ScIconSetMap::nElements.
Referenced by ScCellShell::ExecuteEdit().
std::unique_ptr< ScIconSetInfo > ScIconSetFormat::GetIconSetInfo | ( | const ScAddress & | rAddr | ) | const |
Definition at line 1032 of file colorscale.cxx.
References ATTR_FONT_HEIGHT(), begin(), CalcValue(), end(), ScPatternAttr::GetItem(), GetMaxValue(), GetMinValue(), ScDocument::GetPattern(), ScRefCellValue::getValue(), ScRefCellValue::hasNumeric(), ScFormatEntry::mpDoc, mpFormatData, and nIndex.
Referenced by ScConditionalFormat::GetData().
|
static |
Definition at line 1378 of file colorscale.cxx.
References eType, and ScIconSetMap::pName.
Referenced by ScXMLExport::ExportConditionalFormat(), XclExpIconSet::SaveXml(), XclExpExtIcon::XclExpExtIcon(), and XclExpExtIconSet::XclExpExtIconSet().
|
private |
Definition at line 1166 of file colorscale.cxx.
References COLORSCALE_FORMULA, COLORSCALE_VALUE, ScColorFormat::getMaxValue(), and mpFormatData.
Referenced by GetIconSetInfo().
|
private |
Definition at line 1154 of file colorscale.cxx.
References begin(), COLORSCALE_FORMULA, COLORSCALE_VALUE, and ScColorFormat::getMinValue().
Referenced by GetIconSetInfo().
|
overridevirtual |
Implements ScFormatEntry.
Definition at line 1097 of file colorscale.cxx.
References ScFormatEntry::Iconset.
void ScIconSetFormat::SetIconSetData | ( | ScIconSetFormatData * | pData | ) |
Definition at line 1016 of file colorscale.cxx.
References mpFormatData, ScColorFormat::mpParent, and SetParent().
Referenced by ScCellShell::ExecuteEdit(), ScIconSetFrmtEntry::GetEntry(), ScXMLIconSetFormatContext::ScXMLIconSetFormatContext(), and oox::xls::IconSetRule::SetData().
|
overridevirtual |
Reimplemented from ScColorFormat.
Definition at line 1007 of file colorscale.cxx.
References begin(), end(), and ScColorFormat::SetParent().
Referenced by SetIconSetData().
size_t ScIconSetFormat::size | ( | ) | const |
Definition at line 1233 of file colorscale.cxx.
References mpFormatData.
Referenced by ScIconSetFormatObj::getPropertyValue().
|
overridevirtual |
Implements ScFormatEntry.
Definition at line 1118 of file colorscale.cxx.
|
overridevirtual |
Implements ScFormatEntry.
Definition at line 1110 of file colorscale.cxx.
|
overridevirtual |
Implements ScFormatEntry.
Definition at line 1126 of file colorscale.cxx.
|
overridevirtual |
Implements ScFormatEntry.
Definition at line 1102 of file colorscale.cxx.
|
static |
Definition at line 380 of file colorscale.hxx.
Referenced by EnsureSize(), IMPL_LINK_NOARG(), and ScXMLIconSetFormatContext::ScXMLIconSetFormatContext().
|
private |
Definition at line 408 of file colorscale.hxx.
Referenced by begin(), end(), EnsureSize(), GetIconSetData(), GetIconSetInfo(), GetMaxValue(), SetIconSetData(), and size().