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
18class FormulaTemplate;
20
22{
23private:
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
45 void AnovaTwoFactor(AddressWalkerWriter& output, FormulaTemplate& aTemplate);
46
47public:
50 weld::Window* pParent, ScViewData& rViewData );
51
52 virtual ~ScAnalysisOfVarianceDialog() override;
53
54 virtual void Close() override;
55
56protected:
57 virtual TranslateId GetUndoNameId() override;
58 virtual ScRange ApplyOutput(ScDocShell* pDocShell) override;
59};
60
61/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual ScRange ApplyOutput(ScDocShell *pDocShell) override
DECL_LINK(FactorChanged, weld::Toggleable &, void)
std::unique_ptr< weld::RadioButton > mxTwoFactorRadio
ScAnalysisOfVarianceDialog(SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent, ScViewData &rViewData)
void AnovaTwoFactor(AddressWalkerWriter &output, FormulaTemplate &aTemplate)
std::unique_ptr< weld::SpinButton > mxRowsPerSampleField
virtual ~ScAnalysisOfVarianceDialog() override
static void RowColumn(ScRangeList &rRangeList, AddressWalkerWriter &aOutput, FormulaTemplate &aTemplate, const OUString &sFormula, GroupedBy aGroupedBy, ScRange *pResultRange)
std::unique_ptr< weld::RadioButton > mxSingleFactorRadio
std::unique_ptr< weld::SpinButton > mxAlphaField
void AnovaSingleFactor(AddressWalkerWriter &output, FormulaTemplate &aTemplate)
virtual TranslateId GetUndoNameId() override