123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875 |
- package excelize
- import (
- "encoding/xml"
- "sync"
- )
- type xlsxWorksheet struct {
- sync.Mutex
- XMLName xml.Name `xml:"http://schemas.openxmlformats.org/spreadsheetml/2006/main worksheet"`
- SheetPr *xlsxSheetPr `xml:"sheetPr"`
- Dimension *xlsxDimension `xml:"dimension"`
- SheetViews *xlsxSheetViews `xml:"sheetViews"`
- SheetFormatPr *xlsxSheetFormatPr `xml:"sheetFormatPr"`
- Cols *xlsxCols `xml:"cols"`
- SheetData xlsxSheetData `xml:"sheetData"`
- SheetCalcPr *xlsxInnerXML `xml:"sheetCalcPr"`
- SheetProtection *xlsxSheetProtection `xml:"sheetProtection"`
- ProtectedRanges *xlsxInnerXML `xml:"protectedRanges"`
- Scenarios *xlsxInnerXML `xml:"scenarios"`
- AutoFilter *xlsxAutoFilter `xml:"autoFilter"`
- SortState *xlsxSortState `xml:"sortState"`
- DataConsolidate *xlsxInnerXML `xml:"dataConsolidate"`
- CustomSheetViews *xlsxCustomSheetViews `xml:"customSheetViews"`
- MergeCells *xlsxMergeCells `xml:"mergeCells"`
- PhoneticPr *xlsxPhoneticPr `xml:"phoneticPr"`
- ConditionalFormatting []*xlsxConditionalFormatting `xml:"conditionalFormatting"`
- DataValidations *xlsxDataValidations `xml:"dataValidations"`
- Hyperlinks *xlsxHyperlinks `xml:"hyperlinks"`
- PrintOptions *xlsxPrintOptions `xml:"printOptions"`
- PageMargins *xlsxPageMargins `xml:"pageMargins"`
- PageSetUp *xlsxPageSetUp `xml:"pageSetup"`
- HeaderFooter *xlsxHeaderFooter `xml:"headerFooter"`
- RowBreaks *xlsxBreaks `xml:"rowBreaks"`
- ColBreaks *xlsxBreaks `xml:"colBreaks"`
- CustomProperties *xlsxInnerXML `xml:"customProperties"`
- CellWatches *xlsxInnerXML `xml:"cellWatches"`
- IgnoredErrors *xlsxInnerXML `xml:"ignoredErrors"`
- SmartTags *xlsxInnerXML `xml:"smartTags"`
- Drawing *xlsxDrawing `xml:"drawing"`
- LegacyDrawing *xlsxLegacyDrawing `xml:"legacyDrawing"`
- LegacyDrawingHF *xlsxLegacyDrawingHF `xml:"legacyDrawingHF"`
- DrawingHF *xlsxDrawingHF `xml:"drawingHF"`
- Picture *xlsxPicture `xml:"picture"`
- OleObjects *xlsxInnerXML `xml:"oleObjects"`
- Controls *xlsxInnerXML `xml:"controls"`
- WebPublishItems *xlsxInnerXML `xml:"webPublishItems"`
- TableParts *xlsxTableParts `xml:"tableParts"`
- ExtLst *xlsxExtLst `xml:"extLst"`
- }
- type xlsxDrawing struct {
- XMLName xml.Name `xml:"drawing"`
- RID string `xml:"http://schemas.openxmlformats.org/officeDocument/2006/relationships id,attr,omitempty"`
- }
- type xlsxHeaderFooter struct {
- XMLName xml.Name `xml:"headerFooter"`
- AlignWithMargins bool `xml:"alignWithMargins,attr,omitempty"`
- DifferentFirst bool `xml:"differentFirst,attr,omitempty"`
- DifferentOddEven bool `xml:"differentOddEven,attr,omitempty"`
- ScaleWithDoc bool `xml:"scaleWithDoc,attr,omitempty"`
- OddHeader string `xml:"oddHeader,omitempty"`
- OddFooter string `xml:"oddFooter,omitempty"`
- EvenHeader string `xml:"evenHeader,omitempty"`
- EvenFooter string `xml:"evenFooter,omitempty"`
- FirstFooter string `xml:"firstFooter,omitempty"`
- FirstHeader string `xml:"firstHeader,omitempty"`
- DrawingHF *xlsxDrawingHF `xml:"drawingHF"`
- }
- type xlsxDrawingHF struct {
- Content string `xml:",innerxml"`
- }
- type xlsxPageSetUp struct {
- XMLName xml.Name `xml:"pageSetup"`
- BlackAndWhite bool `xml:"blackAndWhite,attr,omitempty"`
- CellComments string `xml:"cellComments,attr,omitempty"`
- Copies int `xml:"copies,attr,omitempty"`
- Draft bool `xml:"draft,attr,omitempty"`
- Errors string `xml:"errors,attr,omitempty"`
- FirstPageNumber string `xml:"firstPageNumber,attr,omitempty"`
- FitToHeight int `xml:"fitToHeight,attr,omitempty"`
- FitToWidth int `xml:"fitToWidth,attr,omitempty"`
- HorizontalDPI int `xml:"horizontalDpi,attr,omitempty"`
- RID string `xml:"http://schemas.openxmlformats.org/officeDocument/2006/relationships id,attr,omitempty"`
- Orientation string `xml:"orientation,attr,omitempty"`
- PageOrder string `xml:"pageOrder,attr,omitempty"`
- PaperHeight string `xml:"paperHeight,attr,omitempty"`
- PaperSize int `xml:"paperSize,attr,omitempty"`
- PaperWidth string `xml:"paperWidth,attr,omitempty"`
- Scale int `xml:"scale,attr,omitempty"`
- UseFirstPageNumber bool `xml:"useFirstPageNumber,attr,omitempty"`
- UsePrinterDefaults bool `xml:"usePrinterDefaults,attr,omitempty"`
- VerticalDPI int `xml:"verticalDpi,attr,omitempty"`
- }
- type xlsxPrintOptions struct {
- XMLName xml.Name `xml:"printOptions"`
- GridLines bool `xml:"gridLines,attr,omitempty"`
- GridLinesSet bool `xml:"gridLinesSet,attr,omitempty"`
- Headings bool `xml:"headings,attr,omitempty"`
- HorizontalCentered bool `xml:"horizontalCentered,attr,omitempty"`
- VerticalCentered bool `xml:"verticalCentered,attr,omitempty"`
- }
- type xlsxPageMargins struct {
- XMLName xml.Name `xml:"pageMargins"`
- Bottom float64 `xml:"bottom,attr"`
- Footer float64 `xml:"footer,attr"`
- Header float64 `xml:"header,attr"`
- Left float64 `xml:"left,attr"`
- Right float64 `xml:"right,attr"`
- Top float64 `xml:"top,attr"`
- }
- type xlsxSheetFormatPr struct {
- XMLName xml.Name `xml:"sheetFormatPr"`
- BaseColWidth uint8 `xml:"baseColWidth,attr,omitempty"`
- DefaultColWidth float64 `xml:"defaultColWidth,attr,omitempty"`
- DefaultRowHeight float64 `xml:"defaultRowHeight,attr"`
- CustomHeight bool `xml:"customHeight,attr,omitempty"`
- ZeroHeight bool `xml:"zeroHeight,attr,omitempty"`
- ThickTop bool `xml:"thickTop,attr,omitempty"`
- ThickBottom bool `xml:"thickBottom,attr,omitempty"`
- OutlineLevelRow uint8 `xml:"outlineLevelRow,attr,omitempty"`
- OutlineLevelCol uint8 `xml:"outlineLevelCol,attr,omitempty"`
- }
- type xlsxSheetViews struct {
- XMLName xml.Name `xml:"sheetViews"`
- SheetView []xlsxSheetView `xml:"sheetView"`
- }
- type xlsxSheetView struct {
- WindowProtection bool `xml:"windowProtection,attr,omitempty"`
- ShowFormulas bool `xml:"showFormulas,attr,omitempty"`
- ShowGridLines *bool `xml:"showGridLines,attr"`
- ShowRowColHeaders *bool `xml:"showRowColHeaders,attr"`
- ShowZeros *bool `xml:"showZeros,attr,omitempty"`
- RightToLeft bool `xml:"rightToLeft,attr,omitempty"`
- TabSelected bool `xml:"tabSelected,attr,omitempty"`
- ShowWhiteSpace *bool `xml:"showWhiteSpace,attr"`
- ShowOutlineSymbols bool `xml:"showOutlineSymbols,attr,omitempty"`
- DefaultGridColor *bool `xml:"defaultGridColor,attr"`
- View string `xml:"view,attr,omitempty"`
- TopLeftCell string `xml:"topLeftCell,attr,omitempty"`
- ColorID int `xml:"colorId,attr,omitempty"`
- ZoomScale float64 `xml:"zoomScale,attr,omitempty"`
- ZoomScaleNormal float64 `xml:"zoomScaleNormal,attr,omitempty"`
- ZoomScalePageLayoutView float64 `xml:"zoomScalePageLayoutView,attr,omitempty"`
- ZoomScaleSheetLayoutView float64 `xml:"zoomScaleSheetLayoutView,attr,omitempty"`
- WorkbookViewID int `xml:"workbookViewId,attr"`
- Pane *xlsxPane `xml:"pane,omitempty"`
- Selection []*xlsxSelection `xml:"selection"`
- }
- type xlsxSelection struct {
- ActiveCell string `xml:"activeCell,attr,omitempty"`
- ActiveCellID *int `xml:"activeCellId,attr"`
- Pane string `xml:"pane,attr,omitempty"`
- SQRef string `xml:"sqref,attr,omitempty"`
- }
- type xlsxPane struct {
- ActivePane string `xml:"activePane,attr,omitempty"`
- State string `xml:"state,attr,omitempty"`
- TopLeftCell string `xml:"topLeftCell,attr,omitempty"`
- XSplit float64 `xml:"xSplit,attr,omitempty"`
- YSplit float64 `xml:"ySplit,attr,omitempty"`
- }
- type xlsxSheetPr struct {
- XMLName xml.Name `xml:"sheetPr"`
- SyncHorizontal bool `xml:"syncHorizontal,attr,omitempty"`
- SyncVertical bool `xml:"syncVertical,attr,omitempty"`
- SyncRef string `xml:"syncRef,attr,omitempty"`
- TransitionEvaluation bool `xml:"transitionEvaluation,attr,omitempty"`
- TransitionEntry bool `xml:"transitionEntry,attr,omitempty"`
- Published *bool `xml:"published,attr"`
- CodeName string `xml:"codeName,attr,omitempty"`
- FilterMode bool `xml:"filterMode,attr,omitempty"`
- EnableFormatConditionsCalculation *bool `xml:"enableFormatConditionsCalculation,attr"`
- TabColor *xlsxTabColor `xml:"tabColor,omitempty"`
- OutlinePr *xlsxOutlinePr `xml:"outlinePr,omitempty"`
- PageSetUpPr *xlsxPageSetUpPr `xml:"pageSetUpPr,omitempty"`
- }
- type xlsxOutlinePr struct {
- ApplyStyles *bool `xml:"applyStyles,attr"`
- SummaryBelow bool `xml:"summaryBelow,attr"`
- SummaryRight bool `xml:"summaryRight,attr"`
- ShowOutlineSymbols bool `xml:"showOutlineSymbols,attr"`
- }
- type xlsxPageSetUpPr struct {
- AutoPageBreaks bool `xml:"autoPageBreaks,attr,omitempty"`
- FitToPage bool `xml:"fitToPage,attr,omitempty"`
- }
- type xlsxTabColor struct {
- Auto bool `xml:"auto,attr,omitempty"`
- Indexed int `xml:"indexed,attr,omitempty"`
- RGB string `xml:"rgb,attr,omitempty"`
- Theme int `xml:"theme,attr,omitempty"`
- Tint float64 `xml:"tint,attr,omitempty"`
- }
- type xlsxCols struct {
- XMLName xml.Name `xml:"cols"`
- Col []xlsxCol `xml:"col"`
- }
- type xlsxCol struct {
- BestFit bool `xml:"bestFit,attr,omitempty"`
- Collapsed bool `xml:"collapsed,attr,omitempty"`
- CustomWidth bool `xml:"customWidth,attr,omitempty"`
- Hidden bool `xml:"hidden,attr,omitempty"`
- Max int `xml:"max,attr"`
- Min int `xml:"min,attr"`
- OutlineLevel uint8 `xml:"outlineLevel,attr,omitempty"`
- Phonetic bool `xml:"phonetic,attr,omitempty"`
- Style int `xml:"style,attr,omitempty"`
- Width float64 `xml:"width,attr,omitempty"`
- }
- type xlsxDimension struct {
- XMLName xml.Name `xml:"dimension"`
- Ref string `xml:"ref,attr"`
- }
- type xlsxSheetData struct {
- XMLName xml.Name `xml:"sheetData"`
- Row []xlsxRow `xml:"row"`
- }
- type xlsxRow struct {
- C []xlsxC `xml:"c"`
- R int `xml:"r,attr,omitempty"`
- Spans string `xml:"spans,attr,omitempty"`
- S int `xml:"s,attr,omitempty"`
- CustomFormat bool `xml:"customFormat,attr,omitempty"`
- Ht float64 `xml:"ht,attr,omitempty"`
- Hidden bool `xml:"hidden,attr,omitempty"`
- CustomHeight bool `xml:"customHeight,attr,omitempty"`
- OutlineLevel uint8 `xml:"outlineLevel,attr,omitempty"`
- Collapsed bool `xml:"collapsed,attr,omitempty"`
- ThickTop bool `xml:"thickTop,attr,omitempty"`
- ThickBot bool `xml:"thickBot,attr,omitempty"`
- Ph bool `xml:"ph,attr,omitempty"`
- }
- type xlsxSortState struct {
- ColumnSort bool `xml:"columnSort,attr,omitempty"`
- CaseSensitive bool `xml:"caseSensitive,attr,omitempty"`
- SortMethod string `xml:"sortMethod,attr,omitempty"`
- Ref string `xml:"ref,attr"`
- Content string `xml:",innerxml"`
- }
- type xlsxCustomSheetViews struct {
- XMLName xml.Name `xml:"customSheetViews"`
- CustomSheetView []*xlsxCustomSheetView `xml:"customSheetView"`
- }
- type xlsxBrk struct {
- ID int `xml:"id,attr,omitempty"`
- Min int `xml:"min,attr,omitempty"`
- Max int `xml:"max,attr,omitempty"`
- Man bool `xml:"man,attr,omitempty"`
- Pt bool `xml:"pt,attr,omitempty"`
- }
- type xlsxBreaks struct {
- Brk []*xlsxBrk `xml:"brk"`
- Count int `xml:"count,attr,omitempty"`
- ManualBreakCount int `xml:"manualBreakCount,attr,omitempty"`
- }
- type xlsxCustomSheetView struct {
- Pane *xlsxPane `xml:"pane"`
- Selection *xlsxSelection `xml:"selection"`
- RowBreaks *xlsxBreaks `xml:"rowBreaks"`
- ColBreaks *xlsxBreaks `xml:"colBreaks"`
- PageMargins *xlsxPageMargins `xml:"pageMargins"`
- PrintOptions *xlsxPrintOptions `xml:"printOptions"`
- PageSetup *xlsxPageSetUp `xml:"pageSetup"`
- HeaderFooter *xlsxHeaderFooter `xml:"headerFooter"`
- AutoFilter *xlsxAutoFilter `xml:"autoFilter"`
- ExtLst *xlsxExtLst `xml:"extLst"`
- GUID string `xml:"guid,attr"`
- Scale int `xml:"scale,attr,omitempty"`
- ColorID int `xml:"colorId,attr,omitempty"`
- ShowPageBreaks bool `xml:"showPageBreaks,attr,omitempty"`
- ShowFormulas bool `xml:"showFormulas,attr,omitempty"`
- ShowGridLines bool `xml:"showGridLines,attr,omitempty"`
- ShowRowCol bool `xml:"showRowCol,attr,omitempty"`
- OutlineSymbols bool `xml:"outlineSymbols,attr,omitempty"`
- ZeroValues bool `xml:"zeroValues,attr,omitempty"`
- FitToPage bool `xml:"fitToPage,attr,omitempty"`
- PrintArea bool `xml:"printArea,attr,omitempty"`
- Filter bool `xml:"filter,attr,omitempty"`
- ShowAutoFilter bool `xml:"showAutoFilter,attr,omitempty"`
- HiddenRows bool `xml:"hiddenRows,attr,omitempty"`
- HiddenColumns bool `xml:"hiddenColumns,attr,omitempty"`
- State string `xml:"state,attr,omitempty"`
- FilterUnique bool `xml:"filterUnique,attr,omitempty"`
- View string `xml:"view,attr,omitempty"`
- ShowRuler bool `xml:"showRuler,attr,omitempty"`
- TopLeftCell string `xml:"topLeftCell,attr,omitempty"`
- }
- type xlsxMergeCell struct {
- Ref string `xml:"ref,attr,omitempty"`
- }
- type xlsxMergeCells struct {
- XMLName xml.Name `xml:"mergeCells"`
- Count int `xml:"count,attr,omitempty"`
- Cells []*xlsxMergeCell `xml:"mergeCell,omitempty"`
- }
- type xlsxDataValidations struct {
- XMLName xml.Name `xml:"dataValidations"`
- Count int `xml:"count,attr,omitempty"`
- DisablePrompts bool `xml:"disablePrompts,attr,omitempty"`
- XWindow int `xml:"xWindow,attr,omitempty"`
- YWindow int `xml:"yWindow,attr,omitempty"`
- DataValidation []*DataValidation `xml:"dataValidation"`
- }
- type DataValidation struct {
- AllowBlank bool `xml:"allowBlank,attr"`
- Error *string `xml:"error,attr"`
- ErrorStyle *string `xml:"errorStyle,attr"`
- ErrorTitle *string `xml:"errorTitle,attr"`
- Operator string `xml:"operator,attr,omitempty"`
- Prompt *string `xml:"prompt,attr"`
- PromptTitle *string `xml:"promptTitle,attr"`
- ShowDropDown bool `xml:"showDropDown,attr,omitempty"`
- ShowErrorMessage bool `xml:"showErrorMessage,attr,omitempty"`
- ShowInputMessage bool `xml:"showInputMessage,attr,omitempty"`
- Sqref string `xml:"sqref,attr"`
- Type string `xml:"type,attr,omitempty"`
- Formula1 string `xml:",innerxml"`
- Formula2 string `xml:",innerxml"`
- }
- type xlsxC struct {
- XMLName xml.Name `xml:"c"`
- XMLSpace xml.Attr `xml:"space,attr,omitempty"`
- R string `xml:"r,attr,omitempty"`
- S int `xml:"s,attr,omitempty"`
-
- T string `xml:"t,attr,omitempty"`
- F *xlsxF `xml:"f,omitempty"`
- V string `xml:"v,omitempty"`
- IS *xlsxSI `xml:"is"`
- }
- func (c *xlsxC) hasValue() bool {
- return c.S != 0 || c.V != "" || c.F != nil || c.T != ""
- }
- type xlsxF struct {
- Content string `xml:",chardata"`
- T string `xml:"t,attr,omitempty"`
- Ref string `xml:"ref,attr,omitempty"`
- Si string `xml:"si,attr,omitempty"`
- }
- type xlsxSheetProtection struct {
- XMLName xml.Name `xml:"sheetProtection"`
- AlgorithmName string `xml:"algorithmName,attr,omitempty"`
- Password string `xml:"password,attr,omitempty"`
- HashValue string `xml:"hashValue,attr,omitempty"`
- SaltValue string `xml:"saltValue,attr,omitempty"`
- SpinCount int `xml:"spinCount,attr,omitempty"`
- Sheet bool `xml:"sheet,attr"`
- Objects bool `xml:"objects,attr"`
- Scenarios bool `xml:"scenarios,attr"`
- FormatCells bool `xml:"formatCells,attr"`
- FormatColumns bool `xml:"formatColumns,attr"`
- FormatRows bool `xml:"formatRows,attr"`
- InsertColumns bool `xml:"insertColumns,attr"`
- InsertRows bool `xml:"insertRows,attr"`
- InsertHyperlinks bool `xml:"insertHyperlinks,attr"`
- DeleteColumns bool `xml:"deleteColumns,attr"`
- DeleteRows bool `xml:"deleteRows,attr"`
- SelectLockedCells bool `xml:"selectLockedCells,attr"`
- Sort bool `xml:"sort,attr"`
- AutoFilter bool `xml:"autoFilter,attr"`
- PivotTables bool `xml:"pivotTables,attr"`
- SelectUnlockedCells bool `xml:"selectUnlockedCells,attr"`
- }
- type xlsxPhoneticPr struct {
- XMLName xml.Name `xml:"phoneticPr"`
- Alignment string `xml:"alignment,attr,omitempty"`
- FontID *int `xml:"fontId,attr"`
- Type string `xml:"type,attr,omitempty"`
- }
- type xlsxConditionalFormatting struct {
- XMLName xml.Name `xml:"conditionalFormatting"`
- Pivot bool `xml:"pivot,attr,omitempty"`
- SQRef string `xml:"sqref,attr,omitempty"`
- CfRule []*xlsxCfRule `xml:"cfRule"`
- }
- type xlsxCfRule struct {
- Type string `xml:"type,attr,omitempty"`
- DxfID *int `xml:"dxfId,attr"`
- Priority int `xml:"priority,attr,omitempty"`
- StopIfTrue bool `xml:"stopIfTrue,attr,omitempty"`
- AboveAverage *bool `xml:"aboveAverage,attr"`
- Percent bool `xml:"percent,attr,omitempty"`
- Bottom bool `xml:"bottom,attr,omitempty"`
- Operator string `xml:"operator,attr,omitempty"`
- Text string `xml:"text,attr,omitempty"`
- TimePeriod string `xml:"timePeriod,attr,omitempty"`
- Rank int `xml:"rank,attr,omitempty"`
- StdDev int `xml:"stdDev,attr,omitempty"`
- EqualAverage bool `xml:"equalAverage,attr,omitempty"`
- Formula []string `xml:"formula,omitempty"`
- ColorScale *xlsxColorScale `xml:"colorScale"`
- DataBar *xlsxDataBar `xml:"dataBar"`
- IconSet *xlsxIconSet `xml:"iconSet"`
- ExtLst *xlsxExtLst `xml:"extLst"`
- }
- type xlsxColorScale struct {
- Cfvo []*xlsxCfvo `xml:"cfvo"`
- Color []*xlsxColor `xml:"color"`
- }
- type xlsxDataBar struct {
- MaxLength int `xml:"maxLength,attr,omitempty"`
- MinLength int `xml:"minLength,attr,omitempty"`
- ShowValue bool `xml:"showValue,attr,omitempty"`
- Cfvo []*xlsxCfvo `xml:"cfvo"`
- Color []*xlsxColor `xml:"color"`
- }
- type xlsxIconSet struct {
- Cfvo []*xlsxCfvo `xml:"cfvo"`
- IconSet string `xml:"iconSet,attr,omitempty"`
- ShowValue bool `xml:"showValue,attr,omitempty"`
- Percent bool `xml:"percent,attr,omitempty"`
- Reverse bool `xml:"reverse,attr,omitempty"`
- }
- type xlsxCfvo struct {
- Gte bool `xml:"gte,attr,omitempty"`
- Type string `xml:"type,attr,omitempty"`
- Val string `xml:"val,attr,omitempty"`
- ExtLst *xlsxExtLst `xml:"extLst"`
- }
- type xlsxHyperlinks struct {
- XMLName xml.Name `xml:"hyperlinks"`
- Hyperlink []xlsxHyperlink `xml:"hyperlink"`
- }
- type xlsxHyperlink struct {
- Ref string `xml:"ref,attr"`
- Location string `xml:"location,attr,omitempty"`
- Display string `xml:"display,attr,omitempty"`
- Tooltip string `xml:"tooltip,attr,omitempty"`
- RID string `xml:"http://schemas.openxmlformats.org/officeDocument/2006/relationships id,attr,omitempty"`
- }
- type xlsxTableParts struct {
- XMLName xml.Name `xml:"tableParts"`
- Count int `xml:"count,attr,omitempty"`
- TableParts []*xlsxTablePart `xml:"tablePart"`
- }
- type xlsxTablePart struct {
- RID string `xml:"http://schemas.openxmlformats.org/officeDocument/2006/relationships id,attr,omitempty"`
- }
- type xlsxPicture struct {
- XMLName xml.Name `xml:"picture"`
- RID string `xml:"http://schemas.openxmlformats.org/officeDocument/2006/relationships id,attr,omitempty"`
- }
- type xlsxLegacyDrawing struct {
- XMLName xml.Name `xml:"legacyDrawing"`
- RID string `xml:"http://schemas.openxmlformats.org/officeDocument/2006/relationships id,attr,omitempty"`
- }
- type xlsxLegacyDrawingHF struct {
- XMLName xml.Name `xml:"legacyDrawingHF"`
- RID string `xml:"http://schemas.openxmlformats.org/officeDocument/2006/relationships id,attr,omitempty"`
- }
- type xlsxInnerXML struct {
- Content string `xml:",innerxml"`
- }
- type xlsxWorksheetExt struct {
- XMLName xml.Name `xml:"ext"`
- URI string `xml:"uri,attr"`
- Content string `xml:",innerxml"`
- }
- type decodeWorksheetExt struct {
- XMLName xml.Name `xml:"extLst"`
- Ext []*xlsxWorksheetExt `xml:"ext"`
- }
- type decodeX14SparklineGroups struct {
- XMLName xml.Name `xml:"sparklineGroups"`
- XMLNSXM string `xml:"xmlns:xm,attr"`
- Content string `xml:",innerxml"`
- }
- type xlsxX14SparklineGroups struct {
- XMLName xml.Name `xml:"x14:sparklineGroups"`
- XMLNSXM string `xml:"xmlns:xm,attr"`
- SparklineGroups []*xlsxX14SparklineGroup `xml:"x14:sparklineGroup"`
- Content string `xml:",innerxml"`
- }
- type xlsxX14SparklineGroup struct {
- XMLName xml.Name `xml:"x14:sparklineGroup"`
- ManualMax int `xml:"manualMax,attr,omitempty"`
- ManualMin int `xml:"manualMin,attr,omitempty"`
- LineWeight float64 `xml:"lineWeight,attr,omitempty"`
- Type string `xml:"type,attr,omitempty"`
- DateAxis bool `xml:"dateAxis,attr,omitempty"`
- DisplayEmptyCellsAs string `xml:"displayEmptyCellsAs,attr,omitempty"`
- Markers bool `xml:"markers,attr,omitempty"`
- High bool `xml:"high,attr,omitempty"`
- Low bool `xml:"low,attr,omitempty"`
- First bool `xml:"first,attr,omitempty"`
- Last bool `xml:"last,attr,omitempty"`
- Negative bool `xml:"negative,attr,omitempty"`
- DisplayXAxis bool `xml:"displayXAxis,attr,omitempty"`
- DisplayHidden bool `xml:"displayHidden,attr,omitempty"`
- MinAxisType string `xml:"minAxisType,attr,omitempty"`
- MaxAxisType string `xml:"maxAxisType,attr,omitempty"`
- RightToLeft bool `xml:"rightToLeft,attr,omitempty"`
- ColorSeries *xlsxTabColor `xml:"x14:colorSeries"`
- ColorNegative *xlsxTabColor `xml:"x14:colorNegative"`
- ColorAxis *xlsxColor `xml:"x14:colorAxis"`
- ColorMarkers *xlsxTabColor `xml:"x14:colorMarkers"`
- ColorFirst *xlsxTabColor `xml:"x14:colorFirst"`
- ColorLast *xlsxTabColor `xml:"x14:colorLast"`
- ColorHigh *xlsxTabColor `xml:"x14:colorHigh"`
- ColorLow *xlsxTabColor `xml:"x14:colorLow"`
- Sparklines xlsxX14Sparklines `xml:"x14:sparklines"`
- }
- type xlsxX14Sparklines struct {
- Sparkline []*xlsxX14Sparkline `xml:"x14:sparkline"`
- }
- type xlsxX14Sparkline struct {
- F string `xml:"xm:f"`
- Sqref string `xml:"xm:sqref"`
- }
- type SparklineOption struct {
- Location []string
- Range []string
- Max int
- CustMax int
- Min int
- CustMin int
- Type string
- Weight float64
- DateAxis bool
- Markers bool
- High bool
- Low bool
- First bool
- Last bool
- Negative bool
- Axis bool
- Hidden bool
- Reverse bool
- Style int
- SeriesColor string
- NegativeColor string
- MarkersColor string
- FirstColor string
- LastColor string
- HightColor string
- LowColor string
- EmptyCells string
- }
- type formatPanes struct {
- Freeze bool `json:"freeze"`
- Split bool `json:"split"`
- XSplit int `json:"x_split"`
- YSplit int `json:"y_split"`
- TopLeftCell string `json:"top_left_cell"`
- ActivePane string `json:"active_pane"`
- Panes []struct {
- SQRef string `json:"sqref"`
- ActiveCell string `json:"active_cell"`
- Pane string `json:"pane"`
- } `json:"panes"`
- }
- type formatConditional struct {
- Type string `json:"type"`
- AboveAverage bool `json:"above_average"`
- Percent bool `json:"percent"`
- Format int `json:"format"`
- Criteria string `json:"criteria"`
- Value string `json:"value,omitempty"`
- Minimum string `json:"minimum,omitempty"`
- Maximum string `json:"maximum,omitempty"`
- MinType string `json:"min_type,omitempty"`
- MidType string `json:"mid_type,omitempty"`
- MaxType string `json:"max_type,omitempty"`
- MinValue string `json:"min_value,omitempty"`
- MidValue string `json:"mid_value,omitempty"`
- MaxValue string `json:"max_value,omitempty"`
- MinColor string `json:"min_color,omitempty"`
- MidColor string `json:"mid_color,omitempty"`
- MaxColor string `json:"max_color,omitempty"`
- MinLength string `json:"min_length,omitempty"`
- MaxLength string `json:"max_length,omitempty"`
- MultiRange string `json:"multi_range,omitempty"`
- BarColor string `json:"bar_color,omitempty"`
- }
- type FormatSheetProtection struct {
- AutoFilter bool
- DeleteColumns bool
- DeleteRows bool
- EditObjects bool
- EditScenarios bool
- FormatCells bool
- FormatColumns bool
- FormatRows bool
- InsertColumns bool
- InsertHyperlinks bool
- InsertRows bool
- Password string
- PivotTables bool
- SelectLockedCells bool
- SelectUnlockedCells bool
- Sort bool
- }
- type FormatHeaderFooter struct {
- AlignWithMargins bool
- DifferentFirst bool
- DifferentOddEven bool
- ScaleWithDoc bool
- OddHeader string
- OddFooter string
- EvenHeader string
- EvenFooter string
- FirstFooter string
- FirstHeader string
- }
- type FormatPageMargins struct {
- Bottom string
- Footer string
- Header string
- Left string
- Right string
- Top string
- }
|