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  Type {
  Type::Condition,
  Type::ExtCondition,
  Type::Colorscale,
  Type::Databar,
  Type::Iconset,
  Type::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
 
virtual void startRendering () override
 
virtual void endRendering () override
 
- Public Member Functions inherited from ScFormatEntry
 ScFormatEntry (ScDocument *pDoc)
 
virtual ~ScFormatEntry ()
 
bool operator== (const ScFormatEntry &) const
 
virtual bool IsEqual (const ScFormatEntry &, bool bIgnoreSrcPos) const
 

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 358 of file colorscale.hxx.

Member Typedef Documentation

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

Definition at line 388 of file colorscale.hxx.

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

Definition at line 387 of file colorscale.hxx.

Constructor & Destructor Documentation

ScIconSetFormat::ScIconSetFormat ( ScDocument pDoc)

Definition at line 985 of file colorscale.cxx.

Referenced by Clone().

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

Definition at line 991 of file colorscale.cxx.

Member Function Documentation

ScIconSetFormat::iterator ScIconSetFormat::begin ( )
ScIconSetFormat::const_iterator ScIconSetFormat::begin ( ) const

Definition at line 1130 of file colorscale.cxx.

References mpFormatData.

double ScIconSetFormat::CalcValue ( double  nMin,
double  nMax,
const ScIconSetFormat::const_iterator itr 
) const
private
ScColorFormat * ScIconSetFormat::Clone ( ScDocument pDoc) const
overridevirtual

Implements ScFormatEntry.

Definition at line 997 of file colorscale.cxx.

References ScIconSetFormat().

ScIconSetFormat::iterator ScIconSetFormat::end ( )
ScIconSetFormat::const_iterator ScIconSetFormat::end ( ) const

Definition at line 1140 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 1422 of file colorscale.cxx.

References g_IconSetMap, i, and mpFormatData.

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

Definition at line 1405 of file colorscale.cxx.

References assert(), and getIconName().

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

Definition at line 1387 of file colorscale.cxx.

References assert(), and i.

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

const ScIconSetFormatData * ScIconSetFormat::GetIconSetData ( ) const
ScIconSetFormatData * ScIconSetFormat::GetIconSetData ( )

Definition at line 1017 of file colorscale.cxx.

References mpFormatData.

sal_Int32 ScIconSetFormat::getIconSetElements ( ScIconSetType  eType)
static

Definition at line 1378 of file colorscale.cxx.

References ScIconSetMap::nElements.

Referenced by ScCellShell::ExecuteEdit().

std::unique_ptr< ScIconSetInfo > ScIconSetFormat::GetIconSetInfo ( const ScAddress rAddr) const
const char * ScIconSetFormat::getIconSetName ( ScIconSetType  eType)
static
double ScIconSetFormat::GetMaxValue ( ) const
private
double ScIconSetFormat::GetMinValue ( ) const
private

Definition at line 1145 of file colorscale.cxx.

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

Referenced by GetIconSetInfo().

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

Implements ScFormatEntry.

Definition at line 1088 of file colorscale.cxx.

References ScFormatEntry::Iconset.

void ScIconSetFormat::SetIconSetData ( ScIconSetFormatData pData)
void ScIconSetFormat::SetParent ( ScConditionalFormat pParent)
overridevirtual

Reimplemented from ScColorFormat.

Definition at line 1002 of file colorscale.cxx.

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

Referenced by SetIconSetData().

size_t ScIconSetFormat::size ( ) const

Definition at line 1224 of file colorscale.cxx.

References mpFormatData.

Referenced by ScIconSetFormatObj::getPropertyValue().

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

Implements ScFormatEntry.

Definition at line 1109 of file colorscale.cxx.

References begin(), and end().

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

Implements ScFormatEntry.

Definition at line 1101 of file colorscale.cxx.

References begin(), and end().

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

Implements ScFormatEntry.

Definition at line 1117 of file colorscale.cxx.

References begin(), and end().

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

Implements ScFormatEntry.

Definition at line 1093 of file colorscale.cxx.

References begin(), and end().

Member Data Documentation

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 }
}

Definition at line 381 of file colorscale.hxx.

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

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

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