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

#include <conditio.hxx>

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

Public Member Functions

 ScCondFormatEntry (ScConditionMode eOper, const OUString &rExpr1, const OUString &rExpr2, ScDocument &rDocument, const ScAddress &rPos, OUString aStyle, const OUString &rExprNmsp1=OUString(), const OUString &rExprNmsp2=OUString(), formula::FormulaGrammar::Grammar eGrammar1=formula::FormulaGrammar::GRAM_DEFAULT, formula::FormulaGrammar::Grammar eGrammar2=formula::FormulaGrammar::GRAM_DEFAULT, Type eType=Type::Condition)
 
 ScCondFormatEntry (ScConditionMode eOper, const ScTokenArray *pArr1, const ScTokenArray *pArr2, ScDocument &rDocument, const ScAddress &rPos, OUString aStyle)
 
 ScCondFormatEntry (const ScCondFormatEntry &r)
 
 ScCondFormatEntry (ScDocument &rDocument, const ScCondFormatEntry &r)
 
virtual ~ScCondFormatEntry () override
 
bool IsEqual (const ScFormatEntry &r, bool bIgnoreSrcPos) const override
 
const OUString & GetStyle () const
 
void UpdateStyleName (const OUString &rNew)
 
virtual ScFormatEntryClone (ScDocument *pDoc) const override
 
virtual Type GetType () const override
 
- Public Member Functions inherited from ScConditionEntry
 ScConditionEntry (ScConditionMode eOper, const OUString &rExpr1, const OUString &rExpr2, ScDocument &rDocument, const ScAddress &rPos, const OUString &rExprNmsp1, const OUString &rExprNmsp2, formula::FormulaGrammar::Grammar eGrammar1, formula::FormulaGrammar::Grammar eGrammar2, Type eType=Type::Condition)
 
 ScConditionEntry (ScConditionMode eOper, const ScTokenArray *pArr1, const ScTokenArray *pArr2, ScDocument &rDocument, const ScAddress &rPos)
 
 ScConditionEntry (const ScConditionEntry &r)
 
 ScConditionEntry (ScDocument &rDocument, const ScConditionEntry &r)
 
virtual ~ScConditionEntry () override
 
bool IsEqual (const ScFormatEntry &r, bool bIgnoreSrcPos) const override
 
virtual void SetParent (ScConditionalFormat *pNew) override
 
bool IsCellValid (ScRefCellValue &rCell, const ScAddress &rPos) const
 
ScConditionMode GetOperation () const
 
void SetOperation (ScConditionMode eMode)
 
bool IsIgnoreBlank () const
 
void SetIgnoreBlank (bool bSet)
 
const OUString & GetSrcString () const
 
const ScAddressGetSrcPos () const
 
ScAddress GetValidSrcPos () const
 Return a position that's adjusted to allow textual representation of expressions if possible. More...
 
void SetSrcString (const OUString &rNew)
 
void SetFormula1 (const ScTokenArray &rArray)
 
void SetFormula2 (const ScTokenArray &rArray)
 
OUString GetExpression (const ScAddress &rCursor, sal_uInt16 nPos, sal_uInt32 nNumFmt=0, const formula::FormulaGrammar::Grammar eGrammar=formula::FormulaGrammar::GRAM_DEFAULT) const
 
std::unique_ptr< ScTokenArrayCreateFlatCopiedTokenArray (sal_uInt16 nPos) const
 Create a flat copy using ScTokenArray copy-ctor with shared tokens. More...
 
void CompileAll ()
 Delete formula cells, so we re-compile at the next IsValid. More...
 
void CompileXML ()
 
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
 
bool MarkUsedExternalReferences () const
 
virtual Type GetType () const override
 
virtual ScFormatEntryClone (ScDocument *pDoc) const override
 
virtual void endRendering () override
 
virtual void startRendering () override
 
bool NeedsRepaint () const
 
void CalcAll ()
 
- 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 ()
 

Private Member Functions

virtual void DataChanged () const override
 

Private Attributes

OUString aStyleName
 
Type eCondFormatType = Type::Condition
 

Additional Inherited Members

