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 ()
 
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 624 of file conditio.hxx.

Member Typedef Documentation

◆ ConditionalFormatContainer

Definition at line 628 of file conditio.hxx.

◆ const_iterator

typedef ConditionalFormatContainer::const_iterator ScConditionalFormatList::const_iterator

Definition at line 665 of file conditio.hxx.

◆ iterator

typedef ConditionalFormatContainer::iterator ScConditionalFormatList::iterator

Definition at line 664 of file conditio.hxx.

Constructor & Destructor Documentation

◆ ScConditionalFormatList() [1/3]

ScConditionalFormatList::ScConditionalFormatList ( )
inline

Definition at line 634 of file conditio.hxx.

◆ ScConditionalFormatList() [2/3]

ScConditionalFormatList::ScConditionalFormatList ( const ScConditionalFormatList rList)

Definition at line 2056 of file conditio.cxx.

References InsertNew().

◆ ScConditionalFormatList() [3/3]

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

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

References m_ConditionalFormats.

◆ CalcAll()

void ScConditionalFormatList::CalcAll ( )

Forced recalculation of formulas.

Definition at line 2302 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 2171 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 2290 of file conditio.cxx.

References m_ConditionalFormats.

◆ CompileAll()

void ScConditionalFormatList::CompileAll ( )

Definition at line 2093 of file conditio.cxx.

References m_ConditionalFormats.

◆ CompileXML()

void ScConditionalFormatList::CompileXML ( )

Definition at line 2101 of file conditio.cxx.

References m_ConditionalFormats.

◆ DeleteArea()

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

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

References m_ConditionalFormats.

◆ endRendering()

void ScConditionalFormatList::endRendering ( )

Definition at line 2282 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 2221 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 2083 of file conditio.cxx.

References m_ConditionalFormats, and SAL_WARN.

◆ getMaxKey()

sal_uInt32 ScConditionalFormatList::getMaxKey ( ) const

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

References m_ConditionalFormats.

◆ InsertNew()

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

Definition at line 2068 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 2123 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 2163 of file conditio.cxx.

References m_ConditionalFormats.

Referenced by ScDocShell::NotifyStyle().

◆ size()

size_t ScConditionalFormatList::size ( ) const

◆ startRendering()

void ScConditionalFormatList::startRendering ( )

Definition at line 2274 of file conditio.cxx.

References m_ConditionalFormats.

Referenced by ScDocument::FillInfo().

◆ UpdateDeleteTab()

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

Definition at line 2147 of file conditio.cxx.

References m_ConditionalFormats.

◆ UpdateInsertTab()

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

Definition at line 2139 of file conditio.cxx.

References m_ConditionalFormats.

◆ UpdateMoveTab()

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

Definition at line 2155 of file conditio.cxx.

References m_ConditionalFormats.

◆ UpdateReference()

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

Member Data Documentation

◆ m_ConditionalFormats

ConditionalFormatContainer ScConditionalFormatList::m_ConditionalFormats
private

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