summaryrefslogtreecommitdiff
path: root/sc/source/core/inc/grouptokenconverter.hxx
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2013-11-14 19:30:36 +0200
committerMichael Meeks <michael.meeks@collabora.com>2013-11-20 18:23:05 +0000
commit2f98f0ecf8964f5fce8e315fbff29760aa6449dd (patch)
tree6ab4d106bafd3958cabe71ff64800d963d4502ef /sc/source/core/inc/grouptokenconverter.hxx
parent25fb3d749c3184b96c79352be4990c9b4fa6c602 (diff)
WIP: Background ahead-of-time OpenCL compilation
Work in progress, does not work. That's what WIP means. Change-Id: I31459624a45370384e00392937ac9a5b9cd893c2
Diffstat (limited to 'sc/source/core/inc/grouptokenconverter.hxx')
-rw-r--r--sc/source/core/inc/grouptokenconverter.hxx38
1 files changed, 38 insertions, 0 deletions
diff --git a/sc/source/core/inc/grouptokenconverter.hxx b/sc/source/core/inc/grouptokenconverter.hxx
new file mode 100644
index 000000000000..9685681886e0
--- /dev/null
+++ b/sc/source/core/inc/grouptokenconverter.hxx
@@ -0,0 +1,38 @@
+/* -*- 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/.
+ */
+
+#ifndef INCLUDED_SC_SOURCE_CORE_INC_GROUPTOKENCONVERTER_HXX
+#define INCLUDED_SC_SOURCE_CORE_INC_GROUPTOKENCONVERTER_HXX
+
+#include "document.hxx"
+#include "formulacell.hxx"
+#include "scdllapi.h"
+#include "tokenarray.hxx"
+#include "types.hxx"
+
+class SC_DLLPUBLIC ScGroupTokenConverter
+{
+ ScTokenArray& mrGroupTokens;
+ ScDocument& mrDoc;
+ ScFormulaCell& mrCell;
+ const ScAddress& mrPos;
+
+ bool isSelfReferenceRelative(const ScAddress& rRefPos, SCROW nRelRow);
+ bool isSelfReferenceAbsolute(const ScAddress& rRefPos);
+ SCROW trimLength(SCTAB nTab, SCCOL nCol1, SCCOL nCol2, SCROW nRow, SCROW nRowLen);
+
+public:
+ ScGroupTokenConverter(ScTokenArray& rGroupTokens, ScDocument& rDoc, ScFormulaCell& rCell, const ScAddress& rPos);
+
+ bool convert(ScTokenArray& rCode);
+};
+
+#endif // INCLUDED_SC_SOURCE_CORE_INC_GROUPTOKENCONVERTER_HXX
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */