Loading...
Searching...
No Matches
odscell.h
Go to the documentation of this file.
/*
libodsstream is a library to read and write ODS documents as streams
Copyright (C) 2013 Olivier Langella <Olivier.Langella@moulon.inra.fr>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include <QString>
#include <QDateTime>
//#include <QDebug>
class QXmlStreamReaderContentXml;
class TsvReader;
class OdsCell
{
friend QXmlStreamReaderContentXml;
friend TsvReader;
public:
OdsCell();
virtual ~OdsCell();
const QString &toString() const;
const QString &getOfficeValueType() const;
const QDateTime &getDateTimeValue() const;
const QString &getStringValue() const;
bool getBooleanValue() const;
double getDoubleValue() const;
bool isBoolean() const;
bool isDate() const;
bool isDouble() const;
bool isString() const;
bool isEmpty() const;
protected:
void setOfficeValueType(const QString &type);
void setDateValue(const QDateTime &date);
void setValueString(const QString &value);
void setValueDouble(double value_num);
void setValueBoolean(bool value_bool);
void setValueOfUndefinedType(const QString &value);
QString _string_value;
QString _office_value_type;
QDateTime _date_value;
double _double_value;
bool _bool_value;
bool _is_empty;
};
OdsCell::setOfficeValueType
void setOfficeValueType(const QString &type)
Definition odscell.cpp:33
OdsCell::setValueOfUndefinedType
void setValueOfUndefinedType(const QString &value)
Definition odscell.cpp:190
OdsCell::_date_value
QDateTime _date_value
Definition odscell.h:59
OdsCell::TsvReader
friend TsvReader
Definition odscell.h:31
OdsCell::getBooleanValue
bool getBooleanValue() const
Definition odscell.cpp:136
OdsCell::_is_empty
bool _is_empty
Definition odscell.h:62
OdsCell::getDateTimeValue
const QDateTime & getDateTimeValue() const
Definition odscell.cpp:97
OdsCell::setValueString
void setValueString(const QString &value)
Definition odscell.cpp:65
OdsCell::_bool_value
bool _bool_value
Definition odscell.h:61
OdsCell::toString
const QString & toString() const
Definition odscell.cpp:83
OdsCell::QXmlStreamReaderContentXml
friend QXmlStreamReaderContentXml
Definition odscell.h:30
OdsCell::getDoubleValue
double getDoubleValue() const
Definition odscell.cpp:123
OdsCell::isBoolean
bool isBoolean() const
Definition odscell.cpp:181
OdsCell::isDate
bool isDate() const
Definition odscell.cpp:154
OdsCell::isString
bool isString() const
Definition odscell.cpp:168
OdsCell::isEmpty
bool isEmpty() const
Definition odscell.cpp:149
OdsCell::~OdsCell
virtual ~OdsCell()
Definition odscell.cpp:28
OdsCell::isDouble
bool isDouble() const
Definition odscell.cpp:161
OdsCell::_office_value_type
QString _office_value_type
Definition odscell.h:58
OdsCell::getStringValue
const QString & getStringValue() const
Definition odscell.cpp:110
OdsCell::setValueBoolean
void setValueBoolean(bool value_bool)
Definition odscell.cpp:76
OdsCell::setValueDouble
void setValueDouble(double value_num)
Definition odscell.cpp:70
OdsCell::OdsCell
OdsCell()
Definition odscell.cpp:24
OdsCell::setDateValue
void setDateValue(const QDateTime &date)
Definition odscell.cpp:56
OdsCell::_double_value
double _double_value
Definition odscell.h:60
OdsCell::getOfficeValueType
const QString & getOfficeValueType() const
Definition odscell.cpp:91
OdsCell::_string_value
QString _string_value
Definition odscell.h:57
QXmlStreamReaderContentXml
Definition qxmlstreamreadercontentxml.h:38
TsvReader
Definition tsvreader.h:44