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 &rViewData)
 
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 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 OString &rDialogId)
 
virtual void Activate ()
 
virtual void Deactivate ()
 
virtual void ChildWinDispose ()
 
virtual void Close ()
 
virtual void EndDialog (int nResponse)
 
- 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)
 
- Public Member Functions inherited from IAnyRefDialog
virtual ~IAnyRefDialog () COVERITY_NOEXCEPT_FALSE
 
virtual void SetReference (const ScRange &rRef, ScDocument &rDoc)=0
 
virtual void RefInputStart (formula::RefEdit *pEdit, formula::RefButton *pButton=nullptr)=0
 
virtual void RefInputDone (bool bForced=false)=0
 
virtual bool IsTableLocked () const =0
 
virtual bool IsRefInputMode () const =0
 
virtual bool IsDocAllowed (SfxObjectShell *pDocSh) const =0
 
virtual void AddRefEntry ()=0
 
virtual void SetActive ()=0
 
virtual void ViewShellChanged ()=0
 
virtual void ShowReference (const OUString &_sRef)=0
 
virtual void HideReference (bool bDoneRefMode=true)=0
 
virtual void ReleaseFocus (RefEdit *pEdit)=0
 
virtual void ToggleCollapsed (RefEdit *pEdit, RefButton *pButton)=0
 

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
 
bool bInvalid
 
OUString aStrAdd
 
OUString aStrModify
 
OUString aStrInvalid
 
OUString aStrSource
 
OUString aStrOperations
 
ScViewDatam_rViewData
 
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, std::u16string_view rStr, const ScDocument &pDoc)
 
- Protected Member Functions inherited from formula::IControlReferenceHandler
 ~IControlReferenceHandler ()
 

Detailed Description

Definition at line 29 of file dbnamdlg.hxx.

Constructor & Destructor Documentation

◆ ScDbNameDlg()

ScDbNameDlg::ScDbNameDlg ( SfxBindings pB,
SfxChildWindow pCW,
weld::Window pParent,
ScViewData rViewData 
)

◆ ~ScDbNameDlg()

ScDbNameDlg::~ScDbNameDlg ( )
overridevirtual

Definition at line 176 of file dbnamdlg.cxx.

References xSaveObj.

Member Function Documentation

◆ Close()

void ScDbNameDlg::Close ( )
overridevirtual

Reimplemented from SfxModelessDialogController.

Definition at line 297 of file dbnamdlg.cxx.

References ScRefHandler::DoClose().

◆ DECL_LINK() [1/6]

ScDbNameDlg::DECL_LINK ( AddBtnHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/6]

ScDbNameDlg::DECL_LINK ( AssModifyHdl  ,
formula::RefEdit ,
void   
)
private

◆ DECL_LINK() [3/6]

ScDbNameDlg::DECL_LINK ( CancelBtnHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [4/6]

ScDbNameDlg::DECL_LINK ( NameModifyHdl  ,
weld::ComboBox ,
void   
)
private

◆ DECL_LINK() [5/6]

ScDbNameDlg::DECL_LINK ( OkBtnHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [6/6]

ScDbNameDlg::DECL_LINK ( RemoveBtnHdl  ,
weld::Button ,
void   
)
private

◆ Init()

void ScDbNameDlg::Init ( void  )
private

◆ IsRefInputMode()

bool ScDbNameDlg::IsRefInputMode ( ) const
overridevirtual

Reimplemented from ScRefHandler.

Definition at line 372 of file dbnamdlg.cxx.

References bRefInputMode.

◆ SetActive()

void ScDbNameDlg::SetActive ( )
overridevirtual

Implements ScRefHandler.

Definition at line 302 of file dbnamdlg.cxx.

References m_xEdAssign, and ScRefHandler::RefInputDone().

◆ SetInfoStrings()

void ScDbNameDlg::SetInfoStrings ( const ScDBData pDBData)
private

◆ SetReference()

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

◆ UpdateDBData()

void ScDbNameDlg::UpdateDBData ( const OUString &  rStrName)
private

◆ UpdateNames()

void ScDbNameDlg::UpdateNames ( )
private

Definition at line 313 of file dbnamdlg.cxx.

References aLocalDbCol, aStrAdd, ScDBCollection::getNamedDBs(), m_xBtnAdd, m_xBtnRemove, m_xEdAssign, and m_xEdName.

Referenced by Init().

Member Data Documentation

◆ aAddrDetails

ScAddress::Details ScDbNameDlg::aAddrDetails
private

Definition at line 56 of file dbnamdlg.hxx.

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

◆ aLocalDbCol

ScDBCollection ScDbNameDlg::aLocalDbCol
private

Definition at line 58 of file dbnamdlg.hxx.

Referenced by UpdateDBData(), and UpdateNames().

◆ aRemoveList

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

Definition at line 60 of file dbnamdlg.hxx.

◆ aStrAdd

OUString ScDbNameDlg::aStrAdd
private

Definition at line 46 of file dbnamdlg.hxx.

Referenced by ScDbNameDlg(), and UpdateNames().

◆ aStrInvalid

OUString ScDbNameDlg::aStrInvalid
private

Definition at line 48 of file dbnamdlg.hxx.

Referenced by ScDbNameDlg().

◆ aStrModify

OUString ScDbNameDlg::aStrModify
private

Definition at line 47 of file dbnamdlg.hxx.

Referenced by ScDbNameDlg(), and UpdateDBData().

◆ aStrOperations

OUString ScDbNameDlg::aStrOperations
private

Definition at line 51 of file dbnamdlg.hxx.

Referenced by ScDbNameDlg(), and SetInfoStrings().

◆ aStrSource

OUString ScDbNameDlg::aStrSource
private

Definition at line 50 of file dbnamdlg.hxx.

Referenced by ScDbNameDlg(), and SetInfoStrings().

◆ bInvalid

bool ScDbNameDlg::bInvalid
private

Definition at line 44 of file dbnamdlg.hxx.

Referenced by Init().

◆ bRefInputMode

bool ScDbNameDlg::bRefInputMode
private

Definition at line 55 of file dbnamdlg.hxx.

Referenced by IsRefInputMode().

◆ bSaved

bool ScDbNameDlg::bSaved
private

Definition at line 43 of file dbnamdlg.hxx.

Referenced by Init(), and SetReference().

◆ m_rViewData

ScViewData& ScDbNameDlg::m_rViewData
private

Definition at line 53 of file dbnamdlg.hxx.

Referenced by Init().

◆ m_xAssignFrame

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

Definition at line 64 of file dbnamdlg.hxx.

◆ m_xBtnAdd

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

◆ m_xBtnCancel

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

Definition at line 78 of file dbnamdlg.hxx.

Referenced by Init().

◆ m_xBtnDoSize

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

Definition at line 71 of file dbnamdlg.hxx.

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

◆ m_xBtnHeader

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

Definition at line 69 of file dbnamdlg.hxx.

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

◆ m_xBtnKeepFmt

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

Definition at line 72 of file dbnamdlg.hxx.

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

◆ m_xBtnOk

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

Definition at line 77 of file dbnamdlg.hxx.

Referenced by Init().

◆ m_xBtnRemove

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

Definition at line 80 of file dbnamdlg.hxx.

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

◆ m_xBtnStripData

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

Definition at line 73 of file dbnamdlg.hxx.

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

◆ m_xBtnTotals

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

Definition at line 70 of file dbnamdlg.hxx.

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

◆ m_xEdAssign

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

◆ m_xEdName

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

Definition at line 62 of file dbnamdlg.hxx.

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

◆ m_xExpander

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

Definition at line 86 of file dbnamdlg.hxx.

◆ m_xFrameLabel

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

Definition at line 85 of file dbnamdlg.hxx.

Referenced by ScDbNameDlg().

◆ m_xFTOperations

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

Definition at line 75 of file dbnamdlg.hxx.

Referenced by ScDbNameDlg(), and SetInfoStrings().

◆ m_xFTSource

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

Definition at line 74 of file dbnamdlg.hxx.

Referenced by ScDbNameDlg(), and SetInfoStrings().

◆ m_xInvalidFT

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

Definition at line 83 of file dbnamdlg.hxx.

Referenced by ScDbNameDlg().

◆ m_xModifyPB

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

Definition at line 82 of file dbnamdlg.hxx.

Referenced by ScDbNameDlg().

◆ m_xOptions

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

Definition at line 68 of file dbnamdlg.hxx.

Referenced by SetReference(), and UpdateDBData().

◆ m_xRbAssign

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

Definition at line 66 of file dbnamdlg.hxx.

Referenced by ScDbNameDlg().

◆ rDoc

const ScDocument& ScDbNameDlg::rDoc
private

Definition at line 54 of file dbnamdlg.hxx.

Referenced by Init(), and UpdateDBData().

◆ theCurArea

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: