diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2009-09-14 22:32:35 -0400 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2009-09-14 22:32:35 -0400 |
commit | 4996883c90c3dd7db4e60f30cd7ce6a9ab75aa7e (patch) | |
tree | 6f68e33e8107cab7aafc40255444b0aeabe14c7c /sc/source/core/tool/doubleref.cxx | |
parent | 2c135d541038ef9f5c5e3c9d91fc424994b012c7 (diff) |
#i102750# moved fillQueryEntries() into the base class and made it non-virtual. Now DBSum works with an external range as the query range.
Diffstat (limited to 'sc/source/core/tool/doubleref.cxx')
-rw-r--r-- | sc/source/core/tool/doubleref.cxx | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/sc/source/core/tool/doubleref.cxx b/sc/source/core/tool/doubleref.cxx index 1c34c6438de4..843c588a236b 100644 --- a/sc/source/core/tool/doubleref.cxx +++ b/sc/source/core/tool/doubleref.cxx @@ -309,6 +309,14 @@ ScDBRangeBase::RefType ScDBRangeBase::getType() const return meType; } +bool ScDBRangeBase::fillQueryEntries(ScQueryParamBase* pParam, const ScDBRangeBase* pDBRef) const +{ + if (!pDBRef) + return false; + + return FillQueryEntries(pParam, pDBRef, this); +} + ScDocument* ScDBRangeBase::getDoc() const { return mpDoc; @@ -489,14 +497,6 @@ bool ScDBInternalRange::isRangeEqual(const ScRange& rRange) const return maRange == rRange; } -bool ScDBInternalRange::fillQueryEntries(ScQueryParamBase* pParam, const ScDBRangeBase* pDBRef) const -{ - if (!pDBRef) - return false; - - return FillQueryEntries(pParam, pDBRef, this); -} - // ============================================================================ ScDBExternalRange::ScDBExternalRange(ScDocument* pDoc, const ScMatrixRef& pMat) : @@ -564,10 +564,3 @@ bool ScDBExternalRange::isRangeEqual(const ScRange& /*rRange*/) const { return false; } - -bool ScDBExternalRange::fillQueryEntries(ScQueryParamBase* /*pParam*/, const ScDBRangeBase* /*pDBRef*/) const -{ - StackPrinter __stack_printer__("ScDBExternalRange::fillQueryEntries"); - - return false; -} |