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

#include <conditio.hxx>

Collaboration diagram for ScConditionalFormat:
[legend]

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 updateValues ()
 
void CalcAll ()
 

Private Attributes

ScDocumentpDoc
 
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() [1/2]

ScConditionalFormat::ScConditionalFormat ( sal_uInt32  nNewKey,
ScDocument pDocument 
)

Definition at line 1718 of file conditio.cxx.

Referenced by Clone().

◆ ~ScConditionalFormat()

ScConditionalFormat::~ScConditionalFormat ( )

Definition at line 1798 of file conditio.cxx.

◆ ScConditionalFormat() [2/2]

ScConditionalFormat::ScConditionalFormat ( const ScConditionalFormat )
delete

Member Function Documentation

◆ AddEntry()

void ScConditionalFormat::AddEntry ( ScFormatEntry pNew)

◆ CalcAll()

void ScConditionalFormat::CalcAll ( )

◆ Clone()

std::unique_ptr< ScConditionalFormat > ScConditionalFormat::Clone ( ScDocument pNewDoc = nullptr) const

◆ CompileAll()

void ScConditionalFormat::CompileAll ( )

◆ CompileXML()

void ScConditionalFormat::CompileXML ( )

◆ DeleteArea()

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

Definition at line 2007 of file conditio.cxx.

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

◆ DoRepaint()

void ScConditionalFormat::DoRepaint ( )

◆ endRendering()

void ScConditionalFormat::endRendering ( )

Definition at line 2052 of file conditio.cxx.

References maEntries.

◆ EqualEntries()

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

Definition at line 1743 of file conditio.cxx.

References maEntries, and size().

◆ GetCellStyle()

OUString ScConditionalFormat::GetCellStyle ( ScRefCellValue rCell,
const ScAddress rPos 
) const

◆ GetData()

ScCondFormatData ScConditionalFormat::GetData ( ScRefCellValue rCell,
const ScAddress rPos 
) const

◆ GetDocument()

ScDocument * ScConditionalFormat::GetDocument ( )

Definition at line 1793 of file conditio.cxx.

References pDoc.

Referenced by ScColorScaleEntry::setListener().

◆ GetEntry()

const ScFormatEntry * ScConditionalFormat::GetEntry ( sal_uInt16  nPos) const

◆ GetKey()

sal_uInt32 ScConditionalFormat::GetKey ( ) const
inline

◆ GetRange()

const ScRangeList & ScConditionalFormat::GetRange ( ) const
inline

◆ GetRangeList()

ScRangeList & ScConditionalFormat::GetRangeList ( )
inline

Definition at line 561 of file conditio.hxx.

◆ InsertCol()

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

Definition at line 1916 of file conditio.cxx.

References ScRangeList::InsertCol(), and maRanges.

◆ InsertRow()

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

Definition at line 1911 of file conditio.cxx.

References ScRangeList::InsertRow(), and maRanges.

◆ IsEmpty()

bool ScConditionalFormat::IsEmpty ( ) const

◆ MarkUsedExternalReferences()

bool ScConditionalFormat::MarkUsedExternalReferences ( ) const

◆ operator<()

bool ScConditionalFormat::operator< ( const ScConditionalFormat r) const
inline

Definition at line 597 of file conditio.hxx.

References nKey.

◆ operator=()

const ScConditionalFormat & ScConditionalFormat::operator= ( const ScConditionalFormat )
delete

References Clone().

◆ RemoveEntry()

void ScConditionalFormat::RemoveEntry ( size_t  nIndex)

Definition at line 1774 of file conditio.cxx.

References DoRepaint(), maEntries, and n.

Referenced by ScCondFormatObj::removeByIndex().

◆ RenameCellStyle()

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

◆ SetKey()

void ScConditionalFormat::SetKey ( sal_uInt32  nNew)
inline

Definition at line 592 of file conditio.hxx.

Referenced by XMLTableStyleContext::ApplyCondFormat().

◆ SetRange()

void ScConditionalFormat::SetRange ( const ScRangeList rRanges)

◆ size()

size_t ScConditionalFormat::size ( ) const

◆ startRendering()

void ScConditionalFormat::startRendering ( )

Definition at line 2044 of file conditio.cxx.

References maEntries.

◆ UpdateDeleteTab()

void ScConditionalFormat::UpdateDeleteTab ( sc::RefUpdateDeleteTabContext rCxt)

◆ UpdateInsertTab()

void ScConditionalFormat::UpdateInsertTab ( sc::RefUpdateInsertTabContext rCxt)

◆ UpdateMoveTab()

void ScConditionalFormat::UpdateMoveTab ( sc::RefUpdateMoveTabContext rCxt)

◆ UpdateReference()

void ScConditionalFormat::UpdateReference ( sc::RefUpdateContext rCxt,
bool  bCopyAsMove = false 
)

◆ updateValues()

void ScConditionalFormat::updateValues ( )

Definition at line 2060 of file conditio.cxx.

References maEntries.

Member Data Documentation

◆ maEntries

std::vector<std::unique_ptr<ScFormatEntry> > ScConditionalFormat::maEntries
private

◆ maRanges

ScRangeList ScConditionalFormat::maRanges
private

◆ nKey

sal_uInt32 ScConditionalFormat::nKey
private

Definition at line 542 of file conditio.hxx.

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

◆ pDoc

ScDocument* ScConditionalFormat::pDoc
private

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: