LibreOffice Module sc (master) 1
|
#include <namedlg.hxx>
Public Member Functions | |
ScNameDlg (SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent, ScViewData &rViewData, const ScAddress &aCursorPos, std::map< OUString, 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, 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 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 Types | |
typedef std::map< OUString, ScRangeName > | RangeNameContainer |
Private Member Functions | |
void | Init () |
void | UpdateChecks (const ScRangeData *pData) |
void | ShowOptions (const ScRangeNameLine &rLine) |
bool | IsNameValid () |
bool | IsFormulaValid () |
void | CheckForEmptyTable () |
ScRangeName * | GetRangeName (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::Toggleable &, void) | |
DECL_LINK (AssignGetFocusHdl, formula::RefEdit &, void) | |
DECL_LINK (SelectionChangedHdl_Impl, weld::TreeView &, void) | |
DECL_LINK (ScopeChangedHdl, weld::ComboBox &, void) | |
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 32 of file namedlg.hxx.
|
private |
Definition at line 49 of file namedlg.hxx.
ScNameDlg::ScNameDlg | ( | SfxBindings * | pB, |
SfxChildWindow * | pCW, | ||
weld::Window * | pParent, | ||
ScViewData & | rViewData, | ||
const ScAddress & | aCursorPos, | ||
std::map< OUString, ScRangeName > * | pRangeMap = nullptr |
||
) |
Definition at line 43 of file namedlg.cxx.
References ScDocument::GetRangeNameMap(), Init(), m_RangeMap, m_xEdAssign, m_xFtAssign, m_xFtInfo, m_xRbAssign, maStrInfoDefault, and mrDoc.
|
overridevirtual |
Definition at line 96 of file namedlg.cxx.
|
private |
Definition at line 298 of file namedlg.cxx.
References ScTabViewShell::GetActiveViewShell(), mbCloseWithoutUndo, and ScTabViewShell::SwitchBetweenRefDialogs().
|
private |
Definition at line 176 of file namedlg.cxx.
References m_xBtnColHeader, m_xBtnCriteria, m_xBtnDelete, m_xBtnPrintArea, m_xBtnRowHeader, m_xEdAssign, m_xEdName, m_xLbScope, m_xRangeManagerTable, and m_xRbAssign.
Referenced by Init(), and RemovePushed().
|
overridevirtual |
Reimplemented from SfxModelessDialogController.
Definition at line 169 of file namedlg.cxx.
References ScRefHandler::DoClose(), ScViewData::GetDocFunc(), m_RangeMap, mbCloseWithoutUndo, mbDataChanged, ScDocFunc::ModifyAllRangeNames(), and mrViewData.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 280 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, ScRangeName > & | rRangeMap | ) |
Definition at line 448 of file namedlg.cxx.
References m_RangeMap.
|
private |
Definition at line 100 of file namedlg.cxx.
References CheckForEmptyTable(), ScDocument::GetName(), ScDocument::GetTableCount(), i, LINK, m_RangeMap, m_xBtnAdd, m_xBtnCancel, m_xBtnColHeader, m_xBtnCriteria, m_xBtnDelete, m_xBtnOk, m_xBtnPrintArea, m_xBtnRowHeader, m_xEdAssign, m_xEdName, m_xLbScope, m_xRangeManagerTable, maCursorPos, maGlobalNameStr, mrDoc, n, and SelectionChanged().
Referenced by ScNameDlg().
|
private |
Definition at line 265 of file namedlg.cxx.
References ScCompiler::CompileString(), weld::Error, ScDocument::GetGrammar(), m_xEdAssign, m_xFtInfo, maCursorPos, and mrDoc.
Referenced by NameModified().
|
private |
Definition at line 238 of file namedlg.cxx.
References aName, weld::Error, ScRangeName::findByUpperName(), ScGlobal::getCharClass(), GetRangeName(), ScRangeData::IsNameValid(), m_xEdName, m_xFtInfo, m_xLbScope, maErrInvalidNameStr, maErrNameInUse, maStrInfoDefault, mrDoc, ScRangeData::NAME_VALID, and CharClass::uppercase().
Referenced by NameModified().
|
overridevirtual |
Reimplemented from ScRefHandler.
Definition at line 146 of file namedlg.cxx.
References m_xEdAssign.
|
private |
Definition at line 335 of file namedlg.cxx.
References ScRangeNameLine::aExpression, ScRangeNameLine::aName, ScRangeNameLine::aScope, ScRangeData::ColHeader, ScRangeData::Criteria, ScRangeName::erase(), ScRangeName::findByUpperName(), ScGlobal::getCharClass(), GetRangeName(), ScRangeName::insert(), IsFormulaValid(), IsNameValid(), m_xBtnColHeader, m_xBtnCriteria, m_xBtnPrintArea, m_xBtnRowHeader, m_xEdAssign, m_xEdName, m_xFtInfo, m_xLbScope, m_xRangeManagerTable, maCursorPos, maStrInfoDefault, mbDataChanged, mrDoc, ScRangeData::Name, nIndex, weld::Normal, nType, pData, ScRangeData::PrintArea, Application::Reschedule(), ScRangeData::RowHeader, and ScRangeData::SetIndex().
Referenced by ScopeChanged().
|
overrideprotectedvirtual |
Reimplemented from ScRefHandler.
Definition at line 151 of file namedlg.cxx.
References m_xEdAssign, and ScRefHandler::RefInputDone().
Referenced by SetActive().
|
private |
Definition at line 317 of file namedlg.cxx.
References aEntries, CheckForEmptyTable(), ScRangeName::erase(), ScRangeName::findByUpperName(), ScGlobal::getCharClass(), GetRangeName(), m_xRangeManagerTable, mbDataChanged, and pData.
|
private |
Definition at line 443 of file namedlg.cxx.
References NameModified().
|
private |
Definition at line 401 of file namedlg.cxx.
References ScRangeNameLine::aExpression, ScRangeNameLine::aName, ScRangeNameLine::aScope, m_xBtnColHeader, m_xBtnCriteria, m_xBtnDelete, m_xBtnPrintArea, m_xBtnRowHeader, m_xEdAssign, m_xEdName, m_xLbScope, m_xRangeManagerTable, m_xRbAssign, maStrMultiSelect, and ShowOptions().
Referenced by Init().
|
overridevirtual |
Implements ScRefHandler.
Definition at line 206 of file namedlg.cxx.
References m_xEdAssign, and RefInputDone().
void ScNameDlg::SetEntry | ( | const OUString & | rName, |
const OUString & | rScope | ||
) |
Definition at line 305 of file namedlg.cxx.
References ScRangeNameLine::aName, ScRangeNameLine::aScope, m_xRangeManagerTable, and mbDataChanged.
|
overridevirtual |
Implements ScRefHandler.
Definition at line 157 of file namedlg.cxx.
References ScRange::aEnd, ScRange::aStart, ScRange::Format(), ScDocument::GetAddressConvention(), m_xEdAssign, RANGE_ABS_3D, and ScRefHandler::RefInputStart().
|
private |
Definition at line 288 of file namedlg.cxx.
References ScRangeNameLine::aName, ScRangeNameLine::aScope, ScRangeName::findByUpperName(), ScGlobal::getCharClass(), GetRangeName(), pData, and UpdateChecks().
Referenced by SelectionChanged().
|
private |
Definition at line 212 of file namedlg.cxx.
References ScRangeData::ColHeader, ScRangeData::Criteria, LINK, m_xBtnColHeader, m_xBtnCriteria, m_xBtnPrintArea, m_xBtnRowHeader, pData, ScRangeData::PrintArea, and ScRangeData::RowHeader.
Referenced by ShowOptions().
|
private |
Definition at line 51 of file namedlg.hxx.
Referenced by Close(), GetRangeName(), GetRangeNames(), Init(), and ScNameDlg().
|
private |
Definition at line 64 of file namedlg.hxx.
Referenced by Init().
|
private |
Definition at line 67 of file namedlg.hxx.
Referenced by Init().
|
private |
Definition at line 60 of file namedlg.hxx.
Referenced by CheckForEmptyTable(), Init(), NameModified(), SelectionChanged(), and UpdateChecks().
|
private |
Definition at line 61 of file namedlg.hxx.
Referenced by CheckForEmptyTable(), Init(), NameModified(), SelectionChanged(), and UpdateChecks().
|
private |
Definition at line 65 of file namedlg.hxx.
Referenced by CheckForEmptyTable(), Init(), and SelectionChanged().
|
private |
Definition at line 66 of file namedlg.hxx.
Referenced by Init().
|
private |
Definition at line 59 of file namedlg.hxx.
Referenced by CheckForEmptyTable(), Init(), NameModified(), SelectionChanged(), and UpdateChecks().
|
private |
Definition at line 62 of file namedlg.hxx.
Referenced by CheckForEmptyTable(), Init(), NameModified(), SelectionChanged(), and UpdateChecks().
|
private |
Definition at line 55 of file namedlg.hxx.
Referenced by CheckForEmptyTable(), Init(), IsFormulaValid(), IsRefInputMode(), NameModified(), RefInputDone(), ScNameDlg(), SelectionChanged(), SetActive(), and SetReference().
|
private |
Definition at line 53 of file namedlg.hxx.
Referenced by CheckForEmptyTable(), Init(), IsNameValid(), NameModified(), and SelectionChanged().
|
private |
Definition at line 54 of file namedlg.hxx.
Referenced by ScNameDlg().
|
private |
Definition at line 69 of file namedlg.hxx.
Referenced by IsFormulaValid(), IsNameValid(), NameModified(), and ScNameDlg().
|
private |
Definition at line 57 of file namedlg.hxx.
Referenced by CheckForEmptyTable(), Init(), IsNameValid(), NameModified(), and SelectionChanged().
|
private |
Definition at line 71 of file namedlg.hxx.
Referenced by CheckForEmptyTable(), Init(), NameModified(), RemovePushed(), SelectionChanged(), and SetEntry().
|
private |
Definition at line 56 of file namedlg.hxx.
Referenced by CheckForEmptyTable(), ScNameDlg(), and SelectionChanged().
|
private |
Definition at line 43 of file namedlg.hxx.
Referenced by Init(), IsFormulaValid(), and NameModified().
|
private |
Definition at line 36 of file namedlg.hxx.
Referenced by IsNameValid().
|
private |
Definition at line 37 of file namedlg.hxx.
Referenced by IsNameValid().
|
private |
Definition at line 35 of file namedlg.hxx.
Referenced by GetRangeName(), and Init().
|
private |
Definition at line 39 of file namedlg.hxx.
Referenced by IsNameValid(), NameModified(), and ScNameDlg().
|
private |
Definition at line 38 of file namedlg.hxx.
Referenced by SelectionChanged().
|
private |
Definition at line 47 of file namedlg.hxx.
Referenced by AddPushed(), and Close().
|
private |
Definition at line 45 of file namedlg.hxx.
Referenced by Close(), NameModified(), RemovePushed(), and SetEntry().
|
private |
Definition at line 42 of file namedlg.hxx.
Referenced by Init(), IsFormulaValid(), IsNameValid(), NameModified(), and ScNameDlg().
|
private |
Definition at line 41 of file namedlg.hxx.
Referenced by Close().