LibreOffice Module sc (master) 1
|
#include <colorscale.hxx>
Public Types | |
typedef ScIconSetFormatData::Entries_t::iterator | iterator |
typedef ScIconSetFormatData::Entries_t::const_iterator | const_iterator |
Public Types inherited from ScFormatEntry | |
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... | |
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 () |
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 | |
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 364 of file colorscale.hxx.
typedef ScIconSetFormatData::Entries_t::const_iterator ScIconSetFormat::const_iterator |
Definition at line 394 of file colorscale.hxx.
typedef ScIconSetFormatData::Entries_t::iterator ScIconSetFormat::iterator |
Definition at line 393 of file colorscale.hxx.
ScIconSetFormat::ScIconSetFormat | ( | ScDocument * | pDoc | ) |
Definition at line 1068 of file colorscale.cxx.
Referenced by Clone().
ScIconSetFormat::ScIconSetFormat | ( | ScDocument * | pDoc, |
const ScIconSetFormat & | rFormat | ||
) |
Definition at line 1074 of file colorscale.cxx.
ScIconSetFormat::iterator ScIconSetFormat::begin | ( | ) |
Definition at line 1212 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 1217 of file colorscale.cxx.
References mpFormatData.
|
private |
Definition at line 1256 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 1080 of file colorscale.cxx.
References ScIconSetFormat().
ScIconSetFormat::iterator ScIconSetFormat::end | ( | ) |
Definition at line 1222 of file colorscale.cxx.
References mpFormatData.
Referenced by GetIconSetInfo(), SetParent(), UpdateDeleteTab(), UpdateInsertTab(), UpdateMoveTab(), and UpdateReference().
ScIconSetFormat::const_iterator ScIconSetFormat::end | ( | ) | const |
Definition at line 1227 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 1509 of file colorscale.cxx.
References eType, g_IconSetMap, i, and mpFormatData.
|
static |
Definition at line 1492 of file colorscale.cxx.
References eType, getIconName(), and nIndex.
|
static |
Definition at line 1474 of file colorscale.cxx.
References eType, i, and nIndex.
Referenced by getBitmap(), and ScIconSetFrmtDataEntry::ScIconSetFrmtDataEntry().
ScIconSetFormatData * ScIconSetFormat::GetIconSetData | ( | ) |
Definition at line 1100 of file colorscale.cxx.
References mpFormatData.
const ScIconSetFormatData * ScIconSetFormat::GetIconSetData | ( | ) | const |
Definition at line 1105 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 1465 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 1110 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 1456 of file colorscale.cxx.
References eType, and ScIconSetMap::pName.
Referenced by ScXMLExport::ExportConditionalFormat(), XclExpIconSet::SaveXml(), XclExpExtIcon::XclExpExtIcon(), and XclExpExtIconSet::XclExpExtIconSet().
|
private |
Definition at line 1244 of file colorscale.cxx.
References COLORSCALE_FORMULA, COLORSCALE_VALUE, ScColorFormat::getMaxValue(), and mpFormatData.
Referenced by GetIconSetInfo().
|
private |
Definition at line 1232 of file colorscale.cxx.
References begin(), COLORSCALE_FORMULA, COLORSCALE_VALUE, and ScColorFormat::getMinValue().
Referenced by GetIconSetInfo().
|
overridevirtual |
Implements ScFormatEntry.
Definition at line 1175 of file colorscale.cxx.
References ScFormatEntry::Iconset.
void ScIconSetFormat::SetIconSetData | ( | ScIconSetFormatData * | pData | ) |
Definition at line 1094 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 1085 of file colorscale.cxx.
References begin(), end(), and ScColorFormat::SetParent().
Referenced by SetIconSetData().
size_t ScIconSetFormat::size | ( | ) | const |
Definition at line 1311 of file colorscale.cxx.
References mpFormatData.
Referenced by ScIconSetFormatObj::getPropertyValue().
|
overridevirtual |
Implements ScFormatEntry.
Definition at line 1196 of file colorscale.cxx.
|
overridevirtual |
Implements ScFormatEntry.
Definition at line 1188 of file colorscale.cxx.
|
overridevirtual |
Implements ScFormatEntry.
Definition at line 1204 of file colorscale.cxx.
|
overridevirtual |
Implements ScFormatEntry.
Definition at line 1180 of file colorscale.cxx.
|
static |
Definition at line 387 of file colorscale.hxx.
Referenced by EnsureSize(), IMPL_LINK_NOARG(), and ScXMLIconSetFormatContext::ScXMLIconSetFormatContext().
|
private |
Definition at line 415 of file colorscale.hxx.
Referenced by begin(), end(), EnsureSize(), GetIconSetData(), GetIconSetInfo(), GetMaxValue(), SetIconSetData(), and size().