/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #pragma once #include "compiler.hxx" #include class ScDocument; namespace sc { /** * Context for creating string from an array of formula tokens, used in * ScTokenArray::CreateString(). You can re-use the same string context * between multiple CreateString() calls as long as the document content is * unmodified. */ struct SC_DLLPUBLIC TokenStringContext { typedef std::unordered_map IndexNameMapType; typedef std::unordered_map> IndexNamesMapType; typedef std::unordered_map TabIndexMapType; formula::FormulaGrammar::Grammar meGram; formula::FormulaCompiler::OpCodeMapPtr mxOpCodeMap; const ScCompiler::Convention* mpRefConv; OUString maErrRef; std::vector maTabNames; IndexNameMapType maGlobalRangeNames; TabIndexMapType maSheetRangeNames; IndexNameMapType maNamedDBs; std::vector maExternalFileNames; IndexNamesMapType maExternalCachedTabNames; TokenStringContext(const ScDocument& rDoc, formula::FormulaGrammar::Grammar eGram); }; class SC_DLLPUBLIC CompileFormulaContext { ScDocument& mrDoc; formula::FormulaGrammar::Grammar meGram; std::vector maTabNames; void updateTabNames(); public: CompileFormulaContext(ScDocument& rDoc); CompileFormulaContext(ScDocument& rDoc, formula::FormulaGrammar::Grammar eGram); formula::FormulaGrammar::Grammar getGrammar() const { return meGram; } void setGrammar(formula::FormulaGrammar::Grammar eGram); const std::vector& getTabNames() const { return maTabNames; } ScDocument& getDoc() { return mrDoc; } }; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ tietze.heiko@gmail.com 2017-11-29T18:54:11+00:00 7d12aa833aec8e9a5c453104a23bff70cec54a45 All table styles formatted with General number format except first row/column as text; financial defined with Currency Change-Id: Ib4085230b10d398838b42a449e1166780251f9b4 Reviewed-on: https://gerrit.libreoffice.org/45523 Reviewed-by: Heiko Tietze <tietze.heiko@googlemail.com> Tested-by: Heiko Tietze <tietze.heiko@googlemail.com> Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
All table styles formatted with General number format
except first row/column as text; financial defined with Currency

Change-Id: Ib4085230b10d398838b42a449e1166780251f9b4
Reviewed-on: https://gerrit.libreoffice.org/45523
Reviewed-by: Heiko Tietze <tietze.heiko@googlemail.com>
Tested-by: Heiko Tietze <tietze.heiko@googlemail.com>
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
tdf#101349 Default table styles 2017-11-06T23:07:59+00:00 heiko tietze tietze.heiko@gmail.com 2017-11-06T23:06:27+00:00 a5af0fd9f27af42cf2e8571f659cdad6e606215b Change-Id: Ief8f8e07486dd0a6d61fe12724a4de00f0f47de7 Reviewed-on: https://gerrit.libreoffice.org/44381 Reviewed-by: Heiko Tietze <tietze.heiko@googlemail.com> Tested-by: Heiko Tietze <tietze.heiko@googlemail.com>
Change-Id: Ief8f8e07486dd0a6d61fe12724a4de00f0f47de7
Reviewed-on: https://gerrit.libreoffice.org/44381
Reviewed-by: Heiko Tietze <tietze.heiko@googlemail.com>
Tested-by: Heiko Tietze <tietze.heiko@googlemail.com>
Revert "tdf#101349 Default table styles" 2017-11-03T11:58:26+00:00 Heiko Tietze tietze.heiko@googlemail.com 2017-11-03T11:57:47+00:00 22a95ea367cc005a382de23e51cba850b6dd5e6f Table Styles created by the user are not compatible This reverts commit f8a754e49cac05c356abddb3d22d03874f1bec7d. Change-Id: Ied09093f20c5851a7013a57cff765e8aee3fed01 Reviewed-on: https://gerrit.libreoffice.org/44256 Reviewed-by: Heiko Tietze <tietze.heiko@googlemail.com> Tested-by: Heiko Tietze <tietze.heiko@googlemail.com>
Table Styles created by the user are not compatible

This reverts commit f8a754e49cac05c356abddb3d22d03874f1bec7d.

Change-Id: Ied09093f20c5851a7013a57cff765e8aee3fed01
Reviewed-on: https://gerrit.libreoffice.org/44256
Reviewed-by: Heiko Tietze <tietze.heiko@googlemail.com>
Tested-by: Heiko Tietze <tietze.heiko@googlemail.com>
tdf#101349 Default table styles 2017-10-30T17:19:12+00:00 heiko tietze tietze.heiko@gmail.com 2017-10-28T11:21:34+00:00 f8a754e49cac05c356abddb3d22d03874f1bec7d Change-Id: Ia86c66ce1954172f62e7484908cbe7aaf8b13311 Reviewed-on: https://gerrit.libreoffice.org/43986 Reviewed-by: Yousuf Philips <philipz85@hotmail.com> Tested-by: Yousuf Philips <philipz85@hotmail.com> Reviewed-by: Heiko Tietze <tietze.heiko@googlemail.com>
Change-Id: Ia86c66ce1954172f62e7484908cbe7aaf8b13311
Reviewed-on: https://gerrit.libreoffice.org/43986
Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
Tested-by: Yousuf Philips <philipz85@hotmail.com>
Reviewed-by: Heiko Tietze <tietze.heiko@googlemail.com>