diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-04 15:07:36 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-07 06:39:21 +0000 |
commit | 496c0de160dd405c9f089679fc5f590bfe15e49e (patch) | |
tree | 15f1b695c51812295f6bb4fe342374cdc9547c3f /sc/source/filter/xml/XMLTableSourceContext.hxx | |
parent | 27513d4df50f6d18b585f4cbec6a4dd3f9b432cc (diff) |
inherit from ScXMLImportContext
and drop a bunch of redundant code
Change-Id: I187273ad9eebeaf2446e09b2e3442e963d8ae4f4
Reviewed-on: https://gerrit.libreoffice.org/30568
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/filter/xml/XMLTableSourceContext.hxx')
-rw-r--r-- | sc/source/filter/xml/XMLTableSourceContext.hxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sc/source/filter/xml/XMLTableSourceContext.hxx b/sc/source/filter/xml/XMLTableSourceContext.hxx index ec81e7d7469e..31791c0f4a08 100644 --- a/sc/source/filter/xml/XMLTableSourceContext.hxx +++ b/sc/source/filter/xml/XMLTableSourceContext.hxx @@ -23,8 +23,9 @@ #include <xmloff/xmlictxt.hxx> #include <com/sun/star/sheet/SheetLinkMode.hpp> #include "xmlimprt.hxx" +#include "importcontext.hxx" -class ScXMLTableSourceContext : public SvXMLImportContext +class ScXMLTableSourceContext : public ScXMLImportContext { OUString sLink; OUString sTableName; @@ -33,8 +34,6 @@ class ScXMLTableSourceContext : public SvXMLImportContext sal_Int32 nRefresh; css::sheet::SheetLinkMode nMode; - const ScXMLImport& GetScImport() const { return static_cast<const ScXMLImport&>(GetImport()); } - ScXMLImport& GetScImport() { return static_cast<ScXMLImport&>(GetImport()); } public: ScXMLTableSourceContext( ScXMLImport& rImport, sal_uInt16 nPrfx, const OUString& rLName, |