LibreOffice Module sc (master) 1
|
#include <AnalysisOfVarianceDialog.hxx>
Public Member Functions | |
ScAnalysisOfVarianceDialog (SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent, ScViewData &rViewData) | |
virtual | ~ScAnalysisOfVarianceDialog () override |
virtual void | Close () override |
Public Member Functions inherited from ScStatisticsInputOutputDialog | |
ScStatisticsInputOutputDialog (SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent, ScViewData &rViewData, const OUString &rUIXMLDescription, const OUString &rID) | |
virtual | ~ScStatisticsInputOutputDialog () override |
virtual void | SetReference (const ScRange &rRef, ScDocument &rDoc) override |
virtual void | SetActive () 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) |
Protected Member Functions | |
virtual TranslateId | GetUndoNameId () override |
virtual ScRange | ApplyOutput (ScDocShell *pDocShell) override |
Protected Member Functions inherited from ScStatisticsInputOutputDialog | |
void | CalculateInputAndWriteToOutput () |
virtual ScRange | ApplyOutput (ScDocShell *pDocShell)=0 |
virtual TranslateId | GetUndoNameId ()=0 |
virtual bool | InputRangesValid () |
void | ValidateDialogInput () |
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 | |
enum | AnovaFactor { SINGLE_FACTOR , TWO_FACTOR } |
Private Member Functions | |
DECL_LINK (FactorChanged, weld::Toggleable &, void) | |
void | FactorChanged () |
void | AnovaSingleFactor (AddressWalkerWriter &output, FormulaTemplate &aTemplate) |
void | AnovaTwoFactor (AddressWalkerWriter &output, FormulaTemplate &aTemplate) |
Static Private Member Functions | |
static void | RowColumn (ScRangeList &rRangeList, AddressWalkerWriter &aOutput, FormulaTemplate &aTemplate, const OUString &sFormula, GroupedBy aGroupedBy, ScRange *pResultRange) |
Private Attributes | |
AnovaFactor | meFactor |
std::unique_ptr< weld::SpinButton > | mxAlphaField |
std::unique_ptr< weld::RadioButton > | mxSingleFactorRadio |
std::unique_ptr< weld::RadioButton > | mxTwoFactorRadio |
std::unique_ptr< weld::SpinButton > | mxRowsPerSampleField |
Definition at line 21 of file AnalysisOfVarianceDialog.hxx.
|
private |
Enumerator | |
---|---|
SINGLE_FACTOR | |
TWO_FACTOR |
Definition at line 24 of file AnalysisOfVarianceDialog.hxx.
ScAnalysisOfVarianceDialog::ScAnalysisOfVarianceDialog | ( | SfxBindings * | pB, |
SfxChildWindow * | pCW, | ||
weld::Window * | pParent, | ||
ScViewData & | rViewData | ||
) |
Definition at line 88 of file AnalysisOfVarianceDialog.cxx.
References FactorChanged(), LINK, mxSingleFactorRadio, and mxTwoFactorRadio.
|
overridevirtual |
Definition at line 110 of file AnalysisOfVarianceDialog.cxx.
|
private |
Definition at line 182 of file AnalysisOfVarianceDialog.cxx.
References FormulaTemplate::applyAddress(), FormulaTemplate::applyRangeList(), FormulaTemplate::applyString(), FormulaTemplate::autoReplaceAddress(), FormulaTemplate::autoReplaceRange(), AddressWalker::current(), FormulaTemplate::getTemplate(), i, ScStatisticsInputOutputDialog::mAddressDetails, ScStatisticsInputOutputDialog::mDocument, ScStatisticsInputOutputDialog::mGroupedBy, ScStatisticsInputOutputDialog::mInputRange, mxAlphaField, AddressWalker::newLine(), AddressWalker::nextColumn(), AddressWalker::nextRow(), AddressWalker::push(), AddressWalker::resetColumn(), AddressWalker::resetRow(), RowColumn(), ScResId(), FormulaTemplate::setTemplate(), sFormula, u, AddressWalkerWriter::writeBoldString(), AddressWalkerWriter::writeFormula(), AddressWalkerWriter::writeString(), and AddressWalkerWriter::writeValue().
Referenced by ApplyOutput().
|
private |
Definition at line 329 of file AnalysisOfVarianceDialog.cxx.
References FormulaTemplate::applyAddress(), FormulaTemplate::autoReplaceAddress(), FormulaTemplate::autoReplaceRange(), ScStatisticsInputOutputDialog::BY_COLUMN, ScStatisticsInputOutputDialog::BY_ROW, AddressWalker::current(), FormulaTemplate::getTemplate(), i, ScStatisticsInputOutputDialog::mInputRange, mxAlphaField, AddressWalker::newLine(), AddressWalker::nextColumn(), AddressWalker::nextRow(), AddressWalker::push(), AddressWalker::resetColumn(), AddressWalker::resetRow(), RowColumn(), ScResId(), FormulaTemplate::setTemplate(), sFormula, u, AddressWalkerWriter::writeBoldString(), AddressWalkerWriter::writeFormula(), AddressWalkerWriter::writeString(), and AddressWalkerWriter::writeValue().
Referenced by ApplyOutput().
|
overrideprotectedvirtual |
Implements ScStatisticsInputOutputDialog.
Definition at line 541 of file AnalysisOfVarianceDialog.cxx.
References AnovaSingleFactor(), AnovaTwoFactor(), ScAddress::Details::eConv, formula::FormulaGrammar::GRAM_ENGLISH, ScStatisticsInputOutputDialog::mAddressDetails, ScStatisticsInputOutputDialog::mDocument, meFactor, formula::FormulaGrammar::mergeToGrammar(), AddressWalker::mMaximumAddress, AddressWalker::mMinimumAddress, ScStatisticsInputOutputDialog::mOutputAddress, SINGLE_FACTOR, and TWO_FACTOR.
|
overridevirtual |
Reimplemented from SfxModelessDialogController.
Definition at line 114 of file AnalysisOfVarianceDialog.cxx.
References ScRefHandler::DoClose(), and ChildControllerWrapper< SID_ANALYSIS_OF_VARIANCE_DIALOG >::GetChildWindowId().
|
private |
|
private |
Definition at line 129 of file AnalysisOfVarianceDialog.cxx.
References meFactor, ScStatisticsInputOutputDialog::mxGroupByColumnsRadio, ScStatisticsInputOutputDialog::mxGroupByRowsRadio, mxRowsPerSampleField, mxSingleFactorRadio, mxTwoFactorRadio, SINGLE_FACTOR, and TWO_FACTOR.
Referenced by ScAnalysisOfVarianceDialog().
|
overrideprotectedvirtual |
Implements ScStatisticsInputOutputDialog.
Definition at line 119 of file AnalysisOfVarianceDialog.cxx.
|
staticprivate |
Definition at line 147 of file AnalysisOfVarianceDialog.cxx.
References ScRange::aEnd, FormulaTemplate::applyNumber(), FormulaTemplate::applyRange(), ScRange::aStart, ScStatisticsInputOutputDialog::BY_COLUMN, AddressWalker::current(), FormulaTemplate::getTemplate(), i, AddressWalker::nextRow(), ScResId(), FormulaTemplate::setTemplate(), sFormula, ScRangeList::size(), u, AddressWalkerWriter::writeFormula(), and AddressWalkerWriter::writeString().
Referenced by AnovaSingleFactor(), and AnovaTwoFactor().
|
private |
Definition at line 33 of file AnalysisOfVarianceDialog.hxx.
Referenced by ApplyOutput(), and FactorChanged().
|
private |
Definition at line 35 of file AnalysisOfVarianceDialog.hxx.
Referenced by AnovaSingleFactor(), and AnovaTwoFactor().
|
private |
Definition at line 38 of file AnalysisOfVarianceDialog.hxx.
Referenced by FactorChanged().
|
private |
Definition at line 36 of file AnalysisOfVarianceDialog.hxx.
Referenced by FactorChanged(), and ScAnalysisOfVarianceDialog().
|
private |
Definition at line 37 of file AnalysisOfVarianceDialog.hxx.
Referenced by FactorChanged(), and ScAnalysisOfVarianceDialog().