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

#include <consdlg.hxx>

Inheritance diagram for ScConsolidateDlg:
[legend]
Collaboration diagram for ScConsolidateDlg:
[legend]

Public Member Functions

 ScConsolidateDlg (SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent, const SfxItemSet &rArgSet)
 
virtual ~ScConsolidateDlg () override
 
virtual void SetReference (const ScRange &rRef, ScDocument &rDoc) override
 
virtual bool IsRefInputMode () const override
 
virtual void SetActive () override
 
virtual void Close () override
 
virtual void Deactivate () override
 
- Public Member Functions inherited from ScAnyRefDlgController
 ScAnyRefDlgController (SfxBindings *rt1, SfxChildWindow *rt2, weld::Window *rt3, const OUString &rt4, const OUString &rt5)
 
- Public Member Functions inherited from ScRefHdlrControllerImpl< SfxModelessDialogController >
 ScRefHdlrControllerImpl (weld::Window *pParent, const OUString &rUIXMLDescription, const OUString &rID, const SfxItemSet *pArg, SfxBindings *pB)
 
 ScRefHdlrControllerImpl (SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent, const OUString &rUIXMLDescription, const OUString &rID)
 
- Public Member Functions inherited from SfxModelessDialogController
virtual ~SfxModelessDialogController () override
 
void Initialize (SfxChildWinInfo const *pInfo)
 
bool IsClosing () const
 
virtual void Close () override
 
virtual void EndDialog (int nResponse) override
 
virtual void Activate () override
 
virtual void Deactivate () override
 
virtual void ChildWinDispose () override
 
virtual void FillInfo (SfxChildWinInfo &) const
 
SfxBindingsGetBindings () const
 
- Public Member Functions inherited from SfxDialogController
 SfxDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId)
 
virtual void Activate ()
 
virtual void Deactivate ()
 
virtual void ChildWinDispose ()
 
virtual void Close ()
 
virtual void EndDialog (int nResponse)
 
virtual bool CloseOnHide () const
 
- Public Member Functions inherited from ScRefHandler
 ScRefHandler (SfxDialogController &rController, SfxBindings *pB, bool bBindRef)
 
virtual ~ScRefHandler () COVERITY_NOEXCEPT_FALSE override
 
virtual void SetReference (const ScRange &rRef, ScDocument &rDoc) override=0
 
virtual void AddRefEntry () override
 
virtual bool IsRefInputMode () const override
 
virtual bool IsTableLocked () const override
 
virtual bool IsDocAllowed (SfxObjectShell *pDocSh) const override
 
virtual void ShowReference (const OUString &rStr) override
 
virtual void HideReference (bool bDoneRefMode=true) override
 
virtual void ToggleCollapsed (formula::RefEdit *pEdit, formula::RefButton *pButton) override
 
virtual void ReleaseFocus (formula::RefEdit *pEdit) override
 
virtual void ViewShellChanged () override
 
void SwitchToDocument ()
 
virtual void SetActive () override=0
 
bool EnterRefMode ()
 
bool LeaveRefMode ()
 
bool CanInputDone (bool bForced)
 

Private Member Functions

void Init ()
 
void FillAreaLists ()
 
bool VerifyEdit (formula::RefEdit *pEd)
 
 DECL_LINK (OkHdl, weld::Button &, void)
 
 DECL_LINK (ClickHdl, weld::Button &, void)
 
 DECL_LINK (GetFocusHdl, weld::Widget &, void)
 
 DECL_LINK (GetEditFocusHdl, formula::RefEdit &, void)
 
 DECL_LINK (ModifyHdl, formula::RefEdit &, void)
 
 DECL_LINK (SelectTVHdl, weld::TreeView &, void)
 
 DECL_LINK (SelectCBHdl, weld::ComboBox &, void)
 

Static Private Member Functions

static ScSubTotalFunc LbPosToFunc (sal_Int32 nPos)
 
static sal_Int32 FuncToLbPos (ScSubTotalFunc eFunc)
 

Private Attributes

OUString aStrUndefined
 
ScConsolidateParam theConsData
 
ScViewDatarViewData
 
ScDocumentrDoc
 
std::unique_ptr< ScAreaData[]> pAreaData
 
size_t nAreaDataCount
 
sal_uInt16 nWhichCons
 
bool bDlgLostFocus
 
formula::RefEditm_pRefInputEdit
 
std::unique_ptr< weld::ComboBoxm_xLbFunc
 
std::unique_ptr< weld::TreeViewm_xLbConsAreas
 
std::unique_ptr< weld::ComboBoxm_xLbDataArea
 
std::unique_ptr< formula::RefEditm_xEdDataArea
 
std::unique_ptr< formula::RefButtonm_xRbDataArea
 
std::unique_ptr< weld::ComboBoxm_xLbDestArea
 
std::unique_ptr< formula::RefEditm_xEdDestArea
 
std::unique_ptr< formula::RefButtonm_xRbDestArea
 
std::unique_ptr< weld::CheckButtonm_xBtnByRow
 
std::unique_ptr< weld::CheckButtonm_xBtnByCol
 
std::unique_ptr< weld::CheckButtonm_xBtnRefs
 
std::unique_ptr< weld::Buttonm_xBtnOk
 
std::unique_ptr< weld::Buttonm_xBtnCancel
 
std::unique_ptr< weld::Buttonm_xBtnAdd
 
std::unique_ptr< weld::Buttonm_xBtnRemove
 
std::unique_ptr< weld::Labelm_xDataFT
 
std::unique_ptr< weld::Labelm_xDestFT
 

Additional Inherited Members

- Public Types inherited from ScRefHdlrControllerImpl< SfxModelessDialogController >
enum  
 
- Static Public Member Functions inherited from ScRefHandler
static bool CanInputStart (const formula::RefEdit *pEdit)
 
- Protected Member Functions inherited from SfxModelessDialogController
 SfxModelessDialogController (SfxBindings *, SfxChildWindow *pChildWin, weld::Window *pParent, const OUString &rUIXMLDescription, const OUString &rID)
 
- Protected Member Functions inherited from ScRefHandler
void disposeRefHandler ()
 
bool DoClose (sal_uInt16 nId)
 
void SetDispatcherLock (bool bLock)
 
virtual void RefInputStart (formula::RefEdit *pEdit, formula::RefButton *pButton=nullptr) override
 
virtual void RefInputDone (bool bForced=false) override
 
bool ParseWithNames (ScRangeList &rRanges, std::u16string_view rStr, const ScDocument &pDoc)
 

Detailed Description

Definition at line 30 of file consdlg.hxx.

Constructor & Destructor Documentation

◆ ScConsolidateDlg()

ScConsolidateDlg::ScConsolidateDlg ( SfxBindings pB,
SfxChildWindow pCW,
weld::Window pParent,
const SfxItemSet rArgSet 
)

Definition at line 67 of file consdlg.cxx.

References Get(), GetData, GetWhich, Init(), m_pRefInputEdit, and m_xEdDataArea.

◆ ~ScConsolidateDlg()

ScConsolidateDlg::~ScConsolidateDlg ( )
overridevirtual

Definition at line 105 of file consdlg.cxx.

Member Function Documentation

◆ Close()

void ScConsolidateDlg::Close ( )
overridevirtual

Reimplemented from SfxModelessDialogController.

Definition at line 254 of file consdlg.cxx.

References ScRefHandler::DoClose().

◆ Deactivate()

void ScConsolidateDlg::Deactivate ( )
overridevirtual

Reimplemented from SfxModelessDialogController.

Definition at line 277 of file consdlg.cxx.

References bDlgLostFocus.

◆ DECL_LINK() [1/7]

ScConsolidateDlg::DECL_LINK ( ClickHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/7]

ScConsolidateDlg::DECL_LINK ( GetEditFocusHdl  ,
formula::RefEdit ,
void   
)
private

◆ DECL_LINK() [3/7]

ScConsolidateDlg::DECL_LINK ( GetFocusHdl  ,
weld::Widget ,
void   
)
private

◆ DECL_LINK() [4/7]

ScConsolidateDlg::DECL_LINK ( ModifyHdl  ,
formula::RefEdit ,
void   
)
private

◆ DECL_LINK() [5/7]

