LibreOffice Module sc (master)  1
orcusfilters.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  */
9 
10 #ifndef INCLUDED_SC_INC_ORCUSFILTERS_HXX
11 #define INCLUDED_SC_INC_ORCUSFILTERS_HXX
12 
13 #include <rtl/ustring.hxx>
14 #include <memory>
15 
16 class ScDocument;
17 struct ScOrcusXMLTreeParam;
19 class ScOrcusXMLContext;
20 class SfxMedium;
21 namespace weld { class TreeView; }
22 
27 {
28 public:
29  virtual ~ScOrcusFilters() {}
30 
31  virtual bool importCSV(ScDocument& rDoc, SfxMedium& rMedium) const = 0;
32 
33  virtual bool importGnumeric(ScDocument& rDoc, SfxMedium& rMedium) const = 0;
34 
35  virtual bool importExcel2003XML(ScDocument& rDoc, SfxMedium& rMedium) const = 0;
36 
37  virtual bool importXLSX(ScDocument& rDoc, SfxMedium& rMedium) const = 0;
38 
39  virtual bool importODS(ScDocument& rDoc, SfxMedium& rMedium) const = 0;
40 
45  virtual bool importODS_Styles(ScDocument& rDoc, OUString& aFileName) const = 0;
46 
56  virtual std::unique_ptr<ScOrcusXMLContext> createXMLContext(ScDocument& rDoc, const OUString& rPath) const = 0;
57 };
58 
60 {
61 public:
62  virtual ~ScOrcusXMLContext() {}
63 
64  virtual void loadXMLStructure(weld::TreeView& rTreeCtrl, ScOrcusXMLTreeParam& rParam) = 0;
65 
66  virtual void importXML(const ScOrcusImportXMLParam& rParam) = 0;
67 };
68 
69 #endif
70 
71 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Collection of orcus filter wrappers.
virtual bool importODS(ScDocument &rDoc, SfxMedium &rMedium) const =0
virtual bool importODS_Styles(ScDocument &rDoc, OUString &aFileName) const =0
Used to import just the styles from an xml file.
virtual bool importExcel2003XML(ScDocument &rDoc, SfxMedium &rMedium) const =0
virtual std::unique_ptr< ScOrcusXMLContext > createXMLContext(ScDocument &rDoc, const OUString &rPath) const =0
Create a context for XML file.
virtual bool importGnumeric(ScDocument &rDoc, SfxMedium &rMedium) const =0
virtual ~ScOrcusXMLContext()
Parameter used during call to ScOrcusFilters::loadXMLStructure().
Definition: orcusxml.hxx:27
virtual void importXML(const ScOrcusImportXMLParam &rParam)=0
virtual void loadXMLStructure(weld::TreeView &rTreeCtrl, ScOrcusXMLTreeParam &rParam)=0
virtual bool importXLSX(ScDocument &rDoc, SfxMedium &rMedium) const =0
virtual ~ScOrcusFilters()
virtual bool importCSV(ScDocument &rDoc, SfxMedium &rMedium) const =0