LibreOffice Module sc (master) 1
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
ScColorFormat Class Reference

#include <colorscale.hxx>

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

Classes

struct  ScColorFormatCache
 

Public Member Functions

 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 ()
 

Protected Member Functions

std::vector< double > & getValues () const
 
double getMinValue () const
 
double getMaxValue () const
 

Protected Attributes

ScConditionalFormatmpParent
 
- Protected Attributes inherited from ScFormatEntry
ScDocumentmpDoc
 

Private Attributes

std::unique_ptr< ScColorFormatCachempCache
 

Additional Inherited Members

- Public Types inherited from ScFormatEntry
enum class  Type {
  Condition ,
  ExtCondition ,
  Colorscale ,
  Databar ,
  Iconset ,
  Date
}
 

Detailed Description

Definition at line 220 of file colorscale.hxx.

Constructor & Destructor Documentation

◆ ScColorFormat()

ScColorFormat::ScColorFormat ( ScDocument pDoc)

Definition at line 354 of file colorscale.cxx.

References mpParent.

◆ ~ScColorFormat()

ScColorFormat::~ScColorFormat ( )
overridevirtual

Definition at line 360 of file colorscale.cxx.

Member Function Documentation

◆ endRendering()

void ScColorFormat::endRendering ( )
overridevirtual

Reimplemented from ScFormatEntry.

Definition at line 542 of file colorscale.cxx.

References mpCache.

◆ GetCache()

std::vector< double > ScColorFormat::GetCache ( ) const

Definition at line 463 of file colorscale.cxx.

References mpCache.

Referenced by ScColorScaleFormat::ScColorScaleFormat().

◆ getMaxValue()

double ScColorFormat::getMaxValue ( ) const
protected

◆ getMinValue()

double ScColorFormat::getMinValue ( ) const
protected

◆ GetRange()

const ScRangeList & ScColorFormat::GetRange ( ) const

◆ getValues()

std::vector< double > & ScColorFormat::getValues ( ) const
protected

◆ SetCache()

void ScColorFormat::SetCache ( const std::vector< double > &  aValues)

Definition at line 469 of file colorscale.cxx.

References mpCache.

Referenced by ScColorScaleFormat::ScColorScaleFormat().

◆ SetParent()

void ScColorFormat::SetParent ( ScConditionalFormat pParent)
overridevirtual

◆ startRendering()

void ScColorFormat::startRendering ( )
overridevirtual

Reimplemented from ScFormatEntry.

Definition at line 537 of file colorscale.cxx.

References mpCache.

◆ updateValues()

void ScColorFormat::updateValues ( )
overridevirtual

Reimplemented from ScFormatEntry.

Definition at line 547 of file colorscale.cxx.

References getMaxValue(), and getMinValue().

Member Data Documentation

◆ mpCache

std::unique_ptr<ScColorFormatCache> ScColorFormat::mpCache
mutableprivate

Definition at line 250 of file colorscale.hxx.

Referenced by endRendering(), GetCache(), getValues(), SetCache(), and startRendering().

◆ mpParent

ScConditionalFormat* ScColorFormat::mpParent
protected

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