odsstream
Loading...
Searching...
No Matches
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#pragma once
21
22#include <QString>
23#include <QDateTime>
24//#include <QDebug>
26class TsvReader;
27
29{
31 friend TsvReader;
32
33 public:
34 OdsCell();
35 virtual ~OdsCell();
36
37 const QString &toString() const;
38 const QString &getOfficeValueType() const;
39 const QDateTime &getDateTimeValue() const;
40 const QString &getStringValue() const;
41 bool getBooleanValue() const;
42 double getDoubleValue() const;
43 bool isBoolean() const;
44 bool isDate() const;
45 bool isDouble() const;
46 bool isString() const;
47 bool isEmpty() const;
48
49 protected:
50 void setOfficeValueType(const QString &type);
51 void setDateValue(const QDateTime &date);
52 void setValueString(const QString &value);
53 void setValueDouble(double value_num);
54 void setValueBoolean(bool value_bool);
55 void setValueOfUndefinedType(const QString &value);
56
57 QString _string_value;
58 QString _office_value_type;
59 QDateTime _date_value;
60 double _double_value;
61 bool _bool_value;
62 bool _is_empty;
63};
Definition odscell.h:29
Definition qxmlstreamreadercontentxml.h:38
Definition tsvreader.h:44