Commit Graph

445 Commits

Author SHA1 Message Date
Ri Xu af737dd3f6
Issue template added. 2017-12-15 09:57:12 +08:00
Ri Xu 749d12eece
- Fix `DeleteSheet()` make broken file, relate issue #165;
- godoc updated
2017-12-04 23:54:32 +08:00
Ri Xu 6d634ca320
GitHub repo URL changed. 2017-12-01 16:52:15 +08:00
xuri 443695732e
Merge pull request #153 from jinzhu/master
Rename import path to github.com/360EntSecGroup-Skylar/excelize
2017-12-01 16:50:07 +08:00
Ri Xu 76366fc1d9
Travis CI config updated and typo fixed. 2017-12-01 16:31:27 +08:00
Ri Xu 07a4140098
- 24 hour time format supported, relate issue #163;
- godoc and go test updated
2017-12-01 15:47:39 +08:00
xuri 2dc385431d
Merge pull request #162 from rohanthewiz/master
Add stacked bar chart
2017-11-25 22:26:54 +08:00
Rohan Allison cc1d3fefc2 Add stacked bar chart 2017-11-24 11:29:35 -06:00
xuri 3d231cb549
Merge pull request #156 from dolmen-go/fix/SheetViewOptPtr-is-a-SheetViewOpt
SheetViewOptionPtr: document that it is a superset of SheetViewOption
2017-11-21 11:08:28 +08:00
xuri 130eb453f4
Merge pull request #154 from dolmen-go/feature/SheetPr-options
Add {G,S}etSheetPrOptions() to allow to set FitToPage for printing
2017-11-21 11:07:00 +08:00
Olivier Mengué d2fb0197ab SheetViewOptionPtr: document that it is a superset of SheetViewOption
Document in type system (not just in text for humans) that
all SheetViewOptionPtr are also SheetViewOption (well, if not nil).
This improves documentation visible with godoc but this simple change
also allows more flexibility to manipulate SheetViewOption programatically
such as saving and restoring values:

	var opt excelize.ShowFormulas
	opt = new(excelize.ShowFormulas)
	_ = xl.GetSheetViewOptions(sheet, -1, opt)
	_ = xl.SetSheetViewOptions(sheet, -1, opt)
2017-11-17 19:43:32 +01:00
Olivier Mengué 954612157b Add {G,S}etSheetPrOptions()
Add SetSheetPrOptions and GetSheetPrOptions to allow to set options on
<sheetPr> and <pageSetUpPr>.

