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 OString &rt5)
 
- Public Member Functions inherited from ScRefHdlrControllerImpl< SfxModelessDialogController >
 ScRefHdlrControllerImpl (weld::Window *pParent, const OUString &rUIXMLDescription, const OString &rID, const SfxItemSet *pArg, SfxBindings *pB)
 
 ScRefHdlrControllerImpl (SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent, const OUString &rUIXMLDescription, const OString &rID)
 
- Public Member Functions inherited from SfxModelessDialogController
virtual ~SfxModelessDialogController () override
 
void Initialize (SfxChildWinInfo const *pInfo)
 
bool IsClosing () const
 
virtual void EndDialog () override
 
virtual void Activate () 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 OString &rDialogId)
 
- Public Member Functions inherited from ScRefHandler
 ScRefHandler (SfxDialogController &rController, SfxBindings *pB, bool bBindRef)
 
virtual ~ScRefHandler () COVERITY_NOEXCEPT_FALSE override
 
virtual void AddRefEntry () 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 ()
 
bool EnterRefMode ()
 
bool LeaveRefMode ()
 
bool CanInputDone (bool bForced)
 
- Public Member Functions inherited from IAnyRefDialog
virtual ~IAnyRefDialog () COVERITY_NOEXCEPT_FALSE
 

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::Expanderm_xExpander
 
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 OString &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, const OUString &rStr, const ScDocument &pDoc)
 
- Protected Member Functions inherited from formula::IControlReferenceHandler
 ~IControlReferenceHandler ()
 

Detailed Description

Definition at line 30 of file consdlg.hxx.

Constructor & Destructor Documentation

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 ( )
overridevirtual

Definition at line 106 of file consdlg.cxx.

Member Function Documentation

void ScConsolidateDlg::Close ( )
overridevirtual

Reimplemented from SfxModelessDialogController.

Definition at line 255 of file consdlg.cxx.

References ScRefHandler::DoClose().

void ScConsolidateDlg::Deactivate ( )
overridevirtual

Reimplemented from SfxModelessDialogController.

Definition at line 278 of file consdlg.cxx.

References bDlgLostFocus.

ScConsolidateDlg::DECL_LINK ( OkHdl  ,
weld::Button ,
void   
)
private
ScConsolidateDlg::DECL_LINK ( ClickHdl  ,
weld::Button ,
void   
)
private
ScConsolidateDlg::DECL_LINK ( GetFocusHdl  ,
weld::Widget ,
void   
)
private
ScConsolidateDlg::DECL_LINK ( GetEditFocusHdl  ,
formula::RefEdit ,
void   
)
private
ScConsolidateDlg::DECL_LINK ( ModifyHdl  ,
formula::RefEdit ,
void   
)
private
ScConsolidateDlg::DECL_LINK ( SelectTVHdl  ,
weld::TreeView ,
void   
)
private
ScConsolidateDlg::DECL_LINK ( SelectCBHdl  ,
weld::ComboBox ,
void   
)
private
void ScConsolidateDlg::FillAreaLists ( )
private

Definition at line 209 of file consdlg.cxx.

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

Referenced by Init().

sal_Int32 ScConsolidateDlg::FuncToLbPos ( ScSubTotalFunc  eFunc)
staticprivate
void ScConsolidateDlg::Init ( void  )
private
virtual bool ScConsolidateDlg::IsRefInputMode ( ) const
inlineoverridevirtual

Reimplemented from ScRefHandler.

Definition at line 39 of file consdlg.hxx.

ScSubTotalFunc ScConsolidateDlg::LbPosToFunc ( sal_Int32  nPos)
staticprivate
void ScConsolidateDlg::SetActive ( )
overridevirtual
void ScConsolidateDlg::SetReference ( const ScRange rRef,
ScDocument rDoc 
)
overridevirtual
bool ScConsolidateDlg::VerifyEdit ( formula::RefEdit pEd)
private

Member Data Documentation

OUString ScConsolidateDlg::aStrUndefined
private

Definition at line 46 of file consdlg.hxx.

Referenced by FillAreaLists().

bool ScConsolidateDlg::bDlgLostFocus
private

Definition at line 54 of file consdlg.hxx.

Referenced by Deactivate(), and SetActive().

formula::RefEdit* ScConsolidateDlg::m_pRefInputEdit
private

Definition at line 56 of file consdlg.hxx.

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

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

Definition at line 77 of file consdlg.hxx.

Referenced by Init().

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

Definition at line 71 of file consdlg.hxx.

Referenced by Init().

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

Definition at line 70 of file consdlg.hxx.

Referenced by Init().

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

Definition at line 76 of file consdlg.hxx.

Referenced by Init().

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

Definition at line 75 of file consdlg.hxx.

Referenced by Init().

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

Definition at line 73 of file consdlg.hxx.

Referenced by Init().

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

Definition at line 78 of file consdlg.hxx.

Referenced by Init().

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

Definition at line 80 of file consdlg.hxx.

Referenced by Init().

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

Definition at line 81 of file consdlg.hxx.

Referenced by Init().

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

Definition at line 62 of file consdlg.hxx.

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

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

Definition at line 66 of file consdlg.hxx.

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

std::unique_ptr<weld::Expander> ScConsolidateDlg::m_xExpander
private

Definition at line 69 of file consdlg.hxx.

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

Definition at line 59 of file consdlg.hxx.

Referenced by Init().

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

Definition at line 61 of file consdlg.hxx.

Referenced by FillAreaLists(), and Init().

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

Definition at line 65 of file consdlg.hxx.

Referenced by FillAreaLists(), and Init().

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

Definition at line 58 of file consdlg.hxx.

Referenced by Init().

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

Definition at line 63 of file consdlg.hxx.

Referenced by Init().

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

Definition at line 67 of file consdlg.hxx.

Referenced by Init().

size_t ScConsolidateDlg::nAreaDataCount
private

Definition at line 52 of file consdlg.hxx.

Referenced by FillAreaLists(), and Init().

sal_uInt16 ScConsolidateDlg::nWhichCons
private

Definition at line 53 of file consdlg.hxx.

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

Definition at line 51 of file consdlg.hxx.

Referenced by FillAreaLists(), and Init().

ScDocument& ScConsolidateDlg::rDoc
private

Definition at line 50 of file consdlg.hxx.

Referenced by Init(), and VerifyEdit().

ScViewData& ScConsolidateDlg::rViewData
private

Definition at line 49 of file consdlg.hxx.

Referenced by VerifyEdit().

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: