libodsstream
Library for mass spectrometry
Loading...
Searching...
No Matches
odsdocreader.h
Go to the documentation of this file.
1
/*
2
libodsstream is a library to read and write ODS documents as streams
3
Copyright (C) 2013 Olivier Langella <Olivier.Langella@moulon.inra.fr>
4
5
This program is free software: you can redistribute it and/or modify
6
it under the terms of the GNU Lesser General Public License as published by
7
the Free Software Foundation, either version 3 of the License, or
8
(at your option) any later version.
9
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU Lesser General Public License for more details.
14
15
You should have received a copy of the GNU Lesser General Public License
16
along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18
*/
19
20
#pragma once
21
22
#include <quazip.h>
23
24
#include "
reader/odscell.h
"
25
#include "
odsdochandlerinterface.h
"
26
27
class
QXmlStreamReaderContentXml
;
28
29
class
OdsDocReader
30
{
31
friend
QXmlStreamReaderContentXml
;
32
33
public
:
34
/**
35
* creates an ODS reader with a reader handler
36
*
37
* @Param OdsDocHandlerInterface & the interface to implement to read ODS
38
* files
39
*/
40
41
OdsDocReader
(
OdsDocHandlerInterface
&handler);
42
virtual
~OdsDocReader
();
43
44
45
void
parse
(QFile &odsFile);
46
void
parse
(QIODevice *p_inputstream);
47
48
49
private
:
50
void
setInsideCell
(
const
OdsCell
&cell);
51
void
startInsideLine
();
52
53
void
startSheet
(
const
QString &sheet_name);
54
55
void
endSheet
();
56
57
void
startLine
();
58
59
void
endLine
();
60
61
void
setCell
(
const
OdsCell
&cell);
62
void
endDocument
();
63
64
65
QuaZip *
_p_quaZip
=
nullptr
;
66
67
uint
_column_number
;
68
69
OdsDocHandlerInterface
&
_handler
;
70
};
OdsCell
Definition
odscell.h:29
OdsDocHandlerInterface
Definition
odsdochandlerinterface.h:43
OdsDocReader
Definition
odsdocreader.h:30
OdsDocReader::_handler
OdsDocHandlerInterface & _handler
Definition
odsdocreader.h:69
OdsDocReader::endLine
void endLine()
Definition
odsdocreader.cpp:171
OdsDocReader::_p_quaZip
QuaZip * _p_quaZip
Definition
odsdocreader.h:65
OdsDocReader::startInsideLine
void startInsideLine()
Definition
odsdocreader.cpp:123
OdsDocReader::startSheet
void startSheet(const QString &sheet_name)
Definition
odsdocreader.cpp:153
OdsDocReader::setCell
void setCell(const OdsCell &cell)
Definition
odsdocreader.cpp:177
OdsDocReader::~OdsDocReader
virtual ~OdsDocReader()
Definition
odsdocreader.cpp:32
OdsDocReader::parse
void parse(QFile &odsFile)
Definition
odsdocreader.cpp:49
OdsDocReader::endDocument
void endDocument()
Definition
odsdocreader.cpp:182
OdsDocReader::_column_number
uint _column_number
Definition
odsdocreader.h:67
OdsDocReader::endSheet
void endSheet()
Definition
odsdocreader.cpp:159
OdsDocReader::setInsideCell
void setInsideCell(const OdsCell &cell)
Definition
odsdocreader.cpp:130
OdsDocReader::QXmlStreamReaderContentXml
friend QXmlStreamReaderContentXml
Definition
odsdocreader.h:31
OdsDocReader::startLine
void startLine()
Definition
odsdocreader.cpp:165
QXmlStreamReaderContentXml
Definition
qxmlstreamreadercontentxml.h:38
odscell.h
odsdochandlerinterface.h
interface to use as a wildcard to writer in either TSV, ODS TSVdirectory writers any kind of writer c...
odsstream
odsdocreader.h
Generated on Thu Sep 25 2025 21:42:23 for libodsstream by
1.9.8