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_INC_CALCCONFIG_HXX
11 #define INCLUDED_SC_INC_CALCCONFIG_HXX
14 #include <formula/grammar.hxx>
16 #include <rtl/ustring.hxx>
18 // have to match the registry values
27 * Configuration options for formula interpreter.
29 struct SC_DLLPUBLIC ScCalcConfig
31 // from most stringent to most relaxed
34 STRING_CONVERSION_AS_ERROR
= 0, ///< =1+"1" or =1+"x" give #VALUE!
35 STRING_CONVERSION_AS_ZERO
, ///< =1+"1" or =1+"x" give 1
36 STRING_CONVERSION_UNAMBIGUOUS
, ///< =1+"1" gives 2, but =1+"1.000" or =1+"x" give #VALUE!
37 STRING_CONVERSION_LOCALE_DEPENDENT
///< =1+"1.000" may be 2 or 1001 ... =1+"x" gives #VALUE!
40 formula::FormulaGrammar::AddressConvention meStringRefAddressSyntax
;
41 StringConversion meStringConversion
;
42 bool mbEmptyStringAsZero
:1;
43 bool mbOpenCLEnabled
:1;
44 bool mbOpenCLAutoSelect
:1;
45 OUString maOpenCLDevice
;
50 void MergeDocumentSpecific( const ScCalcConfig
& r
);
52 bool operator== (const ScCalcConfig
& r
) const;
53 bool operator!= (const ScCalcConfig
& r
) const;
58 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */