Line data Source code
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 __SCFILT_ORCUSFILTERSIMPL_HXX__
11 : #define __SCFILT_ORCUSFILTERSIMPL_HXX__
12 :
13 : #include "orcusfilters.hxx"
14 :
15 : #define __ORCUS_STATIC_LIB
16 : #include <orcus/xml_namespace.hpp>
17 :
18 0 : class ScOrcusFiltersImpl : public ScOrcusFilters
19 : {
20 : public:
21 : static rtl::OString toSystemPath(const rtl::OUString& rPath);
22 :
23 : virtual bool importCSV(ScDocument& rDoc, const rtl::OUString& rPath) const;
24 : virtual bool importGnumeric(ScDocument& rDoc, const rtl::OUString& rPath) const;
25 :
26 : virtual ScOrcusXMLContext* createXMLContext(ScDocument& rDoc, const rtl::OUString& rPath) const;
27 : };
28 :
29 : class ScOrcusXMLContextImpl : public ScOrcusXMLContext
30 : {
31 : ScDocument& mrDoc;
32 : rtl::OUString maPath;
33 :
34 : orcus::xmlns_repository maNsRepo; /// XML namespace repository for this context.
35 :
36 : public:
37 : ScOrcusXMLContextImpl(ScDocument& rDoc, const rtl::OUString& rPath);
38 : virtual ~ScOrcusXMLContextImpl();
39 :
40 : virtual bool loadXMLStructure(SvTreeListBox& rTreeCtrl, ScOrcusXMLTreeParam& rParam);
41 :
42 : virtual bool importXML(const ScOrcusImportXMLParam& rParam);
43 : };
44 :
45 : #endif
46 :
47 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|