LibreOffice Module sc (master)  1
calcoptionsdlg.hxx
Go to the documentation of this file.
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 #ifndef INCLUDED_SC_SOURCE_UI_OPTDLG_CALCOPTIONSDLG_HXX
11 #define INCLUDED_SC_SOURCE_UI_OPTDLG_CALCOPTIONSDLG_HXX
12 
13 #include <vcl/weld.hxx>
14 #include <calcconfig.hxx>
15 
17 {
18 public:
19  ScCalcOptionsDialog(weld::Window* pParent, const ScCalcConfig& rConfig, bool bWriteConfig);
20  virtual ~ScCalcOptionsDialog() override;
21 
22  DECL_LINK(AsZeroModifiedHdl, weld::ToggleButton&, void);
23  DECL_LINK(ConversionModifiedHdl, weld::ComboBox&, void);
24  DECL_LINK(SyntaxModifiedHdl, weld::ComboBox&, void);
25  DECL_LINK(CurrentDocOnlyHdl, weld::ToggleButton&, void);
26 
27  const ScCalcConfig& GetConfig() const { return maConfig; }
28  bool GetWriteCalcConfig() const { return mbWriteConfig; }
29 
30 private:
32 
33 private:
37 
38  std::unique_ptr<weld::CheckButton> mxEmptyAsZero;
39  std::unique_ptr<weld::ComboBox> mxConversion;
40  std::unique_ptr<weld::CheckButton> mxCurrentDocOnly;
41  std::unique_ptr<weld::ComboBox> mxSyntax;
42 };
43 
44 #endif
45 
46 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::ComboBox > mxConversion
virtual ~ScCalcOptionsDialog() override
DECL_LINK(AsZeroModifiedHdl, weld::ToggleButton &, void)
bool GetWriteCalcConfig() const
std::unique_ptr< weld::CheckButton > mxCurrentDocOnly
const ScCalcConfig & GetConfig() const
Configuration options for formula interpreter.
Definition: calcconfig.hxx:43
std::unique_ptr< weld::ComboBox > mxSyntax
std::unique_ptr< weld::CheckButton > mxEmptyAsZero
ScCalcOptionsDialog(weld::Window *pParent, const ScCalcConfig &rConfig, bool bWriteConfig)
void CoupleEmptyAsZeroToStringConversion()