LibreOffice Module sc (master) 1
|
#include <namedefdlg.hxx>
Public Member Functions | |
ScNameDefDlg (SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent, const ScViewData &rViewData, std::map< OUString, ScRangeName * > &&aRangeMap, const ScAddress &aCursorPos, const bool bUndo) | |
virtual | ~ScNameDefDlg () override |
virtual void | SetReference (const ScRange &rRef, ScDocument &rDoc) override |
virtual bool | IsRefInputMode () const override |
virtual void | SetActive () override |
virtual void | Close () override |
void | GetNewData (OUString &rName, OUString &rScope) |
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 |
SfxBindings & | GetBindings () 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) |
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 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) |
Private Member Functions | |
void | CancelPushed () |
void | AddPushed () |
bool | IsNameValid () |
bool | IsFormulaValid () |
DECL_LINK (CancelBtnHdl, weld::Button &, void) | |
DECL_LINK (AddBtnHdl, weld::Button &, void) | |
DECL_LINK (NameModifyHdl, weld::Entry &, void) | |
DECL_LINK (AssignGetFocusHdl, formula::RefEdit &, void) | |
Private Attributes | |
bool | mbUndo |
ScDocument & | mrDoc |
ScDocShell * | mpDocShell |
ScAddress | maCursorPos |
OUString | maStrInfoDefault |
const OUString | maGlobalNameStr |
const OUString | maErrInvalidNameStr |
const OUString | maErrInvalidNameCellRefStr |
const OUString | maErrNameInUse |
OUString | maName |
OUString | maScope |
std::map< OUString, ScRangeName * > | maRangeMap |
std::unique_ptr< weld::Entry > | m_xEdName |
std::unique_ptr< formula::RefEdit > | m_xEdRange |
std::unique_ptr< formula::RefButton > | m_xRbRange |
std::unique_ptr< weld::ComboBox > | m_xLbScope |
std::unique_ptr< weld::CheckButton > | m_xBtnRowHeader |
std::unique_ptr< weld::CheckButton > | m_xBtnColHeader |
std::unique_ptr< weld::CheckButton > | m_xBtnPrintArea |
std::unique_ptr< weld::CheckButton > | m_xBtnCriteria |
std::unique_ptr< weld::Button > | m_xBtnAdd |
std::unique_ptr< weld::Button > | m_xBtnCancel |
std::unique_ptr< weld::Label > | m_xFtInfo |
std::unique_ptr< weld::Label > | m_xFtRange |
Additional Inherited Members | |
Public Types inherited from ScRefHdlrControllerImpl< SfxModelessDialogController > | |
enum | |
Static Public Member Functions inherited from ScRefHandler | |
static bool | CanInputStart (const formula::RefEdit *pEdit) |
Definition at line 21 of file namedefdlg.hxx.
ScNameDefDlg::ScNameDefDlg | ( | SfxBindings * | pB, |
SfxChildWindow * | pCW, | ||
weld::Window * | pParent, | ||
const ScViewData & | rViewData, | ||
std::map< OUString, ScRangeName * > && | aRangeMap, | ||
const ScAddress & | aCursorPos, | ||
const bool | bUndo | ||
) |
Definition at line 27 of file namedefdlg.cxx.
References ScRange::Format(), ScDocument::GetAddressConvention(), ScDocument::GetName(), ScViewData::GetSimpleArea(), ScDocument::GetTableCount(), i, LINK, m_xBtnAdd, m_xBtnCancel, m_xEdName, m_xEdRange, m_xFtInfo, m_xFtRange, m_xLbScope, m_xRbRange, maGlobalNameStr, maStrInfoDefault, mrDoc, n, and RANGE_ABS_3D.
|
overridevirtual |
Definition at line 87 of file namedefdlg.cxx.
|
private |
Definition at line 171 of file namedefdlg.cxx.
References ScRangeData::AddType(), SfxUndoManager::AddUndoAction(), aName, Close(), ScRangeData::ColHeader, ScRangeData::Criteria, ScTabViewShell::GetActiveViewShell(), ScRangeData::GetErrCode(), ScDocument::GetTable(), ScDocShell::GetUndoManager(), ScRangeName::insert(), IsNameValid(), m_xBtnColHeader, m_xBtnCriteria, m_xBtnPrintArea, m_xBtnRowHeader, m_xEdName, m_xEdRange, m_xLbScope, maCursorPos, maGlobalNameStr, maName, maRangeMap, maScope, mbUndo, mpDocShell, mrDoc, ScRangeData::Name, nType, ScRangeData::PrintArea, ScRangeData::RowHeader, ScDocShell::SetDocumentModified(), ScDocument::SetStreamValid(), SfxGetpApp(), STR_GLOBAL_RANGE_NAME, and ScTabViewShell::SwitchBetweenRefDialogs().
|
private |
Definition at line 91 of file namedefdlg.cxx.
References ScTabViewShell::GetActiveViewShell(), mbUndo, RET_CANCEL, and ScTabViewShell::SwitchBetweenRefDialogs().
|
overridevirtual |
Reimplemented from SfxModelessDialogController.
Definition at line 291 of file namedefdlg.cxx.
References ScRefHandler::DoClose().
Referenced by AddPushed().
|
private |
|
private |
|
private |
|
private |
void ScNameDefDlg::GetNewData | ( | OUString & | rName, |
OUString & | rScope | ||
) |
Definition at line 262 of file namedefdlg.cxx.
|
private |
Definition at line 102 of file namedefdlg.cxx.
References ScCompiler::CompileString(), ScDocument::GetGrammar(), m_xEdRange, maCursorPos, and mrDoc.
Referenced by IsNameValid().
|
private |
Definition at line 117 of file namedefdlg.cxx.
References aName, weld::Error, eType, ScRangeName::findByUpperName(), ScGlobal::getCharClass(), IsFormulaValid(), ScRangeData::IsNameValid(), m_xBtnAdd, m_xEdName, m_xLbScope, maErrInvalidNameCellRefStr, maErrInvalidNameStr, maErrNameInUse, maGlobalNameStr, maRangeMap, maStrInfoDefault, mrDoc, ScRangeData::NAME_INVALID_BAD_STRING, ScRangeData::NAME_INVALID_CELL_REF, ScRangeData::NAME_VALID, weld::Normal, STR_GLOBAL_RANGE_NAME, and CharClass::uppercase().
Referenced by AddPushed(), and RefInputDone().
|
overridevirtual |
Reimplemented from ScRefHandler.
Definition at line 268 of file namedefdlg.cxx.
References m_xEdRange.
|
overrideprotectedvirtual |
Reimplemented from ScRefHandler.
Definition at line 273 of file namedefdlg.cxx.
References IsNameValid(), and ScRefHandler::RefInputDone().
Referenced by SetActive().
|
overridevirtual |
Implements ScRefHandler.
Definition at line 296 of file namedefdlg.cxx.
References m_xEdRange, and RefInputDone().
|
overridevirtual |
Implements ScRefHandler.
Definition at line 279 of file namedefdlg.cxx.
References ScRange::aEnd, ScRange::aStart, ScRange::Format(), ScDocument::GetAddressConvention(), m_xEdRange, RANGE_ABS_3D, and ScRefHandler::RefInputStart().
|
private |
Definition at line 53 of file namedefdlg.hxx.
Referenced by IsNameValid(), and ScNameDefDlg().
|
private |
Definition at line 54 of file namedefdlg.hxx.
Referenced by ScNameDefDlg().
|
private |
Definition at line 49 of file namedefdlg.hxx.
Referenced by AddPushed().
|
private |
Definition at line 51 of file namedefdlg.hxx.
Referenced by AddPushed().
|
private |
Definition at line 50 of file namedefdlg.hxx.
Referenced by AddPushed().
|
private |
Definition at line 48 of file namedefdlg.hxx.
Referenced by AddPushed().
|
private |
Definition at line 41 of file namedefdlg.hxx.
Referenced by AddPushed(), IsNameValid(), and ScNameDefDlg().
|
private |
Definition at line 43 of file namedefdlg.hxx.
Referenced by AddPushed(), IsFormulaValid(), IsRefInputMode(), ScNameDefDlg(), SetActive(), and SetReference().
|
private |
Definition at line 55 of file namedefdlg.hxx.
Referenced by ScNameDefDlg().
|
private |
Definition at line 56 of file namedefdlg.hxx.
Referenced by ScNameDefDlg().
|
private |
Definition at line 46 of file namedefdlg.hxx.
Referenced by AddPushed(), IsNameValid(), and ScNameDefDlg().
|
private |
Definition at line 44 of file namedefdlg.hxx.
Referenced by ScNameDefDlg().
|
private |
Definition at line 28 of file namedefdlg.hxx.
Referenced by AddPushed(), and IsFormulaValid().
|
private |
Definition at line 32 of file namedefdlg.hxx.
Referenced by IsNameValid().
|
private |
Definition at line 31 of file namedefdlg.hxx.
Referenced by IsNameValid().
|
private |
Definition at line 33 of file namedefdlg.hxx.
Referenced by IsNameValid().
|
private |
Definition at line 30 of file namedefdlg.hxx.
Referenced by AddPushed(), IsNameValid(), and ScNameDefDlg().
|
private |
Definition at line 36 of file namedefdlg.hxx.
Referenced by AddPushed(), and GetNewData().
|
private |
Definition at line 39 of file namedefdlg.hxx.
Referenced by AddPushed(), and IsNameValid().
|
private |
Definition at line 37 of file namedefdlg.hxx.
Referenced by AddPushed(), and GetNewData().
|
private |
Definition at line 29 of file namedefdlg.hxx.
Referenced by IsNameValid(), and ScNameDefDlg().
|
private |
Definition at line 24 of file namedefdlg.hxx.
Referenced by AddPushed(), and CancelPushed().
|
private |
Definition at line 26 of file namedefdlg.hxx.
Referenced by AddPushed().
|
private |
Definition at line 25 of file namedefdlg.hxx.
Referenced by AddPushed(), IsFormulaValid(), IsNameValid(), and ScNameDefDlg().