diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-05-29 23:25:06 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-05-30 11:37:20 -0400 |
commit | b52fc9ad0469f5a16496b2eb5a6b77e3028814ee (patch) | |
tree | c29783df3d78595a80e9f0ac3a42e6df66833124 /sc/inc/calcconfig.hxx | |
parent | bebc0e4286edefc20e31b554bccb867274e82a5c (diff) |
Create a common struct for interpreter config options.
And use it both in the core interpreter and the configuration UI.
Change-Id: Ia2a16fcb53025840d906864b564255cd3c53e8e9
Diffstat (limited to 'sc/inc/calcconfig.hxx')
-rw-r--r-- | sc/inc/calcconfig.hxx | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/sc/inc/calcconfig.hxx b/sc/inc/calcconfig.hxx new file mode 100644 index 000000000000..4af6222778dd --- /dev/null +++ b/sc/inc/calcconfig.hxx @@ -0,0 +1,50 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * Version: MPL 1.1 / GPLv3+ / LGPLv3+ + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License or as specified alternatively below. You may obtain a copy of + * the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * Major Contributor(s): + * Copyright (C) 2012 Kohei Yoshida <kohei.yoshida@suse.com> + * + * All Rights Reserved. + * + * For minor contributions see the git repository. + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 3 or later (the "GPLv3+"), or + * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), + * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable + * instead of those above. + */ + +#ifndef __SC_CALCCONFIG_HXX__ +#define __SC_CALCCONFIG_HXX__ + +#include "scdllapi.h" +#include "formula/grammar.hxx" + +/** + * Configuration options for formula interpreter. + */ +struct SC_DLLPUBLIC ScCalcConfig +{ + formula::FormulaGrammar::AddressConvention meIndirectRefSyntax; + + ScCalcConfig(); + + bool operator== (const ScCalcConfig& r) const; + bool operator!= (const ScCalcConfig& r) const; +}; + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |