summaryrefslogtreecommitdiff
path: root/sc/inc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-10-04 13:17:01 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-10-04 13:19:40 -0400
commitf3fae7d3c64db62568290f105d8404f037793945 (patch)
treebaf3eebb2c2671323894dac27ebe388f046d654f /sc/inc
parent6d5c352cb098daac139cb9c32df3420321eaaf3b (diff)
Add menu entry for the "formula to value" feature.
Not sure 100% if that's the best place for this. Feel free to move it to a better place. Change-Id: Id66a92e1184e988bd71f7d845ea370b021c02c21
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/column.hxx2
-rw-r--r--sc/inc/document.hxx5
-rw-r--r--sc/inc/sccommands.h1
-rw-r--r--sc/inc/table.hxx2
4 files changed, 10 insertions, 0 deletions
diff --git a/sc/inc/column.hxx b/sc/inc/column.hxx
index c694513ad491..9398d2471581 100644
--- a/sc/inc/column.hxx
+++ b/sc/inc/column.hxx
@@ -311,6 +311,8 @@ public:
bool SetFormulaCells( SCROW nRow, std::vector<ScFormulaCell*>& rCells );
+ bool HasFormulaCell( SCROW nRow1, SCROW nRow2 ) const;
+
void CloneFormulaCell( const ScFormulaCell& rSrc, const std::vector<sc::RowSpan>& rRanges );
svl::SharedString GetSharedString( SCROW nRow ) const;
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx
index 41fcffbd5f27..063c9f6d9a9f 100644
--- a/sc/inc/document.hxx
+++ b/sc/inc/document.hxx
@@ -866,6 +866,11 @@ public:
bool SetFormulaCells( const ScAddress& rPos, std::vector<ScFormulaCell*>& rCells );
+ /**
+ * Check if there is at least one formula cell in specified range.
+ */
+ bool HasFormulaCell( const ScRange& rRange ) const;
+
SC_DLLPUBLIC void InsertMatrixFormula(SCCOL nCol1, SCROW nRow1,
SCCOL nCol2, SCROW nRow2,
const ScMarkData& rMark,
diff --git a/sc/inc/sccommands.h b/sc/inc/sccommands.h
index 3a2fb44382c1..8cfbd9978909 100644
--- a/sc/inc/sccommands.h
+++ b/sc/inc/sccommands.h
@@ -105,6 +105,7 @@
#define CMD_FID_TAB_MENU_SET_TAB_BG_COLOR ".uno:SetTabBgColor"
#define CMD_FID_TAB_SET_TAB_BG_COLOR ".uno:TabBgColor"
#define CMD_SID_MANAGE_XML_SOURCE ".uno:ManageXMLSource"
+#define CMD_SID_CONVERT_FORMULA_TO_VALUE ".uno:ConvertFormulaToValue"
#endif
diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx
index e0c6e2170b52..30df498c71d0 100644
--- a/sc/inc/table.hxx
+++ b/sc/inc/table.hxx
@@ -351,6 +351,8 @@ public:
bool SetFormulaCells( SCCOL nCol, SCROW nRow, std::vector<ScFormulaCell*>& rCells );
+ bool HasFormulaCell( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2 ) const;
+
svl::SharedString GetSharedString( SCCOL nCol, SCROW nRow ) const;
void SetValue( SCCOL nCol, SCROW nRow, const double& rVal );