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

#include <dbnamdlg.hxx>

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

Public Member Functions

 ScDbNameDlg (SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent, ScViewData *ptrViewData)
 
virtual ~ScDbNameDlg () override
 
virtual void SetReference (const ScRange &rRef, ScDocument &rDoc) override
 
virtual bool IsRefInputMode () const override
 
virtual void SetActive () override
 
virtual void Close () 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 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 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 UpdateNames ()
 
void UpdateDBData (const OUString &rStrName)
 
void SetInfoStrings (const ScDBData *pDBData)
 
 DECL_LINK (CancelBtnHdl, weld::Button &, void)
 
 DECL_LINK (OkBtnHdl, weld::Button &, void)
 
 DECL_LINK (AddBtnHdl, weld::Button &, void)
 
 DECL_LINK (RemoveBtnHdl, weld::Button &, void)
 
 DECL_LINK (NameModifyHdl, weld::ComboBox &, void)
 
 DECL_LINK (AssModifyHdl, formula::RefEdit &, void)
 

Private Attributes

bool bSaved
 
OUString aStrAdd
 
OUString aStrModify
 
OUString aStrInvalid
 
OUString aStrSource
 
OUString aStrOperations
 
ScViewDatapViewData
 
const ScDocumentrDoc
 
bool bRefInputMode
 
ScAddress::Details aAddrDetails
 
ScDBCollection aLocalDbCol
 
ScRange theCurArea
 
std::vector< ScRangeaRemoveList
 
std::unique_ptr< weld::EntryTreeViewm_xEdName
 
std::unique_ptr< weld::Framem_xAssignFrame
 
std::unique_ptr< formula::RefEditm_xEdAssign
 
std::unique_ptr< formula::RefButtonm_xRbAssign
 
std::unique_ptr< weld::Widgetm_xOptions
 
std::unique_ptr< weld::CheckButtonm_xBtnHeader
 
std::unique_ptr< weld::CheckButtonm_xBtnTotals
 
std::unique_ptr< weld::CheckButtonm_xBtnDoSize
 
std::unique_ptr< weld::CheckButtonm_xBtnKeepFmt
 
std::unique_ptr< weld::CheckButtonm_xBtnStripData
 
std::unique_ptr< weld::Labelm_xFTSource
 
std::unique_ptr< weld::Labelm_xFTOperations
 
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::Buttonm_xModifyPB
 
std::unique_ptr< weld::Labelm_xInvalidFT
 
std::unique_ptr< weld::Labelm_xFrameLabel
 
std::unique_ptr< weld::Expanderm_xExpander
 

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 dbnamdlg.hxx.

Constructor & Destructor Documentation

ScDbNameDlg::ScDbNameDlg ( SfxBindings pB,
SfxChildWindow pCW,
weld::Window pParent,
ScViewData ptrViewData 
)
ScDbNameDlg::~ScDbNameDlg ( )
overridevirtual

Definition at line 175 of file dbnamdlg.cxx.

References DELETEZ, and pSaveObj.

Member Function Documentation

void ScDbNameDlg::Close ( )
overridevirtual

Reimplemented from SfxModelessDialogController.

Definition at line 299 of file dbnamdlg.cxx.

References ScRefHandler::DoClose().

ScDbNameDlg::DECL_LINK ( CancelBtnHdl  ,
weld::Button ,
void   
)
private
ScDbNameDlg::DECL_LINK ( OkBtnHdl  ,
weld::Button ,
void   
)
private
ScDbNameDlg::DECL_LINK ( AddBtnHdl  ,
weld::Button ,
void   
)
private
ScDbNameDlg::DECL_LINK ( RemoveBtnHdl  ,
weld::Button ,
void   
)
private
ScDbNameDlg::DECL_LINK ( NameModifyHdl  ,
weld::ComboBox ,
void   
)
private
ScDbNameDlg::DECL_LINK ( AssModifyHdl  ,
formula::RefEdit ,
void   
)
private
void ScDbNameDlg::Init ( void  )
private
bool ScDbNameDlg::IsRefInputMode ( ) const
overridevirtual

Reimplemented from ScRefHandler.

Definition at line 374 of file dbnamdlg.cxx.

References bRefInputMode.

void ScDbNameDlg::SetActive ( )
overridevirtual

Implements ScRefHandler.

Definition at line 304 of file dbnamdlg.cxx.

References m_xEdAssign, and ScRefHandler::RefInputDone().

void ScDbNameDlg::SetInfoStrings ( const ScDBData pDBData)
private
void ScDbNameDlg::SetReference ( const ScRange rRef,
ScDocument rDoc 
)
overridevirtual
void ScDbNameDlg::UpdateDBData ( const OUString &  rStrName)
private
void ScDbNameDlg::UpdateNames ( )
private

Member Data Documentation

ScAddress::Details ScDbNameDlg::aAddrDetails
private

Definition at line 56 of file dbnamdlg.hxx.

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

ScDBCollection ScDbNameDlg::aLocalDbCol
private

Definition at line 58 of file dbnamdlg.hxx.

Referenced by UpdateDBData(), and UpdateNames().

std::vector<ScRange> ScDbNameDlg::aRemoveList
private

Definition at line 60 of file dbnamdlg.hxx.

OUString ScDbNameDlg::aStrAdd
private

Definition at line 46 of file dbnamdlg.hxx.

