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

#include <namedlg.hxx>

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

Public Member Functions

 ScNameDlg (SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent, ScViewData &rViewData, const ScAddress &aCursorPos, std::map< OUString, std::unique_ptr< ScRangeName >> *pRangeMap=nullptr)
 
virtual ~ScNameDlg () override
 
virtual void SetReference (const ScRange &rRef, ScDocument &rDoc) override
 
virtual bool IsRefInputMode () const override
 
virtual void SetActive () override
 
virtual void Close () override
 
void GetRangeNames (std::map< OUString, std::unique_ptr< ScRangeName >> &rRangeMap)
 
void SetEntry (const OUString &rName, const OUString &rScope)
 
- 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
 

Protected Member Functions

virtual void RefInputDone (bool bForced=false) override
 
- 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
 
bool ParseWithNames (ScRangeList &rRanges, const OUString &rStr, const ScDocument &pDoc)
 
- Protected Member Functions inherited from formula::IControlReferenceHandler
 ~IControlReferenceHandler ()
 

Private Types

typedef std::map< OUString, std::unique_ptr< ScRangeName > > RangeNameContainer
 

Private Member Functions

void Init ()
 
void UpdateChecks (const ScRangeData *pData)
 
void ShowOptions (const ScRangeNameLine &rLine)
 
bool IsNameValid ()
 
bool IsFormulaValid ()
 
void CheckForEmptyTable ()
 
ScRangeNameGetRangeName (const OUString &rScope)
 
void AddPushed ()
 
void RemovePushed ()
 
void ScopeChanged ()
 
void NameModified ()
 
void SelectionChanged ()
 
 DECL_LINK (OkBtnHdl, weld::Button &, void)
 
 DECL_LINK (CancelBtnHdl, weld::Button &, void)
 
 DECL_LINK (AddBtnHdl, weld::Button &, void)
 
 DECL_LINK (RemoveBtnHdl, weld::Button &, void)
 
 DECL_LINK (EdModifyHdl, weld::Entry &, void)
 
 DECL_LINK (RefEdModifyHdl, formula::RefEdit &, void)
 
 DECL_LINK (EdModifyCheckBoxHdl, weld::ToggleButton &, void)
 
 DECL_LINK (AssignGetFocusHdl, formula::RefEdit &, void)
 
 DECL_LINK (SelectionChangedHdl_Impl, weld::TreeView &, void)
 
 DECL_LINK (ScopeChangedHdl, weld::ComboBox &, void)
 

Private Attributes

const OUString maGlobalNameStr
 
const OUString maErrInvalidNameStr
 
const OUString maErrNameInUse
 
const OUString maStrMultiSelect
 
OUString maStrInfoDefault
 
ScViewDatamrViewData
 
ScDocumentmrDoc
 
const ScAddress maCursorPos
 
bool mbDataChanged
 
bool mbCloseWithoutUndo
 
RangeNameContainer m_RangeMap
 
std::unique_ptr< weld::Entrym_xEdName
 
std::unique_ptr< weld::Labelm_xFtAssign
 
std::unique_ptr< formula::RefEditm_xEdAssign
 
std::unique_ptr< formula::RefButtonm_xRbAssign
 
std::unique_ptr< weld::ComboBoxm_xLbScope
 
std::unique_ptr< weld::CheckButtonm_xBtnPrintArea
 
std::unique_ptr< weld::CheckButtonm_xBtnColHeader
 
std::unique_ptr< weld::CheckButtonm_xBtnCriteria
 
std::unique_ptr< weld::CheckButtonm_xBtnRowHeader
 
std::unique_ptr< weld::Buttonm_xBtnAdd
 
std::unique_ptr< weld::Buttonm_xBtnDelete
 
std::unique_ptr< weld::Buttonm_xBtnOk
 
std::unique_ptr< weld::Buttonm_xBtnCancel
 
std::unique_ptr< weld::Labelm_xFtInfo
 
std::unique_ptr< weld::Expanderm_xExpander
 
std::unique_ptr< ScRangeManagerTablem_xRangeManagerTable
 

Additional Inherited Members

- Public Types inherited from ScRefHdlrControllerImpl< SfxModelessDialogController >
enum  
 
- Static Public Member Functions inherited from ScRefHandler
static bool CanInputStart (const formula::RefEdit *pEdit)
 

Detailed Description

Definition at line 33 of file namedlg.hxx.

Member Typedef Documentation

typedef std::map<OUString, std::unique_ptr<ScRangeName> > ScNameDlg::RangeNameContainer
private

Definition at line 50 of file namedlg.hxx.

Constructor & Destructor Documentation

ScNameDlg::ScNameDlg ( SfxBindings pB,
SfxChildWindow pCW,
weld::Window pParent,
ScViewData rViewData,
const ScAddress aCursorPos,
std::map< OUString, std::unique_ptr< ScRangeName >> *  pRangeMap = nullptr 
)
ScNameDlg::~ScNameDlg ( )
overridevirtual

Definition at line 99 of file namedlg.cxx.

Member Function Documentation

void ScNameDlg::AddPushed ( )
private
void ScNameDlg::CheckForEmptyTable ( )
private
void ScNameDlg::Close ( )
overridevirtual
ScNameDlg::DECL_LINK ( OkBtnHdl  ,
weld::Button ,
void   
)
private
ScNameDlg::DECL_LINK ( CancelBtnHdl  ,
weld::Button ,
void   
)
private
ScNameDlg::DECL_LINK ( AddBtnHdl  ,
weld::Button ,
void   
)
private
ScNameDlg::DECL_LINK ( RemoveBtnHdl  ,
weld::Button ,
void   
)
private
ScNameDlg::DECL_LINK ( EdModifyHdl  ,
weld::Entry ,
void   
)
private
ScNameDlg::DECL_LINK ( RefEdModifyHdl  ,
formula::RefEdit ,
void   
)
private
ScNameDlg::DECL_LINK ( EdModifyCheckBoxHdl  ,
weld::ToggleButton ,
void   
)
private
ScNameDlg::DECL_LINK ( AssignGetFocusHdl  ,
formula::RefEdit ,
void   
)
private
ScNameDlg::DECL_LINK ( SelectionChangedHdl_Impl  ,
weld::TreeView ,
void   
)
private
ScNameDlg::DECL_LINK ( ScopeChangedHdl  ,
weld::ComboBox ,
void   
)
private
ScRangeName * ScNameDlg::GetRangeName ( const OUString &  rScope)
private

Definition at line 282 of file namedlg.cxx.

References m_RangeMap, maGlobalNameStr, and STR_GLOBAL_RANGE_NAME.

Referenced by IsNameValid(), NameModified(), RemovePushed(), and ShowOptions().

void ScNameDlg::GetRangeNames ( std::map< OUString, std::unique_ptr< ScRangeName >> &  rRangeMap)

Definition at line 450 of file namedlg.cxx.

References m_RangeMap.

void ScNameDlg::Init ( void  )
private
bool ScNameDlg::IsFormulaValid ( )
private
bool ScNameDlg::IsNameValid ( )
private
bool ScNameDlg::IsRefInputMode ( ) const
overridevirtual

Reimplemented from ScRefHandler.

Definition at line 148 of file namedlg.cxx.

References m_xEdAssign.

void ScNameDlg::NameModified ( )
private
void ScNameDlg::RefInputDone ( bool  bForced = false)
overrideprotectedvirtual

Reimplemented from ScRefHandler.

Definition at line 153 of file namedlg.cxx.

References m_xEdAssign, and ScRefHandler::RefInputDone().

Referenced by SetActive().

void ScNameDlg::RemovePushed ( )
private
void ScNameDlg::ScopeChanged ( )
private

Definition at line 445 of file namedlg.cxx.

References NameModified().

void ScNameDlg::SelectionChanged ( )
private
void ScNameDlg::SetActive ( )
overridevirtual

Implements ScRefHandler.

Definition at line 208 of file namedlg.cxx.

References m_xEdAssign, and RefInputDone().

void ScNameDlg::SetEntry ( const OUString &  rName,
const OUString &  rScope 
)
void ScNameDlg::SetReference ( const ScRange rRef,
ScDocument rDoc 
)
overridevirtual
void ScNameDlg::ShowOptions ( const ScRangeNameLine rLine)
private
void ScNameDlg::UpdateChecks ( const ScRangeData pData)
private

Member Data Documentation

RangeNameContainer ScNameDlg::m_RangeMap
private

Definition at line 52 of file namedlg.hxx.

Referenced by Close(), GetRangeName(), GetRangeNames(), Init(), and ScNameDlg().

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

Definition at line 65 of file namedlg.hxx.

Referenced by Init().

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

Definition at line 68 of file namedlg.hxx.

Referenced by Init().

std::unique_ptr<weld::CheckButton> ScNameDlg::m_xBtnColHeader
private

Definition at line 61 of file namedlg.hxx.

Referenced by CheckForEmptyTable(), Init(), NameModified(), SelectionChanged(), and UpdateChecks().

std::unique_ptr<weld::CheckButton> ScNameDlg::m_xBtnCriteria
private

Definition at line 62 of file namedlg.hxx.

Referenced by CheckForEmptyTable(), Init(), NameModified(), SelectionChanged(), and UpdateChecks().

std::unique_ptr<weld::Button> ScNameDlg::m_xBtnDelete
private

Definition at line 66 of file namedlg.hxx.

Referenced by CheckForEmptyTable(), Init(), and SelectionChanged().

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

Definition at line 67 of file namedlg.hxx.

Referenced by Init().

std::unique_ptr<weld::CheckButton> ScNameDlg::m_xBtnPrintArea
private

Definition at line 60 of file namedlg.hxx.

Referenced by CheckForEmptyTable(), Init(), NameModified(), SelectionChanged(), and UpdateChecks().

std::unique_ptr<weld::CheckButton> ScNameDlg::m_xBtnRowHeader
private

Definition at line 63 of file namedlg.hxx.

Referenced by CheckForEmptyTable(), Init(), NameModified(), SelectionChanged(), and UpdateChecks().

std::unique_ptr<formula::RefEdit> ScNameDlg::m_xEdAssign
private
std::unique_ptr<weld::Entry> ScNameDlg::m_xEdName
private

Definition at line 54 of file namedlg.hxx.

Referenced by CheckForEmptyTable(), Init(), IsNameValid(), NameModified(), and SelectionChanged().

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

Definition at line 72 of file namedlg.hxx.

std::unique_ptr<weld::Label> ScNameDlg::m_xFtAssign
private

Definition at line 55 of file namedlg.hxx.

Referenced by ScNameDlg().

std::unique_ptr<weld::Label> ScNameDlg::m_xFtInfo
private

Definition at line 70 of file namedlg.hxx.

Referenced by IsFormulaValid(), IsNameValid(), NameModified(), and ScNameDlg().

std::unique_ptr<weld::ComboBox> ScNameDlg::m_xLbScope
private

Definition at line 58 of file namedlg.hxx.

Referenced by CheckForEmptyTable(), Init(), IsNameValid(), NameModified(), and SelectionChanged().

std::unique_ptr<ScRangeManagerTable> ScNameDlg::m_xRangeManagerTable
private
std::unique_ptr<formula::RefButton> ScNameDlg::m_xRbAssign
private

Definition at line 57 of file namedlg.hxx.

Referenced by CheckForEmptyTable(), ScNameDlg(), and SelectionChanged().

const ScAddress ScNameDlg::maCursorPos
private

Definition at line 44 of file namedlg.hxx.

Referenced by Init(), IsFormulaValid(), and NameModified().

const OUString ScNameDlg::maErrInvalidNameStr
private

Definition at line 37 of file namedlg.hxx.

Referenced by IsNameValid().

const OUString ScNameDlg::maErrNameInUse
private

Definition at line 38 of file namedlg.hxx.

Referenced by IsNameValid().

const OUString ScNameDlg::maGlobalNameStr
private

Definition at line 36 of file namedlg.hxx.

Referenced by GetRangeName(), and Init().

OUString ScNameDlg::maStrInfoDefault
private

Definition at line 40 of file namedlg.hxx.

Referenced by IsNameValid(), NameModified(), and ScNameDlg().

const OUString ScNameDlg::maStrMultiSelect
private

Definition at line 39 of file namedlg.hxx.

Referenced by SelectionChanged().

bool ScNameDlg::mbCloseWithoutUndo
private

Definition at line 48 of file namedlg.hxx.

Referenced by AddPushed(), and Close().

bool ScNameDlg::mbDataChanged
private

Definition at line 46 of file namedlg.hxx.

Referenced by Close(), NameModified(), RemovePushed(), and SetEntry().

ScDocument& ScNameDlg::mrDoc
private

Definition at line 43 of file namedlg.hxx.

Referenced by Init(), IsFormulaValid(), IsNameValid(), NameModified(), and ScNameDlg().

ScViewData& ScNameDlg::mrViewData
private

Definition at line 42 of file namedlg.hxx.

Referenced by Close().


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