LibreOffice Module sc (master)
1
sc
inc
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
#pragma once
11
12
#include <rtl/ustring.hxx>
13
#include <memory>
14
15
class
ScDocument
;
16
struct
ScOrcusXMLTreeParam
;
17
struct
ScOrcusImportXMLParam
;
18
class
ScOrcusXMLContext
;
19
class
SfxMedium
;
20
namespace
weld
{
class
TreeView; }
21
25
class
ScOrcusFilters
26
{
27
public
:
28
virtual
~ScOrcusFilters
() {}
29
30
virtual
bool
importCSV
(
ScDocument
& rDoc,
SfxMedium
& rMedium)
const
= 0;
31
32
virtual
bool
importGnumeric
(
ScDocument
& rDoc,
SfxMedium
& rMedium)
const
= 0;
33
34
virtual
bool
importExcel2003XML
(
ScDocument
& rDoc,
SfxMedium
& rMedium)
const
= 0;
35
36
virtual
bool
importXLSX
(
ScDocument
& rDoc,
SfxMedium
& rMedium)
const
= 0;
37
38
virtual
bool
importODS
(
ScDocument
& rDoc,
SfxMedium
& rMedium)
const
= 0;
39
44
virtual
bool
importODS_Styles
(
ScDocument
& rDoc, OUString& aFileName)
const
= 0;
45
55
virtual
std::unique_ptr<ScOrcusXMLContext>
createXMLContext
(
ScDocument
& rDoc,
const
OUString& rPath)
const
= 0;
56
};
57
58
class
ScOrcusXMLContext
59
{
60
public
:
61
virtual
~ScOrcusXMLContext
() {}
62
63
virtual
void
loadXMLStructure
(
weld::TreeView
& rTreeCtrl,
ScOrcusXMLTreeParam
& rParam) = 0;
64
65
virtual
void
importXML
(
const
ScOrcusImportXMLParam
& rParam) = 0;
66
};
67
68
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ScDocument
Definition:
document.hxx:323
ScOrcusFilters
Collection of orcus filter wrappers.
Definition:
orcusfilters.hxx:26
ScOrcusFilters::importXLSX
virtual bool importXLSX(ScDocument &rDoc, SfxMedium &rMedium) const =0
ScOrcusFilters::importExcel2003XML
virtual bool importExcel2003XML(ScDocument &rDoc, SfxMedium &rMedium) const =0
ScOrcusFilters::importGnumeric
virtual bool importGnumeric(ScDocument &rDoc, SfxMedium &rMedium) const =0
ScOrcusFilters::importCSV
virtual bool importCSV(ScDocument &rDoc, SfxMedium &rMedium) const =0
ScOrcusFilters::importODS_Styles
virtual bool importODS_Styles(ScDocument &rDoc, OUString &aFileName) const =0
Used to import just the styles from an xml file.
ScOrcusFilters::~ScOrcusFilters
virtual ~ScOrcusFilters()
Definition:
orcusfilters.hxx:28
ScOrcusFilters::createXMLContext
virtual std::unique_ptr< ScOrcusXMLContext > createXMLContext(ScDocument &rDoc, const OUString &rPath) const =0
Create a context for XML file.
ScOrcusFilters::importODS
virtual bool importODS(ScDocument &rDoc, SfxMedium &rMedium) const =0
ScOrcusXMLContext
Definition:
orcusfilters.hxx:59
ScOrcusXMLContext::importXML
virtual void importXML(const ScOrcusImportXMLParam &rParam)=0
ScOrcusXMLContext::~ScOrcusXMLContext
virtual ~ScOrcusXMLContext()
Definition:
orcusfilters.hxx:61
ScOrcusXMLContext::loadXMLStructure
virtual void loadXMLStructure(weld::TreeView &rTreeCtrl, ScOrcusXMLTreeParam &rParam)=0
SfxMedium
weld::TreeView
weld
ScOrcusImportXMLParam
Definition:
orcusxml.hxx:58
ScOrcusXMLTreeParam
Parameter used during call to ScOrcusFilters::loadXMLStructure().
Definition:
orcusxml.hxx:27
Generated on Sun Jul 30 2023 04:27:47 for LibreOffice Module sc (master) by
1.9.3