Commit Graph

1063 Commits

Author SHA1 Message Date
David 862dc9dc13
Support workbook views settings (#1136) 2022-02-04 13:45:42 +08:00
xuri 156bf6d16e
This closes #1129, make cell support inheritance columns/rows style
Correct cells style in merge range
Fix incorrect style ID returned on getting cell style in some cases
Unit test updated and simplified code
2022-01-27 22:37:32 +08:00
xuri 3ee3c38f9c
Fix file corrupted in some cases, check file extension and format code
Fix file corrupted when save as in XLAM / XLSM / XLTM / XLTX extension in some case
New exported error ErrWorkbookExt has been added, and check file extension on save the workbook
Format source code with `gofumpt`
2022-01-23 00:48:26 +08:00
xuri 74f6ea94ea
ref #1054, breaking change for the column and row's iterator
This removed 3 exported functions: `TotalCols`, `CurrentCol` and `CurrentRow`
2022-01-19 00:51:09 +08:00
xuri 4daa6ed0b4
Breaking change: remove `TotalRows` of row iterator and performance optimization
Reduce allocation memory 20%, and 80% GC times for the row's iterator
2022-01-17 08:05:52 +08:00
xuri 50c4dedf8d This closes #1122, improve compatibility with LibreOffice
Fixed the issue auto filter doesn't work on LibreOffice if the sheet name has spaces
2022-01-16 14:28:35 +08:00
xuri 236ee61d20
This closes #1119, style parsing issue fixed 2022-01-15 00:06:34 +08:00
Dokiy 67127883dd
Fix adjustMergeCells not modifies cell rect (#1118) 2022-01-14 00:28:31 +08:00
xuri b96329cc88
Breaking change for data validation and fixed #1117
- Remove second useless parameter `isCurrentSheet` of the function `SetSqrefDropList`
- Fix missing page setup of worksheet after re-saving the spreadsheet
2022-01-12 00:18:15 +08:00
xuri 891e5baac1
ref #1096, reduce memory usage by about 50% for large data spreadsheet 2022-01-11 00:31:11 +08:00
xuri 2245fccca0
Typo fix, rename exported constants, dependencies modules and copyright update
Rename exported constants `NameSpaceDublinCoreMetadataIntiative` to `NameSpaceDublinCoreMetadataInitiative`
2022-01-09 00:20:42 +08:00
Jonham.Chen af5c4d00e8
feat: implement SHA-512 algorithm to ProtectSheet (#1115) 2022-01-08 10:32:13 +08:00
xuri 9e64df6a96
Update create style example, using a pointer of the structure instead of JSON 2022-01-05 00:13:29 +08:00
xuri e37e060d6f
This closes #1107, stream writer will create a time number format for time type cells
Unit test coverage improved
2021-12-31 00:00:01 +08:00
vst c5990ea348
Preserve horizontal tab character when set the cell value (#1108) 2021-12-30 00:36:04 +08:00
xuri 89b85934f6
This closes #1096, memory usage optimization and another 4 changes
- Unzip shared string table to system temporary file when large inner XML, reduce memory usage about 70%
- Remove unnecessary exported variable `XMLHeader`, we can using `encoding/xml` package's `xml.Header` instead of it
- Using constant instead of inline text for default XML path
- Rename exported option field `WorksheetUnzipMemLimit` to `UnzipXMLSizeLimit`
- Unit test and documentation updated
2021-12-27 23:49:28 +08:00
xuri 6b1e592cbc
This closes #1095, support to set and get document application properties 2021-12-26 14:55:53 +08:00
xuri 089cd365a3
This closes #1097, initialized formula function XLOOKUP and update test 2021-12-25 21:51:09 +08:00
xuri 6051434bf8
ref #65, new formula functions MAXIFS and MINIFS 2021-12-19 13:36:24 +08:00
xuri 63fe422299
new formula function and update docs for formula functions
ref #65, new formula function: INDEX (array formula not support yet)
2021-12-17 00:08:56 +08:00
xuri c0ac3165bd
ref #65: new formula function COUNTIFS 2021-12-14 00:38:16 +08:00
xuri 3371933494
ref #65: new formula functions: AVERAGEIF and COUNTIF 2021-12-13 00:02:25 +08:00
xuri 76aacfda0b
ref #65: new formula function: SHEETS, and fix SHEET function count issue 2021-12-12 00:07:01 +08:00
jaby b33e39369a
This closes #1090 (#1092)
Keep track of operators per function
2021-12-10 16:48:02 +08:00
xuri 1b3040659d
ref #65: new formula functions: ISFORMULA, ISLOGICAL and ISREF 2021-12-09 20:16:12 +08:00
jaby 5bf35f8c1c
This closes #1088 (#1089)
Support check string equality with the string value of a defined name
2021-12-09 09:40:11 +08:00
xuri 44a13aa402
Export 7 errors so users can act differently on different type of errors 2021-12-07 00:26:53 +08:00
Dokiy 3325c3946d
Fix adjustMergeCellsHelper and add some test cases (#1082)
Signed-off-by: Dokiys <dokiychang@gmail.com>
2021-12-06 22:37:25 +08:00
xuri 7af55a5455
ref #65: new formula function ODDFPRICE 2021-12-06 08:16:32 +08:00
xuri e0c6fa1beb
Update docs for SetSheetStyle, and added 2 formula functions
ref #65: new formula functions DURATION and MDURATION
fix incorrect example in SetSheetStyle docs
2021-12-04 13:11:01 +08:00
xuri 577a07f08c
Simplify code and update unit test
Improve unit test coverage for the functions: `NewStyle`, `SetActiveSheet`, `SearchSheet` and `deleteAndAdjustDefinedNames`
Simplify code and add comments for the function: `deleteAndAdjustDefinedNames`
2021-12-03 00:19:11 +08:00
Michael Wiesenbauer aa359f1c74
refactor DeleteSheet for better readability (#1078)
Signed-off-by: Michael Wiesenbauer <michael.wiesenbauer@ambos.io>
Co-authored-by: Michael Wiesenbauer <michael.wiesenbauer@fau.de>
2021-12-02 22:14:57 +08:00
xuri 4ca1b305fe
Merge pull request #1077 from Dokiys/hotfix/get_num_fmt_id
Fix call getNumFmtID with builtInNumFmt return -1
2021-12-02 00:48:20 +08:00
Dokiy 45a1f08a2a Fix call getNumFmtID with builtInNumFmt return -1 2021-12-01 19:11:51 +08:00
xuri bb0eb4a42b
This closes #1075, reload temporary files into memory on save 2021-12-01 00:10:31 +08:00
xuri 49c9ea40d7
ref #65: new formula function YIELD 2021-11-29 01:21:03 +08:00
xuri f26df480e5
ref #65: new formula functions CONFIDENCE and CONFIDENCE.NORM 2021-11-25 00:38:49 +08:00
xuri 7907650a97
This closes #1069, support time zone location when set cell value 2021-11-24 00:09:35 +08:00
xuri 9561976074
ref #65: new formula function VDB 2021-11-22 00:39:39 +08:00
xuri a6c8803e91
ref #65: new formula function XIRR 2021-11-21 15:49:29 +08:00
xuri 9b0aa7ac30
This closes #1060, fix build-in time number format parse error 2021-11-20 11:31:17 +08:00
xuri 6b277c61d2
Fix sheet deletion fail in some case 2021-11-18 08:06:14 +08:00
xuri bc3c7d51a2
ref #65: new formula function PRICE
- fix COUPPCD result accuracy issue
- update close spreadsheet example in documentation and README
2021-11-17 00:25:36 +08:00
xuri bda8e7f812
This closes #1061, support multi-byte language on set header footer
typo fixed and simplify code for read the data values arguments of formula functions
2021-11-16 00:40:44 +08:00
xuri 72410361b0
ref #65, new formula functions: COUPDAYBS, COUPDAYS and COUPDAYSNC 2021-11-15 00:28:10 +08:00
xuri 57275db22e
This closes #1057, merge column styles to reduce spreadsheet size 2021-11-14 00:17:31 +08:00
xuri adecf447e1
This closes #1059, represent boolean in XML as 0/1 rather than true/false 2021-11-13 14:11:16 +08:00
xuri 5de671f8bb
ref #65: new formula function MINUTE 2021-11-12 01:01:50 +08:00
xuri 00eece4f53
ref #65: new formula function XNPV 2021-11-11 00:43:42 +08:00
xuri a68bc34b0c
ref #65: new formula functions PERCENTRANK.EXC, PERCENTRANK.INC and PERCENTRANK 2021-11-09 00:10:09 +08:00