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

#include <condformatdlg.hxx>

Collaboration diagram for ScCondFormatList:
[legend]

Public Member Functions

 ScCondFormatList (ScCondFormatDlg *pParent, std::unique_ptr< weld::ScrolledWindow > xWindow, std::unique_ptr< weld::Container > xGrid)
 
weld::ContainerGetContainer ()
 
 ~ScCondFormatList ()
 
void init (ScDocument &rDoc, const ScConditionalFormat *pFormat, const ScRangeList &rRanges, const ScAddress &rPos, condformat::dialog::ScCondFormatDialogType eType)
 
void SetRange (const ScRangeList &rRange)
 
std::unique_ptr< ScConditionalFormatGetConditionalFormat () const
 
weld::WindowGetFrameWeld ()
 
void Freeze ()
 
void Thaw ()
 
void RecalcAll ()
 
 DECL_LINK (AddBtnHdl, weld::Button &, void)
 
 DECL_LINK (RemoveBtnHdl, weld::Button &, void)
 
 DECL_LINK (UpBtnHdl, weld::Button &, void)
 
 DECL_LINK (DownBtnHdl, weld::Button &, void)
 
 DECL_LINK (EntrySelectHdl, ScCondFrmtEntry &, void)
 
 DECL_LINK (TypeListHdl, weld::ComboBox &, void)
 
 DECL_LINK (AfterTypeListHdl, void *, void)
 
 DECL_LINK (ColFormatTypeHdl, weld::ComboBox &, void)
 
 DECL_LINK (AfterColFormatTypeHdl, void *, void)
 

Private Types

typedef std::vector< std::unique_ptr< ScCondFrmtEntry > > EntryContainer
 

Private Attributes

std::unique_ptr< weld::ScrolledWindowmxScrollWindow
 
std::unique_ptr< weld::ContainermxGrid
 
EntryContainer maEntries
 
bool mbFrozen
 
bool mbNewEntry
 
ScDocumentmpDoc
 
ScAddress maPos
 
ScRangeList maRanges
 
ScCondFormatDlgmpDialogParent
 

Detailed Description

Definition at line 29 of file condformatdlg.hxx.

Member Typedef Documentation

◆ EntryContainer

typedef std::vector<std::unique_ptr<ScCondFrmtEntry> > ScCondFormatList::EntryContainer
private

Definition at line 35 of file condformatdlg.hxx.

Constructor & Destructor Documentation

◆ ScCondFormatList()

ScCondFormatList::ScCondFormatList ( ScCondFormatDlg pParent,
std::unique_ptr< weld::ScrolledWindow xWindow,
std::unique_ptr< weld::Container xGrid 
)

Definition at line 26 of file condformatdlg.cxx.

References mxGrid, and mxScrollWindow.

◆ ~ScCondFormatList()

ScCondFormatList::~ScCondFormatList ( )

Definition at line 46 of file condformatdlg.cxx.

References Freeze().

Member Function Documentation

◆ DECL_LINK() [1/9]

ScCondFormatList::DECL_LINK ( AddBtnHdl  ,
weld::Button ,
void   
)

◆ DECL_LINK() [2/9]

ScCondFormatList::DECL_LINK ( AfterColFormatTypeHdl  ,
void *  ,
void   
)

◆ DECL_LINK() [3/9]

ScCondFormatList::DECL_LINK ( AfterTypeListHdl  ,
void *  ,
void   
)

◆ DECL_LINK() [4/9]

ScCondFormatList::DECL_LINK ( ColFormatTypeHdl  ,
weld::ComboBox ,
void   
)

◆ DECL_LINK() [5/9]

ScCondFormatList::DECL_LINK ( DownBtnHdl  ,
weld::Button ,
void   
)

◆ DECL_LINK() [6/9]

ScCondFormatList::DECL_LINK ( EntrySelectHdl  ,
ScCondFrmtEntry ,
void   
)

◆ DECL_LINK() [7/9]

