summaryrefslogtreecommitdiff
path: root/sc/inc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-03-25 10:52:48 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-03-25 12:41:57 -0400
commita603ddf9adef4373940936f785e918a8c0ea560b (patch)
tree5289175ba6b5803ec19af7e3a2cff6af00b62c0d /sc/inc
parent76ada5696d114bc90cf285fafec41b1d21696692 (diff)
fdo#76402: Write unit test for this first.
Change-Id: Ib4fccb0e29d4a21a211de4af2cdeaf956f9b9cc6
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/document.hxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx
index becca934745a..5b8579b57492 100644
--- a/sc/inc/document.hxx
+++ b/sc/inc/document.hxx
@@ -514,6 +514,19 @@ public:
SC_DLLPUBLIC ScRangeName* GetRangeName() const;
void SetRangeName(SCTAB nTab, ScRangeName* pNew);
void SetRangeName( ScRangeName* pNewRangeName );
+
+ /**
+ * Insert a new named expression to the global scope.
+ *
+ * @param rName name for the expression.
+ * @param rPos base position.
+ * @param rExpr formula expression to be associated with the name. The
+ * current grammer is used to compile this expression.
+ *
+ * @return true if inserted successfully, false otherwise.
+ */
+ bool InsertNewRangeName( const OUString& rName, const ScAddress& rPos, const OUString& rExpr );
+
SCTAB GetMaxTableNumber() { return static_cast<SCTAB>(maTabs.size()) - 1; }
void SetMaxTableNumber(SCTAB nNumber) { nMaxTableNumber = nNumber; }