summaryrefslogtreecommitdiff
path: root/sc/source/filter/xml/XMLDetectiveContext.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/filter/xml/XMLDetectiveContext.hxx')
-rw-r--r--sc/source/filter/xml/XMLDetectiveContext.hxx16
1 files changed, 4 insertions, 12 deletions
diff --git a/sc/source/filter/xml/XMLDetectiveContext.hxx b/sc/source/filter/xml/XMLDetectiveContext.hxx
index 8cbbb6b0704c..fc98754737fa 100644
--- a/sc/source/filter/xml/XMLDetectiveContext.hxx
+++ b/sc/source/filter/xml/XMLDetectiveContext.hxx
@@ -25,6 +25,7 @@
#include "detfunc.hxx"
#include "detdata.hxx"
#include "xmlimprt.hxx"
+#include "importcontext.hxx"
#include <list>
@@ -72,14 +73,11 @@ public:
bool GetFirstOp( ScMyImpDetectiveOp& rDetOp );
};
-class ScXMLDetectiveContext : public SvXMLImportContext
+class ScXMLDetectiveContext : public ScXMLImportContext
{
private:
ScMyImpDetectiveObjVec* pDetectiveObjVec;
- const ScXMLImport& GetScImport() const { return static_cast<const ScXMLImport&>(GetImport()); }
- ScXMLImport& GetScImport() { return static_cast<ScXMLImport&>(GetImport()); }
-
public:
ScXMLDetectiveContext(
ScXMLImport& rImport,
@@ -97,16 +95,13 @@ public:
virtual void EndElement() override;
};
-class ScXMLDetectiveHighlightedContext : public SvXMLImportContext
+class ScXMLDetectiveHighlightedContext : public ScXMLImportContext
{
private:
ScMyImpDetectiveObjVec* pDetectiveObjVec;
ScMyImpDetectiveObj aDetectiveObj;
bool bValid;
- const ScXMLImport& GetScImport() const { return static_cast<const ScXMLImport&>(GetImport()); }
- ScXMLImport& GetScImport() { return static_cast<ScXMLImport&>(GetImport()); }
-
public:
ScXMLDetectiveHighlightedContext(
ScXMLImport& rImport,
@@ -125,15 +120,12 @@ public:
virtual void EndElement() override;
};
-class ScXMLDetectiveOperationContext : public SvXMLImportContext
+class ScXMLDetectiveOperationContext : public ScXMLImportContext
{
private:
ScMyImpDetectiveOp aDetectiveOp;
bool bHasType;
- const ScXMLImport& GetScImport() const { return static_cast<const ScXMLImport&>(GetImport()); }
- ScXMLImport& GetScImport() { return static_cast<ScXMLImport&>(GetImport()); }
-
public:
ScXMLDetectiveOperationContext(
ScXMLImport& rImport,