Commit Graph

398 Commits

Author SHA1 Message Date
peng e2e58a3a44 New function: `SearchSheet()`, relate issue #277 2018-10-27 14:19:54 +08:00
xuri 90bdd3632f
Fix the issue caused by missing tradition to strict conversion for `sharedStringsReader()`, relate issue #276 2018-10-18 10:23:08 +08:00
xuri 1c45425f12
resolve #276, add OfficeOpenXML-XMLSchema-Strict mode support 2018-10-17 00:28:31 +08:00
xuri d8a34af384
Merge pull request #275 from Zheaoli/master
Add Support for WriteTo Buffer
2018-10-12 10:36:19 +08:00
lizheao 2be4d45c62 feat: add new function and refactor writeto action
* add new exported function to get Excel file content buffer

* refactor the WriteTo function
2018-10-12 10:25:10 +08:00
xuri f0234e6c08
Merge pull request #233 from sewi-cpan/master
Update documentation and add sample file
2018-09-27 23:40:33 +08:00
xuri 204139739a
Merge branch 'master' into master 2018-09-27 23:40:00 +08:00
xuri 250946568c
Remove independent sample file 2018-09-27 23:36:27 +08:00
xuri 3e004d900b
Comments style changed. 2018-09-14 00:58:48 +08:00
xuri 13a9769cc5
Comments style changed. 2018-09-14 00:44:23 +08:00
xuri 2f146c923c
Comments style changed. 2018-09-14 00:35:47 +08:00
xuri 6ced438f39
New function `AddPictureFromBytes()` has been added, this resolve #259 and close #271. 2018-09-14 00:24:49 +08:00
xuri 4f47737d64
Complete unit testing case for data validation 2018-09-13 10:38:01 +08:00
xuri b4a6e61ec3
Fix golint errors under confidence 0.1 2018-09-12 15:47:56 +08:00
xuri 99c9d04f67
Merge pull request #270 from rentiansheng/valiationdata
data validation drop-down list use sqref cell  issue #268
2018-09-06 20:10:00 +08:00
rentiansheng 93cbafb0e2 data validation drop-down list use sqref cell issue #268 2018-09-04 13:40:53 +08:00
xuri 2da107d3b2
Fix typo. 2018-09-02 01:44:32 +08:00
xuri b691e617d0
Merge pull request #267 from rentiansheng/valiationdata, this closes #147 and closes #240.
Initialize data validation support
2018-09-01 23:48:00 +08:00
xuri ba459dc659
DataValidation struct changed
Change `allowBlank`, `ShowErrorMessage` and `ShowInputMessage` type as boolean, add new field `ShowDropDown`, change fields orders follow as ECMA-376-1:2016 18.3.1.32.
2018-09-01 23:36:57 +08:00
xuri 562ba3d234
Add function doc and fix golint error 2018-09-01 23:32:44 +08:00
rentiansheng 24a8d64f93 add datavalidation test and fixed struct bug issue #240 2018-09-01 19:38:30 +08:00
Farmerx ce5b37a4ac
# fix : file close 没有关闭 2018-08-20 16:53:51 +08:00
xuri ec37b114c3
Fixes #256 and format document. 2018-08-06 10:21:24 +08:00
rentiansheng 0548852190 data validation funcation 2018-07-30 22:09:41 +08:00
xuri efe3219af0
Delete ISSUE_TEMPLATE.md 2018-07-30 10:06:22 +08:00
xuri df6b0d9ff4
Create PULL_REQUEST_TEMPLATE.md 2018-07-29 14:00:21 +08:00
xuri b11b95a69a Update issue templates
Issue templates have been added.
2018-07-27 10:11:13 +08:00
xuri cddcf852c2
Merge pull request #253 from alex-whitney/252-color-scale-cond-formatting
Use min/mid/max value for 2 and 3 color scale conditional formatting
2018-07-26 09:46:26 +08:00
Alex Whitney db7a605cf8 Use min/mid/max value for 2 and 3 color scale conditional formatting 2018-07-25 10:47:14 -04:00
Alex Whitney a885bb0fb9 Add failing unit tests for issue-252 2018-07-25 10:45:09 -04:00
xuri a3571ee39b
Bugfix: create worksheet cause file issue. Relate issue #249. 2018-07-17 15:28:22 +08:00
xuri 79dfe1c307
GoDoc updated. 2018-07-13 17:40:47 +08:00
xuri 58a7b23d11
Merge pull request #246 from nad2000/retrieve-comments
added retrieval of worksheet comments
2018-07-10 10:10:38 +08:00
xuri d6468fc114
- Initialize theme support;
- RGBA, HSL color convert has been added;
- go test updated
2018-07-07 15:59:48 +08:00
Rad Cirskis 1a953b6601 added unit tests 2018-06-30 22:55:14 +12:00
Rad Cirskis e3050d21e7 added retieval of worksheet comments 2018-06-30 22:37:14 +12:00
xuri 9cb0e9308b
- Update Travis CI to include GOARCH=386 tests, relate issue #239 and #244;
- Fix doc typo
2018-06-30 16:44:09 +08:00
xuri d80d6aa318
Merge pull request #234 from dolmen-go/WriteTo
Extract WriteTo method (see io.WriterTo) to expose bytes written
2018-06-29 09:53:57 +08:00
xuri 07d568aa44
Merge pull request #241 from nad2000/issues/238
improved comment formatting
2018-06-28 10:05:57 +08:00
xuri 74c6091cfc
Update comment.go
make the comment box's height auto and having the minimum height.
2018-06-28 10:03:53 +08:00
xuri 13cf7a3b03
Merge pull request #243 from liepumartins/patch-2
Restore date 32bit compatibility
2018-06-27 14:03:06 +08:00
Mārtiņš 4855a43bc6 Restore date 32bit compatibility, be more verbose
Do not use large int64 constants that are not available in GOARCH=386
Fix #239
2018-06-26 16:41:26 +03:00
Rad Cirskis 741810a863 improved commenting formatting 2018-06-23 23:35:27 +12:00
xuri 3a91b28ddb
Merge pull request #237 from liepumartins/patch-1
Ability to parse dates further in future
2018-06-20 15:53:30 +08:00
Mārtiņš 37c470e8c0 Ability to parse dates further in future
Golangs time.Duration uses nanoseconds, thus it is limited to approximately 290 years.
2018-06-20 09:16:25 +03:00
xuri 5db716d849
Merge pull request #155 from dolmen-go/deepcopy-with-reflect
CopySheet() using reflect instead of encoding/gob
2018-06-17 21:38:14 +08:00
Olivier Mengué 4a1b406456 CopySheet() using reflect instead of encoding/gob
Use github.com/mohae/deepcopy to deep copy worksheets instead of the
internal deepcopy function that was using encoding/gob serialization and
deserialization.

Rationale:
1/ using `encoding/gob` is much slower than
   [`mohae/deepcopy`](https://github.com/mohae/deepcopy/)
2/ When building an application this implementation of `deepcopy` drags
   the `encoding/gob` package into the binary. And this package is much
   bigger than `mohae/deepcopy` (which only depends on `time` and `reflect`).

```
$ LC_ALL=C stat -f "%6z %N" $(go env GOPATH)/pkg/$(go env GOOS)_$(go env GOARCH)/github.com/mohae/deepcopy.a $(go env GOROOT)/pkg/$(go env GOOS)_$(go env GOARCH)/encoding/gob.a
 10508 .../pkg/darwin_amd64/github.com/mohae/deepcopy.a
541818 .../pkg/darwin_amd64/encoding/gob.a
```
2018-06-14 17:54:31 +02:00
Olivier Mengué 2132de1a08 Extract WriteTo method (see io.WriterTo) to expose bytes written
Extract a WriteTo() method (see io.WriterTo) that exposes the count of bytes
written and rewrite Write() to use it.
2018-06-14 17:00:00 +02:00
Sebastian Willing ccdefb3b16 Documentation:
* Add information about return value of NewSheet()
* Minor documentation language fixes
Samples:
* Added sample go file for dumping a XLSX file to the console
2018-06-11 17:25:28 +02:00
xuri 9e463b4614
- Add error return value for functions: `AddChart()`, `AddComment()`, `AddPicture()`, `AddShape()`, `AddTable()` and `SetConditionalFormat()`
- go test has been updated
2018-05-27 11:25:55 +08:00