LibreOffice Module sc (master) 1
|
#include <crnrdlg.hxx>
Public Member Functions | |
ScColRowNameRangesDlg (SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent, ScViewData &rViewData) | |
virtual | ~ScColRowNameRangesDlg () 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 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) |
Private Types | |
typedef std::unordered_map< OUString, ScRange > | NameRangeMap |
Private Member Functions | |
void | Init () |
void | UpdateNames () |
void | UpdateRangeData (const ScRange &rRange, bool bColName) |
void | SetColRowData (const ScRange &rLabelRange, bool bRef=false) |
void | AdjustColRowData (const ScRange &rDataRange, bool bRef=false) |
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 (Range1SelectHdl, weld::TreeView &, void) | |
DECL_LINK (Range1DataModifyHdl, formula::RefEdit &, void) | |
DECL_LINK (ColRowToggleHdl, weld::Toggleable &, void) | |
DECL_LINK (Range2DataModifyHdl, formula::RefEdit &, void) | |
DECL_LINK (GetEditFocusHdl, formula::RefEdit &, void) | |
DECL_LINK (LoseEditFocusHdl, formula::RefEdit &, void) | |
DECL_LINK (GetButtonFocusHdl, formula::RefButton &, void) | |
DECL_LINK (LoseButtonFocusHdl, formula::RefButton &, void) | |
Private Attributes | |
ScRange | theCurArea |
ScRange | theCurData |
ScRangePairListRef | xColNameRanges |
ScRangePairListRef | xRowNameRanges |
NameRangeMap | aRangeMap |
ScViewData & | m_rViewData |
ScDocument & | rDoc |
bool | bDlgLostFocus |
formula::RefEdit * | m_pEdActive |
std::unique_ptr< weld::TreeView > | m_xLbRange |
std::unique_ptr< formula::RefEdit > | m_xEdAssign |
std::unique_ptr< formula::RefButton > | m_xRbAssign |
std::unique_ptr< weld::RadioButton > | m_xBtnColHead |
std::unique_ptr< weld::RadioButton > | m_xBtnRowHead |
std::unique_ptr< formula::RefEdit > | m_xEdAssign2 |
std::unique_ptr< formula::RefButton > | m_xRbAssign2 |
std::unique_ptr< weld::Button > | m_xBtnOk |
std::unique_ptr< weld::Button > | m_xBtnCancel |
std::unique_ptr< weld::Button > | m_xBtnAdd |
std::unique_ptr< weld::Button > | m_xBtnRemove |
std::unique_ptr< weld::Frame > | m_xRangeFrame |
std::unique_ptr< weld::Label > | m_xRangeFT |
std::unique_ptr< weld::Label > | m_xDataFT |
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 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) |
Definition at line 30 of file crnrdlg.hxx.
|
private |
Definition at line 50 of file crnrdlg.hxx.
ScColRowNameRangesDlg::ScColRowNameRangesDlg | ( | SfxBindings * | pB, |
SfxChildWindow * | pCW, | ||
weld::Window * | pParent, | ||
ScViewData & | rViewData | ||
) |
Definition at line 58 of file crnrdlg.cxx.
References ScRangePairList::Clone(), ScDocument::GetColNameRanges(), ScDocument::GetRowNameRanges(), Init(), m_xDataFT, m_xEdAssign, m_xEdAssign2, m_xRangeFT, m_xRbAssign, m_xRbAssign2, rDoc, xColNameRanges, and xRowNameRanges.
|
overridevirtual |
Definition at line 93 of file crnrdlg.cxx.
|
private |
Definition at line 234 of file crnrdlg.cxx.
References ScRange::aEnd, ScRange::aStart, aStr, ScAddress::Col(), ScRange::Format(), ScDocument::GetAddressConvention(), ScRange::Intersects(), m_xBtnColHead, m_xEdAssign2, ScDocument::MaxCol(), ScDocument::MaxRow(), RANGE_ABS_3D, rDoc, ScAddress::Row(), ScAddress::SetCol(), ScAddress::SetRow(), theCurArea, and theCurData.
Referenced by SetReference().
|
overridevirtual |
Reimplemented from SfxModelessDialogController.
Definition at line 313 of file crnrdlg.cxx.
References ScRefHandler::DoClose().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 98 of file crnrdlg.cxx.
References ScViewData::GetSimpleArea(), LINK, m_pEdActive, m_rViewData, m_xBtnAdd, m_xBtnCancel, m_xBtnColHead, m_xBtnOk, m_xBtnRemove, m_xBtnRowHead, m_xEdAssign, m_xEdAssign2, m_xLbRange, m_xRbAssign, m_xRbAssign2, SetColRowData(), and UpdateNames().
Referenced by ScColRowNameRangesDlg().
|
overridevirtual |
Reimplemented from ScRefHandler.
Definition at line 471 of file crnrdlg.cxx.
References m_pEdActive.
|
overridevirtual |
Implements ScRefHandler.
Definition at line 318 of file crnrdlg.cxx.
References bDlgLostFocus, formula::RefEdit::GrabFocus(), m_pEdActive, m_xDialog, m_xEdAssign, m_xEdAssign2, and ScRefHandler::RefInputDone().
|
private |
Definition at line 150 of file crnrdlg.cxx.
References ScRange::aEnd, ScRange::aStart, aStr, ScAddress::Col(), ScRange::Format(), ScDocument::GetAddressConvention(), m_xBtnColHead, m_xBtnRowHead, m_xEdAssign, m_xEdAssign2, m_xRbAssign2, ScDocument::MaxCol(), ScDocument::MaxRow(), RANGE_ABS_3D, rDoc, ScAddress::Row(), ScAddress::SetCol(), ScAddress::SetRow(), theCurArea, and theCurData.
Referenced by Init(), and SetReference().
|
overridevirtual |
Implements ScRefHandler.
Definition at line 295 of file crnrdlg.cxx.
References AdjustColRowData(), ScRange::aEnd, ScRange::aStart, m_pEdActive, m_xBtnAdd, m_xBtnColHead, m_xBtnRemove, m_xBtnRowHead, m_xEdAssign, ScRefHandler::RefInputStart(), and SetColRowData().
|
private |
Definition at line 337 of file crnrdlg.cxx.
References aRangeMap, ScRange::Format(), ScDocument::GetAddressConvention(), ScDocument::GetString(), i, m_xEdAssign, m_xLbRange, nCount, nEntryDataCol, nEntryDataDelim, nEntryDataRow, RANGE_ABS_3D, rDoc, ScResId(), xColNameRanges, and xRowNameRanges.
Referenced by Init().
|
private |
Definition at line 437 of file crnrdlg.cxx.
References aStr, ScRange::Format(), ScDocument::GetAddressConvention(), ScRangePair::GetRange(), m_xBtnAdd, m_xBtnColHead, m_xBtnRemove, m_xBtnRowHead, m_xEdAssign, m_xEdAssign2, m_xRbAssign2, RANGE_ABS_3D, rDoc, theCurArea, theCurData, xColNameRanges, and xRowNameRanges.
|
private |
Definition at line 51 of file crnrdlg.hxx.
Referenced by UpdateNames().
|
private |
Definition at line 54 of file crnrdlg.hxx.
Referenced by SetActive().
|
private |
Definition at line 56 of file crnrdlg.hxx.
Referenced by Init(), IsRefInputMode(), SetActive(), and SetReference().
|
private |
Definition at line 52 of file crnrdlg.hxx.
Referenced by Init().
|
private |
Definition at line 68 of file crnrdlg.hxx.
Referenced by Init(), SetReference(), and UpdateRangeData().
|
private |
Definition at line 67 of file crnrdlg.hxx.
Referenced by Init().
|
private |
Definition at line 61 of file crnrdlg.hxx.
Referenced by AdjustColRowData(), Init(), SetColRowData(), SetReference(), and UpdateRangeData().
|
private |
Definition at line 66 of file crnrdlg.hxx.
Referenced by Init().
|
private |
Definition at line 69 of file crnrdlg.hxx.
Referenced by Init(), SetReference(), and UpdateRangeData().
|
private |
Definition at line 62 of file crnrdlg.hxx.
Referenced by Init(), SetColRowData(), SetReference(), and UpdateRangeData().
|
private |
Definition at line 73 of file crnrdlg.hxx.
Referenced by ScColRowNameRangesDlg().
|
private |
Definition at line 59 of file crnrdlg.hxx.
Referenced by Init(), ScColRowNameRangesDlg(), SetActive(), SetColRowData(), SetReference(), UpdateNames(), and UpdateRangeData().
|
private |
Definition at line 63 of file crnrdlg.hxx.
Referenced by AdjustColRowData(), Init(), ScColRowNameRangesDlg(), SetActive(), SetColRowData(), and UpdateRangeData().
|
private |
Definition at line 57 of file crnrdlg.hxx.
Referenced by Init(), and UpdateNames().
|
private |
Definition at line 71 of file crnrdlg.hxx.
|
private |
Definition at line 72 of file crnrdlg.hxx.
Referenced by ScColRowNameRangesDlg().
|
private |
Definition at line 60 of file crnrdlg.hxx.
Referenced by Init(), and ScColRowNameRangesDlg().
|
private |
Definition at line 64 of file crnrdlg.hxx.
Referenced by Init(), ScColRowNameRangesDlg(), SetColRowData(), and UpdateRangeData().
|
private |
Definition at line 53 of file crnrdlg.hxx.
Referenced by AdjustColRowData(), ScColRowNameRangesDlg(), SetColRowData(), UpdateNames(), and UpdateRangeData().
|
private |
Definition at line 44 of file crnrdlg.hxx.
Referenced by AdjustColRowData(), SetColRowData(), and UpdateRangeData().
|
private |
Definition at line 45 of file crnrdlg.hxx.
Referenced by AdjustColRowData(), SetColRowData(), and UpdateRangeData().
|
private |
Definition at line 47 of file crnrdlg.hxx.
Referenced by ScColRowNameRangesDlg(), UpdateNames(), and UpdateRangeData().
|
private |
Definition at line 48 of file crnrdlg.hxx.
Referenced by ScColRowNameRangesDlg(), UpdateNames(), and UpdateRangeData().