LibreOffice Module sc (master)
1
|
#include <anyrefdg.hxx>
Public Member Functions | |
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) |
![]() | |
virtual | ~IAnyRefDialog () COVERITY_NOEXCEPT_FALSE |
Static Public Member Functions | |
static bool | CanInputStart (const formula::RefEdit *pEdit) |
Protected Member Functions | |
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, const OUString &rStr, const ScDocument &pDoc) |
![]() | |
~IControlReferenceHandler () | |
Private Attributes | |
weld::DialogController * | m_pController |
bool | m_bInRefMode |
ScFormulaReferenceHelper | m_aHelper |
SfxBindings * | m_pMyBindings |
OUString | m_aDocName |
Definition at line 82 of file anyrefdg.hxx.
ScRefHandler::ScRefHandler | ( | SfxDialogController & | rController, |
SfxBindings * | pB, | ||
bool | bBindRef | ||
) |
Definition at line 557 of file anyrefdg.cxx.
References EnterRefMode(), m_aHelper, and ScFormulaReferenceHelper::SetDialog().
|
overridevirtual |
Definition at line 619 of file anyrefdg.cxx.
References disposeRefHandler().
|
overridevirtual |
Implements IAnyRefDialog.
Reimplemented in ScPrintAreasDlg.
Definition at line 710 of file anyrefdg.cxx.
|
inline |
Definition at line 134 of file anyrefdg.hxx.
References ScFormulaReferenceHelper::CanInputDone(), and m_aHelper.
Referenced by ScValidationDlg::RefInputDone().
|
inlinestatic |
Definition at line 130 of file anyrefdg.hxx.
References ScFormulaReferenceHelper::CanInputStart().
Referenced by ScValidationDlg::RefInputStart().
|
protected |
Definition at line 624 of file anyrefdg.cxx.
References ScFormulaReferenceHelper::dispose(), LeaveRefMode(), m_aHelper, and m_pController.
Referenced by ~ScRefHandler().
|
protected |
Definition at line 694 of file anyrefdg.cxx.
References ScFormulaReferenceHelper::DoClose(), and m_aHelper.
Referenced by ScCorrelationDialog::Close(), ScCovarianceDialog::Close(), ScDescriptiveStatisticsDialog::Close(), ScTTestDialog::Close(), ScChiSquareTestDialog::Close(), ScFTestDialog::Close(), ScZTestDialog::Close(), ScSamplingDialog::Close(), ScExponentialSmoothingDialog::Close(), ScMovingAverageDialog::Close(), ScRandomNumberGeneratorDialog::Close(), ScDbNameDlg::Close(), ScRegressionDialog::Close(), ScColRowNameRangesDlg::Close(), ScFourierAnalysisDialog::Close(), ScConsolidateDlg::Close(), ScPrintAreasDlg::Close(), ScSolverDlg::Close(), ScTabOpDlg::Close(), ScAnalysisOfVarianceDialog::Close(), ScFilterDlg::Close(), ScHighlightChgDlg::Close(), ScXMLSourceDlg::Close(), ScNameDefDlg::Close(), ScOptSolverDlg::Close(), ScPivotLayoutDialog::Close(), ScNameDlg::Close(), ScCondFormatDlg::Close(), ScSpecialFilterDlg::Close(), and ScValidationDlg::LeaveRefStatus().
bool ScRefHandler::EnterRefMode | ( | ) |
Definition at line 568 of file anyrefdg.cxx.
References ScFormulaReferenceHelper::enableInput(), ScFormulaReferenceHelper::EnableSpreadsheets(), SfxBindings::GetDispatcher(), SfxDispatcher::GetFrame(), SfxViewFrame::GetObjectShell(), SfxViewShell::GetObjectShell(), SfxObjectShell::GetTitle(), SfxShell::GetViewShell(), ScFormulaReferenceHelper::Init(), m_aDocName, m_aHelper, m_bInRefMode, m_pMyBindings, ScInputHandler::NotifyChange(), SC_MOD, ScFormulaReferenceHelper::SetDispatcherLock(), and ScTabViewShell::UpdateInputHandler().
Referenced by ScRefHandler(), and ScValidationDlg::SetupRefDlg().
|
overridevirtual |
Implements formula::IControlReferenceHandler.
Definition at line 740 of file anyrefdg.cxx.
References ScFormulaReferenceHelper::HideReference(), and m_aHelper.
|
overridevirtual |
Implements IAnyRefDialog.
Definition at line 676 of file anyrefdg.cxx.
|
overridevirtual |
Implements IAnyRefDialog.
Reimplemented in ScSpecialFilterDlg, ScPivotLayoutDialog, ScCondFormatDlg, ScNameDlg, ScOptSolverDlg, ScNameDefDlg, ScHighlightChgDlg, ScXMLSourceDlg, ScSimpleRefDlg, ScFilterDlg, ScTabOpDlg, ScSolverDlg, ScConsolidateDlg, ScColRowNameRangesDlg, and ScDbNameDlg.
Definition at line 689 of file anyrefdg.cxx.
References weld::Widget::get_visible(), weld::DialogController::getDialog(), and m_pController.
|
overridevirtual |
Implements IAnyRefDialog.
Reimplemented in ScCondFormatDlg, and ScPrintAreasDlg.
Definition at line 715 of file anyrefdg.cxx.
bool ScRefHandler::LeaveRefMode | ( | ) |
here and in DoClose ?
Definition at line 631 of file anyrefdg.cxx.
References ScTabViewShell::GetActiveViewShell(), lcl_HideAllReferences(), lcl_InvalidateWindows(), m_bInRefMode, SetDispatcherLock(), and ScTabViewShell::UpdateInputHandler().
Referenced by disposeRefHandler(), and ScValidationDlg::RemoveRefDlg().
|
protected |
Definition at line 735 of file anyrefdg.cxx.
References m_aHelper, and ScFormulaReferenceHelper::ParseWithNames().
Referenced by ScOptSolverDlg::CallSolver().
|
overrideprotectedvirtual |
Implements IAnyRefDialog.
Reimplemented in ScValidationDlg, ScNameDlg, ScCondFormatDlg, ScNameDefDlg, ScHighlightChgDlg, and ScSimpleRefDlg.
Definition at line 755 of file anyrefdg.cxx.
References m_aHelper, and ScFormulaReferenceHelper::RefInputDone().
Referenced by ScSimpleRefDlg::RefInputDone(), ScHighlightChgDlg::RefInputDone(), ScNameDefDlg::RefInputDone(), ScCondFormatDlg::RefInputDone(), ScNameDlg::RefInputDone(), ScValidationDlg::RefInputDone(), ScSamplingDialog::SetActive(), ScRandomNumberGeneratorDialog::SetActive(), ScStatisticsTwoVariableDialog::SetActive(), ScStatisticsInputOutputDialog::SetActive(), ScDbNameDlg::SetActive(), ScColRowNameRangesDlg::SetActive(), ScPrintAreasDlg::SetActive(), ScConsolidateDlg::SetActive(), ScSolverDlg::SetActive(), ScTabOpDlg::SetActive(), ScFilterDlg::SetActive(), ScXMLSourceDlg::SetActive(), ScOptSolverDlg::SetActive(), ScPivotLayoutDialog::SetActive(), and ScSpecialFilterDlg::SetActive().
|
overrideprotectedvirtual |
Implements IAnyRefDialog.
Reimplemented in ScValidationDlg.
Definition at line 725 of file anyrefdg.cxx.
References m_aHelper, and ScFormulaReferenceHelper::RefInputStart().
Referenced by IMPL_LINK(), ScValidationDlg::RefInputStart(), ScSamplingDialog::SetReference(), ScRandomNumberGeneratorDialog::SetReference(), ScStatisticsTwoVariableDialog::SetReference(), ScStatisticsInputOutputDialog::SetReference(), ScPrintAreasDlg::SetReference(), ScDbNameDlg::SetReference(), ScColRowNameRangesDlg::SetReference(), ScConsolidateDlg::SetReference(), ScSolverDlg::SetReference(), ScTabOpDlg::SetReference(), ScFilterDlg::SetReference(), ScSimpleRefDlg::SetReference(), ScHighlightChgDlg::SetReference(), ScXMLSourceDlg::SetReference(), ScNameDefDlg::SetReference(), ScOptSolverDlg::SetReference(), ScNameDlg::SetReference(), ScCondFormatDlg::SetReference(), ScPivotLayoutDialog::SetReference(), and ScSpecialFilterDlg::SetReference().
|
overridevirtual |
Implements formula::IControlReferenceHandler.
Definition at line 750 of file anyrefdg.cxx.
References m_aHelper, and ScFormulaReferenceHelper::ReleaseFocus().
|
overridepure virtual |
Implements IAnyRefDialog.
Implemented in ScValidationDlg, ScSpecialFilterDlg, ScPivotLayoutDialog, ScCondFormatDlg, ScNameDlg, ScOptSolverDlg, ScNameDefDlg, ScXMLSourceDlg, ScHighlightChgDlg, ScSimpleRefDlg, ScFilterDlg, ScTabOpDlg, ScSolverDlg, ScPrintAreasDlg, ScConsolidateDlg, ScColRowNameRangesDlg, ScDbNameDlg, ScStatisticsInputOutputDialog, ScStatisticsTwoVariableDialog, ScRandomNumberGeneratorDialog, and ScSamplingDialog.
Referenced by SwitchToDocument().
|
protected |
Definition at line 700 of file anyrefdg.cxx.
References m_aHelper, and ScFormulaReferenceHelper::SetDispatcherLock().
Referenced by ScPivotLayoutDialog::ApplyChanges(), ScCondFormatDlg::CancelPressed(), LeaveRefMode(), ScCondFormatDlg::OkPressed(), ScHighlightChgDlg::ScHighlightChgDlg(), ScSimpleRefDlg::ScSimpleRefDlg(), ScHighlightChgDlg::~ScHighlightChgDlg(), and ScSimpleRefDlg::~ScSimpleRefDlg().
|
overridepure virtual |
Implements IAnyRefDialog.
Implemented in ScValidationDlg, ScSpecialFilterDlg, ScPivotLayoutDialog, ScCondFormatDlg, ScNameDlg, ScOptSolverDlg, ScNameDefDlg, ScXMLSourceDlg, ScHighlightChgDlg, ScSimpleRefDlg, ScFilterDlg, ScTabOpDlg, ScSolverDlg, ScConsolidateDlg, ScColRowNameRangesDlg, ScDbNameDlg, ScPrintAreasDlg, ScStatisticsInputOutputDialog, ScStatisticsTwoVariableDialog, ScRandomNumberGeneratorDialog, and ScSamplingDialog.
|
overridevirtual |
Implements formula::IControlReferenceHandler.
Definition at line 745 of file anyrefdg.cxx.
References m_aHelper, and ScFormulaReferenceHelper::ShowReference().
void ScRefHandler::SwitchToDocument | ( | ) |
Definition at line 649 of file anyrefdg.cxx.
References ScTabViewShell::GetActiveViewShell(), SfxViewShell::GetFirst(), SfxViewShell::GetNext(), SfxViewShell::GetObjectShell(), SfxObjectShell::GetTitle(), m_aDocName, and SetActive().
Referenced by ScPivotLayoutDialog::ApplyChanges().
|
overridevirtual |
Implements formula::IControlReferenceHandler.
Definition at line 730 of file anyrefdg.cxx.
References m_aHelper, and ScFormulaReferenceHelper::ToggleCollapsed().
|
overridevirtual |
Implements IAnyRefDialog.
Definition at line 705 of file anyrefdg.cxx.
References ScFormulaReferenceHelper::ViewShellChanged().
|
private |
Definition at line 92 of file anyrefdg.hxx.
Referenced by EnterRefMode(), and SwitchToDocument().
|
private |
Definition at line 89 of file anyrefdg.hxx.
Referenced by CanInputDone(), disposeRefHandler(), DoClose(), EnterRefMode(), HideReference(), ParseWithNames(), RefInputDone(), RefInputStart(), ReleaseFocus(), ScRefHandler(), SetDispatcherLock(), ShowReference(), and ToggleCollapsed().
|
private |
Definition at line 85 of file anyrefdg.hxx.
Referenced by EnterRefMode(), and LeaveRefMode().
|
private |
Definition at line 84 of file anyrefdg.hxx.
Referenced by disposeRefHandler(), and IsRefInputMode().
|
private |
Definition at line 90 of file anyrefdg.hxx.
Referenced by EnterRefMode().