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/.
12 #include "reffact.hxx"
13 #include "strload.hxx"
14 #include "StatisticsDialogs.hrc"
16 #include "CorrelationDialog.hxx"
20 static const OUString
strCorrelationTemplate("=CORREL(%VAR1%; %VAR2%)");
23 ScCorrelationDialog::ScCorrelationDialog(
24 SfxBindings
* pSfxBindings
, SfxChildWindow
* pChildWindow
,
25 Window
* pParent
, ScViewData
* pViewData
) :
26 ScMatrixComparisonGenerator(
27 pSfxBindings
, pChildWindow
, pParent
, pViewData
,
28 "CorrelationDialog", "modules/scalc/ui/correlationdialog.ui" )
31 sal_Bool
ScCorrelationDialog::Close()
33 return DoClose( ScCorrelationDialogWrapper::GetChildWindowId() );
36 const OUString
ScCorrelationDialog::getLabel()
38 return SC_STRLOAD(RID_STATISTICS_DLGS
, STR_CORRELATION_LABEL
);
41 const OUString
ScCorrelationDialog::getTemplate()
43 return strCorrelationTemplate
;
46 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */