2017-09-15 21:59:39 +09:00
|
|
|
//--------------------------------------------------------------------
|
|
|
|
//
|
2017-10-05 13:59:17 +09:00
|
|
|
// QXlsx https://github.com/j2doll/QXlsx
|
|
|
|
//
|
|
|
|
// GPL License v3 https://www.gnu.org/licenses/gpl-3.0.en.html
|
|
|
|
//
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU 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 General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2017-09-15 21:59:39 +09:00
|
|
|
//--------------------------------------------------------------------
|
|
|
|
|
2017-08-16 20:58:34 +09:00
|
|
|
//
|
|
|
|
// main.cpp
|
|
|
|
//
|
|
|
|
|
|
|
|
#include <QCoreApplication>
|
|
|
|
#include <QtCore>
|
|
|
|
|
2017-08-26 13:02:08 +09:00
|
|
|
#include <iostream>
|
|
|
|
using namespace std;
|
|
|
|
|
2017-08-16 20:58:34 +09:00
|
|
|
#include "xlsxdocument.h"
|
2017-08-26 19:41:33 +09:00
|
|
|
#include "xlsxchartsheet.h"
|
|
|
|
#include "xlsxcellrange.h"
|
|
|
|
#include "xlsxchart.h"
|
|
|
|
#include "xlsxrichstring.h"
|
|
|
|
#include "xlsxworkbook.h"
|
2017-08-26 13:02:08 +09:00
|
|
|
using namespace QXlsx;
|
2017-08-16 20:58:34 +09:00
|
|
|
|
2017-09-16 16:34:45 +09:00
|
|
|
extern int hello();
|
|
|
|
extern int calendar();
|
|
|
|
extern int chart();
|
|
|
|
extern int chartsheet();
|
|
|
|
extern int datavalidation();
|
|
|
|
extern int definename();
|
|
|
|
extern int demo();
|
|
|
|
extern int documentproperty();
|
|
|
|
extern int extractdata();
|
|
|
|
extern int formula();
|
|
|
|
extern int hyperlink();
|
|
|
|
extern int image();
|
|
|
|
extern int mergecells();
|
|
|
|
extern int numberformat();
|
2017-09-24 00:09:33 +09:00
|
|
|
extern int richtext();
|
2017-09-16 16:34:45 +09:00
|
|
|
extern int rowcolumn();
|
|
|
|
extern int style();
|
|
|
|
extern int worksheetoperations();
|
2017-10-05 21:00:40 +09:00
|
|
|
extern int readStyle();
|
2017-09-12 09:22:47 +09:00
|
|
|
|
2017-08-16 20:58:34 +09:00
|
|
|
int main(int argc, char *argv[])
|
2017-08-26 13:02:08 +09:00
|
|
|
{
|
2017-09-29 16:37:31 +09:00
|
|
|
QCoreApplication app(argc, argv);
|
2017-09-08 22:53:38 +09:00
|
|
|
|
2017-12-08 19:48:22 +09:00
|
|
|
if ( argc == 2 )
|
|
|
|
{
|
|
|
|
QString strArg1 = argv[1];
|
|
|
|
|
|
|
|
if ( strArg1 == QString("hello") )
|
|
|
|
{
|
|
|
|
hello();
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2017-09-08 22:53:38 +09:00
|
|
|
|
2017-12-08 19:48:22 +09:00
|
|
|
hello();
|
2017-10-08 15:52:03 +09:00
|
|
|
readStyle();
|
2017-09-23 11:12:59 +09:00
|
|
|
calendar();
|
|
|
|
chart();
|
|
|
|
chartsheet();
|
|
|
|
datavalidation();
|
|
|
|
definename();
|
|
|
|
demo();
|
|
|
|
documentproperty();
|
|
|
|
extractdata();
|
|
|
|
formula();
|
|
|
|
hyperlink();
|
|
|
|
image();
|
|
|
|
mergecells();
|
|
|
|
numberformat();
|
2017-09-24 00:09:33 +09:00
|
|
|
richtext();
|
2017-09-23 11:12:59 +09:00
|
|
|
rowcolumn();
|
|
|
|
style();
|
|
|
|
worksheetoperations();
|
|
|
|
|
2017-09-29 16:37:31 +09:00
|
|
|
return 0;
|
2017-08-26 13:02:08 +09:00
|
|
|
}
|