This commit is contained in:
Herwig Birke
2018-01-30 16:48:23 +01:00
parent 7d218d38d5
commit cd0d3f76ad
16 changed files with 899 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
TEMPLATE = subdirs
SUBDIRS = xlsx
+75
View File
@@ -0,0 +1,75 @@
include($QT_INSTALL_DOCS/global/qt-html-templates-offline.qdocconf)
include($QT_INSTALL_DOCS/global/qt-module-defaults.qdocconf)
project = QtXlsx
description = Qt Xlsx Reference Documentation
url = http://qtxlsx.debao.me
version = $QT_VERSION
qhp.projects = QtXlsx
qhp.QtXlsx.file = qtxlsx.qhp
qhp.QtXlsx.namespace = me.debao.qtxlsx.$QT_VERSION_TAG
qhp.QtXlsx.virtualFolder = qtxlsx
qhp.QtXlsx.indexTitle = Qt Xlsx
qhp.QtXlsx.indexRoot =
qhp.QtXlsx.filterAttributes = qtxlsx $QT_VERSION qtrefdoc
qhp.QtXlsx.customFilters.Qt.name = QtXlsx $QT_VERSION
qhp.QtXlsx.customFilters.Qt.filterAttributes = qtxlsx $QT_VERSION
qhp.QtXlsx.subprojects = overviews classes qmltypes examples
qhp.QtXlsx.subprojects.overviews.title = Overview
qhp.QtXlsx.subprojects.overviews.indexTitle = Qt Xlsx
qhp.QtXlsx.subprojects.overviews.selectors = fake:page,group,module
qhp.QtXlsx.subprojects.classes.title = C++ Classes
qhp.QtXlsx.subprojects.classes.indexTitle = Qt Xlsx C++ Classes
qhp.QtXlsx.subprojects.classes.selectors = class fake:headerfile
qhp.QtXlsx.subprojects.classes.sortPages = true
qhp.QtXlsx.subprojects.examples.title = Examples
qhp.QtXlsx.subprojects.examples.indexTitle = Qt Xlsx Examples
qhp.QtXlsx.subprojects.examples.selectors = fake:example
tagfile = ../../../doc/qtxlsx/qtxlsx.tags
headerdirs += ..
sourcedirs += ..
exampledirs += ../../../examples/xlsx \
snippets/
# Specify the install path under QT_INSTALL_EXAMPLES
examplesinstallpath = xlsx
imagedirs += images
depends += qtcore qtdoc qtgui
HTML.footer = \
" </div>\n" \
" </div>\n" \
" </div>\n" \
" </div>\n" \
"</div>\n" \
"<div class=\"footer\">\n" \
" <div class=\"qt13a-copyright\" id=\"copyright\">\n" \
" <div class=\"qt13a-container\">\n" \
" <p>\n" \
" <acronym title=\"Copyright\">&copy;</acronym> 2013-2014 Debao Zhang. \n" \
" Documentation contributions included herein are the copyrights of\n" \
" their respective owners.</p>\n" \
" <p>\n" \
" The documentation provided herein is licensed under the terms of the\n" \
" <a href=\"http://www.gnu.org/licenses/fdl.html\">GNU Free Documentation\n" \
" License version 1.3</a> as published by the Free Software Foundation.</p>\n" \
" <p>\n" \
" Documentation sources may be obtained from <a href=\"https://github.com/dbzhang800/QtXlsxWriter\">\n" \
" github.com/dbzhang800</a>.</p>\n" \
" <p>\n" \
" Qt and their respective logos are trademarks of Digia Plc \n" \
" in Finland and/or other countries worldwide. All other trademarks are property\n" \
" of their respective owners. <a title=\"Privacy Policy\"\n" \
" href=\"http://en.gitorious.org/privacy_policy/\">Privacy Policy</a></p>\n" \
" </div>\n" \
" </div>\n" \
"</div>\n" \
@@ -0,0 +1,8 @@
//! [0]
#include <QtXlsx>
//! [0]
//! [1]
#include <QtXlsx>
//! [1]
@@ -0,0 +1,3 @@
#! [1]
QT += xlsx
#! [1]
+8
View File
@@ -0,0 +1,8 @@
/*!
\group qtxlsx-examples
\title Qt Xlsx Examples
\brief Examples for the Qt Xlsx module
\ingroup all-examples
Qt Xlsx comes with the following examples:
*/
+72
View File
@@ -0,0 +1,72 @@
/****************************************************************************
** Copyright (c) 2013 Debao Zhang <hello@debao.me>
** All right reserved.
**
** Permission is hereby granted, free of charge, to any person obtaining
** a copy of this software and associated documentation files (the
** "Software"), to deal in the Software without restriction, including
** without limitation the rights to use, copy, modify, merge, publish,
** distribute, sublicense, and/or sell copies of the Software, and to
** permit persons to whom the Software is furnished to do so, subject to
** the following conditions:
**
** The above copyright notice and this permission notice shall be
** included in all copies or substantial portions of the Software.
**
** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
** NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
** LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
** OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
** WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
**
****************************************************************************/
/*!
\title Qt Xlsx
\page index.html
\brief Qt Xlsx provides functionality for handling .xlsx files.
The \l{Qt Xlsx C++ Classes}{Qt Xlsx Module} provides a set of classes to read and write Excel files. It doesn't require
Microsoft Excel and can be used in any platform that Qt5 supported. The library can be used to
\list
\li \l{Hello QtXlsx Example}{Generate a new .xlsx file from scratch}
\li \l{Extract Data Example}{Extract data from an existing .xlsx file}
\li Edit an existing .xlsx file
\endlist
\image xlsx_demo.gif
\table
\row
\li Source code: \li \l{https://github.com/dbzhang800/QtXlsxWriter}
\row
\li Issures: \li \l{https://github.com/dbzhang800/QtXlsxWriter/issues}
\row
\li License: \li MIT
\endtable
\section1 Getting Started
To include the definitions of the module's classes, using the following directive:
\code
#include <QtXlsx>
\endcode
To link against the module, add this line to your qmake .pro file:
\code
QT += xlsx
\endcode
More information can be found in \l{Qt Xlsx Build} page.
\section1 Related information
\list
\li \l{Qt Xlsx C++ Classes}
\li \l{Qt Xlsx Examples}
\endlist
*/
+36
View File
@@ -0,0 +1,36 @@
/****************************************************************************
** Copyright (c) 2013 Debao Zhang <hello@debao.me>
** All right reserved.
**
** Permission is hereby granted, free of charge, to any person obtaining
** a copy of this software and associated documentation files (the
** "Software"), to deal in the Software without restriction, including
** without limitation the rights to use, copy, modify, merge, publish,
** distribute, sublicense, and/or sell copies of the Software, and to
** permit persons to whom the Software is furnished to do so, subject to
** the following conditions:
**
** The above copyright notice and this permission notice shall be
** included in all copies or substantial portions of the Software.
**
** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
** NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
** LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
** OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
** WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
**
****************************************************************************/
/*!
\module QtXlsx
\title Qt Xlsx C++ Classes
\ingroup modules
\brief The Qt Xlsx module provides functionality for handling .xlsx files.
.xlsx is a zipped, XML-based file format developed by Microsoft for
representing spreadsheets.
*/
+83
View File
@@ -0,0 +1,83 @@
/*!
\page building
\title Qt Xlsx Build
\note QZipWriter and QZipReader which live in gui-private is used in
this library. For linux user, if your Qt is installed through package
manager tools such "apt-get", make sure that you have installed the Qt5
develop package *qtbase5-private-dev* ;
if you Qt is built from source by yourself,
or download from qt-project.org directly, nothing need to do.
\section1 Usage(1): Use Xlsx as Qt5's addon module
1. Download the source code from \l {https://github.com/dbzhang800/QtXlsxWriter/archive/master.zip} {github.com}.
2. Put the source code in any directory you like. At the toplevel directory run
\note Perl is needed in this step.
\code
qmake
make
make install
\endcode
The library, the header files, and others will be installed to your system.
3. Add following line to your qmake's project file:
\code
QT += xlsx
\endcode
4. Then, using Qt Xlsx in your code
\code
#include "xlsxdocument.h"
int main()
{
QXlsx::Document xlsx;
xlsx.write("A1", "Hello Qt!");
xlsx.saveAs("Test.xlsx");
return 0;
}
\endcode
\section1 Usage(2): Use source code directly
The package contains a qtxlsx.pri file that allows you to integrate
the component into applications that use qmake for the build step.
1. Download the source code from \l {https://github.com/dbzhang800/QtXlsxWriter/archive/master.zip} {github.com}
2. Put the source code in any directory you like. For example, 3rdparty:
\code
|-- project.pro
|-- ....
|-- 3rdparty\
| |-- qtxlsx\
| |
\endcode
3. Add following line to your qmake project file:
\code
include(3rdparty/qtxlsx/src/xlsx/qtxlsx.pri)
\endcode
\note If you like, you can copy all files from *src/xlsx* to your application's source path. Then add following line to your project file:
\code
include(qtxlsx.pri)
\endcode
\note If you do not use qmake, you need to define the following macro manually
\code
XLSX_NO_LIB
\endcode
4. Then, using Qt Xlsx in your code
*/
+16
View File
@@ -0,0 +1,16 @@
TARGET = QtXlsx
QMAKE_DOCS = $$PWD/doc/qtxlsx.qdocconf
load(qt_module)
CONFIG += build_xlsx_lib
include(qtxlsx.pri)
#Define this macro if you want to run tests, so more AIPs will get exported.
#DEFINES += XLSX_TEST
QMAKE_TARGET_COMPANY = "Debao Zhang"
QMAKE_TARGET_COPYRIGHT = "Copyright (C) 2013-2014 Debao Zhang <hello@debao.me>"
QMAKE_TARGET_DESCRIPTION = ".Xlsx file wirter for Qt5"