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, const OUString &rStyle, const OUString &rExprNmsp1=EMPTY_OUSTRING, const OUString &rExprNmsp2=EMPTY_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, const OUString &rStyle)
 
 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
 
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 void endRendering () override
 
virtual void startRendering () override
 
bool NeedsRepaint () const
 
void CalcAll ()
 
- Public Member Functions inherited from ScFormatEntry
 ScFormatEntry (ScDocument *pDoc)
 
virtual ~ScFormatEntry ()
 
bool operator== (const ScFormatEntry &) const
 

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  Type {
  Type::Condition,
  Type::ExtCondition,
  Type::Colorscale,
  Type::Databar,
  Type::Iconset,
  Type::Date
}
 
- Static Public Member Functions inherited from ScConditionEntry
static ScConditionMode GetModeFromApi (css::sheet::ConditionOperator nOperator)
 
- Protected Member Functions inherited from ScConditionEntry
ScDocumentGetDocument () const
 
- Protected Attributes inherited from ScConditionEntry
ScConditionalFormatpCondFormat
 
- Protected Attributes inherited from ScFormatEntry
ScDocumentmpDoc
 

Detailed Description

Definition at line 449 of file conditio.hxx.

Constructor & Destructor Documentation

ScCondFormatEntry::ScCondFormatEntry ( ScConditionMode  eOper,
const OUString &  rExpr1,
const OUString &  rExpr2,
ScDocument rDocument,
const ScAddress rPos,
const OUString &  rStyle,
const OUString &  rExprNmsp1 = EMPTY_OUSTRING,
const OUString &  rExprNmsp2 = EMPTY_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::ScCondFormatEntry ( ScConditionMode  eOper,
const ScTokenArray pArr1,
const ScTokenArray pArr2,
ScDocument rDocument,
const ScAddress rPos,
const OUString &  rStyle 
)

Definition at line 1469 of file conditio.cxx.

ScCondFormatEntry::ScCondFormatEntry ( const ScCondFormatEntry r)

Definition at line 1478 of file conditio.cxx.

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

Definition at line 1485 of file conditio.cxx.

ScCondFormatEntry::~ScCondFormatEntry ( )
overridevirtual

Definition at line 1499 of file conditio.cxx.

Member Function Documentation

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

Reimplemented from ScConditionEntry.

Definition at line 1509 of file conditio.cxx.

References ScCondFormatEntry().

void ScCondFormatEntry::DataChanged ( ) const
overrideprivatevirtual

Reimplemented from ScConditionEntry.

Definition at line 1503 of file conditio.cxx.

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

const OUString& ScCondFormatEntry::GetStyle ( ) const
inline
virtual Type ScCondFormatEntry::GetType ( ) const
inlineoverridevirtual

Reimplemented from ScConditionEntry.

Definition at line 477 of file conditio.hxx.

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

Reimplemented from ScConditionEntry.

Definition at line 1493 of file conditio.cxx.

References aStyleName, and ScConditionEntry::IsEqual().

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

Member Data Documentation

OUString ScCondFormatEntry::aStyleName
private

Definition at line 451 of file conditio.hxx.

Referenced by IsEqual().

Type ScCondFormatEntry::eCondFormatType = Type::Condition
private

Definition at line 452 of file conditio.hxx.


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