summaryrefslogtreecommitdiffstats
path: root/sc/inc/dpshttab.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2011-01-20 20:22:52 -0500
committerKohei Yoshida <kyoshida@novell.com>2011-01-20 20:22:52 -0500
commitcd44de5e135ac9d89b5c01c6e4b740d4172f69a0 (patch)
tree6e75a50283fef0b659ca7f9944ae799f161de686 /sc/inc/dpshttab.hxx
parentDebug datapilot refresh. (diff)
downloadcore-cd44de5e135ac9d89b5c01c6e4b740d4172f69a0.tar.gz
core-cd44de5e135ac9d89b5c01c6e4b740d4172f69a0.zip
Added range name as a data member to ScSheetSourceDesc.
Also added accessor methods for all its data members. I'll properly encapsulate them later.
Diffstat (limited to 'sc/inc/dpshttab.hxx')
-rw-r--r--sc/inc/dpshttab.hxx24
1 files changed, 18 insertions, 6 deletions
diff --git a/sc/inc/dpshttab.hxx b/sc/inc/dpshttab.hxx
index bda7aec61e7e..7a546ec6a288 100644
--- a/sc/inc/dpshttab.hxx
+++ b/sc/inc/dpshttab.hxx
@@ -44,19 +44,31 @@ namespace com { namespace sun { namespace star { namespace sheet {
class ScDPDimension;
class ScDPItemData;
+/**
+ * This class contains authoritative information on the internal reference
+ * used as the data source for datapilot table. <i>The range name takes
+ * precedence over the source range when it's non-empty.</i> When the range
+ * name is empty, the source range gets used.
+ */
struct ScSheetSourceDesc
{
ScRange aSourceRange;
+ ::rtl::OUString maRangeName;
ScQueryParam aQueryParam;
- BOOL operator== ( const ScSheetSourceDesc& rOther ) const
- { return aSourceRange == rOther.aSourceRange &&
- aQueryParam == rOther.aQueryParam; }
+ void SetSourceRange(const ScRange& rRange);
+ const ScRange& GetSourceRange() const;
+ void SetRangeName(const ::rtl::OUString& rName);
+ const ::rtl::OUString& GetRangeName() const;
+ void SetQueryParam(const ScQueryParam& rParam);
+ const ScQueryParam& GetQueryParam() const;
+
+ bool operator== ( const ScSheetSourceDesc& rOther ) const;
ScDPTableDataCache* CreateCache( ScDocument* pDoc, long nID = -1) const;
- ULONG CheckValidate( ScDocument* pDoc ) const;
+ ULONG CheckValidate( ScDocument* pDoc ) const;
ScDPTableDataCache* GetCache( ScDocument* pDoc, long nID ) const;
- ScDPTableDataCache* GetExistDPObjectCache ( ScDocument* pDoc ) const;
- long GetCacheId( ScDocument* pDoc, long nID ) const;
+ ScDPTableDataCache* GetExistDPObjectCache ( ScDocument* pDoc ) const;
+ long GetCacheId( ScDocument* pDoc, long nID ) const;
};
// --------------------------------------------------------------------