Bump version to 4.3-4
[LibreOffice.git] / sc / inc / calcconfig.hxx
blob33d31c749a7f70a21a18c1c0e057faaaf8600964
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
8 */
10 #ifndef INCLUDED_SC_INC_CALCCONFIG_HXX
11 #define INCLUDED_SC_INC_CALCCONFIG_HXX
13 #include "scdllapi.h"
14 #include <formula/grammar.hxx>
16 #include <rtl/ustring.hxx>
18 // have to match the registry values
19 enum ScRecalcOptions
21 RECALC_ALWAYS = 0,
22 RECALC_NEVER,
23 RECALC_ASK,
26 /**
27 * Configuration options for formula interpreter.
29 struct SC_DLLPUBLIC ScCalcConfig
31 // from most stringent to most relaxed
32 enum StringConversion
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;
47 ScCalcConfig();
49 void reset();
50 void MergeDocumentSpecific( const ScCalcConfig& r );
52 bool operator== (const ScCalcConfig& r) const;
53 bool operator!= (const ScCalcConfig& r) const;
56 #endif
58 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */