summaryrefslogtreecommitdiff
path: root/cell.go
Commit message (Collapse)AuthorAge
* Number format read fix (#741)Artem Kustikov2020-12-12
| | | | | * fix UT-generated file names to be ignored * fix cell value load with invalid number format ID * fix PR issues
* Fixed #735, refresh active tab after delete sheetxuri2020-11-23
|
* Fix #724, standardize variable naming and update unit testsxuri2020-11-11
|
* This closes #714 and closes #715, fix wrong worksheet index returned by ↵xuri2020-10-19
| | | | NewSheet in some case, fix panic on formatted value with no built-in number format ID
* extend cell value load to support custom datetime format (#703)Artem Kustikov2020-10-04
| | | | | | | | | | | | | | | | | | | | | | | | | * extend cell value load to support custom datetime format * cleanup incorrect imports * fix numeric values conversion as done in legacy Excel * fix tests coverage * revert temporary package name fix * remove personal info from test XLSX files * remove unused dependencies * update format conversion in parseTime * new UT to increase code coverage * Resolve code review issue for PR #703 * Rename broken file name generated by unit test Co-authored-by: xuri <xuri.me@gmail.com>
* Default row height compatibility with Apache OpenOffice and Kingsoft WPS, ↵xuri2020-08-22
| | | | unit test update and typo fixed
* Compatible with Go 1.15, fix unit test failed on Windows and fixed #689 ↵xuri2020-08-15
| | | | potential race condition
* support parse and generate XML element namespace dynamic, fix #651xuri2020-07-18
|
* Resolve #32, fix missing leading/leading spaces when working with SSTxuri2020-07-01
|
* Update docs and typo fixedxuri2020-06-22
|
* make columns iterator read cell streamingly and add max column limit on ↵xuri2020-06-22
| | | | ColumnNumberToName
* escape html tagheiy2020-06-08
|
* add limits for total columns, row and filename lengthxuri2020-05-29
|
* speedup get cell value from shared string tablexuri2020-05-27
|
* Fix #622, storage string to SST (shared string table)xuri2020-05-26
|
* Merge branch 'master' into fix/cell_lockxuri2020-05-22
|\
| * - formula engine: reduce cyclomatic complexityxuri2020-05-10
| | | | | | | | - styles: allow empty and default cell formats, #628
| * - Resolve #485 use sheet index instead of IDxuri2020-04-23
| | | | | | | | - added 3 internal function: getSheetID, getActiveSheetID, getSheetNameByID
| * Resolve #598, filter support for AddPivotTablexuri2020-04-09
| |
| * Resolve #172, init rich text supportxuri2020-04-06
| |
| * Improve code coverage unit testsxuri2019-12-29
| |
| * Stream to Excel table (#530)Cameron Howey2019-12-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Support all datatypes for StreamWriter * Support setting styles with StreamWriter **NOTE:** This is a breaking change. Values are now explicitly passed as a []interface{} for simplicity. We also let styles to be set at the same time. * Create function to write stream into a table * Write rows directly to buffer Avoiding the xml.Encoder makes the streamer faster and use less memory. Using the included benchmark, the results went from: > BenchmarkStreamWriter-4 514 2576155 ns/op 454918 B/op 6592 allocs/op down to: > BenchmarkStreamWriter-4 1614 777480 ns/op 147608 B/op 5570 allocs/op * Use AddTable instead of SetTable This requires reading the cells after they have been written, which requires additional structure for the temp file. As a bonus, we now efficiently allocate only one buffer when reading the file back into memory, using the same approach as ioutil.ReadFile. * Use an exported Cell type to handle inline styles for StreamWriter
| * Fix #538, added setting a major unit and tick label skip support for the chartxuri2019-12-25
| |
| * Improve compatibility, fix workbook's rels ID calc errorxuri2019-12-23
| |
| * Fix #533, add support overlapped mergecellsxuri2019-12-14
| |
| * Optimize code of Getting/Setting Page Marginsxuri2019-10-17
| |
| * solve ending space missingheiy2019-10-10
| |
| * Allow access to more formula attributes in SetCellFormula (#484)Christian Fiedler2019-09-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Allow access to more formula attributes in SetCellFormula Make SetCellFormula variadic to not break API. The new arguments are option arguments in which the type of the formula and the ref attribute may be set. These need to be set for an array formula to work. * Add TestWriteArrayFormula to test optional parameters of SetCellFormula TestWriteArrayFormula writes a document to the test directory that contains array formulas that are used to calculate standard deviations. The file also contains values calculated by the Go testcase, so the results can be verified. It should be tested, if the array formula works (i.e. shows a number, not an error) and that the values calculated by the formula and those calculated by Go are the same.
| * Combine functions:xuri2019-09-16
| | | | | | | | | | | | workBookRelsWriter, drawingRelsWriter into relsWriter; drawingRelsReader, workbookRelsReader, workSheetRelsReader into relsReader; addDrawingRelationships, addSheetRelationships into addRels
| * add missing error check in SetSheetRow()mqy2019-08-19
| |
| * SetCellValue: use fmt.Sprint(v) instead of fmt.Sprintf("%v", v)Olivier Mengué2019-08-13
| | | | | | | | | | | | | | Because that does the same thing, but without having to parse a format string. Signed-off-by: Olivier Mengué <dolmen@cpan.org>
| * Documentation updated, Go 1.10+ requiredxuri2019-08-11
| |
| * Fix #424, refactor merged cells adjusterxuri2019-06-12
| |
* | fix go lock马彦军2019-11-14
|/
* Add a check for maximum limit hyperlinks in a worksheetxuri2019-04-21
| | | | typo fixed
* godoc update and typo fixedxuri2019-04-20
|
* add unit tests to functionsxuri2019-04-16
|
* Resolve #369,#370xuri2019-04-15
| | | | | | | | | | | | | | | | | | add error return value exported functions: GetMergeCells ProtectSheet UnprotectSheet UpdateLinkedValue GetMergeCells SetSheetVisible inner functions: workSheetReader copySheet
* Check max length for SetCellStr and fix coordinate issue for MergeCellxuri2019-04-14
|
* Fix out of range panic when removing formula.Aplulu2019-04-09
| | | | Fix file corruption issue when deleting a sheet containing a formula.
* refactor: handler error instead of panic,xuri2019-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Exported functions: SetCellStyle InsertCol RemoveCol RemoveRow InsertRow DuplicateRow DuplicateRowTo SetRowHeight GetRowHeight GetCellValue GetCellFormula GetCellHyperLink SetCellHyperLink SetCellInt SetCellBool SetCellFloat SetCellStr SetCellDefault GetCellStyle SetCellValue MergeCell SetSheetRow SetRowVisible GetRowVisible SetRowOutlineLevel GetRowOutlineLevel GetRows Columns SearchSheet AddTable GetPicture AutoFilter GetColVisible SetColVisible GetColOutlineLevel SetColOutlineLevel SetColWidth GetColWidth inner functions: adjustHelper adjustMergeCells adjustAutoFilter prepareCell setDefaultTimeStyle timeToExcelTime addDrawingChart addDrawingVML addDrawingPicture getTotalRowsCols checkRow addDrawingShape addTable
* Use bitSize for float32 type numbers conversion, relate PR #361xuri2019-03-21
|
* SetCellFloat for floats with specific precision (#361)Michael2019-03-21
| | | | | | This allows the user to set a floating point value into a cell with a specific number of places after the decimal. Closes #357
* Huge refactorig for consistent col/row numbering (#356)Veniamin Albaev2019-03-20
| | | | | | | | | | | | | | | | | | | * 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
* resolve the issue corrupted xlsx after deleting formula of cell, reference #346xuri2019-02-22
|
* README updatedxuri2019-01-01
|
* fix issue #290peiqi2018-11-08
|
* Comments style changed.xuri2018-09-14
|
* Comments style changed.xuri2018-09-14
|
* Comments style changed.xuri2018-09-14
|