fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / sc / source / ui / inc / AnalysisOfVarianceDialog.hxx
blob3a5d75bab7370f5d947819fddc3d9cb4a67830b8
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
9 */
11 #ifndef INCLUDED_SC_SOURCE_UI_INC_ANALYSISOFVARIANCEDIALOG_HXX
12 #define INCLUDED_SC_SOURCE_UI_INC_ANALYSISOFVARIANCEDIALOG_HXX
14 #include "global.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
29 private:
30 enum AnovaFactor
32 SINGLE_FACTOR,
33 TWO_FACTOR
36 VclPtr<NumericField> mpAlphaField;
37 VclPtr<RadioButton> mpSingleFactorRadio;
38 VclPtr<RadioButton> mpTwoFactorRadio;
39 VclPtr<NumericField> mpRowsPerSampleField;
41 DECL_LINK(FactorChanged, void*);
43 AnovaFactor meFactor;
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);
52 public:
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;
62 protected:
63 virtual sal_Int16 GetUndoNameId() SAL_OVERRIDE;
64 virtual ScRange ApplyOutput(ScDocShell* pDocShell) SAL_OVERRIDE;
67 #endif
69 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */