| Commit message (Collapse) | Author | Age |
|
|
| |
Co-authored-by: zhengchao.deng <zhengchao.deng@meican.com>
|
|
|
|
|
|
| |
- Simplify calculation engine code
- Update documentation for the functions
- Update dependencies module
|
|
|
| |
Signed-off-by: Joseph Watson <jtwatson@linux-consulting.us>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This made a refactor with breaking changes:
Motivation and Context
When I decided to add set horizontal centered support for this library to resolve #1358, the reason I made this huge breaking change was:
- There are too many exported types for set sheet view, properties, and format properties, although a function using the functional options pattern can be optimized by returning an anonymous function, these types or property set or get function has no binding categorization, so I change these functions like `SetAppProps` to accept a pointer of options structure.
- Users can not easily find out which properties should be in the `SetSheetPrOptions` or `SetSheetFormatPr` categories
- Nested properties cannot proceed modify easily
Introduce 5 new export data types:
`HeaderFooterOptions`, `PageLayoutMarginsOptions`, `PageLayoutOptions`, `SheetPropsOptions`, and `ViewOptions`
Rename 4 exported data types:
- Rename `PivotTableOption` to `PivotTableOptions`
- Rename `FormatHeaderFooter` to `HeaderFooterOptions`
- Rename `FormatSheetProtection` to `SheetProtectionOptions`
- Rename `SparklineOption` to `SparklineOptions`
Remove 54 exported types:
`AutoPageBreaks`, `BaseColWidth`, `BlackAndWhite`, `CodeName`, `CustomHeight`, `Date1904`, `DefaultColWidth`, `DefaultGridColor`, `DefaultRowHeight`, `EnableFormatConditionsCalculation`, `FilterPrivacy`, `FirstPageNumber`, `FitToHeight`, `FitToPage`, `FitToWidth`, `OutlineSummaryBelow`, `PageLayoutOption`, `PageLayoutOptionPtr`, `PageLayoutOrientation`, `PageLayoutPaperSize`, `PageLayoutScale`, `PageMarginBottom`, `PageMarginFooter`, `PageMarginHeader`, `PageMarginLeft`, `PageMarginRight`, `PageMarginsOptions`, `PageMarginsOptionsPtr`, `PageMarginTop`, `Published`, `RightToLeft`, `SheetFormatPrOptions`, `SheetFormatPrOptionsPtr`, `SheetPrOption`, `SheetPrOptionPtr`, `SheetViewOption`, `SheetViewOptionPtr`, `ShowFormulas`, `ShowGridLines`, `ShowRowColHeaders`, `ShowRuler`, `ShowZeros`, `TabColorIndexed`, `TabColorRGB`, `TabColorTheme`, `TabColorTint`, `ThickBottom`, `ThickTop`, `TopLeftCell`, `View`, `WorkbookPrOption`, `WorkbookPrOptionPtr`, `ZeroHeight` and `ZoomScale`
Remove 2 exported constants:
`OrientationPortrait` and `OrientationLandscape`
Change 8 functions:
- Change the `func (f *File) SetPageLayout(sheet string, opts ...PageLayoutOption) error` to `func (f *File) SetPageLayout(sheet string, opts *PageLayoutOptions) error`
- Change the `func (f *File) GetPageLayout(sheet string, opts ...PageLayoutOptionPtr) error` to `func (f *File) GetPageLayout(sheet string) (PageLayoutOptions, error)`
- Change the `func (f *File) SetPageMargins(sheet string, opts ...PageMarginsOptions) error` to `func (f *File) SetPageMargins(sheet string, opts *PageLayoutMarginsOptions) error`
- Change the `func (f *File) GetPageMargins(sheet string, opts ...PageMarginsOptionsPtr) error` to `func (f *File) GetPageMargins(sheet string) (PageLayoutMarginsOptions, error)`
- Change the `func (f *File) SetSheetViewOptions(sheet string, viewIndex int, opts ...SheetViewOption) error` to `func (f *File) SetSheetView(sheet string, viewIndex int, opts *ViewOptions) error`
- Change the `func (f *File) GetSheetViewOptions(sheet string, viewIndex int, opts ...SheetViewOptionPtr) error` to `func (f *File) GetSheetView(sheet string, viewIndex int) (ViewOptions, error)`
- Change the `func (f *File) SetWorkbookPrOptions(opts ...WorkbookPrOption) error` to `func (f *File) SetWorkbookProps(opts *WorkbookPropsOptions) error`
- Change the `func (f *File) GetWorkbookPrOptions(opts ...WorkbookPrOptionPtr) error` to `func (f *File) GetWorkbookProps() (WorkbookPropsOptions, error)`
Introduce new function to instead of existing functions:
- New function `func (f *File) SetSheetProps(sheet string, opts *SheetPropsOptions) error` instead of `func (f *File) SetSheetPrOptions(sheet string, opts ...SheetPrOption) error` and `func (f *File) SetSheetFormatPr(sheet string, opts ...SheetFormatPrOption
|
|
|
|
|
|
|
| |
- Fix default number format parse issue with a long string of digits
- Fix creating a sheet with an empty name cause a corrupted file
- The `GetCellStyle` function no longer return master cell style of the merge cell range
- Using the specialized name in variables and functions
|
|
|
| |
Co-authored-by: zzt <zhangzitao@meican.com>
|
|
|
|
|
| |
(#1355)
Co-authored-by: Tianzhi Jin <tianzhi.jin@iglooinsure.com>
|
|
|
|
| |
- Add JSON tags for `AppProperties`, `PivotTableOption` and `PivotTableField` structure
|
| |
|
|
|
|
| |
- These 6 functions now support concurrency safe: SetColWidth, GetColWidth, SetColVisible, GetColVisible, SetColStyle and GetColStyle
|
| |
|
|
|
|
| |
options
|
|
|
|
|
|
| |
- Fix generate workbook corruption after insert cols/rows in some case
- Update unit tests
- Update dependencies module
|
| |
|
| |
|
| |
|
|
|
| |
This use `InsertRows` instead of `InsertRow`, and using `InsertCols` instead of `InsertCol`
|
| |
|
|
|
|
|
| |
`GetConditionalFormats` (#1315)
Signed-off-by: chenliu1993 <13630583107@163.com>
|
|
|
|
|
|
| |
values (#1320)
Signed-off-by: cdenicola <cooper.denicola@instabase.com>
Co-authored-by: cdenicola <cooper.denicola@instabase.com>
|
|
|
|
|
| |
- Add new smooth field in chart format parameter, support specify if smooth line chart
- Fix decimal number format round issue with build-in number format
|
|
|
|
| |
- Update dependencies module
|
| |
|
|
|
|
| |
- Update unit tests for the delete comment
- Add 3 errors function for error messages
|
|
|
| |
- Update unit test and comment for the functions
|
|
|
|
|
|
| |
Sheet
- Format code with `gofmt`
|
|
|
|
|
|
| |
- Add supported options in the docs of the functions `SetSheetPrOptions` and `GetSheetPrOptions`
- Add go1.19 unit test settings, and made the test case compatible with go1.19
- Update dependencies module
|
|
|
|
| |
- Support get rows properties by `GetRowOpts` function
- New exported constant `MaxCellStyles`
|
|
|
| |
By load only once for existing comment shapes, improving performance for adding comments in the worksheet
|
|
|
|
| |
Using `ColorMappingType` color transformation types enumeration for tab color index, ref #1285
|
|
|
| |
Co-authored-by: Thomas Charbonnel <github@charbonnel.email>
|
| |
|
|
|
|
|
| |
This commit renames `TabColor` into `TabColorRGB` (but keeps an alias for backwards compatibility), as well as adds support for more tab color options (Theme, Indexed and Tint).
Signed-off-by: Thomas Charbonnel <github@charbonnel.email>
|
|
|
|
|
|
| |
- Using sheet ID instead of sheet index when delete the cell in calculation chain
- Update documentation for exported functions
- Using `sheet` represent the sheet name in the function parameters
|
| |
|
|
|
|
|
| |
- Remove shared formula subsequent cell when setting the cell values
- Support adjust table range when removing and inserting column/row
|
|
|
|
|
| |
constant `MinColumns` (#1272)
Signed-off-by: Benjamin Lösch <loesch.benny92@gmx.de>
|
|
|
|
|
|
| |
- Fix the panic when set or get sheet view options on the sheet without views options
- Fix generated workbook corruption caused by empty created or modified dcterms in the document core properties
- Update the unit tests
|
|
|
|
|
| |
- Add export option `MaxCalcIterations` for specifies the maximum iterations for iterative calculation
- Update unit test for the database formula functions
|
|
|
|
|
| |
worksheet name
Co-authored-by: xiangyz <xiangyz@dustess.com>
|
| |
|
| |
|
| |
|
|
|
| |
Remove inline rich text when setting cell value and cell formulas
|
| |
|
| |
|
|
|
|
|
|
| |
- ref #65, new formula functions: DCOUNT and DCOUNTA
- support percentile symbol in condition criteria expression
- this update dependencies module
|
| |
|
| |
|
| |
|