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 #pragma once
12 
13 #include <address.hxx>
14 #include "viewdata.hxx"
15 
17 
18 class FormulaTemplate;
20 
22 {
23 private:
25  {
28  };
29 
31  void FactorChanged();
32 
34 
35  std::unique_ptr<weld::SpinButton> mxAlphaField;
36  std::unique_ptr<weld::RadioButton> mxSingleFactorRadio;
37  std::unique_ptr<weld::RadioButton> mxTwoFactorRadio;
38  std::unique_ptr<weld::SpinButton> mxRowsPerSampleField;
39 
40  static void RowColumn(ScRangeList& rRangeList, AddressWalkerWriter& aOutput,
41  FormulaTemplate& aTemplate, const OUString& sFormula,
42  GroupedBy aGroupedBy, ScRange* pResultRange);
43 
44  void AnovaSingleFactor(AddressWalkerWriter& output, FormulaTemplate& aTemplate);
45  void AnovaTwoFactor(AddressWalkerWriter& output, FormulaTemplate& aTemplate);
46 
47 public:
49  SfxBindings* pB, SfxChildWindow* pCW,
50  weld::Window* pParent, ScViewData& rViewData );
51 
52  virtual ~ScAnalysisOfVarianceDialog() override;
53 
54  virtual void Close() override;
55 
56 protected:
57  virtual const char* GetUndoNameId() override;
58  virtual ScRange ApplyOutput(ScDocShell* pDocShell) override;
59 };
60 
61 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::RadioButton > mxTwoFactorRadio
virtual ~ScAnalysisOfVarianceDialog() override
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)
DECL_LINK(FactorChanged, weld::Toggleable &, void)
virtual const char * GetUndoNameId() override