|
LibreOffice Module sc (master) 1
|
#include <solvrdlg.hxx>
Public Member Functions | |
| ScSolverDlg (SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent, ScDocument *pDocument, const ScAddress &aCursorPos) | |
| virtual | ~ScSolverDlg () 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 Member Functions | |
| void | Init () |
| bool | CheckTargetValue (const OUString &rStrVal) |
| void | RaiseError (ScSolverErr eError) |
| DECL_LINK (BtnHdl, weld::Button &, 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) | |
| DECL_LINK (GetFocusHdl, weld::Widget &, void) | |
Private Attributes | |
| ScAddress | theFormulaCell |
| ScAddress | theVariableCell |
| OUString | theTargetValStr |
| ScDocument * | pDoc |
| const SCTAB | nCurTab |
| bool | bDlgLostFocus |
| const OUString | errMsgInvalidVar |
| const OUString | errMsgInvalidForm |
| const OUString | errMsgNoFormula |
| const OUString | errMsgInvalidVal |
| formula::RefEdit * | m_pEdActive |
| std::unique_ptr< weld::Label > | m_xFtFormulaCell |
| std::unique_ptr< formula::RefEdit > | m_xEdFormulaCell |
| std::unique_ptr< formula::RefButton > | m_xRBFormulaCell |
| std::unique_ptr< weld::Entry > | m_xEdTargetVal |
| std::unique_ptr< weld::Label > | m_xFtVariableCell |
| std::unique_ptr< formula::RefEdit > | m_xEdVariableCell |
| std::unique_ptr< formula::RefButton > | m_xRBVariableCell |
| std::unique_ptr< weld::Button > | m_xBtnOk |
| std::unique_ptr< weld::Button > | m_xBtnCancel |
| std::shared_ptr< weld::MessageDialog > | m_xMessageBox |
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 33 of file solvrdlg.hxx.
| ScSolverDlg::ScSolverDlg | ( | SfxBindings * | pB, |
| SfxChildWindow * | pCW, | ||
| weld::Window * | pParent, | ||
| ScDocument * | pDocument, | ||
| const ScAddress & | aCursorPos | ||
| ) |
Definition at line 34 of file solvrdlg.cxx.
References Init(), m_xEdFormulaCell, m_xEdVariableCell, m_xFtFormulaCell, m_xFtVariableCell, m_xRBFormulaCell, and m_xRBVariableCell.
|
overridevirtual |
Definition at line 66 of file solvrdlg.cxx.
References m_xMessageBox, and RET_CANCEL.
|
private |
Definition at line 179 of file solvrdlg.cxx.
References ScDocument::GetFormatTable(), SvNumberFormatter::IsNumberFormat(), n1, n2, and pDoc.
|
overridevirtual |
Reimplemented from SfxModelessDialogController.
Definition at line 103 of file solvrdlg.cxx.
References ScRefHandler::DoClose().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 73 of file solvrdlg.cxx.
References ADDR_ABS, aStr, ScAddress::Format(), ScDocument::GetAddressConvention(), LINK, m_pEdActive, m_xBtnCancel, m_xBtnOk, m_xEdFormulaCell, m_xEdTargetVal, m_xEdVariableCell, m_xRBFormulaCell, m_xRBVariableCell, pDoc, and theFormulaCell.
Referenced by ScSolverDlg().
|
overridevirtual |
Reimplemented from ScRefHandler.
Definition at line 174 of file solvrdlg.cxx.
References m_pEdActive.
|
private |
Definition at line 145 of file solvrdlg.cxx.
References Application::CreateMessageDialog(), errMsgInvalidForm, errMsgInvalidVal, errMsgInvalidVar, errMsgNoFormula, m_xDialog, m_xEdTargetVal, m_xMessageBox, sMessage, SOLVERR_INVALID_FORMULA, SOLVERR_INVALID_TARGETVALUE, SOLVERR_INVALID_VARIABLE, and SOLVERR_NOFORMULA.
|
overridevirtual |
Implements ScRefHandler.
Definition at line 108 of file solvrdlg.cxx.
References bDlgLostFocus, formula::RefEdit::GrabFocus(), m_pEdActive, m_xDialog, and ScRefHandler::RefInputDone().
|
overridevirtual |
Implements ScRefHandler.
Definition at line 123 of file solvrdlg.cxx.
References ADDR_ABS, ADDR_ABS_3D, ScRange::aEnd, ScRange::aStart, aStr, ScAddress::Format(), ScDocument::GetAddressConvention(), m_pEdActive, m_xEdFormulaCell, m_xEdVariableCell, nCurTab, ScRefHandler::RefInputStart(), formula::RefEdit::SetRefString(), ScAddress::Tab(), theFormulaCell, and theVariableCell.
|
private |
Definition at line 53 of file solvrdlg.hxx.
Referenced by SetActive().
|
private |
Definition at line 55 of file solvrdlg.hxx.
Referenced by RaiseError().
|
private |
Definition at line 57 of file solvrdlg.hxx.
Referenced by RaiseError().
|
private |
Definition at line 54 of file solvrdlg.hxx.
Referenced by RaiseError().
|
private |
Definition at line 56 of file solvrdlg.hxx.
Referenced by RaiseError().
|
private |
Definition at line 59 of file solvrdlg.hxx.
Referenced by Init(), IsRefInputMode(), SetActive(), and SetReference().
|
private |
Definition at line 72 of file solvrdlg.hxx.
Referenced by Init().
|
private |
Definition at line 71 of file solvrdlg.hxx.
Referenced by Init().
|
private |
Definition at line 62 of file solvrdlg.hxx.
Referenced by Init(), ScSolverDlg(), and SetReference().
|
private |
Definition at line 65 of file solvrdlg.hxx.
Referenced by Init(), and RaiseError().
|
private |
Definition at line 68 of file solvrdlg.hxx.
Referenced by Init(), ScSolverDlg(), and SetReference().
|
private |
Definition at line 61 of file solvrdlg.hxx.
Referenced by ScSolverDlg().
|
private |
Definition at line 67 of file solvrdlg.hxx.
Referenced by ScSolverDlg().
|
private |
Definition at line 74 of file solvrdlg.hxx.
Referenced by RaiseError(), and ~ScSolverDlg().
|
private |
Definition at line 63 of file solvrdlg.hxx.
Referenced by Init(), and ScSolverDlg().
|
private |
Definition at line 69 of file solvrdlg.hxx.
Referenced by Init(), and ScSolverDlg().
|
private |
Definition at line 52 of file solvrdlg.hxx.
Referenced by SetReference().
|
private |
Definition at line 51 of file solvrdlg.hxx.
Referenced by CheckTargetValue(), and Init().
|
private |
Definition at line 47 of file solvrdlg.hxx.
Referenced by Init(), and SetReference().
|
private |
Definition at line 49 of file solvrdlg.hxx.
|
private |
Definition at line 48 of file solvrdlg.hxx.
Referenced by SetReference().