Stop leaking all ScPostIt instances.
[LibreOffice.git] / sc / inc / calcconfig.hxx
blob94a72cc8b6a91f61264bbcd6b74940d4c2a80e34
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 __SC_CALCCONFIG_HXX__
11 #define __SC_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 formula::FormulaGrammar::AddressConvention meStringRefAddressSyntax;
32 bool mbEmptyStringAsZero:1;
33 bool mbOpenCLEnabled:1;
34 bool mbOpenCLAutoSelect:1;
35 OUString maOpenCLDevice;
37 ScCalcConfig();
39 void reset();
41 bool operator== (const ScCalcConfig& r) const;
42 bool operator!= (const ScCalcConfig& r) const;
45 #endif
47 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */