summaryrefslogtreecommitdiff
path: root/sc/inc/document.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2017-05-01 19:43:16 -0400
committerKohei Yoshida <libreoffice@kohei.us>2017-05-03 02:36:51 +0200
commit93f5cb55349e6de5003182462bfee434dc51f6ad (patch)
tree5c2366da342a93fce034ada2ad7a497610a87c27 /sc/inc/document.hxx
parent6d424f07701bf26d8fb173563b567d5f097c33e2 (diff)
tdf#107255: detect whether the range has only one data cell.
Change-Id: I030961d9d38b092ffdc966baa10decae0c2d070d Reviewed-on: https://gerrit.libreoffice.org/37178 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
Diffstat (limited to 'sc/inc/document.hxx')
-rw-r--r--sc/inc/document.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx
index 2a39544cb7a7..cd4c5a237e04 100644
--- a/sc/inc/document.hxx
+++ b/sc/inc/document.hxx
@@ -1077,6 +1077,14 @@ public:
/** Returns true, if there is any data to create a selection list for rPos. */
bool HasSelectionData( SCCOL nCol, SCROW nRow, SCTAB nTab ) const;
+ /**
+ * Check if the specified range contains either: 1) one non-empty cell, 2)
+ * more than one non-empty cells, or 3) totally empty. In case the range
+ * contains at least one non-empty cell, specify the position of the first
+ * non-empty cell.
+ */
+ sc::MultiDataCellState HasMultipleDataCells( const ScRange& rRange ) const;
+
/** Notes **/
SC_DLLPUBLIC ScPostIt* GetNote(const ScAddress& rPos);
SC_DLLPUBLIC ScPostIt* GetNote(SCCOL nCol, SCROW nRow, SCTAB nTab);