File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,11 @@ type (
59
59
// when the flag is true. (Default setting is true.)
60
60
ShowZeros bool
61
61
62
+ // View is a SheetViewOption. It specifies a flag indicating
63
+ // how sheet is displayed, by default it uses empty string
64
+ // avl options: pageLayout, pageBreakPreview
65
+ View string
66
+
62
67
/* TODO
63
68
// ShowWhiteSpace is a SheetViewOption. It specifies a flag indicating
64
69
// whether page layout view shall display margins. False means do not display
@@ -80,6 +85,14 @@ func (o *TopLeftCell) getSheetViewOption(view *xlsxSheetView) {
80
85
* o = TopLeftCell (string (view .TopLeftCell ))
81
86
}
82
87
88
+ func (o View ) setSheetViewOption (view * xlsxSheetView ) {
89
+ view .View = string (o )
90
+ }
91
+
92
+ func (o * View ) getSheetViewOption (view * xlsxSheetView ) {
93
+ * o = View (string (view .View ))
94
+ }
95
+
83
96
func (o DefaultGridColor ) setSheetViewOption (view * xlsxSheetView ) {
84
97
view .DefaultGridColor = boolPtr (bool (o ))
85
98
}
You can’t perform that action at this time.
0 commit comments