diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-11-19 16:45:55 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-11-28 13:28:31 -0500 |
commit | 1157cbc99391c121bbe5e75291ce7a2cc75f5eba (patch) | |
tree | 1d4cff9f336690469d36e214a79ded44ffb9541b /sc/inc/orcusfilters.hxx | |
parent | 83c2f4c830559ce3aa0b448a604c93882af4f231 (diff) |
Separate the XML part of orcus filters into own class.
Along with other reorganization of the orcus interface code...
This XML context object will be used to store data specific to each
loaded XML file, such as XML stream, namespace repository and so on.
Change-Id: I21c43ab0026954c5d52f4985a169934f8fb9f704
Diffstat (limited to 'sc/inc/orcusfilters.hxx')
-rw-r--r-- | sc/inc/orcusfilters.hxx | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/sc/inc/orcusfilters.hxx b/sc/inc/orcusfilters.hxx index 1b94f67bed40..dd9778d3b263 100644 --- a/sc/inc/orcusfilters.hxx +++ b/sc/inc/orcusfilters.hxx @@ -17,6 +17,7 @@ class SvTreeListBox; class Image; struct ScOrcusXMLTreeParam; struct ScOrcusImportXMLParam; +class ScOrcusXMLContext; /** * Collection of orcus filter wrappers. @@ -28,11 +29,17 @@ public: virtual bool importCSV(ScDocument& rDoc, const rtl::OUString& rPath) const = 0; - virtual bool loadXMLStructure( - const rtl::OUString& rPath, SvTreeListBox& rTreeCtrl, ScOrcusXMLTreeParam& rParam) const = 0; + virtual ScOrcusXMLContext* createXMLContext(ScDocument& rDoc, const rtl::OUString& rPath) const = 0; +}; + +class ScOrcusXMLContext +{ +public: + virtual ~ScOrcusXMLContext() {} + + virtual bool loadXMLStructure(SvTreeListBox& rTreeCtrl, ScOrcusXMLTreeParam& rParam) const = 0; - virtual bool importXML( - ScDocument& rDoc, const rtl::OUString& rPath, const ScOrcusImportXMLParam& rParam) const = 0; + virtual bool importXML(const ScOrcusImportXMLParam& rParam) const = 0; }; #endif |