The following options are implemented:
- CodeName (string)
- EnableFormatConditionsCalculation (bool)
- Published (bool)
- FitToPage (bool)
- AutoPageBreaks (bool)
2017-11-17 18:45:20 +01:00
xuri 90998bfb4d
Merge pull request #149 from dolmen-go/feature/SheetView-options
Add SetSheetViewOptions()
2017-11-17 09:33:50 +08:00
Olivier Mengué 88e48e079a Add SetSheetViewOptions and GetSheetViewOptions (#145)
Two new methods:
- SetSheetViewOptions(sheetName string, viewIndex int, opts ...SheetViewOption) error
- GetSheetViewOptions(sheetName string, viewIndex int, opts ...SheetViewOptionPtr) error

The option values are given by the user through types that have privates methods
that implement the private SheetViewOption and SheetViewOptionPtr interfaces:
- DefaultGridColor(bool)
- RightToLeft(bool)
- ShowFormulas(bool)
- ShowGridLines(bool)
- ShowRowColHeaders(bool)

Examples:
    err := xl.SetSheetViewOptions("Sheet1", -1, excelize.ShowGridLines(true))

    var showGridLines excelize.ShowGridLines
    err := xl.GetSheetViewOptions("Sheet1", -1, &showGridLines)

Fixes #145.
2017-11-16 12:00:36 +01:00
Ri Xu eb54510cad
Add missing XML attributes `customWorkbookViews` and `customWorkbookView` in the workbook, relate issue #152.
Signed-off-by: Ri Xu <xuri.me@gmail.com>
2017-11-16 17:31:01 +08:00
Jinzhu 21214a514d Rename import path to github.com/360EntSecGroup-Skylar/excelize 2017-11-16 11:07:39 +08:00
Ri Xu 96b3e1ea74
Bugfix: corrupted xlsx after write operation, relate issue #152.
Signed-off-by: Ri Xu <xuri.me@gmail.com>
2017-11-16 10:24:45 +08:00
xuri a4ffb4fbfc
Merge pull request #141 from WingGao/wing
fix OpenReader no sheet error
2017-11-03 10:31:48 +08:00
Ri Xu f10ee929d0
- Bugfix: use sheet name in func `AddPicture`, relate issue #142;
- godoc updated
2017-10-31 16:33:36 +08:00
Wing Gao 48b8bac126 fix OpenReader no sheet error 2017-10-27 22:05:00 +08:00
Ri Xu ebafbdde73
Bugfix: use sheet name in func `AddChat`, relate issue #138
Signed-off-by: Ri Xu <xuri.me@gmail.com>
2017-10-20 14:40:57 +08:00
Ri Xu 8077732dff
Bugfix: read sheet name error, relate issue #137
Signed-off-by: Ri Xu <xuri.me@gmail.com>
2017-10-18 19:07:35 +08:00
Ri Xu b4ffa8ce48
- Add unsigned integer data type support, related issue #136;
- go test and godoc updated

Signed-off-by: Ri Xu <xuri.me@gmail.com>
2017-10-18 18:42:20 +08:00
Ri Xu 9b5b74d480
Performance optimization, use the array index instead of the value in range. 2017-10-16 10:42:43 +08:00
Ri Xu 905be463ed
Improve code readability. 2017-09-30 17:07:59 +08:00
Ri Xu d4df70bd9f Merge pull request #126 from dvrkps/patch-1
travis: update go versions
2017-09-26 21:14:58 -05:00
Davor Kapsa 87730aaf08 travis: update go versions 2017-09-26 12:47:18 +02:00
Ri Xu e820388d70
Handle coordinate parse exception, relate issue #122. 2017-09-19 11:59:33 +08:00
Ri Xu b7b937a8a3
godoc updated. 2017-09-13 22:17:40 +08:00
Ri Xu f05f799f8d
- API changed, use worksheet name instead of "sheet" + index, related issue #25, #43, #47, #51, #89, #101, #116 and #120.
- go test updated
2017-09-13 22:00:33 +08:00
Ri Xu 3e7192b6ab
Simple go test. 2017-09-11 15:53:25 +08:00
Ri Xu 565b23e0e9
go test added for pull request #114 2017-09-06 13:15:25 +08:00
Ri Xu cf1077dc9f Merge pull request #114 from lichaofei/master
change the TitleToNumber function
2017-09-06 12:17:58 +08:00
Ri Xu 1f93fc7bad Optimize code. 2017-09-06 12:16:39 +08:00
lichaofei 363604e2f3 Merge pull request #1 from lichaofei/test
Test
2017-09-05 19:10:23 +08:00
lichaofei 787495c503 Update lib.go 2017-09-05 18:26:47 +08:00
lichaofei 1169042f7d Update lib.go 2017-09-05 18:06:38 +08:00
Ri Xu 5354074fc2
Update struct define to fix issue #112. 2017-09-05 17:14:01 +08:00
Ri Xu 224f1850c7
TravisCI config updated. 2017-09-01 13:07:03 +08:00
Ri Xu 574a6b20d1
Golang 1.9 compatible, fix issue #111 2017-09-01 12:59:15 +08:00
Ri Xu 1ec2661dda
Bugfix: deep copy issue with function `CopySheet()`, relate PR #108. 2017-08-19 13:37:15 +08:00
Ri Xu 77af25295e
- Conditional format with formula support, relate issue #75;
- go test and readme update
2017-08-18 20:55:27 +08:00
Ri Xu 58e2caff33 Merge pull request #103 from takayuki/trim-sheet-name-as-rune
Conut and trim sheet name in UTF-8
2017-08-13 14:35:27 +08:00
Takayuki Usui 02728de4d2 Conut and trim sheet name in UTF-8 2017-08-13 13:19:53 +09:00
Ri Xu 845e339755
Document updated. 2017-08-11 23:39:59 +08:00
Ri Xu 67636039f6
- Init conditional format support, relate issue #75;
- go test and godoc updated
2017-08-11 23:15:33 +08:00
Ri Xu a8cf38ebd5
- New function `GetCellHyperLink()` added, relate issue #98;
- go test added
2017-08-08 20:08:54 +08:00
Ri Xu 5cf3725f02
Add missing element `xfId` of the styles to fix issue #93. 2017-08-07 10:42:10 +08:00
Ri Xu 6626a26f7b
Simplify code and update unit tests. 2017-08-01 16:35:18 +08:00
Ri Xu b327eb54dc Merge pull request #91 from takayuki/time-round-off-error
Fix round-off error in representation of date and time values
2017-07-31 09:54:08 +08:00