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) |
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, std::u16string_view rStr, const ScDocument &pDoc) |
Private Attributes | |
weld::DialogController * | m_pController |
bool | m_bInRefMode |
ScFormulaReferenceHelper | m_aHelper |
SfxBindings * | m_pMyBindings |
OUString | m_aDocName |
Definition at line 81 of file anyrefdg.hxx.
ScRefHandler::ScRefHandler | ( | SfxDialogController & | rController, |
SfxBindings * | pB, | ||
bool | bBindRef | ||
) |
Definition at line 577 of file anyrefdg.cxx.
References EnterRefMode(), m_aHelper, and ScFormulaReferenceHelper::SetDialog().
|
overridevirtual |
Definition at line 639 of file anyrefdg.cxx.
References disposeRefHandler().
|
overridevirtual |
Reimplemented in ScPrintAreasDlg.
Definition at line 730 of file anyrefdg.cxx.
|
inline |
Definition at line 133 of file anyrefdg.hxx.
References ScFormulaReferenceHelper::CanInputDone(), and m_aHelper.
Referenced by ScValidationDlg::RefInputDone().
|
inlinestatic |
Definition at line 129 of file anyrefdg.hxx.
References ScFormulaReferenceHelper::CanInputStart().
Referenced by ScValidationDlg::RefInputStart().
|
protected |
Definition at line 644 of file anyrefdg.cxx.
References ScFormulaReferenceHelper::dispose(), LeaveRefMode(), m_aHelper, and m_pController.
Referenced by ~ScRefHandler().
|
protected |
Definition at line 714 of file anyrefdg.cxx.
References ScFormulaReferenceHelper::DoClose(), m_aHelper, and nId.
Referenced by ScAnalysisOfVarianceDialog::Close(), ScPrintAreasDlg::Close(), ScChiSquareTestDialog::Close(), ScCondFormatDlg::Close(), ScConsolidateDlg::Close(), ScCorrelationDialog::Close(), ScCovarianceDialog::Close(), ScColRowNameRangesDlg::Close(), ScDbNameDlg::Close(), ScDescriptiveStatisticsDialog::Close(), ScExponentialSmoothingDialog::Close(), ScFilterDlg::Close(), ScSpecialFilterDlg::Close(), ScFourierAnalysisDialog::Close(), ScFTestDialog::Close(), ScHighlightChgDlg::Close(), ScMovingAverageDialog::Close(), ScNameDefDlg::Close(), ScNameDlg::Close(), ScOptSolverDlg::Close(), ScPivotLayoutDialog::Close(), ScRandomNumberGeneratorDialog::Close(), ScRegressionDialog::Close(), ScSamplingDialog::Close(), ScSolverDlg::Close(), sc::SparklineDataRangeDialog::Close(), sc::SparklineDialog::Close(), ScTabOpDlg::Close(), ScTTestDialog::Close(), ScXMLSourceDlg::Close(), ScZTestDialog::Close(), and ScValidationDlg::LeaveRefStatus().
bool ScRefHandler::EnterRefMode | ( | ) |
Definition at line 588 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 |
Definition at line 760 of file anyrefdg.cxx.
References ScFormulaReferenceHelper::HideReference(), and m_aHelper.
|
overridevirtual |
Definition at line 696 of file anyrefdg.cxx.
|
overridevirtual |
Reimplemented in ScCondFormatDlg, ScConsolidateDlg, ScColRowNameRangesDlg, ScDbNameDlg, ScFilterDlg, ScSpecialFilterDlg, ScHighlightChgDlg, ScNameDefDlg, ScNameDlg, ScOptSolverDlg, ScPivotLayoutDialog, ScSimpleRefDlg, ScSolverDlg, ScTabOpDlg, and ScXMLSourceDlg.
Definition at line 709 of file anyrefdg.cxx.
References weld::Widget::get_visible(), weld::DialogController::getDialog(), and m_pController.
|
overridevirtual |
Reimplemented in ScPrintAreasDlg, and ScCondFormatDlg.
Definition at line 735 of file anyrefdg.cxx.
bool ScRefHandler::LeaveRefMode | ( | ) |
here and in DoClose ?
Definition at line 651 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 755 of file anyrefdg.cxx.
References m_aHelper, and ScFormulaReferenceHelper::ParseWithNames().
Referenced by ScOptSolverDlg::CallSolver().
|
overrideprotectedvirtual |
Reimplemented in ScCondFormatDlg, ScHighlightChgDlg, ScNameDefDlg, ScNameDlg, ScSimpleRefDlg, and ScValidationDlg.
Definition at line 775 of file anyrefdg.cxx.
References m_aHelper, and ScFormulaReferenceHelper::RefInputDone().
Referenced by ScCondFormatDlg::RefInputDone(), ScHighlightChgDlg::RefInputDone(), ScNameDefDlg::RefInputDone(), ScNameDlg::RefInputDone(), ScSimpleRefDlg::RefInputDone(), ScValidationDlg::RefInputDone(), ScPrintAreasDlg::SetActive(), ScConsolidateDlg::SetActive(), ScColRowNameRangesDlg::SetActive(), ScDbNameDlg::SetActive(), ScFilterDlg::SetActive(), ScSpecialFilterDlg::SetActive(), ScOptSolverDlg::SetActive(), ScPivotLayoutDialog::SetActive(), ScRandomNumberGeneratorDialog::SetActive(), ScSamplingDialog::SetActive(), ScSolverDlg::SetActive(), sc::SparklineDataRangeDialog::SetActive(), sc::SparklineDialog::SetActive(), ScStatisticsInputOutputDialog::SetActive(), ScStatisticsTwoVariableDialog::SetActive(), ScTabOpDlg::SetActive(), and ScXMLSourceDlg::SetActive().
|
overrideprotectedvirtual |
Reimplemented in ScValidationDlg.
Definition at line 745 of file anyrefdg.cxx.
References m_aHelper, and ScFormulaReferenceHelper::RefInputStart().
Referenced by IMPL_LINK(), ScValidationDlg::RefInputStart(), ScCondFormatDlg::SetReference(), ScXMLSourceDlg::SetReference(), ScPrintAreasDlg::SetReference(), ScConsolidateDlg::SetReference(), ScColRowNameRangesDlg::SetReference(), ScDbNameDlg::SetReference(), ScFilterDlg::SetReference(), ScSpecialFilterDlg::SetReference(), ScHighlightChgDlg::SetReference(), ScNameDefDlg::SetReference(), ScNameDlg::SetReference(), ScOptSolverDlg::SetReference(), ScRandomNumberGeneratorDialog::SetReference(), ScSamplingDialog::SetReference(), ScSimpleRefDlg::SetReference(), ScSolverDlg::SetReference(), ScStatisticsInputOutputDialog::SetReference(), ScStatisticsTwoVariableDialog::SetReference(), ScTabOpDlg::SetReference(), sc::SparklineDataRangeDialog::SetReference(), sc::SparklineDialog::SetReference(), and ScPivotLayoutDialog::SetReference().
|
overridevirtual |
Definition at line 770 of file anyrefdg.cxx.
References m_aHelper, and ScFormulaReferenceHelper::ReleaseFocus().
|
overridepure virtual |
Implemented in ScPrintAreasDlg, ScCondFormatDlg, ScConsolidateDlg, ScColRowNameRangesDlg, ScDbNameDlg, ScFilterDlg, ScSpecialFilterDlg, ScHighlightChgDlg, ScNameDefDlg, ScNameDlg, ScOptSolverDlg, ScPivotLayoutDialog, ScRandomNumberGeneratorDialog, ScSamplingDialog, ScSimpleRefDlg, ScSolverDlg, sc::SparklineDataRangeDialog, sc::SparklineDialog, ScStatisticsInputOutputDialog, ScStatisticsTwoVariableDialog, ScTabOpDlg, ScValidationDlg, and ScXMLSourceDlg.
Referenced by SwitchToDocument().
|
protected |
Definition at line 720 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 |
Implemented in ScCondFormatDlg, ScXMLSourceDlg, ScPrintAreasDlg, ScConsolidateDlg, ScColRowNameRangesDlg, ScDbNameDlg, ScFilterDlg, ScSpecialFilterDlg, ScHighlightChgDlg, ScNameDefDlg, ScNameDlg, ScOptSolverDlg, ScRandomNumberGeneratorDialog, ScSamplingDialog, ScSimpleRefDlg, ScSolverDlg, ScStatisticsInputOutputDialog, ScStatisticsTwoVariableDialog, ScTabOpDlg, ScValidationDlg, sc::SparklineDataRangeDialog, sc::SparklineDialog, and ScPivotLayoutDialog.
|
overridevirtual |
Definition at line 765 of file anyrefdg.cxx.
References m_aHelper, and ScFormulaReferenceHelper::ShowReference().
void ScRefHandler::SwitchToDocument | ( | ) |
Definition at line 669 of file anyrefdg.cxx.
References ScTabViewShell::GetActiveViewShell(), SfxViewShell::GetFirst(), SfxViewShell::GetNext(), SfxViewShell::GetObjectShell(), SfxObjectShell::GetTitle(), m_aDocName, and SetActive().
Referenced by ScPivotLayoutDialog::ApplyChanges().
|
overridevirtual |
Definition at line 750 of file anyrefdg.cxx.
References m_aHelper, and ScFormulaReferenceHelper::ToggleCollapsed().
|
overridevirtual |
Definition at line 725 of file anyrefdg.cxx.
References ScFormulaReferenceHelper::ViewShellChanged().
|
private |
Definition at line 91 of file anyrefdg.hxx.
Referenced by EnterRefMode(), and SwitchToDocument().
|
private |
Definition at line 88 of file anyrefdg.hxx.
Referenced by CanInputDone(), disposeRefHandler(), DoClose(), EnterRefMode(), HideReference(), ParseWithNames(), RefInputDone(), RefInputStart(), ReleaseFocus(), ScRefHandler(), SetDispatcherLock(), ShowReference(), and ToggleCollapsed().
|
private |
Definition at line 84 of file anyrefdg.hxx.
Referenced by EnterRefMode(), and LeaveRefMode().
|
private |
Definition at line 83 of file anyrefdg.hxx.
Referenced by disposeRefHandler(), and IsRefInputMode().
|
private |
Definition at line 89 of file anyrefdg.hxx.
Referenced by EnterRefMode().