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::ScColorScaleEntry ( double  nVal,
const Color rCol,
ScColorScaleEntryType  eType = COLORSCALE_VALUE 

Definition at line 162 of file colorscale.cxx.

References maColor, and meType.

ScColorScaleEntry::ScColorScaleEntry ( )

Definition at line 155 of file colorscale.cxx.

References meType.

ScColorScaleEntry::ScColorScaleEntry ( const ScColorScaleEntry rEntry)

Definition at line 170 of file colorscale.cxx.

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

ScColorScaleEntry::ScColorScaleEntry ( ScDocument pDoc,
const ScColorScaleEntry rEntry 
ScColorScaleEntry::~ScColorScaleEntry ( )

Definition at line 202 of file colorscale.cxx.

References mpCell.

Member Function Documentation

const Color& ScColorScaleEntry::GetColor ( ) const

Definition at line 61 of file colorscale.hxx.

Referenced by ScColorScaleEntryObj::getColor().

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

Definition at line 227 of file colorscale.cxx.

References mpCell.

ScColorScaleEntryType ScColorScaleEntry::GetType ( ) const
double ScColorScaleEntry::GetValue ( ) const
void ScColorScaleEntry::SetColor ( const Color rColor)

Definition at line 311 of file colorscale.cxx.

References maColor.

Referenced by ScColorScaleEntryObj::setColor().

void ScColorScaleEntry::SetFormula ( const OUString &  rFormula,
ScDocument rDoc,
const ScAddress rAddr,
formula::FormulaGrammar::Grammar  eGrammar = formula::FormulaGrammar::GRAM_DEFAULT 
void ScColorScaleEntry::setListener ( )
void ScColorScaleEntry::SetRepaintCallback ( ScConditionalFormat pParent)
void ScColorScaleEntry::SetRepaintCallback ( const std::function< void()> &  func)

Definition at line 350 of file colorscale.cxx.

References mpListener.

void ScColorScaleEntry::SetType ( ScColorScaleEntryType  eType)
void ScColorScaleEntry::SetValue ( double  nValue)
void ScColorScaleEntry::UpdateDeleteTab ( const sc::RefUpdateDeleteTabContext rCxt)

Definition at line 284 of file colorscale.cxx.

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

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

Definition at line 271 of file colorscale.cxx.

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

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

Definition at line 258 of file colorscale.cxx.

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

Member Data Documentation

Color ScColorScaleEntry::maColor

Definition at line 49 of file colorscale.hxx.

Referenced by SetColor().

ScColorScaleEntryType ScColorScaleEntry::meType

Definition at line 50 of file colorscale.hxx.

Referenced by setListener(), and SetType().

double ScColorScaleEntry::mnVal

Definition at line 45 of file colorscale.hxx.

Referenced by GetValue(), and SetValue().

std::unique_ptr<ScFormulaCell> ScColorScaleEntry::mpCell
ScConditionalFormat* ScColorScaleEntry::mpFormat
std::unique_ptr<ScFormulaListener> ScColorScaleEntry::mpListener

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