Line data Source code
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 : #include "docsh.hxx"
12 : #include "reffact.hxx"
13 : #include "strload.hxx"
14 : #include "StatisticsDialogs.hrc"
15 :
16 : #include "CovarianceDialog.hxx"
17 :
18 : namespace
19 : {
20 0 : static const OUString strCovarianceTemplate("=COVAR(%VAR1%; %VAR2%)");
21 : }
22 :
23 0 : ScCovarianceDialog::ScCovarianceDialog(
24 : SfxBindings* pSfxBindings, SfxChildWindow* pChildWindow,
25 : Window* pParent, ScViewData* pViewData ) :
26 : ScMatrixComparisonGenerator(
27 : pSfxBindings, pChildWindow, pParent, pViewData,
28 0 : "CovarianceDialog", "modules/scalc/ui/covariancedialog.ui" )
29 0 : {}
30 :
31 0 : sal_Int16 ScCovarianceDialog::GetUndoNameId()
32 : {
33 0 : return STR_COVARIANCE_UNDO_NAME;
34 : }
35 :
36 0 : bool ScCovarianceDialog::Close()
37 : {
38 0 : return DoClose( ScCovarianceDialogWrapper::GetChildWindowId() );
39 : }
40 :
41 0 : const OUString ScCovarianceDialog::getLabel()
42 : {
43 0 : return SC_STRLOAD(RID_STATISTICS_DLGS, STR_COVARIANCE_LABEL);
44 : }
45 :
46 0 : const OUString ScCovarianceDialog::getTemplate()
47 : {
48 0 : return strCovarianceTemplate;
49 0 : }
50 :
51 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|