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

#include <conditio.hxx>

Public Types

typedef ConditionalFormatContainer::iterator iterator
 
typedef ConditionalFormatContainer::const_iterator const_iterator
 

Public Member Functions

 ScConditionalFormatList ()
 
 ScConditionalFormatList (const ScConditionalFormatList &rList)
 
 ScConditionalFormatList (ScDocument &rDoc, const ScConditionalFormatList &rList)
 
void InsertNew (std::unique_ptr< ScConditionalFormat > pNew)
 
bool CheckAllEntries (const Link< ScConditionalFormat *, void > &rLink=Link< ScConditionalFormat *, void >())
 Checks that all cond formats have a non empty range. More...
 
ScConditionalFormatGetFormat (sal_uInt32 nKey)
 
const ScConditionalFormatGetFormat (sal_uInt32 nKey) const
 
void CompileAll ()
 
void CompileXML ()
 
void UpdateReference (sc::RefUpdateContext &rCxt)
 
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 RenameCellStyle (std::u16string_view rOld, const OUString &rNew)
 
void DeleteArea (SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2)
 
ScRangeList GetCombinedRange () const
 
void RemoveFromDocument (ScDocument &rDoc) const
 
void AddToDocument (ScDocument &rDoc) const
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
size_t size () const
 
bool empty () const
 
void erase (sal_uLong nIndex)
 
void clear ()
 
void startRendering ()
 
void endRendering ()
 
void updateValues ()
 
sal_uInt32 getMaxKey () const
 
void CalcAll ()
 Forced recalculation of formulas. More...
 

Private Types

typedef std::set< std::unique_ptr< ScConditionalFormat >, CompareScConditionalFormatConditionalFormatContainer
 

Private Member Functions

void operator= (ScConditionalFormatList const &)=delete
 

Private Attributes

ConditionalFormatContainer m_ConditionalFormats
 

Detailed Description

Definition at line 627 of file conditio.hxx.

Member Typedef Documentation

◆ ConditionalFormatContainer

Definition at line 631 of file conditio.hxx.

◆ const_iterator

typedef ConditionalFormatContainer::const_iterator ScConditionalFormatList::const_iterator

Definition at line 668 of file conditio.hxx.

◆ iterator

typedef ConditionalFormatContainer::iterator ScConditionalFormatList::iterator

Definition at line 667 of file conditio.hxx.

Constructor & Destructor Documentation

◆ ScConditionalFormatList() [1/3]

ScConditionalFormatList::ScConditionalFormatList ( )
inline

Definition at line 637 of file conditio.hxx.

◆ ScConditionalFormatList() [2/3]

ScConditionalFormatList::ScConditionalFormatList ( const ScConditionalFormatList rList)

Definition at line 2081 of file conditio.cxx.

References InsertNew().

◆ ScConditionalFormatList() [3/3]

ScConditionalFormatList::ScConditionalFormatList ( ScDocument rDoc,
const ScConditionalFormatList rList 
)

Definition at line 2087 of file conditio.cxx.

References InsertNew().

Member Function Documentation

◆ AddToDocument()

void ScConditionalFormatList::AddToDocument ( ScDocument rDoc) const

◆ begin() [1/2]

ScConditionalFormatList::iterator ScConditionalFormatList::begin ( )

◆ begin() [2/2]

ScConditionalFormatList::const_iterator ScConditionalFormatList::begin ( ) const

Definition at line 2231 of file conditio.cxx.

References m_ConditionalFormats.

◆ CalcAll()

void ScConditionalFormatList::CalcAll ( )

Forced recalculation of formulas.

Definition at line 2335 of file conditio.cxx.

References m_ConditionalFormats.

◆ CheckAllEntries()

bool ScConditionalFormatList::CheckAllEntries ( const Link< ScConditionalFormat *, void > &  rLink = Link<ScConditionalFormat*,void>())

Checks that all cond formats have a non empty range.

Deletes empty cond formats. Optionally call rLink on the empty format before deleting it.

Returns
true if all cond formats were valid

Definition at line 2196 of file conditio.cxx.

References Link< typename Arg, typename Ret >::Call(), Link< typename Arg, typename Ret >::IsSet(), and m_ConditionalFormats.

Referenced by DeleteArea(), ScXMLConditionalFormatsContext::endFastElement(), and UpdateReference().

◆ clear()

void ScConditionalFormatList::clear ( )

Definition at line 2323 of file conditio.cxx.

References m_ConditionalFormats.

◆ CompileAll()

void ScConditionalFormatList::CompileAll ( )

Definition at line 2118 of file conditio.cxx.

References m_ConditionalFormats.

◆ CompileXML()

void ScConditionalFormatList::CompileXML ( )

Definition at line 2126 of file conditio.cxx.

References m_ConditionalFormats.

◆ DeleteArea()

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

Definition at line 2218 of file conditio.cxx.

References CheckAllEntries(), and m_ConditionalFormats.

Referenced by ScColumn::DeleteBeforeCopyFromClip().

◆ empty()

bool ScConditionalFormatList::empty ( ) const

◆ end() [1/2]

ScConditionalFormatList::iterator ScConditionalFormatList::end ( )

◆ end() [2/2]

ScConditionalFormatList::const_iterator ScConditionalFormatList::end ( ) const

Definition at line 2241 of file conditio.cxx.

References m_ConditionalFormats.

◆ endRendering()

void ScConditionalFormatList::endRendering ( )

Definition at line 2307 of file conditio.cxx.

References m_ConditionalFormats.

Referenced by ScDocument::FillInfo().

◆ erase()

void ScConditionalFormatList::erase ( sal_uLong  nIndex)

◆ GetCombinedRange()

ScRangeList ScConditionalFormatList::GetCombinedRange ( ) const

Definition at line 2246 of file conditio.cxx.

References i, ScRangeList::Join(), m_ConditionalFormats, n, and ScRangeList::size().

Referenced by RemoveFromDocument().

◆ GetFormat() [1/2]

ScConditionalFormat * ScConditionalFormatList::GetFormat ( sal_uInt32  nKey)

◆ GetFormat() [2/2]

const ScConditionalFormat * ScConditionalFormatList::GetFormat ( sal_uInt32  nKey) const

Definition at line 2108 of file conditio.cxx.

References m_ConditionalFormats, and SAL_WARN.

◆ getMaxKey()

sal_uInt32 ScConditionalFormatList::getMaxKey ( ) const

Definition at line 2328 of file conditio.cxx.

References m_ConditionalFormats.

Referenced by ScCondFormatDlg::OkPressed().

◆ InsertCol()

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

Definition at line 2156 of file conditio.cxx.

References m_ConditionalFormats.

◆ InsertNew()

void ScConditionalFormatList::InsertNew ( std::unique_ptr< ScConditionalFormat pNew)

Definition at line 2093 of file conditio.cxx.

References m_ConditionalFormats.

Referenced by ScCondFormatDlg::OkPressed(), and ScConditionalFormatList().

◆ InsertRow()

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

Definition at line 2148 of file conditio.cxx.

References m_ConditionalFormats.

◆ operator=()

void ScConditionalFormatList::operator= ( ScConditionalFormatList const &  )
privatedelete

◆ RemoveFromDocument()

void ScConditionalFormatList::RemoveFromDocument ( ScDocument rDoc) const

◆ RenameCellStyle()

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

Definition at line 2188 of file conditio.cxx.

References m_ConditionalFormats.

Referenced by ScDocShell::NotifyStyle().

◆ size()

size_t ScConditionalFormatList::size ( ) const

◆ startRendering()

void ScConditionalFormatList::startRendering ( )

Definition at line 2299 of file conditio.cxx.

References m_ConditionalFormats.

Referenced by ScDocument::FillInfo().

◆ UpdateDeleteTab()

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

Definition at line 2172 of file conditio.cxx.

References m_ConditionalFormats.

◆ UpdateInsertTab()

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

Definition at line 2164 of file conditio.cxx.

References m_ConditionalFormats.

◆ UpdateMoveTab()

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

Definition at line 2180 of file conditio.cxx.

References m_ConditionalFormats.

◆ UpdateReference()

void ScConditionalFormatList::UpdateReference ( sc::RefUpdateContext rCxt)

◆ updateValues()

void ScConditionalFormatList::updateValues ( )

Definition at line 2315 of file conditio.cxx.

References m_ConditionalFormats.

Member Data Documentation

◆ m_ConditionalFormats

ConditionalFormatContainer ScConditionalFormatList::m_ConditionalFormats
private

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