1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
11 #ifndef INCLUDED_SC_SOURCE_UI_INC_ANALYSISOFVARIANCEDIALOG_HXX
12 #define INCLUDED_SC_SOURCE_UI_INC_ANALYSISOFVARIANCEDIALOG_HXX
15 #include "address.hxx"
16 #include "anyrefdg.hxx"
18 #include <vcl/fixed.hxx>
19 #include <vcl/group.hxx>
20 #include <vcl/lstbox.hxx>
22 #include "StatisticsInputOutputDialog.hxx"
24 class FormulaTemplate
;
25 class AddressWalkerWriter
;
27 class ScAnalysisOfVarianceDialog
: public ScStatisticsInputOutputDialog
36 VclPtr
<NumericField
> mpAlphaField
;
37 VclPtr
<RadioButton
> mpSingleFactorRadio
;
38 VclPtr
<RadioButton
> mpTwoFactorRadio
;
39 VclPtr
<NumericField
> mpRowsPerSampleField
;
41 DECL_LINK(FactorChanged
, void*);
45 static void RowColumn(ScRangeList
& rRangeList
, AddressWalkerWriter
& aOutput
,
46 FormulaTemplate
& aTemplate
, OUString
& sFormula
,
47 GroupedBy aGroupedBy
, ScRange
* pResultRange
);
49 void AnovaSingleFactor(AddressWalkerWriter
& output
, FormulaTemplate
& aTemplate
);
50 void AnovaTwoFactor(AddressWalkerWriter
& output
, FormulaTemplate
& aTemplate
);
53 ScAnalysisOfVarianceDialog(
54 SfxBindings
* pB
, SfxChildWindow
* pCW
,
55 vcl::Window
* pParent
, ScViewData
* pViewData
);
57 virtual ~ScAnalysisOfVarianceDialog();
58 virtual void dispose() SAL_OVERRIDE
;
60 virtual bool Close() SAL_OVERRIDE
;
63 virtual sal_Int16
GetUndoNameId() SAL_OVERRIDE
;
64 virtual ScRange
ApplyOutput(ScDocShell
* pDocShell
) SAL_OVERRIDE
;
69 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */