Thomas Fussell
60372fb145
cover alignment.cpp
2016-07-09 10:13:56 -04:00
Thomas Fussell
874ea7abeb
cover worksheet_iterator.hpp
2016-07-09 10:02:58 -04:00
Thomas Fussell
a2814d3465
cover header_footer.hpp
2016-07-09 00:22:08 -04:00
Thomas Fussell
5147a282af
implement fractional number format, continue implementing tests for builtin formats
2016-07-08 19:39:28 -04:00
Thomas Fussell
a1688c7e48
add size check to removal of trailing zeros in number formats
2016-07-06 18:50:30 +08:00
Thomas Fussell
9f1ac60d20
start implementing complex number formats, test builtin formats
2016-07-05 21:27:35 -04:00
Thomas Fussell
0ee716f94f
Merge pull request #54 from xpol/fixes-test-warnings
...
Fixes warnings about compare double to bool.
2016-07-04 12:17:31 -04:00
Thomas Fussell
47f74fd4c1
fix some windows build problems and warnings
2016-07-05 00:09:51 +08:00
Thomas Fussell
9ae506c1ea
move serialization classes to detail, recouple with pugixml (no reason to abstract)
2016-07-03 19:22:08 -04:00
Thomas Fussell
d8b9a71c59
fix std::abs call
2016-07-03 11:41:59 -04:00
Thomas Fussell
54c08246ce
improve names to fix errors
2016-07-03 11:34:44 -04:00
Thomas Fussell
d92ad1ab9c
finally implement a real number format parser. that was rough...
2016-07-03 11:22:53 -04:00
Xpol Wan
933beab976
Fixes warnings about compare double to bool.
2016-06-29 17:23:43 +08:00
Thomas Fussell
bdc770d23a
improve number_format test coverage
2016-06-24 10:43:51 +01:00
Thomas Fussell
aa0dee3191
add more tests for complex number formats
2016-06-23 10:34:20 +01:00
Thomas Fussell
c7bc216026
improve worksheet test coverage
2016-06-23 09:33:10 +01:00
Thomas Fussell
4dae9438fb
add utf8 bom to test_number_format because of euro symbol
2016-06-19 22:43:17 +01:00
Thomas Fussell
b4a7b1c849
fix typo
2016-06-19 22:23:32 +01:00
Thomas Fussell
112aa14e1a
test number format locale currency symbol
2016-06-19 22:20:49 +01:00
Thomas Fussell
e26c5595d1
cover missed lines in fill.cpp
2016-06-19 21:58:55 +01:00
Thomas Fussell
523fe10898
test other condition types
2016-06-19 21:50:41 +01:00
Thomas Fussell
7b6b5517d9
finish testing fill
2016-06-19 21:30:15 +01:00
Thomas Fussell
f28e09d9a3
finish testing page setup
2016-06-19 21:16:05 +01:00
Thomas Fussell
2732cd6479
finish testing color
2016-06-19 21:06:12 +01:00
Thomas Fussell
ccb8e66879
remove test for unsigned long long for now
2016-06-19 19:49:41 +01:00
Thomas Fussell
27cb3a089d
work on cell.cpp test coverage
2016-06-19 19:43:41 +01:00
Thomas Fussell
d194fe9640
oops, my python is leaking
2016-06-18 23:13:52 +01:00
Thomas Fussell
03080dbe1f
test conditional formats
2016-06-18 23:07:22 +01:00
Thomas Fussell
d8eda2aeb4
test text section of custom number format
2016-06-18 10:06:02 +01:00
Thomas Fussell
0cd96b0494
begin creating number_format tests
2016-06-18 09:32:09 +01:00
Thomas Fussell
bc410d8835
uncomment test_reverse_column_major_iterators
2016-06-15 13:36:03 +01:00
Thomas Fussell
fbbd984779
Merge pull request #51 from xpol/refactor-index-types
...
Refactor index types
2016-06-15 08:23:35 -04:00
Thomas Fussell
5d2c75014b
improve range iterators and their tests
2016-06-15 12:45:05 +01:00
Xpol Wan
eead279c58
compound assignments should implement the operation themself.
...
rather than depends on binary arithmetic operators, instead, binary arithmetic operators should reuse compound assignments.
2016-06-14 17:46:24 +08:00
Xpol Wan
da59c4a121
Remove doc comments in index_types.cpp.
...
They are duplicated with comments in index_types.hpp.
2016-06-14 17:24:24 +08:00
Xpol Wan
211cd7a363
make binary arithmetic operators for column_t non-member.
2016-06-14 17:20:49 +08:00
Thomas Fussell
23f65602de
revert coverage calculation and work on coverage
2016-06-13 23:36:26 -04:00
Thomas Fussell
0efd097617
add hash for enum class for gcc
2016-06-12 20:15:00 -04:00
Thomas Fussell
3d29186d6a
improve enum serialization, closes #50
2016-06-12 19:59:59 -04:00
Thomas Fussell
8361bcad74
clean up xlnt_config.hpp and fix visual studio warnings
2016-06-12 01:07:07 +08:00
Thomas Fussell
d9124a2b23
add missing header
2016-06-11 10:17:58 -04:00
Thomas Fussell
6b56a75c9c
add missing header
2016-06-11 10:09:29 -04:00
Thomas Fussell
2d28cd93e5
add missing header
2016-06-11 10:03:58 -04:00
Thomas Fussell
8c7a7f7a6f
Merge branch 'master' of github.com:tfussell/xlnt
2016-06-11 01:12:30 -04:00
Thomas Fussell
85e1b4a333
refactor styles... again
2016-06-10 13:40:50 -04:00
Thomas Fussell
30275476c1
Merge pull request #48 from xpol/add-missing-member-for-workbook
...
Add implement const version of workbook::get_sheet_by_name().
2016-06-04 08:53:34 -06:00
Xpol Wan
9f1edce3bc
Add range worksheet::rows(int row_offset, int column_offset) const.
2016-05-26 10:55:50 +08:00
Xpol Wan
aaabfe546a
Add tests for const version of get_sheet_by_name().
2016-05-26 10:44:35 +08:00
Xpol Wan
ba2d4743a6
Add implement const version of workbook::get_sheet_by_name().
...
and non const version are based on const version.
2016-05-26 10:05:30 +08:00
Thomas Fussell
3a589fe8ef
define some built-in rgb colors, missing fill method
2016-05-16 19:31:44 -04:00
Thomas Fussell
b8e7931b10
remove accidental commit of temporary test
2016-05-15 15:06:55 -04:00
Thomas Fussell
135af6e6c9
fix styles -- Excel wanted to repair saved workbooks
2016-05-15 15:03:02 -04:00
Thomas Fussell
365e2f93fc
fix round-tripping of text runs with formatting
2016-05-15 11:51:32 -04:00
Thomas Fussell
760d044f7d
add utf8 bom to number_format source to resolve encoding issues in VS2015, closes 43
2016-05-15 10:24:34 -04:00
Thomas Fussell
3d4941e61d
wire up text and text run serialization
2016-05-14 15:19:08 -04:00
Thomas Fussell
74cc503215
clarify naming of styles and formats
2016-05-14 13:57:07 -04:00
Thomas Fussell
916883e427
fix last few tests
2016-05-14 12:42:34 -04:00
Thomas Fussell
e1e29e1f30
Merge remote-tracking branch 'xpol/shared-string-with-different-formatted-parts' into styles-refactoring
2016-05-14 09:30:05 -04:00
Xpol Wan
6500f71f70
Remove log code.
2016-05-14 16:36:14 +08:00
Xpol Wan
c18110e282
add support for one cell with different formatted text nodes.
...
Eg, In one cell the text is abcdef, where abc and def have different format (e.g., different colours or fonts).
The the sharedString.xml in xlsx have multiple r node in si node:
```xml
<si>
<r>
<t>abc</t>
</r>
<r>
<rPr><sz val="10"/><color rgb="FFFF0000"/><rFont val="微软雅黑"/><charset val="134"/></rPr>
<t>def</t>
</r>
</si>
```
Currently `shared_strings_serializer::read_shared_strings()` only reads the first r node, and should consider as a bug.
This commit fixes this bug by read all `r.t.text` values in one `si` node and concat the text into one single string.
2016-05-14 16:24:21 +08:00
Thomas Fussell
d2d53dfc6d
only a few failing tests remain
2016-05-13 14:40:17 -04:00
Thomas Fussell
739be9d850
merge changes from other computer
2016-05-13 12:32:44 -04:00
Thomas Fussell
31b546b1d5
general API improvements
2016-05-11 19:24:53 -04:00
Thomas Fussell
713bd1ea12
almost done finally. still need to figure out the interaction between styles and named styles, maybe improve naming
2016-05-03 15:37:34 -04:00
Thomas Fussell
198483c88e
the library compiles now. tests don't
2016-05-01 11:08:56 -04:00
Thomas Fussell
9bd6e92297
not done yet. I can't beleive how complicated this is
2016-04-30 16:19:45 -04:00
Thomas Fussell
720edc143f
allow duplicate shared strings (why excel?). eventually we should do a garbage collection step that deduplicates shared strings after the workbook is loaded
2016-04-26 13:09:17 -04:00
Adam Nielsen
62c00744b0
Add test for duplicate shared string
2016-04-26 13:28:57 +10:00
Thomas Fussell
6471420ea8
Merge branch 'master' of github.com:tfussell/xlnt
2016-04-22 06:25:06 -04:00
Thomas Fussell
9c7bdb8191
change default workbook encoding to utf8
2016-04-22 06:24:54 -04:00
Adam Nielsen
c20795dd9f
Add test for charset error when opening valid .xlsx
2016-04-22 16:30:32 +10:00
Thomas Fussell
c4e3829da2
Merge branch 'master' of github.com:tfussell/xlnt
2016-03-14 11:50:41 +08:00
Thomas Fussell
1e045d7e95
implement more cell formatting
2016-03-14 11:46:01 +08:00
Thomas Fussell
4d2c68a575
remove accidental commit of debugging test
2016-03-10 17:35:16 +08:00
Thomas Fussell
5bf3a660fe
correct mixup between format and number_format
2016-03-10 17:34:54 +08:00
Thomas Fussell
5a9c18834d
work on round-tripping of a workbook with complex formatting
2016-03-10 17:12:51 +08:00
Thomas Fussell
1c6c36d1a0
adding multiple sheets invalidates previous handles, duh
2016-03-09 03:14:57 -05:00
Thomas Fussell
ce7b30d7ab
wrong header...
2016-03-09 14:02:14 +08:00
Thomas Fussell
bb1cbdb4ac
add missing header
2016-03-09 13:57:37 +08:00
Thomas Fussell
e401e42bee
use unambiguous constructor
2016-03-09 13:47:59 +08:00
Thomas Fussell
0c3a167f7c
implement app properties reading/writing, case-insenstive border enum->string conversions for some style enums
2016-03-09 11:32:32 +08:00
Thomas Fussell
e7b062bb4c
improve pane freezing, add print area and print title rows/cols, sync worksheet tests
2016-03-08 15:45:35 +08:00
Thomas Fussell
ad69dcb335
need to copy worksheet_ipml before modifying worksheet container, otherwise handle become invalid during realloc
2016-03-08 11:35:22 +08:00
Thomas Fussell
b56722ed65
fix unsigned signed conversion warning
2016-03-07 13:42:33 +08:00
Thomas Fussell
d11a545d3f
fix windows build
2016-03-07 13:28:52 +08:00
Thomas Fussell
ca6dea8cbc
update workbook tests
2016-03-06 10:39:50 +08:00
Thomas Fussell
74bfdb6f7d
clean up iterators
2016-01-24 11:15:49 -05:00
Thomas Fussell
d62ad6731d
update copyright year
2015-12-24 17:10:02 -05:00
Thomas Fussell
40eb6c9cb6
fix missing header for std::runtime_error
2015-12-24 15:58:31 -05:00
Thomas Fussell
34669fde87
Merge pull request #37 from degaart/master
...
added worksheet::has_cell
2015-12-24 15:53:12 -05:00
Thomas Fussell
537b76dd3f
clean up styles and hashing, add license boilerplate to all files, update readme, finish moving implementations to source files
2015-12-24 15:51:11 -05:00
degaart
7f5b76447f
added worksheet::has_cell
...
Added method worksheet::has_cell to check wether a const-qualified
worksheet objecthas data for a given cell
2015-12-24 09:58:11 +03:00
Thomas Fussell
7dc48c7c0b
fix issue #34
2015-12-22 14:39:41 -05:00
Thomas Fussell
1ec1b2ac83
add test to reproduce issue #34
2015-12-22 14:39:06 -05:00
Thomas Fussell
26d0ace151
fix #35 by using utfcpp for utf8 string validation
2015-12-22 14:23:47 -05:00
Thomas Fussell
6cbe7c0bf9
fix msvc errors
2015-11-22 13:02:37 -05:00
Thomas Fussell
b2b9732a09
work on tests
2015-11-22 12:41:27 -05:00
Thomas Fussell
d749c563e5
add test for timedelta
2015-11-22 00:33:56 -05:00
Thomas Fussell
eb961a91b9
fix missing header
2015-11-21 14:32:50 -05:00
Thomas Fussell
acfb5c642b
keep cleaning up iterators, documenting classes, and moving implementations to source files
2015-11-20 20:41:32 -05:00