ScConsolidateDlg::DECL_LINK ( OkHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [6/7]

ScConsolidateDlg::DECL_LINK ( SelectCBHdl  ,
weld::ComboBox ,
void   
)
private

◆ DECL_LINK() [7/7]

ScConsolidateDlg::DECL_LINK ( SelectTVHdl  ,
weld::TreeView ,
void   
)
private

◆ FillAreaLists()

void ScConsolidateDlg::FillAreaLists ( )
private

Definition at line 208 of file consdlg.cxx.

References aStrUndefined, i, m_xLbDataArea, m_xLbDestArea, nAreaDataCount, and pAreaData.

Referenced by Init().

◆ FuncToLbPos()

sal_Int32 ScConsolidateDlg::FuncToLbPos ( ScSubTotalFunc  eFunc)
staticprivate

◆ Init()

void ScConsolidateDlg::Init ( void  )
private

◆ IsRefInputMode()

virtual bool ScConsolidateDlg::IsRefInputMode ( ) const
inlineoverridevirtual

Reimplemented from ScRefHandler.

Definition at line 39 of file consdlg.hxx.

◆ LbPosToFunc()

ScSubTotalFunc ScConsolidateDlg::LbPosToFunc ( sal_Int32  nPos)
staticprivate

◆ SetActive()

void ScConsolidateDlg::SetActive ( )
overridevirtual

◆ SetReference()

void ScConsolidateDlg::SetReference ( const ScRange rRef,
ScDocument rDoc 
)
overridevirtual

◆ VerifyEdit()

bool ScConsolidateDlg::VerifyEdit ( formula::RefEdit pEd)
private

Member Data Documentation

◆ aStrUndefined

OUString ScConsolidateDlg::aStrUndefined
private

Definition at line 46 of file consdlg.hxx.

Referenced by FillAreaLists().

◆ bDlgLostFocus

bool ScConsolidateDlg::bDlgLostFocus
private

Definition at line 54 of file consdlg.hxx.

Referenced by Deactivate(), and SetActive().

◆ m_pRefInputEdit

formula::RefEdit* ScConsolidateDlg::m_pRefInputEdit
private

Definition at line 56 of file consdlg.hxx.

Referenced by ScConsolidateDlg(), SetActive(), and SetReference().

◆ m_xBtnAdd

std::unique_ptr<weld::Button> ScConsolidateDlg::m_xBtnAdd
private

Definition at line 76 of file consdlg.hxx.

Referenced by Init().

◆ m_xBtnByCol

std::unique_ptr<weld::CheckButton> ScConsolidateDlg::m_xBtnByCol
private

Definition at line 70 of file consdlg.hxx.

Referenced by Init().

◆ m_xBtnByRow

std::unique_ptr<weld::CheckButton> ScConsolidateDlg::m_xBtnByRow
private

Definition at line 69 of file consdlg.hxx.

Referenced by Init().

◆ m_xBtnCancel

std::unique_ptr<weld::Button> ScConsolidateDlg::m_xBtnCancel
private

Definition at line 75 of file consdlg.hxx.

Referenced by Init().

◆ m_xBtnOk

std::unique_ptr<weld::Button> ScConsolidateDlg::m_xBtnOk
private

Definition at line 74 of file consdlg.hxx.

Referenced by Init().

◆ m_xBtnRefs

std::unique_ptr<weld::CheckButton> ScConsolidateDlg::m_xBtnRefs
private

Definition at line 72 of file consdlg.hxx.

Referenced by Init().

◆ m_xBtnRemove

std::unique_ptr<weld::Button> ScConsolidateDlg::m_xBtnRemove
private

Definition at line 77 of file consdlg.hxx.

Referenced by Init().

◆ m_xDataFT

std::unique_ptr<weld::Label> ScConsolidateDlg::m_xDataFT
private

Definition at line 79 of file consdlg.hxx.

Referenced by Init().

◆ m_xDestFT

std::unique_ptr<weld::Label> ScConsolidateDlg::m_xDestFT
private

Definition at line 80 of file consdlg.hxx.

Referenced by Init().

◆ m_xEdDataArea

std::unique_ptr<formula::RefEdit> ScConsolidateDlg::m_xEdDataArea
private

Definition at line 62 of file consdlg.hxx.

Referenced by Init(), ScConsolidateDlg(), SetReference(), and VerifyEdit().

◆ m_xEdDestArea

std::unique_ptr<formula::RefEdit> ScConsolidateDlg::m_xEdDestArea
private

Definition at line 66 of file consdlg.hxx.

Referenced by Init(), SetReference(), and VerifyEdit().

◆ m_xLbConsAreas

std::unique_ptr<weld::TreeView> ScConsolidateDlg::m_xLbConsAreas
private

Definition at line 59 of file consdlg.hxx.

Referenced by Init().

◆ m_xLbDataArea

std::unique_ptr<weld::ComboBox> ScConsolidateDlg::m_xLbDataArea
private

Definition at line 61 of file consdlg.hxx.

Referenced by FillAreaLists(), and Init().

◆ m_xLbDestArea

std::unique_ptr<weld::ComboBox> ScConsolidateDlg::m_xLbDestArea
private

Definition at line 65 of file consdlg.hxx.

Referenced by FillAreaLists(), and Init().

◆ m_xLbFunc

std::unique_ptr<weld::ComboBox> ScConsolidateDlg::m_xLbFunc
private

Definition at line 58 of file consdlg.hxx.

Referenced by Init().

◆ m_xRbDataArea

std::unique_ptr<formula::RefButton> ScConsolidateDlg::m_xRbDataArea
private

Definition at line 63 of file consdlg.hxx.

Referenced by Init().

◆ m_xRbDestArea

std::unique_ptr<formula::RefButton> ScConsolidateDlg::m_xRbDestArea
private

Definition at line 67 of file consdlg.hxx.

Referenced by Init().

◆ nAreaDataCount

size_t ScConsolidateDlg::nAreaDataCount
private

Definition at line 52 of file consdlg.hxx.

Referenced by FillAreaLists(), and Init().

◆ nWhichCons

sal_uInt16 ScConsolidateDlg::nWhichCons
private

Definition at line 53 of file consdlg.hxx.

◆ pAreaData

std::unique_ptr<ScAreaData[]> ScConsolidateDlg::pAreaData
private

Definition at line 51 of file consdlg.hxx.

Referenced by FillAreaLists(), and Init().

◆ rDoc

ScDocument& ScConsolidateDlg::rDoc
private

Definition at line 50 of file consdlg.hxx.

Referenced by Init(), and VerifyEdit().

◆ rViewData

ScViewData& ScConsolidateDlg::rViewData
private

Definition at line 49 of file consdlg.hxx.

Referenced by VerifyEdit().

◆ theConsData

ScConsolidateParam ScConsolidateDlg::theConsData
private

Definition at line 48 of file consdlg.hxx.

Referenced by Init().


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