summaryrefslogtreecommitdiffstats
path: root/sc/inc/dpshttab.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2011-01-21 16:46:47 -0500
committerKohei Yoshida <kyoshida@novell.com>2011-01-21 16:46:47 -0500
commit126321ebe679376a13e807ff3b1c38acdb0b2f98 (patch)
treeba4a009aec6c0801f3625c4e97f317756b603391 /sc/inc/dpshttab.hxx
parentEarly bail out on error conditions, to reduce indent levels. (diff)
downloadcore-126321ebe679376a13e807ff3b1c38acdb0b2f98.tar.gz
core-126321ebe679376a13e807ff3b1c38acdb0b2f98.zip
Let's store ScDocument* in ScSheetSourceDesc.
This class already uses ScDocument* a lot internally. Let's just take the pointer to the document instance in the ctor and store it inside.
Diffstat (limited to 'sc/inc/dpshttab.hxx')
-rw-r--r--sc/inc/dpshttab.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/inc/dpshttab.hxx b/sc/inc/dpshttab.hxx
index 34b598b1dfa1..737c0bfe4626 100644
--- a/sc/inc/dpshttab.hxx
+++ b/sc/inc/dpshttab.hxx
@@ -52,7 +52,10 @@ class ScDPItemData;
*/
class ScSheetSourceDesc
{
+ ScSheetSourceDesc(); // disabled
+
public:
+ SC_DLLPUBLIC ScSheetSourceDesc(ScDocument* pDoc);
SC_DLLPUBLIC void SetSourceRange(const ScRange& rRange);
SC_DLLPUBLIC const ScRange& GetSourceRange() const;
@@ -81,6 +84,7 @@ private:
ScRange maSourceRange;
::rtl::OUString maRangeName;
ScQueryParam maQueryParam;
+ ScDocument* mpDoc;
};
// --------------------------------------------------------------------