2017-08-16 20:58:34 +09:00
|
|
|
// main.cpp
|
|
|
|
|
2023-09-04 00:46:33 -03:00
|
|
|
#include <iostream>
|
|
|
|
|
2017-08-16 20:58:34 +09:00
|
|
|
#include <QCoreApplication>
|
2019-01-02 20:56:00 +09:00
|
|
|
#include <QDebug>
|
2023-09-04 00:46:33 -03:00
|
|
|
#include <QtCore>
|
|
|
|
#include <QtGlobal>
|
2017-08-26 13:02:08 +09:00
|
|
|
using namespace std;
|
|
|
|
|
2017-08-26 19:41:33 +09:00
|
|
|
#include "xlsxcellrange.h"
|
|
|
|
#include "xlsxchart.h"
|
2023-09-04 00:46:33 -03:00
|
|
|
#include "xlsxchartsheet.h"
|
|
|
|
#include "xlsxdocument.h"
|
2017-08-26 19:41:33 +09:00
|
|
|
#include "xlsxrichstring.h"
|
|
|
|
#include "xlsxworkbook.h"
|
2020-06-05 22:20:08 +09:00
|
|
|
|
|
|
|
QXLSX_USE_NAMESPACE
|
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();
|
2019-12-08 16:16:25 +01:00
|
|
|
extern int chartExtended();
|
2017-09-16 16:34:45 +09:00
|
|
|
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();
|
2023-09-04 00:46:33 -03:00
|
|
|
extern int readStyle();
|
2018-12-04 20:04:56 +09:00
|
|
|
extern int pages();
|
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
|
|
|
{
|
2023-09-04 00:46:33 -03:00
|
|
|
QCoreApplication app(argc, argv);
|
2017-09-08 22:53:38 +09:00
|
|
|
|
2023-09-04 00:46:33 -03:00
|
|
|
if (argc == 2) {
|
|
|
|
QString strArg1 = argv[1];
|
|
|
|
if (strArg1 == QString("hello")) {
|
|
|
|
hello();
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
2017-09-08 22:53:38 +09:00
|
|
|
|
2023-09-04 00:46:33 -03:00
|
|
|
hello();
|
|
|
|
readStyle();
|
|
|
|
calendar();
|
2019-12-08 16:16:25 +01:00
|
|
|
chart();
|
|
|
|
chartExtended();
|
2019-09-15 20:25:15 +09:00
|
|
|
chartsheet();
|
2023-09-04 00:46:33 -03:00
|
|
|
datavalidation();
|
|
|
|
definename();
|
|
|
|
demo();
|
|
|
|
documentproperty();
|
|
|
|
extractdata();
|
|
|
|
formula();
|
|
|
|
hyperlink();
|
|
|
|
image();
|
|
|
|
mergecells();
|
|
|
|
numberformat();
|
|
|
|
richtext();
|
|
|
|
rowcolumn();
|
|
|
|
style();
|
|
|
|
worksheetoperations();
|
2018-12-04 20:04:56 +09:00
|
|
|
pages();
|
2023-09-04 00:46:33 -03:00
|
|
|
|
2019-10-16 22:39:14 +09:00
|
|
|
qDebug() << "**** end of main() ****";
|
|
|
|
|
2023-09-04 00:46:33 -03:00
|
|
|
return 0;
|
2017-08-26 13:02:08 +09:00
|
|
|
}
|