LibreOffice Module sc (master)  1
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
8  */
10 #pragma once
12 #include <orcusfilters.hxx>
14 #include <orcus/xml_namespace.hpp>
17 {
18 public:
19  virtual bool importCSV(ScDocument& rDoc, SfxMedium& rMedium) const override;
20  virtual bool importGnumeric(ScDocument& rDoc, SfxMedium& rMedium) const override;
21  virtual bool importExcel2003XML(ScDocument& rDoc, SfxMedium& rMedium) const override;
22  virtual bool importXLSX(ScDocument& rDoc, SfxMedium& rMedium) const override;
23  virtual bool importODS(ScDocument& rDoc, SfxMedium& rMedium) const override;
25  virtual bool importODS_Styles(ScDocument& rDoc, OUString& aFileName) const override;
27  virtual std::unique_ptr<ScOrcusXMLContext>
28  createXMLContext(ScDocument& rDoc, const OUString& rPath) const override;
29 };
32 {
34  OUString maPath;
36  orcus::xmlns_repository maNsRepo;
38 public:
39  ScOrcusXMLContextImpl(ScDocument& rDoc, const OUString& rPath);
40  virtual ~ScOrcusXMLContextImpl() override;
42  virtual void loadXMLStructure(weld::TreeView& rTreeCtrl, ScOrcusXMLTreeParam& rParam) override;
44  virtual void importXML(const ScOrcusImportXMLParam& rParam) override;
45 };
47 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual ~ScOrcusXMLContextImpl() override
Definition: xmlcontext.cxx:162
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:227
virtual void loadXMLStructure(weld::TreeView &rTreeCtrl, ScOrcusXMLTreeParam &rParam) override
Definition: xmlcontext.cxx:164
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:26
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:159