- Public Types inherited from ScFormatEntry
enum class  Type {
  Condition ,
  ExtCondition ,
  Colorscale ,
  Databar ,
  Iconset ,
  Date
}
 
- Static Public Member Functions inherited from ScConditionEntry
static ScConditionMode GetModeFromApi (css::sheet::ConditionOperator nOperator)
 
- Protected Member Functions inherited from ScConditionEntry
virtual void DataChanged () const
 
ScDocumentGetDocument () const
 
- Protected Attributes inherited from ScConditionEntry
ScConditionalFormatpCondFormat
 
- Protected Attributes inherited from ScFormatEntry
ScDocumentmpDoc
 

Detailed Description

Definition at line 448 of file conditio.hxx.

Constructor & Destructor Documentation

◆ ScCondFormatEntry() [1/4]

ScCondFormatEntry::ScCondFormatEntry ( ScConditionMode  eOper,
const OUString &  rExpr1,
const OUString &  rExpr2,
ScDocument rDocument,
const ScAddress rPos,
OUString  aStyle,
const OUString &  rExprNmsp1 = OUString(),
const OUString &  rExprNmsp2 = OUString(),
formula::FormulaGrammar::Grammar  eGrammar1 = formula::FormulaGrammar::GRAM_DEFAULT,
formula::FormulaGrammar::Grammar  eGrammar2 = formula::FormulaGrammar::GRAM_DEFAULT,
Type  eType = Type::Condition 
)

Referenced by Clone().

◆ ScCondFormatEntry() [2/4]

ScCondFormatEntry::ScCondFormatEntry ( ScConditionMode  eOper,
const ScTokenArray pArr1,
const ScTokenArray pArr2,
ScDocument rDocument,
const ScAddress rPos,
OUString  aStyle 
)

Definition at line 1490 of file conditio.cxx.

◆ ScCondFormatEntry() [3/4]

ScCondFormatEntry::ScCondFormatEntry ( const ScCondFormatEntry r)

Definition at line 1499 of file conditio.cxx.

◆ ScCondFormatEntry() [4/4]

ScCondFormatEntry::ScCondFormatEntry ( ScDocument rDocument,
const ScCondFormatEntry r 
)

Definition at line 1506 of file conditio.cxx.

◆ ~ScCondFormatEntry()

ScCondFormatEntry::~ScCondFormatEntry ( )
overridevirtual

Definition at line 1520 of file conditio.cxx.

Member Function Documentation

◆ Clone()

ScFormatEntry * ScCondFormatEntry::Clone ( ScDocument pDoc) const
overridevirtual

Reimplemented from ScConditionEntry.

Definition at line 1530 of file conditio.cxx.

References ScCondFormatEntry().

◆ DataChanged()

void ScCondFormatEntry::DataChanged ( ) const
overrideprivatevirtual

Reimplemented from ScConditionEntry.

Definition at line 1524 of file conditio.cxx.

References ScConditionalFormat::DoRepaint(), and ScConditionEntry::pCondFormat.

◆ GetStyle()

const OUString & ScCondFormatEntry::GetStyle ( ) const
inline

◆ GetType()

virtual Type ScCondFormatEntry::GetType ( ) const
inlineoverridevirtual

Reimplemented from ScConditionEntry.

Definition at line 476 of file conditio.hxx.

◆ IsEqual()

bool ScCondFormatEntry::IsEqual ( const ScFormatEntry r,
bool  bIgnoreSrcPos 
) const
overridevirtual

Reimplemented from ScConditionEntry.

Definition at line 1514 of file conditio.cxx.

References aStyleName, and ScConditionEntry::IsEqual().

◆ UpdateStyleName()

void ScCondFormatEntry::UpdateStyleName ( const OUString &  rNew)
inline

Member Data Documentation

◆ aStyleName

OUString ScCondFormatEntry::aStyleName
private

Definition at line 450 of file conditio.hxx.

Referenced by IsEqual().

◆ eCondFormatType

Type ScCondFormatEntry::eCondFormatType = Type::Condition
private

Definition at line 451 of file conditio.hxx.


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