LibreOffice Module sc (master)  1
orcusfiltersimpl.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_SOURCE_FILTER_INC_ORCUSFILTERSIMPL_HXX
11 #define INCLUDED_SC_SOURCE_FILTER_INC_ORCUSFILTERSIMPL_HXX
12 
13 #include <orcusfilters.hxx>
14 
15 #include <orcus/xml_namespace.hpp>
16 
18 {
19 public:
20  virtual bool importCSV(ScDocument& rDoc, SfxMedium& rMedium) const override;
21  virtual bool importGnumeric(ScDocument& rDoc, SfxMedium& rMedium) const override;
22  virtual bool importExcel2003XML(ScDocument& rDoc, SfxMedium& rMedium) const override;
23  virtual bool importXLSX(ScDocument& rDoc, SfxMedium& rMedium) const override;
24  virtual bool importODS(ScDocument& rDoc, SfxMedium& rMedium) const override;
25 
26  virtual bool importODS_Styles(ScDocument& rDoc, OUString& aFileName) const override;
27 
28  virtual std::unique_ptr<ScOrcusXMLContext>
29  createXMLContext(ScDocument& rDoc, const OUString& rPath) const override;
30 };
31 
33 {
35  OUString maPath;
36 
37  orcus::xmlns_repository maNsRepo;
38 
39 public:
40  ScOrcusXMLContextImpl(ScDocument& rDoc, const OUString& rPath);
41  virtual ~ScOrcusXMLContextImpl() override;
42 
43  virtual void loadXMLStructure(weld::TreeView& rTreeCtrl, ScOrcusXMLTreeParam& rParam) override;
44 
45  virtual void importXML(const ScOrcusImportXMLParam& rParam) override;
46 };
47 
48 #endif
49 
50 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual ~ScOrcusXMLContextImpl() override
Definition: xmlcontext.cxx:163
Collection of orcus filter wrappers.
virtual std::unique_ptr< ScOrcusXMLContext > createXMLContext(ScDocument &rDoc, const OUString &rPath) const override
Create a context for XML file.
virtual void importXML(const ScOrcusImportXMLParam &rParam) override
Definition: xmlcontext.cxx:228
virtual void loadXMLStructure(weld::TreeView &rTreeCtrl, ScOrcusXMLTreeParam &rParam) override
Definition: xmlcontext.cxx:165
orcus::xmlns_repository maNsRepo
virtual bool importXLSX(ScDocument &rDoc, SfxMedium &rMedium) const override
virtual bool importODS(ScDocument &rDoc, SfxMedium &rMedium) const override
virtual bool importODS_Styles(ScDocument &rDoc, OUString &aFileName) const override
Used to import just the styles from an xml file.
virtual bool importExcel2003XML(ScDocument &rDoc, SfxMedium &rMedium) const override
Parameter used during call to ScOrcusFilters::loadXMLStructure().
Definition: orcusxml.hxx:27
virtual bool importGnumeric(ScDocument &rDoc, SfxMedium &rMedium) const override
virtual bool importCSV(ScDocument &rDoc, SfxMedium &rMedium) const override
ScOrcusXMLContextImpl(ScDocument &rDoc, const OUString &rPath)
XML namespace repository for this context.
Definition: xmlcontext.cxx:160