LibreOffice Module sc (master)  1
AnalysisOfVarianceDialog.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  */
10 
11 #ifndef INCLUDED_SC_SOURCE_UI_INC_ANALYSISOFVARIANCEDIALOG_HXX
12 #define INCLUDED_SC_SOURCE_UI_INC_ANALYSISOFVARIANCEDIALOG_HXX
13 
14 #include <address.hxx>
15 #include "viewdata.hxx"
16 
18 
19 class FormulaTemplate;
21 
23 {
24 private:
26  {
29  };
30 
32  void FactorChanged();
33 
35 
36  std::unique_ptr<weld::SpinButton> mxAlphaField;
37  std::unique_ptr<weld::RadioButton> mxSingleFactorRadio;
38  std::unique_ptr<weld::RadioButton> mxTwoFactorRadio;
39  std::unique_ptr<weld::SpinButton> mxRowsPerSampleField;
40 
41  static void RowColumn(ScRangeList& rRangeList, AddressWalkerWriter& aOutput,
42  FormulaTemplate& aTemplate, const OUString& sFormula,
43  GroupedBy aGroupedBy, ScRange* pResultRange);
44 
45  void AnovaSingleFactor(AddressWalkerWriter& output, FormulaTemplate& aTemplate);
46  void AnovaTwoFactor(AddressWalkerWriter& output, FormulaTemplate& aTemplate);
47 
48 public:
50  SfxBindings* pB, SfxChildWindow* pCW,
51  weld::Window* pParent, ScViewData& rViewData );
52 
53  virtual ~ScAnalysisOfVarianceDialog() override;
54 
55  virtual void Close() override;
56 
57 protected:
58  virtual const char* GetUndoNameId() override;
59  virtual ScRange ApplyOutput(ScDocShell* pDocShell) override;
60 };
61 
62 #endif
63 
64 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::RadioButton > mxTwoFactorRadio
virtual ~ScAnalysisOfVarianceDialog() override
DECL_LINK(FactorChanged, weld::ToggleButton &, void)
void AnovaSingleFactor(AddressWalkerWriter &output, FormulaTemplate &aTemplate)
std::unique_ptr< weld::SpinButton > mxAlphaField
std::unique_ptr< weld::SpinButton > mxRowsPerSampleField
void AnovaTwoFactor(AddressWalkerWriter &output, FormulaTemplate &aTemplate)
virtual ScRange ApplyOutput(ScDocShell *pDocShell) override
ScAnalysisOfVarianceDialog(SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent, ScViewData &rViewData)
std::unique_ptr< weld::RadioButton > mxSingleFactorRadio
static void RowColumn(ScRangeList &rRangeList, AddressWalkerWriter &aOutput, FormulaTemplate &aTemplate, const OUString &sFormula, GroupedBy aGroupedBy, ScRange *pResultRange)
virtual const char * GetUndoNameId() override