1. 12 10月, 2022 1 次提交
  2. 11 10月, 2022 1 次提交
  3. 10 10月, 2022 1 次提交
  4. 08 10月, 2022 1 次提交
  5. 07 10月, 2022 1 次提交
  6. 29 9月, 2022 1 次提交
    • xurime's avatar
      This closes #1358, made a refactor with breaking changes, see details: · 53a49556
      xurime 提交于
      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
      53a49556
  7. 28 9月, 2022 1 次提交
    • xurime's avatar
      This closes #1360, closes #1361 · efcf599d
      xurime 提交于
      - 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
      efcf599d
  8. 23 9月, 2022 1 次提交
  9. 21 9月, 2022 1 次提交
  10. 18 9月, 2022 1 次提交
  11. 14 9月, 2022 1 次提交
  12. 11 9月, 2022 1 次提交
  13. 10 9月, 2022 1 次提交
  14. 08 9月, 2022 1 次提交
  15. 07 9月, 2022 1 次提交
  16. 06 9月, 2022 1 次提交
  17. 03 9月, 2022 1 次提交
  18. 01 9月, 2022 1 次提交
  19. 31 8月, 2022 1 次提交
  20. 28 8月, 2022 1 次提交
  21. 27 8月, 2022 1 次提交
  22. 25 8月, 2022 1 次提交
  23. 24 8月, 2022 1 次提交
    • xurime's avatar
      This closes #1290 and closes #1328 · cb8bca0e
      xurime 提交于
      - 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
      cb8bca0e
  24. 21 8月, 2022 1 次提交
  25. 20 8月, 2022 1 次提交
  26. 19 8月, 2022 1 次提交
  27. 17 8月, 2022 1 次提交
  28. 13 8月, 2022 1 次提交
  29. 12 8月, 2022 1 次提交
    • xurime's avatar
      This closes #1312, #1313, fix number format issue · 8152bbb2
      xurime 提交于
      - 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
      8152bbb2
  30. 11 8月, 2022 1 次提交
  31. 10 8月, 2022 1 次提交
  32. 06 8月, 2022 1 次提交
  33. 04 8月, 2022 1 次提交
  34. 03 8月, 2022 1 次提交
  35. 26 7月, 2022 1 次提交
  36. 18 7月, 2022 1 次提交
  37. 17 7月, 2022 1 次提交
  38. 16 7月, 2022 1 次提交
  39. 14 7月, 2022 2 次提交