LibreOffice Module sc (master) 1
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
ScIconSetFormat Class Referencefinal

#include <colorscale.hxx>

Inheritance diagram for ScIconSetFormat:
[legend]
Collaboration diagram for ScIconSetFormat:
[legend]

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 ScColorFormatClone (ScDocument *pDoc) const override
 
virtual void SetParent (ScConditionalFormat *pParent) override
 
std::unique_ptr< ScIconSetInfoGetIconSetInfo (const ScAddress &rAddr) const
 
void SetIconSetData (ScIconSetFormatData *pData)
 
const ScIconSetFormatDataGetIconSetData () const
 
ScIconSetFormatDataGetIconSetData ()
 
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 ScRangeListGetRange () 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 ScFormatEntryClone (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 BitmapExgetBitmap (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< ScIconSetFormatDatampFormatData
 

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
ScConditionalFormatmpParent
 
- Protected Attributes inherited from ScFormatEntry
ScDocumentmpDoc
 

Detailed Description

Definition at line 364 of file colorscale.hxx.

Member Typedef Documentation

◆ const_iterator

typedef ScIconSetFormatData::Entries_t::const_iterator ScIconSetFormat::const_iterator

Definition at line 394 of file colorscale.hxx.

◆ iterator

typedef ScIconSetFormatData::Entries_t::iterator ScIconSetFormat::iterator

Definition at line 393 of file colorscale.hxx.

Constructor & Destructor Documentation

◆ ScIconSetFormat() [1/2]

ScIconSetFormat::ScIconSetFormat ( ScDocument pDoc)

Definition at line 1068 of file colorscale.cxx.

Referenced by Clone().

◆ ScIconSetFormat() [2/2]

ScIconSetFormat::ScIconSetFormat ( ScDocument pDoc,
const ScIconSetFormat rFormat 
)

Definition at line 1074 of file colorscale.cxx.

Member Function Documentation

◆ begin() [1/2]

ScIconSetFormat::iterator ScIconSetFormat::begin ( )

◆ begin() [2/2]

ScIconSetFormat::const_iterator ScIconSetFormat::begin ( ) const

Definition at line 1217 of file colorscale.cxx.

References mpFormatData.

◆ CalcValue()

double ScIconSetFormat::CalcValue ( double  nMin,
double  nMax,
const ScIconSetFormat::const_iterator itr 
) const
private

◆ Clone()

ScColorFormat * ScIconSetFormat::Clone ( ScDocument pDoc) const
overridevirtual

Implements ScFormatEntry.

Definition at line 1080 of file colorscale.cxx.

References ScIconSetFormat().

◆ end() [1/2]

ScIconSetFormat::iterator ScIconSetFormat::end ( )

◆ end() [2/2]

ScIconSetFormat::const_iterator ScIconSetFormat::end ( ) const

Definition at line 1227 of file colorscale.cxx.

References mpFormatData.

◆ EnsureSize()

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.

◆ getBitmap()

BitmapEx & ScIconSetFormat::getBitmap ( sc::IconSetBitmapMap rBitmapMap,
ScIconSetType  eType,
sal_Int32  nIndex 
)
static

Definition at line 1492 of file colorscale.cxx.

References eType, getIconName(), and nIndex.

◆ getIconName()

OUString ScIconSetFormat::getIconName ( ScIconSetType  eType,
sal_Int32  nIndex 
)
static

Definition at line 1474 of file colorscale.cxx.

References eType, i, and nIndex.

Referenced by getBitmap(), and ScIconSetFrmtDataEntry::ScIconSetFrmtDataEntry().

◆ GetIconSetData() [1/2]

ScIconSetFormatData * ScIconSetFormat::GetIconSetData ( )

Definition at line 1100 of file colorscale.cxx.

References mpFormatData.

◆ GetIconSetData() [2/2]

const ScIconSetFormatData * ScIconSetFormat::GetIconSetData ( ) const

◆ getIconSetElements()

sal_Int32 ScIconSetFormat::getIconSetElements ( ScIconSetType  eType)
static

Definition at line 1465 of file colorscale.cxx.

References eType, and ScIconSetMap::nElements.

Referenced by ScCellShell::ExecuteEdit().

◆ GetIconSetInfo()

std::unique_ptr< ScIconSetInfo > ScIconSetFormat::GetIconSetInfo ( const ScAddress rAddr) const

◆ getIconSetName()

const char * ScIconSetFormat::getIconSetName ( ScIconSetType  eType)
static

◆ GetMaxValue()

double ScIconSetFormat::GetMaxValue ( ) const
private

◆ GetMinValue()

double ScIconSetFormat::GetMinValue ( ) const
private

Definition at line 1232 of file colorscale.cxx.

References begin(), COLORSCALE_FORMULA, COLORSCALE_VALUE, and ScColorFormat::getMinValue().

Referenced by GetIconSetInfo().

◆ GetType()

ScFormatEntry::Type ScIconSetFormat::GetType ( ) const
overridevirtual

Implements ScFormatEntry.

Definition at line 1175 of file colorscale.cxx.

References ScFormatEntry::Iconset.

◆ SetIconSetData()

void ScIconSetFormat::SetIconSetData ( ScIconSetFormatData pData)

◆ SetParent()

void ScIconSetFormat::SetParent ( ScConditionalFormat pParent)
overridevirtual

Reimplemented from ScColorFormat.

Definition at line 1085 of file colorscale.cxx.

References begin(), end(), and ScColorFormat::SetParent().

Referenced by SetIconSetData().

◆ size()

size_t ScIconSetFormat::size ( ) const

Definition at line 1311 of file colorscale.cxx.

References mpFormatData.

Referenced by ScIconSetFormatObj::getPropertyValue().

◆ UpdateDeleteTab()

void ScIconSetFormat::UpdateDeleteTab ( sc::RefUpdateDeleteTabContext rCxt)
overridevirtual

Implements ScFormatEntry.

Definition at line 1196 of file colorscale.cxx.

References begin(), and end().

◆ UpdateInsertTab()

void ScIconSetFormat::UpdateInsertTab ( sc::RefUpdateInsertTabContext rCxt)
overridevirtual

Implements ScFormatEntry.

Definition at line 1188 of file colorscale.cxx.

References begin(), and end().

◆ UpdateMoveTab()

void ScIconSetFormat::UpdateMoveTab ( sc::RefUpdateMoveTabContext rCxt)
overridevirtual

Implements ScFormatEntry.

Definition at line 1204 of file colorscale.cxx.

References begin(), and end().

◆ UpdateReference()

void ScIconSetFormat::UpdateReference ( sc::RefUpdateContext rCxt)
overridevirtual

Implements ScFormatEntry.

Definition at line 1180 of file colorscale.cxx.

References begin(), and end().

Member Data Documentation

◆ g_IconSetMap

const ScIconSetMap ScIconSetFormat::g_IconSetMap
static
Initial value:
= {
{ "3Arrows", IconSet_3Arrows, 3 },
{ "3ArrowsGray", IconSet_3ArrowsGray, 3 },
{ "3Flags", IconSet_3Flags, 3 },
{ "3TrafficLights1", IconSet_3TrafficLights1, 3 },
{ "3TrafficLights2", IconSet_3TrafficLights2, 3 },
{ "3Signs", IconSet_3Signs, 3 },
{ "3Symbols", IconSet_3Symbols, 3 },
{ "3Symbols2", IconSet_3Symbols2, 3 },
{ "3Smilies", IconSet_3Smilies, 3 },
{ "3ColorSmilies", IconSet_3ColorSmilies, 3 },
{ "3Stars", IconSet_3Stars, 3 },
{ "3Triangles", IconSet_3Triangles, 3 },
{ "4Arrows", IconSet_4Arrows, 4 },
{ "4ArrowsGray", IconSet_4ArrowsGray, 4 },
{ "4RedToBlack", IconSet_4RedToBlack, 4 },
{ "4Rating", IconSet_4Rating, 4 },
{ "4TrafficLights", IconSet_4TrafficLights, 4 },
{ "5Arrows", IconSet_5Arrows, 5 },
{ "5ArrowsGray", IconSet_5ArrowsGray, 5 },
{ "5Rating", IconSet_5Ratings, 5 },
{ "5Quarters", IconSet_5Quarters, 5 },
{ "5Boxes", IconSet_5Boxes, 5 },
{ nullptr, IconSet_3Arrows, 0 }
}
@ IconSet_3Arrows
Definition: colorscale.hxx:190
@ IconSet_3TrafficLights1
Definition: colorscale.hxx:193
@ IconSet_4Arrows
Definition: colorscale.hxx:202
@ IconSet_3Symbols2
Definition: colorscale.hxx:197
@ IconSet_3ArrowsGray
Definition: colorscale.hxx:191
@ IconSet_3Symbols
Definition: colorscale.hxx:196
@ IconSet_3Triangles
Definition: colorscale.hxx:200
@ IconSet_4TrafficLights
Definition: colorscale.hxx:206
@ IconSet_5Arrows
Definition: colorscale.hxx:207
@ IconSet_4Rating
Definition: colorscale.hxx:205
@ IconSet_3ColorSmilies
Definition: colorscale.hxx:201
@ IconSet_3Signs
Definition: colorscale.hxx:195
@ IconSet_5Quarters
Definition: colorscale.hxx:210
@ IconSet_5Boxes
Definition: colorscale.hxx:211
@ IconSet_5ArrowsGray
Definition: colorscale.hxx:208
@ IconSet_3TrafficLights2
Definition: colorscale.hxx:194
@ IconSet_4ArrowsGray
Definition: colorscale.hxx:203
@ IconSet_5Ratings
Definition: colorscale.hxx:209
@ IconSet_3Smilies
Definition: colorscale.hxx:198
@ IconSet_4RedToBlack
Definition: colorscale.hxx:204
@ IconSet_3Flags
Definition: colorscale.hxx:192
@ IconSet_3Stars
Definition: colorscale.hxx:199

Definition at line 387 of file colorscale.hxx.

Referenced by EnsureSize(), IMPL_LINK_NOARG(), and ScXMLIconSetFormatContext::ScXMLIconSetFormatContext().

◆ mpFormatData

std::unique_ptr<ScIconSetFormatData> ScIconSetFormat::mpFormatData
private

The documentation for this class was generated from the following files: