LibEngsas
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
src
espreadsheetprovider
espreadsheetproviderms
espreadsheetproviderms.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2013 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
3
4
This library is free software; you can redistribute it and/or
5
modify it under the terms of the GNU Lesser General Public
6
License as published by the Free Software Foundation; either
7
version 2.1 of the License, or (at your option) any later version.
8
9
This library is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
Lesser General Public License for more details.
13
14
You should have received a copy of the GNU Lesser General Public
15
License along with this library; if not, write to the Free Software
16
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17
MA 02110-1301 USA.
18
*/
19
20
21
#ifndef ESPREADSHEETPROVIDERMS_H
22
#define ESPREADSHEETPROVIDERMS_H
23
24
#include <
espreadsheetprovider.h
>
25
26
class
Excel
;
27
class
ExcelWorkbook
;
28
29
#include <QDir>
30
#if QT_VERSION >= 0x050000
31
#include <QtPlugin>
32
#endif
33
34
class
QTextCodec;
35
42
class
ESpreadsheetProviderMs
:
public
ESpreadsheetProvider
43
{
44
Q_OBJECT
45
Q_INTERFACES (
ESpreadsheetProvider
)
46
Q_PROPERTY(QString
name
READ
name
)
47
Q_PROPERTY(QString
description
READ
description
)
48
#if QT_VERSION >= 0x050000
49
Q_PLUGIN_METADATA(IID LibEngsasESpreadsheetProviderIID FILE
"espreadsheetproviderms.json"
)
50
#endif
51
public
:
52
ESpreadsheetProviderMs
(QObject *parent = NULL);
53
54
QString
name
()
const
;
55
QString
description
()
const
;
56
QString
providerId
()
const
;
57
static
QString
staticProviderId
();
58
ESettingsWidget
*
settingsWidget
()
const
;
59
60
QStringList
filters
()
const
;
61
bool
sheetsSupported
()
const
;
62
bool
create
(QFile *file);
63
bool
load
(QFile *file);
64
bool
writeData
();
65
void
close
();
66
ESpreadsheet
*
appendSpreadsheet
(QString
name
);
67
EngSaS::Spreadsheets
spreadsheets
();
68
69
private
:
70
Excel
*
excel
;
71
ExcelWorkbook
*
workbook
;
72
};
73
74
#endif // ESPREADSHEETPROVIDERMS_H
Generated by
1.8.1.2