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

#include <conditio.hxx>

Collaboration diagram for ScConditionalFormat:

Public Member Functions

 ScConditionalFormat (sal_uInt32 nNewKey, ScDocument *pDocument)
 ~ScConditionalFormat ()
 ScConditionalFormat (const ScConditionalFormat &)=delete
const ScConditionalFormatoperator= (const ScConditionalFormat &)=delete
std::unique_ptr< ScConditionalFormatClone (ScDocument *pNewDoc=nullptr) const
void AddEntry (ScFormatEntry *pNew)
void RemoveEntry (size_t nIndex)
void SetRange (const ScRangeList &rRanges)
const ScRangeListGetRange () const
ScRangeListGetRangeList ()
bool IsEmpty () const
size_t size () const
ScDocumentGetDocument ()
void CompileAll ()
void CompileXML ()
void UpdateReference (sc::RefUpdateContext &rCxt, bool bCopyAsMove=false)
void UpdateInsertTab (sc::RefUpdateInsertTabContext &rCxt)
void UpdateDeleteTab (sc::RefUpdateDeleteTabContext &rCxt)
void UpdateMoveTab (sc::RefUpdateMoveTabContext &rCxt)
void InsertRow (SCTAB nTab, SCCOL nColStart, SCCOL nColEnd, SCROW nRowStart, SCSIZE nSize)
void InsertCol (SCTAB nTab, SCROW nRowStart, SCROW nRowEnd, SCCOL nColStart, SCSIZE nSize)
void DeleteArea (SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2)
void RenameCellStyle (std::u16string_view rOld, const OUString &rNew)
const ScFormatEntryGetEntry (sal_uInt16 nPos) const
OUString GetCellStyle (ScRefCellValue &rCell, const ScAddress &rPos) const
ScCondFormatData GetData (ScRefCellValue &rCell, const ScAddress &rPos) const
bool EqualEntries (const ScConditionalFormat &r, bool bIgnoreSrcPos=false) const
void DoRepaint ()
sal_uInt32 GetKey () const
void SetKey (sal_uInt32 nNew)
bool MarkUsedExternalReferences () const
bool operator< (const ScConditionalFormat &r) const
void startRendering ()
void endRendering ()
void CalcAll ()

Private Attributes

sal_uInt32 nKey
std::vector< std::unique_ptr< ScFormatEntry > > maEntries
ScRangeList maRanges

Detailed Description

Definition at line 539 of file conditio.hxx.

Constructor & Destructor Documentation

ScConditionalFormat::ScConditionalFormat ( sal_uInt32  nNewKey,
ScDocument pDocument 

Definition at line 1702 of file conditio.cxx.

Referenced by Clone().

ScConditionalFormat::~ScConditionalFormat ( )

Definition at line 1782 of file conditio.cxx.

ScConditionalFormat::ScConditionalFormat ( const ScConditionalFormat )

Member Function Documentation

void ScConditionalFormat::AddEntry ( ScFormatEntry pNew)
void ScConditionalFormat::CalcAll ( )
std::unique_ptr< ScConditionalFormat > ScConditionalFormat::Clone ( ScDocument pNewDoc = nullptr) const
void ScConditionalFormat::CompileAll ( )

Definition at line 1860 of file conditio.cxx.

References ScFormatEntry::Condition, ScFormatEntry::ExtCondition, and maEntries.

void ScConditionalFormat::CompileXML ( )

Definition at line 1868 of file conditio.cxx.

References ScFormatEntry::Condition, ScFormatEntry::ExtCondition, and maEntries.

void ScConditionalFormat::DeleteArea ( SCCOL  nCol1,
SCROW  nRow1,
SCCOL  nCol2,
SCROW  nRow2 

Definition at line 1991 of file conditio.cxx.

References ScRangeList::DeleteArea(), ScRangeList::empty(), and maRanges.

void ScConditionalFormat::DoRepaint ( )
void ScConditionalFormat::endRendering ( )

Definition at line 2036 of file conditio.cxx.

References maEntries.

bool ScConditionalFormat::EqualEntries ( const ScConditionalFormat r,
bool  bIgnoreSrcPos = false 
) const

Definition at line 1727 of file conditio.cxx.

References maEntries, and size().

OUString ScConditionalFormat::GetCellStyle ( ScRefCellValue rCell,
const ScAddress rPos 
) const
ScCondFormatData ScConditionalFormat::GetData ( ScRefCellValue rCell,
const ScAddress rPos 
) const
ScDocument * ScConditionalFormat::GetDocument ( )

Definition at line 1777 of file conditio.cxx.

References pDoc.

Referenced by ScColorScaleEntry::setListener().

const ScFormatEntry * ScConditionalFormat::GetEntry ( sal_uInt16  nPos) const
sal_uInt32 ScConditionalFormat::GetKey ( ) const
const ScRangeList& ScConditionalFormat::GetRange ( ) const
ScRangeList& ScConditionalFormat::GetRangeList ( )

Definition at line 561 of file conditio.hxx.

void ScConditionalFormat::InsertCol ( SCTAB  nTab,
SCROW  nRowStart,
SCROW  nRowEnd,
SCCOL  nColStart,
SCSIZE  nSize 

Definition at line 1900 of file conditio.cxx.

References ScRangeList::InsertCol(), and maRanges.

void ScConditionalFormat::InsertRow ( SCTAB  nTab,
SCCOL  nColStart,
SCCOL  nColEnd,
SCROW  nRowStart,
SCSIZE  nSize 

Definition at line 1895 of file conditio.cxx.

References ScRangeList::InsertRow(), and maRanges.

bool ScConditionalFormat::IsEmpty ( ) const
bool ScConditionalFormat::MarkUsedExternalReferences ( ) const
bool ScConditionalFormat::operator< ( const ScConditionalFormat r) const

Definition at line 597 of file conditio.hxx.

References nKey.

const ScConditionalFormat& ScConditionalFormat::operator= ( const ScConditionalFormat )
void ScConditionalFormat::RemoveEntry ( size_t  nIndex)

Definition at line 1758 of file conditio.cxx.

References DoRepaint(), and maEntries.

Referenced by ScCondFormatObj::removeByIndex().

void ScConditionalFormat::RenameCellStyle ( std::u16string_view  rOld,
const OUString &  rNew 
void ScConditionalFormat::SetKey ( sal_uInt32  nNew)

Definition at line 592 of file conditio.hxx.

Referenced by XMLTableStyleContext::ApplyCondFormat().

void ScConditionalFormat::SetRange ( const ScRangeList rRanges)
size_t ScConditionalFormat::size ( ) const
void ScConditionalFormat::startRendering ( )

Definition at line 2028 of file conditio.cxx.

References maEntries.

void ScConditionalFormat::UpdateDeleteTab ( sc::RefUpdateDeleteTabContext rCxt)
void ScConditionalFormat::UpdateInsertTab ( sc::RefUpdateInsertTabContext rCxt)
void ScConditionalFormat::UpdateMoveTab ( sc::RefUpdateMoveTabContext rCxt)
void ScConditionalFormat::UpdateReference ( sc::RefUpdateContext rCxt,
bool  bCopyAsMove = false 

Member Data Documentation

std::vector<std::unique_ptr<ScFormatEntry> > ScConditionalFormat::maEntries
ScRangeList ScConditionalFormat::maRanges
sal_uInt32 ScConditionalFormat::nKey

Definition at line 542 of file conditio.hxx.

Referenced by Clone(), and operator<().

ScDocument* ScConditionalFormat::pDoc

Definition at line 541 of file conditio.hxx.

Referenced by Clone(), DoRepaint(), GetDocument(), and UpdateReference().

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