Commit Graph

226 Commits

Author SHA1 Message Date
Debao Zhang d3cfd3a6c6 Code refactoring: rename private members of Worksheet 2014-01-06 14:58:13 +08:00
Debao Zhang fd7e8d84f7 Add const to the saveAs* members, step 2 2014-01-06 14:16:51 +08:00
Debao Zhang f92e34f374 Code refactoring: Remove private class QXlsx::Package 2014-01-06 14:10:31 +08:00
Debao Zhang d1818c7fd1 Code refactoring: Clean up code of QXlsx::Package
We should merge the class Package with the class Document
2014-01-06 11:32:20 +08:00
Debao Zhang 1ca891cf8a Add const to the saveAs* members, step 1 2014-01-06 10:11:00 +08:00
Debao Zhang 643dbfd63a Don't generate .rel file for worksheet if its RelationShips is empty 2014-01-06 09:33:14 +08:00
Debao Zhang 609a94a56b Fix variable uninitialized warning under macos/clang
warning: variable 't' is used uninitialized whenever 'if' condition is false
[-Wsometimes-uninitialized]
2014-01-04 23:44:30 +08:00
Debao Zhang 9fefc2c5b2 Fix compile error under maxos 2014-01-04 22:37:12 +08:00
Debao Zhang 336a9ff1a9 Coding refactoring: Make worksheet relations part of the worksheet
sheet1.xml
_rels/sheet1.xml.rels
2014-01-04 17:29:42 +08:00
Debao Zhang 45a86accee Relationships code refactoring: Don't use static member 2014-01-04 16:06:15 +08:00
Debao Zhang 6d6dfd4edc Code refactoring: add saveToXmlData() to Theme 2014-01-04 14:36:27 +08:00
Debao Zhang 11d78e8221 Issue 17: Don't used int limit any more
Using two normal integer is enough. As the value of col_num between
1 and XLSX_COLUMN_MAX.
2014-01-03 17:08:14 +08:00
Debao Zhang 5476d0be80 Update copyright year in license header 2014-01-03 17:00:24 +08:00
Debao Zhang f14b38ffe4 Issue 17: Using std::numeric_limits instead of macros INTn_MAX/MIN 2014-01-02 17:27:22 +08:00
Debao Zhang c6e959291c Code refactoring: Cache worksheetNames 2014-01-02 13:31:29 +08:00
Debao Zhang 5866e1342c Make sure that at least one worksheet exist in the workbook 2014-01-02 11:45:02 +08:00
Debao Zhang c6898ff732 Add basic worksheet copy support 2014-01-02 11:35:57 +08:00
Debao Zhang 82c77b4bed Improve worksheets support 2014-01-01 15:18:07 +08:00
Debao Zhang f83fb45740 Improve the QDate support 2013-12-31 15:51:56 +08:00
Debao Zhang d9d2c261bf Merge branch 'master' into dev 2013-12-31 14:00:55 +08:00
luckyhacky 00ad00fef4 corrected case sensitivity for linux systems, doesn't affect windows building 2013-12-28 17:41:31 +01:00
Debao Zhang e232e7eae9 Add QTime read write support 2013-12-27 16:29:41 +08:00
Debao Zhang 8c2bac03b3 There is no need to use UTC datetime 2013-12-27 14:59:53 +08:00
Debao Zhang 07ea0d92d9 Code refactoring: Make Cell::isDateTime() reliable 2013-12-27 14:35:45 +08:00
Debao Zhang 3a5c844386 Add qDebug support for XlsxColor 2013-12-25 11:32:01 +08:00
Debao Zhang 28d8de76ec Fix bug: Don't wrap normal code with #if/#endif 2013-12-25 09:41:24 +08:00
Debao Zhang 9435a7e9d1 Swap the position of applyFill and applyBorder
Follow the order used by Excel 2007
2013-12-24 16:10:44 +08:00
Debao Zhang 2ec533df7c Don't omit default attribute fontId/fillId/borderId 2013-12-24 16:02:57 +08:00
Debao Zhang ca33d5e1b4 Improve QColor <==> #AARRGGBB conversion 2013-12-24 15:19:29 +08:00
Debao Zhang cdb4646a0c Refactoring: Don't output the default "none" for dxfs fill 2013-12-24 14:21:10 +08:00
Debao Zhang f97bf1a1cd Output charset property of font if it exists 2013-12-24 11:18:14 +08:00
Debao Zhang 780ceef359 Code refactoring: Empty border styles
Excel prefer <border><left/><right/><top/><bottom/><diagonal/></border> to
<border/>
2013-12-24 10:56:24 +08:00
Debao Zhang e35b2abda9 Don't convert indexed color ==> rgb color
We can do the convertion when users try to access the colors if needed in
the future
2013-12-24 10:10:20 +08:00
Debao Zhang a8cde04d7a Code refacting: write fgColor before bgColor 2013-12-24 09:48:45 +08:00
Debao Zhang 9067bbfcb2 Fix Issue 14: Add all the <xf>s to the internal list 2013-12-24 09:05:09 +08:00
Debao Zhang 11e8d7c48a Prevent while() from causing potential infinite loops
If xml files don't have proper close tags, don't generate an infinite
loop in our library.
2013-12-12 16:01:59 +08:00
Debao Zhang 39483f77d7 Code refactor: Move DataValidation related xml code 2013-12-01 16:02:43 +08:00
Debao Zhang 231a980ca0 Code refactor 2013-11-30 16:37:36 +08:00
Debao Zhang f05a948923 XlsxColor refactor 2013-11-29 16:09:23 +08:00
Debao Zhang ee51e7b641 Format refactor: Don't store default properties
So that fontKey/fillKey/borderKey/formatKey will be unique for the same
formats
2013-11-29 16:07:24 +08:00
Debao Zhang dbafc54418 Remove qDebug statement 2013-11-29 15:17:04 +08:00
Debao Zhang 9d32599f2d Don't lost conditionalformatting data when edit an existing file 2013-11-29 13:23:56 +08:00
Debao Zhang b375444368 Make use of XlsxColor for ConditionalFormatting 2013-11-28 23:58:55 +08:00
Debao Zhang 88aaad9e02 Add new private class XlsxColor 2013-11-28 23:48:20 +08:00
Debao Zhang a84b996412 Add dataBar and colorScale write support 2013-11-28 13:59:58 +08:00
Debao Zhang c82cf47e2f Add basic conditional formatting writer support. 2013-11-28 00:39:23 +08:00
Debao Zhang 1b57b6f042 Use namespaceUri instead of qualifiedName 2013-11-26 16:27:52 +08:00
Debao Zhang 8e20f8b12e Format: Make some private memeber public 2013-11-26 10:55:59 +08:00
Debao Zhang 7513b6ce12 Add a warning message in all the private headers 2013-11-25 15:38:03 +08:00
Debao Zhang d45368e931 Remove the private class XmlStreamWriter and XmlStreamReader 2013-11-25 15:27:31 +08:00