Referenced by ScDbNameDlg(), and UpdateNames().

OUString ScDbNameDlg::aStrInvalid
private

Definition at line 48 of file dbnamdlg.hxx.

Referenced by ScDbNameDlg().

OUString ScDbNameDlg::aStrModify
private

Definition at line 47 of file dbnamdlg.hxx.

Referenced by ScDbNameDlg(), and UpdateDBData().

OUString ScDbNameDlg::aStrOperations
private

Definition at line 51 of file dbnamdlg.hxx.

Referenced by ScDbNameDlg(), and SetInfoStrings().

OUString ScDbNameDlg::aStrSource
private

Definition at line 50 of file dbnamdlg.hxx.

Referenced by ScDbNameDlg(), and SetInfoStrings().

bool ScDbNameDlg::bRefInputMode
private

Definition at line 55 of file dbnamdlg.hxx.

Referenced by IsRefInputMode().

bool ScDbNameDlg::bSaved
private

Definition at line 44 of file dbnamdlg.hxx.

Referenced by Init(), and SetReference().

std::unique_ptr<weld::Frame> ScDbNameDlg::m_xAssignFrame
private

Definition at line 64 of file dbnamdlg.hxx.

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

Definition at line 79 of file dbnamdlg.hxx.

Referenced by Init(), ScDbNameDlg(), SetReference(), UpdateDBData(), and UpdateNames().

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

Definition at line 78 of file dbnamdlg.hxx.

Referenced by Init().

std::unique_ptr<weld::CheckButton> ScDbNameDlg::m_xBtnDoSize
private

Definition at line 71 of file dbnamdlg.hxx.

Referenced by Init(), ScDbNameDlg(), and UpdateDBData().

std::unique_ptr<weld::CheckButton> ScDbNameDlg::m_xBtnHeader
private

Definition at line 69 of file dbnamdlg.hxx.

Referenced by Init(), ScDbNameDlg(), and UpdateDBData().

std::unique_ptr<weld::CheckButton> ScDbNameDlg::m_xBtnKeepFmt
private

Definition at line 72 of file dbnamdlg.hxx.

Referenced by Init(), ScDbNameDlg(), and UpdateDBData().

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

Definition at line 77 of file dbnamdlg.hxx.

Referenced by Init().

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

Definition at line 80 of file dbnamdlg.hxx.

Referenced by Init(), UpdateDBData(), and UpdateNames().

std::unique_ptr<weld::CheckButton> ScDbNameDlg::m_xBtnStripData
private

Definition at line 73 of file dbnamdlg.hxx.

Referenced by Init(), ScDbNameDlg(), and UpdateDBData().

std::unique_ptr<weld::CheckButton> ScDbNameDlg::m_xBtnTotals
private

Definition at line 70 of file dbnamdlg.hxx.

Referenced by Init(), ScDbNameDlg(), and UpdateDBData().

std::unique_ptr<formula::RefEdit> ScDbNameDlg::m_xEdAssign
private

Definition at line 65 of file dbnamdlg.hxx.

Referenced by Init(), ScDbNameDlg(), SetActive(), SetReference(), UpdateDBData(), and UpdateNames().

std::unique_ptr<weld::EntryTreeView> ScDbNameDlg::m_xEdName
private

Definition at line 62 of file dbnamdlg.hxx.

Referenced by Init(), ScDbNameDlg(), and UpdateNames().

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

Definition at line 86 of file dbnamdlg.hxx.

std::unique_ptr<weld::Label> ScDbNameDlg::m_xFrameLabel
private

Definition at line 85 of file dbnamdlg.hxx.

Referenced by ScDbNameDlg().

std::unique_ptr<weld::Label> ScDbNameDlg::m_xFTOperations
private

Definition at line 75 of file dbnamdlg.hxx.

Referenced by ScDbNameDlg(), and SetInfoStrings().

std::unique_ptr<weld::Label> ScDbNameDlg::m_xFTSource
private

Definition at line 74 of file dbnamdlg.hxx.

Referenced by ScDbNameDlg(), and SetInfoStrings().

std::unique_ptr<weld::Label> ScDbNameDlg::m_xInvalidFT
private

Definition at line 83 of file dbnamdlg.hxx.

Referenced by ScDbNameDlg().

std::unique_ptr<weld::Button> ScDbNameDlg::m_xModifyPB
private

Definition at line 82 of file dbnamdlg.hxx.

Referenced by ScDbNameDlg().

std::unique_ptr<weld::Widget> ScDbNameDlg::m_xOptions
private

Definition at line 68 of file dbnamdlg.hxx.

Referenced by SetReference(), and UpdateDBData().

std::unique_ptr<formula::RefButton> ScDbNameDlg::m_xRbAssign
private

Definition at line 66 of file dbnamdlg.hxx.

Referenced by ScDbNameDlg().

ScViewData* ScDbNameDlg::pViewData
private

Definition at line 53 of file dbnamdlg.hxx.

Referenced by Init().

const ScDocument& ScDbNameDlg::rDoc
private

Definition at line 54 of file dbnamdlg.hxx.

Referenced by Init(), and UpdateDBData().

ScRange ScDbNameDlg::theCurArea
private

Definition at line 59 of file dbnamdlg.hxx.

Referenced by Init(), ScDbNameDlg(), SetReference(), and UpdateDBData().


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