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

#include <colorscale.hxx>

Collaboration diagram for ScColorScaleEntry:

Public Member Functions

 ScColorScaleEntry (double nVal, const Color &rCol, ScColorScaleEntryType eType=COLORSCALE_VALUE)
 ScColorScaleEntry ()
 ScColorScaleEntry (const ScColorScaleEntry &rEntry)
 ScColorScaleEntry (ScDocument *pDoc, const ScColorScaleEntry &rEntry)
const ColorGetColor () const
void SetColor (const Color &)
double GetValue () const
void SetValue (double nValue)
void SetFormula (const OUString &rFormula, ScDocument &rDoc, const ScAddress &rAddr, formula::FormulaGrammar::Grammar eGrammar=formula::FormulaGrammar::GRAM_DEFAULT)
void UpdateReference (const sc::RefUpdateContext &rCxt)
void UpdateInsertTab (const sc::RefUpdateInsertTabContext &rCxt)
void UpdateDeleteTab (const sc::RefUpdateDeleteTabContext &rCxt)
void UpdateMoveTab (const sc::RefUpdateMoveTabContext &rCxt)
const ScTokenArrayGetFormula () const
OUString GetFormula (formula::FormulaGrammar::Grammar eGrammar) const
ScColorScaleEntryType GetType () const
void SetType (ScColorScaleEntryType eType)
void SetRepaintCallback (ScConditionalFormat *pParent)
void SetRepaintCallback (const std::function< void()> &func)

Private Member Functions

void setListener ()

Private Attributes

double mnVal
std::unique_ptr< ScFormulaCellmpCell
std::unique_ptr< ScFormulaListenermpListener
Color maColor
ScColorScaleEntryType meType

Detailed Description

Definition at line 42 of file colorscale.hxx.

Constructor & Destructor Documentation

◆ ScColorScaleEntry() [1/4]

ScColorScaleEntry::ScColorScaleEntry ( double  nVal,
const Color rCol,
ScColorScaleEntryType  eType = COLORSCALE_VALUE 

Definition at line 161 of file colorscale.cxx.

References eType, maColor, and meType.

◆ ScColorScaleEntry() [2/4]

ScColorScaleEntry::ScColorScaleEntry ( )

Definition at line 154 of file colorscale.cxx.

References meType.

◆ ScColorScaleEntry() [3/4]

ScColorScaleEntry::ScColorScaleEntry ( const ScColorScaleEntry rEntry)

Definition at line 169 of file colorscale.cxx.

References maColor, meType, mpCell, mpListener, NoMakeAbsExternal, and setListener().

◆ ScColorScaleEntry() [4/4]

ScColorScaleEntry::ScColorScaleEntry ( ScDocument pDoc,
const ScColorScaleEntry rEntry 

◆ ~ScColorScaleEntry()

ScColorScaleEntry::~ScColorScaleEntry ( )

Definition at line 201 of file colorscale.cxx.

References mpCell.

Member Function Documentation

◆ GetColor()

const Color & ScColorScaleEntry::GetColor ( ) const

Definition at line 61 of file colorscale.hxx.

References maColor.

Referenced by ScColorScaleEntryObj::getColor().

◆ GetFormula() [1/2]

const ScTokenArray * ScColorScaleEntry::GetFormula ( ) const

◆ GetFormula() [2/2]

OUString ScColorScaleEntry::GetFormula ( formula::FormulaGrammar::Grammar  eGrammar) const

Definition at line 226 of file colorscale.cxx.

References mpCell.

◆ GetType()

ScColorScaleEntryType ScColorScaleEntry::GetType ( ) const

◆ GetValue()

double ScColorScaleEntry::GetValue ( ) const

◆ SetColor()

void ScColorScaleEntry::SetColor ( const Color rColor)

Definition at line 310 of file colorscale.cxx.

References maColor.

Referenced by ScColorScaleEntryObj::setColor().

◆ SetFormula()

void ScColorScaleEntry::SetFormula ( const OUString &  rFormula,
ScDocument rDoc,
const ScAddress rAddr,
formula::FormulaGrammar::Grammar  eGrammar = formula::FormulaGrammar::GRAM_DEFAULT 

◆ setListener()

void ScColorScaleEntry::setListener ( )

◆ SetRepaintCallback() [1/2]

void ScColorScaleEntry::SetRepaintCallback ( const std::function< void()> &  func)

Definition at line 349 of file colorscale.cxx.

References mpListener.

◆ SetRepaintCallback() [2/2]

void ScColorScaleEntry::SetRepaintCallback ( ScConditionalFormat pParent)

◆ SetType()

void ScColorScaleEntry::SetType ( ScColorScaleEntryType  eType)

◆ SetValue()

void ScColorScaleEntry::SetValue ( double  nValue)

◆ UpdateDeleteTab()

void ScColorScaleEntry::UpdateDeleteTab ( const sc::RefUpdateDeleteTabContext rCxt)

Definition at line 283 of file colorscale.cxx.

References mpCell, mpFormat, mpListener, setListener(), and SetRepaintCallback().

◆ UpdateInsertTab()

void ScColorScaleEntry::UpdateInsertTab ( const sc::RefUpdateInsertTabContext rCxt)

Definition at line 270 of file colorscale.cxx.

References mpCell, mpFormat, mpListener, setListener(), and SetRepaintCallback().

◆ UpdateMoveTab()

void ScColorScaleEntry::UpdateMoveTab ( const sc::RefUpdateMoveTabContext rCxt)

◆ UpdateReference()

void ScColorScaleEntry::UpdateReference ( const sc::RefUpdateContext rCxt)

Definition at line 257 of file colorscale.cxx.

References mpCell, mpFormat, mpListener, setListener(), and SetRepaintCallback().

Member Data Documentation

◆ maColor

Color ScColorScaleEntry::maColor

Definition at line 49 of file colorscale.hxx.

Referenced by SetColor().

◆ meType

ScColorScaleEntryType ScColorScaleEntry::meType

Definition at line 50 of file colorscale.hxx.

Referenced by setListener(), and SetType().

◆ mnVal

double ScColorScaleEntry::mnVal

Definition at line 45 of file colorscale.hxx.

Referenced by GetValue(), and SetValue().

◆ mpCell

std::unique_ptr<ScFormulaCell> ScColorScaleEntry::mpCell

◆ mpFormat

ScConditionalFormat* ScColorScaleEntry::mpFormat

◆ mpListener

std::unique_ptr<ScFormulaListener> ScColorScaleEntry::mpListener

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