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#pragma once
11
12#include <orcusfilters.hxx>
13
14#include <orcus/xml_namespace.hpp>
15
17{
18public:
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;
24
25 virtual bool importODS_Styles(ScDocument& rDoc, OUString& aFileName) const override;
26
27 virtual std::unique_ptr<ScOrcusXMLContext>
28 createXMLContext(ScDocument& rDoc, const OUString& rPath) const override;
29};
30
32{
34 OUString maPath;
35
36 orcus::xmlns_repository maNsRepo;
37
38public:
39 ScOrcusXMLContextImpl(ScDocument& rDoc, OUString aPath);
40 virtual ~ScOrcusXMLContextImpl() override;
41
42 virtual void loadXMLStructure(weld::TreeView& rTreeCtrl, ScOrcusXMLTreeParam& rParam) override;
43
44 virtual void importXML(const ScOrcusImportXMLParam& rParam) override;
45};
46
47/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual bool importXLSX(ScDocument &rDoc, SfxMedium &rMedium) const override
virtual bool importGnumeric(ScDocument &rDoc, SfxMedium &rMedium) const override
virtual std::unique_ptr< ScOrcusXMLContext > createXMLContext(ScDocument &rDoc, const OUString &rPath) const override
Create a context for XML file.
virtual bool importODS(ScDocument &rDoc, SfxMedium &rMedium) const override
virtual bool importCSV(ScDocument &rDoc, SfxMedium &rMedium) const override
virtual bool importExcel2003XML(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.
Collection of orcus filter wrappers.
virtual void importXML(const ScOrcusImportXMLParam &rParam) override
Definition: xmlcontext.cxx:228
virtual void loadXMLStructure(weld::TreeView &rTreeCtrl, ScOrcusXMLTreeParam &rParam) override
Definition: xmlcontext.cxx:165
ScOrcusXMLContextImpl(ScDocument &rDoc, OUString aPath)
XML namespace repository for this context.
Definition: xmlcontext.cxx:160
virtual ~ScOrcusXMLContextImpl() override
Definition: xmlcontext.cxx:163
orcus::xmlns_repository maNsRepo
Parameter used during call to ScOrcusFilters::loadXMLStructure().
Definition: orcusxml.hxx:27