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 #include <reffact.hxx>
12 #include <CorrelationDialog.hxx>
13 #include <scresid.hxx>
14 #include <strings.hrc>
16 ScCorrelationDialog::ScCorrelationDialog(
17 SfxBindings
* pSfxBindings
, SfxChildWindow
* pChildWindow
,
18 weld::Window
* pParent
, ScViewData
& rViewData
) :
19 ScMatrixComparisonGenerator(
20 pSfxBindings
, pChildWindow
, pParent
, rViewData
,
21 u
"modules/scalc/ui/correlationdialog.ui"_ustr
, u
"CorrelationDialog"_ustr
)
24 void ScCorrelationDialog::Close()
26 DoClose(ScCorrelationDialogWrapper::GetChildWindowId());
29 OUString
ScCorrelationDialog::getLabel()
31 return ScResId(STR_CORRELATION_LABEL
);
34 OUString
ScCorrelationDialog::getTemplate()
36 return u
"=CORREL(%VAR1%; %VAR2%)"_ustr
;
39 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */