Commit Graph

358 Commits

Author SHA1 Message Date
xuri beff7b4f3c
Typo fixed and godoc updated 2019-03-20 15:13:41 +08:00
Veniamin Albaev dc01264562 Huge refactorig for consistent col/row numbering (#356)
* Huge refactorig for consistent col/row numbering

Started from simply changing ToALphaString()/TitleToNumber() logic and related fixes.
But have to go deeper, do fixes, after do related fixes and again and again.

Major improvements:

1. Tests made stronger again (But still be weak).
2. "Empty" returns for incorrect input replaces with panic.
3. Check for correct col/row/cell naming & addressing by default.
4. Removed huge amount of duplicated code.
5. Removed ToALphaString(), TitleToNumber() and it helpers functions at all,
and replaced with SplitCellName(), JoinCellName(), ColumnNameToNumber(), ColumnNumberToName(), CellNameToCoordinates(), CoordinatesToCellName().
6. Minor fixes for internal variable naming for code readability (ex. col, row for input params, colIdx, rowIdx for slice indexes etc).

* Formatting fixes
2019-03-20 00:14:41 +08:00
xuri 092f16c744
Merge pull request #352 from caozhiyi/master
update go test and function docs
2019-03-07 16:26:15 +08:00
caozhiyi b974df402a update go test and function docs 2019-03-07 16:03:31 +08:00
Kimxu 164a3e126a update README and functions docs (#351)
* update README and functions docs

* update README and functions docs
2019-03-07 15:13:32 +08:00
Veniamin Albaev 12c1e2481e Implement consistent row addressing by Excel row number starting with 1 (#350)
* Implement consistent row addressing by Excel row number starting with 1

1. Added second versions for all row manipulation methods with zero-based row addressing.
2. Fixed methods documentation to explicitly describe which row addressing used in method.
3. Added WARNING to README.md.
4. Cosmetic change: All row test moved to file `rows_test.go`.

* TravisCI: go1.12 added to tests matrix

* BACKWARD INCOMPARTIBLE: Use only Excel numbering logic from 1 row

* README updated
2019-03-06 21:40:45 +08:00
xuri f66212da9b
Resolve #106, #294 performance optimization for add hyperlink 2019-02-26 14:21:44 +08:00
xuri 1aed1d744b
Resolve #274, performance optimization for add images, charts and shapes 2019-02-25 22:14:34 +08:00
BluesJhao 1427027e38 Resolve #235, performance optimization for add comments (#347) 2019-02-25 00:29:58 +08:00
xuri c223815cfe
Resolve #345, get comments by target reference 2019-02-23 16:20:44 +08:00
xuri 0072bb7310
resolve the issue corrupted xlsx after deleting formula of cell, reference #346 2019-02-22 22:17:38 +08:00
Olivier Mengué e780e41e02 Faster TitleToNumber (#343)
* TestTitleToNumber: more test cases

* TitleToNumber: drop use of math.Pow()

Compute using pure integers

* TitleToNumber: simplify

Remove unecessary casts to int
2019-02-02 11:05:01 +08:00
xuri b7b925c03f
Update readme 2019-01-29 10:47:24 +08:00
xuri 36fc39feb6
Merge pull request #340 from rentiansheng/datavalidation_formula_error
fix: datavalidation list error, formula > 255 issue #339
2019-01-24 09:27:06 +08:00
rentiansheng daf32a37f9 fix: datavalidation list error, formula > 255 issue #339 2019-01-23 22:07:11 +08:00
xuri 0c5c99e2ad
Merge pull request #337 from kkxkkxkkgh/paper-size
The function SetPageLayout support set paper size
2019-01-17 10:35:43 +08:00
kkxkkxkkgh 81948d9e1e The function SetPageLayout support set paper size 2019-01-13 21:58:50 +08:00
xuri 7f1323f7ac
Merge pull request #334 from albenik/duplicate_row
Resolve #333 New feature: File.DuplicateRowTo() duplicate row to a specified row position
2019-01-11 11:24:53 +08:00
Veniamin Albaev 725c1a0c40 New feature: File.DuplicateRowTo() duplicate row to specified row position.
DuplicateRowTo() is similar to DuplicateRow() but copies specified row not just after specified source row
but to any other specified position below or above source row.

Also I made minor modifications of tests: using filepath.Join() instead of direct unix-way paths strings
to avoid possible tests fails on other OS.
2019-01-10 14:29:19 +03:00
xuri b0ed4c12d2
Merge pull request #332 from mmitton/331_style_fill
Do not create a blank fill if no fill is specified in the style format
2019-01-10 10:56:07 +08:00
Michael W. Mitton 5dd00b9a00 Do not create a blank fill if no fill is specified in the style format 2019-01-09 10:12:53 -05:00
xuri 055d3fadf2
Merge pull request #330 from zhangleijlu/master
Resolve #318, add new functions `SetPageLayout` and `GetPageLayout`
2019-01-07 00:04:03 +08:00
zhangleijlu 034de7acd8 Resolve #318, add new functions and 2019-01-06 14:12:31 +08:00
xuri 969f4e2399
Resolve #329, add copyright agreement statement on README and LICENSE 2019-01-05 10:55:43 +08:00
Rafael Barros dea7ba0ec4 Fixes #195: Make GetRows return value avoid empty cell
* #195: proposed resolution to the issue

* Make GetRows return value avoid empty cell

* Update test file to fix broken testing.
2019-01-01 18:18:42 +08:00
xuri fabd9d013f
README updated 2019-01-01 13:20:14 +08:00
xuri 34ee74b72a
Merge pull request #326 from fossabot/master
Add license scan report and status
2018-12-31 00:05:33 +08:00
fossabot 46179eac45 Add license scan report and status
Signed-off-by: fossabot <badges@fossa.io>
2018-12-30 06:41:08 -08:00
xuri 45ab95a4a1
Merge pull request #323 from albenik/tests_fix
Tests refactoring
2018-12-30 00:18:34 +08:00
Veniamin Albaev 35426ed5dc Tests refactoring
Primary motivation: Avoid statefull tests with not ignorable git file tree changes.
Multiple tests reads and overwrites signle file for won needs.
Multiple tests reads and overwrites file under version control.

Secondary motivation: Minimal tests logic aligment, separate error expectation
and not error expectation tests. Introduce sub-test over test data sets and so far.

This commit is not ideal but necessary (IMHO)
2018-12-27 13:51:44 +03:00
xuri 9a6f66a996
New feature: the function `SearchSheet` now support regular expression, relate pull request #316 2018-12-26 14:48:14 +08:00
Veniamin Albaev 7b7ca99f5d Duplicate row (#317)
* go mod tidy applied

* File.DuplicateRow() method added
2018-12-26 13:33:40 +08:00
r-uchino 9b8baf75ad Add RegSearchSheet (#316) 2018-12-26 13:30:59 +08:00
xuri b04107c4a3
Resolve #311, create 2D/3D area, stacked area, 100% stacked area chart support 2018-12-23 00:07:47 +08:00
xuri e7a96da2db
Merge pull request #315 from CodeLingoBot/codelingo-setup
CodeLingo Setup
2018-12-22 00:02:23 +08:00
CodeLingo Bot dcc20705ae CodeLingo setup
Signed-off-by: CodeLingo Bot <hello@codelingo.io>
2018-12-21 14:20:22 +13:00
xuri 3ca3156d45
Merge pull request #313 from sairoutine/feature/get_merge_cells
Add GetMergeCells
2018-12-19 23:32:12 +08:00
sairoutine 3012df08eb Add GetMergeCells 2018-12-19 20:54:38 +09:00
xuri 90221bd98f
Fixes #310, support set and get TopLeftCell properties of sheet view options 2018-12-18 21:50:07 +08:00
xuri d166d2e06f
Merge pull request #307 from mlh758/add-outline-summary
Add support to flip outline summaries
2018-12-16 11:15:50 +08:00
xuri e728ff1498
Fixes #308, refactor `NewSheet()`, `DeleteSheet()`, `SetActiveSheet()` and `GetActiveSheetIndex()` 2018-12-15 00:08:55 +08:00
xuri 62fbc216a7
Merge pull request #306 from wcsiu/go-module-migration
migrate to go module
2018-12-14 12:09:31 +08:00
Harris faa7285a4f
Add support to flip outline summaries
This adds outlinePr support, with the summaryBelow attribute
which defaults to true.

Closes #304

Signed-off-by: Michael Harris
2018-12-13 14:01:57 -06:00
wcsiu 252d31b3c6 migrate to go module 2018-12-13 23:39:13 +08:00
xuri 4094e0019f
Merge pull request #303 from CodeLingoBot/effective-go-fix-comments
Fix comments according to best practices by effective go
2018-12-11 11:41:20 +08:00
xuri 81b43da7b6 Fix comments according to best practices by effective go 2018-12-11 15:05:15 +13:00
xuri b89f75c896
Add new logo for excelize 2018-12-05 00:27:19 +08:00
xuri 724ed5f9f3
Merge pull request #300 from taomin597715379/bugfix_297
resolve #297, fix GetSheetMap() failed
2018-11-24 21:38:39 +08:00
taomin597715379 1bb59f75ea resolve #297, fix GetSheetMap() failed
Change-Id: I585a4a017867b89bd39cb6e711467a46eaa757be
2018-11-24 21:27:29 +08:00
xuri 507fc5307d
Merge pull request #291 from peiqi111/master
resolve #289, #290
2018-11-08 12:37:42 +08:00