ScCondFormatList::DECL_LINK ( RemoveBtnHdl  ,
weld::Button ,
void   
)

◆ DECL_LINK() [8/9]

ScCondFormatList::DECL_LINK ( TypeListHdl  ,
weld::ComboBox ,
void   
)

◆ DECL_LINK() [9/9]

ScCondFormatList::DECL_LINK ( UpBtnHdl  ,
weld::Button ,
void   
)

◆ Freeze()

void ScCondFormatList::Freeze ( )
inline

Definition at line 61 of file condformatdlg.hxx.

References mbFrozen.

Referenced by init(), and ~ScCondFormatList().

◆ GetConditionalFormat()

std::unique_ptr< ScConditionalFormat > ScCondFormatList::GetConditionalFormat ( ) const

Definition at line 143 of file condformatdlg.cxx.

References ScRangeList::GetTopLeftCorner(), maEntries, maRanges, mbNewEntry, and mpDoc.

◆ GetContainer()

weld::Container * ScCondFormatList::GetContainer ( )
inline

Definition at line 50 of file condformatdlg.hxx.

References mxGrid.

Referenced by ScCondFrmtEntry::~ScCondFrmtEntry().

◆ GetFrameWeld()

weld::Window * ScCondFormatList::GetFrameWeld ( )

◆ init()

void ScCondFormatList::init ( ScDocument rDoc,
const ScConditionalFormat pFormat,
const ScRangeList rRanges,
const ScAddress rPos,
condformat::dialog::ScCondFormatDialogType  eType 
)

◆ RecalcAll()

void ScCondFormatList::RecalcAll ( )

Definition at line 172 of file condformatdlg.cxx.

References maEntries, mbFrozen, mxScrollWindow, nIndex, and SAL_MAX_INT32.

Referenced by init().

◆ SetRange()

void ScCondFormatList::SetRange ( const ScRangeList rRange)

Definition at line 138 of file condformatdlg.cxx.

References maRanges.

◆ Thaw()

void ScCondFormatList::Thaw ( )
inline

Definition at line 62 of file condformatdlg.hxx.

References mbFrozen.

Referenced by init().

Member Data Documentation

◆ maEntries

EntryContainer ScCondFormatList::maEntries
private

Definition at line 36 of file condformatdlg.hxx.

Referenced by GetConditionalFormat(), init(), and RecalcAll().

◆ maPos

ScAddress ScCondFormatList::maPos
private

Definition at line 42 of file condformatdlg.hxx.

Referenced by init().

◆ maRanges

ScRangeList ScCondFormatList::maRanges
private

Definition at line 43 of file condformatdlg.hxx.

Referenced by GetConditionalFormat(), init(), and SetRange().

◆ mbFrozen

bool ScCondFormatList::mbFrozen
private

Definition at line 38 of file condformatdlg.hxx.

Referenced by Freeze(), RecalcAll(), and Thaw().

◆ mbNewEntry

bool ScCondFormatList::mbNewEntry
private

Definition at line 39 of file condformatdlg.hxx.

Referenced by GetConditionalFormat(), and init().

◆ mpDialogParent

ScCondFormatDlg* ScCondFormatList::mpDialogParent
private

Definition at line 44 of file condformatdlg.hxx.

Referenced by GetFrameWeld(), and init().

◆ mpDoc

ScDocument* ScCondFormatList::mpDoc
private

Definition at line 41 of file condformatdlg.hxx.

Referenced by GetConditionalFormat(), and init().

◆ mxGrid

std::unique_ptr<weld::Container> ScCondFormatList::mxGrid
private

Definition at line 33 of file condformatdlg.hxx.

Referenced by GetContainer(), and ScCondFormatList().

◆ mxScrollWindow

std::unique_ptr<weld::ScrolledWindow> ScCondFormatList::mxScrollWindow
private

Definition at line 32 of file condformatdlg.hxx.

Referenced by RecalcAll(), and ScCondFormatList().


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