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/.
10 #ifndef INCLUDED_SC_SOURCE_UI_OPTDLG_CALCOPTIONSDLG_HXX
11 #define INCLUDED_SC_SOURCE_UI_OPTDLG_CALCOPTIONSDLG_HXX
13 #include <config_features.h>
15 #include <vcl/dialog.hxx>
16 #include <vcl/button.hxx>
17 #include <vcl/edit.hxx>
18 #include <vcl/field.hxx>
19 #include <vcl/fixed.hxx>
20 #include <vcl/layout.hxx>
21 #include <vcl/lstbox.hxx>
23 #include <svx/checklbx.hxx>
25 #include <svtools/treelistbox.hxx>
27 #include "calcconfig.hxx"
29 #if HAVE_FEATURE_OPENCL
30 #include <opencl/openclconfig.hxx>
31 #include <opencl/platforminfo.hxx>
34 class ScCalcOptionsDialog
: public ModalDialog
37 ScCalcOptionsDialog(vcl::Window
* pParent
, const ScCalcConfig
& rConfig
, bool bWriteConfig
);
38 virtual ~ScCalcOptionsDialog();
39 virtual void dispose() override
;
41 DECL_LINK_TYPED( AsZeroModifiedHdl
, Button
*, void);
42 DECL_LINK_TYPED( ConversionModifiedHdl
, ListBox
&, void);
43 DECL_LINK_TYPED( SyntaxModifiedHdl
, ListBox
&, void);
44 DECL_LINK_TYPED( CurrentDocOnlyHdl
, Button
*, void);
46 const ScCalcConfig
& GetConfig() const { return maConfig
;}
47 bool GetWriteCalcConfig() const { return mbWriteConfig
;}
50 void OpenCLAutomaticSelectionChanged();
51 void SelectedDeviceChanged();
52 void CoupleEmptyAsZeroToStringConversion();
55 VclPtr
<CheckBox
> mpEmptyAsZero
;
56 VclPtr
<ListBox
> mpConversion
;
57 VclPtr
<ListBox
> mpSyntax
;
58 VclPtr
<CheckBox
> mpCurrentDocOnly
;
60 ScCalcConfig maConfig
;
62 bool mbSelectedEmptyStringAsZero
;
68 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */