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 *pDoc, 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 (const OUString &rOld, const OUString &rNew)
 
void DeleteArea (SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2)
 
ScRangeList GetCombinedRange () const
 
void RemoveFromDocument (ScDocument *pDoc) const
 
void AddToDocument (ScDocument *pDoc) 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 626 of file conditio.hxx.

Member Typedef Documentation

Definition at line 630 of file conditio.hxx.

typedef ConditionalFormatContainer::const_iterator ScConditionalFormatList::const_iterator

Definition at line 667 of file conditio.hxx.

typedef ConditionalFormatContainer::iterator ScConditionalFormatList::iterator

Definition at line 666 of file conditio.hxx.

Constructor & Destructor Documentation

ScConditionalFormatList::ScConditionalFormatList ( )
inline

Definition at line 636 of file conditio.hxx.

ScConditionalFormatList::ScConditionalFormatList ( const ScConditionalFormatList rList)

Definition at line 2052 of file conditio.cxx.

References InsertNew().

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

Definition at line 2058 of file conditio.cxx.

References InsertNew().

Member Function Documentation

void ScConditionalFormatList::AddToDocument ( ScDocument pDoc) const
ScConditionalFormatList::iterator ScConditionalFormatList::begin ( )

Definition at line 2197 of file conditio.cxx.

References m_ConditionalFormats.

Referenced by XMLTableStyleContext::ApplyCondFormat().

ScConditionalFormatList::const_iterator ScConditionalFormatList::begin ( ) const

Definition at line 2202 of file conditio.cxx.

References m_ConditionalFormats.

void ScConditionalFormatList::CalcAll ( )

Forced recalculation of formulas.

Definition at line 2298 of file conditio.cxx.

References m_ConditionalFormats.

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

References Link< class, class >::Call(), Link< class, class >::IsSet(), and m_ConditionalFormats.

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

void ScConditionalFormatList::clear ( )

Definition at line 2286 of file conditio.cxx.

References m_ConditionalFormats.

void ScConditionalFormatList::CompileAll ( )

Definition at line 2089 of file conditio.cxx.

References m_ConditionalFormats.

void ScConditionalFormatList::CompileXML ( )

Definition at line 2097 of file conditio.cxx.

References m_ConditionalFormats.

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

Definition at line 2189 of file conditio.cxx.

References CheckAllEntries(), and m_ConditionalFormats.

Referenced by ScColumn::DeleteBeforeCopyFromClip().

bool ScConditionalFormatList::empty ( ) const
ScConditionalFormatList::iterator ScConditionalFormatList::end ( )

Definition at line 2207 of file conditio.cxx.

References m_ConditionalFormats.

Referenced by XMLTableStyleContext::ApplyCondFormat(), and erase().

ScConditionalFormatList::const_iterator ScConditionalFormatList::end ( ) const

Definition at line 2212 of file conditio.cxx.

References m_ConditionalFormats.

void ScConditionalFormatList::endRendering ( )

Definition at line 2278 of file conditio.cxx.

References m_ConditionalFormats.

Referenced by ScDocument::FillInfo().

void ScConditionalFormatList::erase ( sal_uLong  nIndex)
ScRangeList ScConditionalFormatList::GetCombinedRange ( ) const

Definition at line 2217 of file conditio.cxx.

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

Referenced by RemoveFromDocument().

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

Definition at line 2079 of file conditio.cxx.

References m_ConditionalFormats, and SAL_WARN.

sal_uInt32 ScConditionalFormatList::getMaxKey ( ) const

Definition at line 2291 of file conditio.cxx.

References m_ConditionalFormats.

Referenced by ScCondFormatDlg::OkPressed().

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

Definition at line 2127 of file conditio.cxx.

References m_ConditionalFormats.

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

Definition at line 2064 of file conditio.cxx.

References m_ConditionalFormats.

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

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

Definition at line 2119 of file conditio.cxx.

References m_ConditionalFormats.

void ScConditionalFormatList::operator= ( ScConditionalFormatList const &  )
privatedelete
void ScConditionalFormatList::RemoveFromDocument ( ScDocument pDoc) const
void ScConditionalFormatList::RenameCellStyle ( const OUString &  rOld,
const OUString &  rNew 
)

Definition at line 2159 of file conditio.cxx.

References m_ConditionalFormats.

Referenced by ScDocShell::NotifyStyle().

size_t ScConditionalFormatList::size ( ) const
void ScConditionalFormatList::startRendering ( )

Definition at line 2270 of file conditio.cxx.

References m_ConditionalFormats.

Referenced by ScDocument::FillInfo().

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

Definition at line 2143 of file conditio.cxx.

References m_ConditionalFormats.

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

Definition at line 2135 of file conditio.cxx.

References m_ConditionalFormats.

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

Definition at line 2151 of file conditio.cxx.

References m_ConditionalFormats.

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

Member Data Documentation

ConditionalFormatContainer ScConditionalFormatList::m_ConditionalFormats
private

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