summaryrefslogtreecommitdiffstats
path: root/sc/inc/dpshttab.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2011-01-21 17:54:58 -0500
committerKohei Yoshida <kyoshida@novell.com>2011-01-21 17:54:58 -0500
commit47d642003d05773668f7448d4d0144aff6758426 (patch)
tree788fbf7df43c662108ffd01655fb8274273efddb /sc/inc/dpshttab.hxx
parentGet source range from range name if exists. (diff)
downloadcore-47d642003d05773668f7448d4d0144aff6758426.tar.gz
core-47d642003d05773668f7448d4d0144aff6758426.zip
Properly display range name in the UI when appropriate.
DataPilot main dialog now displays range name properly in lieu of the traditional raw range reference string if the source data range is referred to as a range name.
Diffstat (limited to 'sc/inc/dpshttab.hxx')
-rw-r--r--sc/inc/dpshttab.hxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/sc/inc/dpshttab.hxx b/sc/inc/dpshttab.hxx
index 553d07b4631c..59b01a2b1d36 100644
--- a/sc/inc/dpshttab.hxx
+++ b/sc/inc/dpshttab.hxx
@@ -58,6 +58,17 @@ public:
SC_DLLPUBLIC ScSheetSourceDesc(ScDocument* pDoc);
SC_DLLPUBLIC void SetSourceRange(const ScRange& rRange);
+
+ /**
+ * Get the range that contains the source data. In case the source data
+ * is referred to via a range name, it returns the range that the range
+ * name points to.
+ *
+ * <i>Note that currently only a single range is supported; if the
+ * range name contains multiple ranges, only the first range is used.</i>
+ *
+ * @return source range.
+ */
SC_DLLPUBLIC const ScRange& GetSourceRange() const;
void SetRangeName(const ::rtl::OUString& rName);
const ::rtl::OUString& GetRangeName() const;