libodsstream
odsstream
reader
odscell.h
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
#ifndef ODSCELL_H
21
#define ODSCELL_H
22
23
#include <QString>
24
#include <QDateTime>
25
//#include <QDebug>
26
class
SaxHandlerContentXml
;
27
28
class
OdsCell
29
{
30
friend
SaxHandlerContentXml
;
31
32
public
:
33
OdsCell
();
34
virtual
~
OdsCell
();
35
36
const
QString & toString()
const
;
37
const
QString & getOfficeValueType()
const
;
38
const
QDateTime & getDateTimeValue()
const
;
39
const
QString & getStringValue()
const
;
40
bool
getBooleanValue()
const
;
41
double
getDoubleValue()
const
;
42
bool
isBoolean ()
const
;
43
bool
isDate ()
const
;
44
bool
isDouble ()
const
;
45
bool
isString ()
const
;
46
bool
isEmpty ()
const
;
47
protected :
48
49
void
setOfficeValueType(
const
QString & type);
50
void
setDateValue(
const
QDateTime & date);
51
void
setValueString(
const
QString & value);
52
void
setValueDouble(
double
value_num);
53
void
setValueBoolean(
bool
value_bool);
54
55
QString _string_value ;
56
QString _office_value_type;
57
QDateTime _date_value;
58
double
_double_value;
59
bool
_bool_value;
60
bool
_is_empty;
61
62
};
63
64
#endif // ODSCELL_H
SaxHandlerContentXml
Definition:
saxhandlercontentxml.h:28
OdsCell
Definition:
odscell.h:28
Generated on Mon Feb 12 2018 08:54:20 for libodsstream by
1.8.13