diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-11-09 15:21:36 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-11-28 13:28:28 -0500 |
commit | 2ffceb198ef26579e2d3d6659384f76184ccc3e2 (patch) | |
tree | c78b290f21b36b22016f6101a72ca73d821be167 /sc/inc | |
parent | 450bca12a14b090feb8e288da0ea2c5e2555b9ce (diff) |
Press 'Import' in the dialog to start importing XML.
For now, the dialog only calls importXML() when the Import button
is pressed, and the importXML() function still does nothing.
Change-Id: I3427d343f88ba2a9b076ffc0ee4bcc44055d7717
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/orcusfilters.hxx | 4 | ||||
-rw-r--r-- | sc/inc/orcusxml.hxx | 22 |
2 files changed, 26 insertions, 0 deletions
diff --git a/sc/inc/orcusfilters.hxx b/sc/inc/orcusfilters.hxx index 019441cc954e..1b94f67bed40 100644 --- a/sc/inc/orcusfilters.hxx +++ b/sc/inc/orcusfilters.hxx @@ -16,6 +16,7 @@ class ScDocument; class SvTreeListBox; class Image; struct ScOrcusXMLTreeParam; +struct ScOrcusImportXMLParam; /** * Collection of orcus filter wrappers. @@ -29,6 +30,9 @@ public: virtual bool loadXMLStructure( const rtl::OUString& rPath, SvTreeListBox& rTreeCtrl, ScOrcusXMLTreeParam& rParam) const = 0; + + virtual bool importXML( + ScDocument& rDoc, const rtl::OUString& rPath, const ScOrcusImportXMLParam& rParam) const = 0; }; #endif diff --git a/sc/inc/orcusxml.hxx b/sc/inc/orcusxml.hxx index a133b783daa7..2baac6959614 100644 --- a/sc/inc/orcusxml.hxx +++ b/sc/inc/orcusxml.hxx @@ -14,6 +14,7 @@ #include "address.hxx" #include "vcl/image.hxx" +#include <vector> #include <boost/ptr_container/ptr_vector.hpp> class SvTreeListEntry; @@ -48,6 +49,27 @@ struct ScOrcusXMLTreeParam UserDataStoreType maUserDataStore; static SC_DLLPUBLIC EntryData* getUserData(SvTreeListEntry& rEntry); + static SC_DLLPUBLIC const EntryData* getUserData(const SvTreeListEntry& rEntry); +}; + +struct ScOrcusImportXMLParam +{ + struct CellLink + { + ScAddress maPos; + rtl::OUString maPath; + + CellLink(const ScAddress& rPos, const rtl::OUString& rPath); + }; + + struct RangeLink + { + ScAddress maPos; + std::vector<rtl::OUString> maFieldPaths; + }; + + std::vector<CellLink> maCellLinks; + std::vector<RangeLink> maRangeLinks; }; #endif |