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 (const OUString &rOld, const OUString &rNew)
 
const ScFormatEntryGetEntry (sal_uInt16 nPos) const
 
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

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

Detailed Description

Definition at line 540 of file conditio.hxx.

Constructor & Destructor Documentation

ScConditionalFormat::ScConditionalFormat ( sal_uInt32  nNewKey,
ScDocument pDocument 
)

Definition at line 1697 of file conditio.cxx.

Referenced by Clone().

ScConditionalFormat::~ScConditionalFormat ( )

Definition at line 1777 of file conditio.cxx.

ScConditionalFormat::ScConditionalFormat ( const ScConditionalFormat )
delete

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 1855 of file conditio.cxx.

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

void ScConditionalFormat::CompileXML ( )

Definition at line 1863 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 1986 of file conditio.cxx.

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

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

Definition at line 2031 of file conditio.cxx.

References maEntries.

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

Definition at line 1722 of file conditio.cxx.

References maEntries, and size().

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

Definition at line 1772 of file conditio.cxx.

References pDoc.

Referenced by ScColorScaleEntry::setListener().

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

Definition at line 562 of file conditio.hxx.

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

Definition at line 1895 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 1890 of file conditio.cxx.

References ScRangeList::InsertRow(), and maRanges.

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

Definition at line 598 of file conditio.hxx.

References nKey.

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

Definition at line 1753 of file conditio.cxx.

References DoRepaint(), and maEntries.

Referenced by ScCondFormatObj::removeByIndex().

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

Definition at line 593 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 2023 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
private
ScRangeList ScConditionalFormat::maRanges
private
sal_uInt32 ScConditionalFormat::nKey
private

Definition at line 543 of file conditio.hxx.

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

ScDocument* ScConditionalFormat::pDoc
private

Definition at line 542 of file conditio.hxx.

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


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