ods

package module
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2024 License: MIT Imports: 8 Imported by: 0

README

go-ods

Overview

go-ods is a Go package designed to simplify reading and writing ODS (OpenDocument Spreadsheet) files. With this library, you can seamlessly work with ODS files in your Go applications, providing support for common spreadsheet operations.

Features

  • Read ODS Files: Easily parse and extract data from ODS files.
  • Write ODS Files: Update ODS files with new/updated data.
  • Cell Manipulation: Perform operations on individual cells, such as setting values, formatting, and more.
  • Sheet Handling: Manage multiple sheets within a single ODS file effortlessly.

Installation

To use this go-ods, install Go and run:

go get -u github.com/AlexJarrah/go-ods

Usage

package main

import "github.com/AlexJarrah/go-ods"

func main() {
	// Specify a filepath
	const path = "/home/user/Documents/example.ods"

	// Reading data from the file
	data, files, err := ods.Read(path)
	if err != nil {
		panic(err)
	}
	defer files.Close()

	// Uncompress cells to improve consistency
	data.Content = ods.Uncompress(data.Content, 20)

	// Updating content data in a specific sheet
	sheet := data.Content.Body.Spreadsheet.Table[1]
	sheet.TableRow[1].TableCell[0].P = "updated value"
	sheet.TableRow[2].TableCell[0].P = "updated value"
	sheet.TableRow[2].TableCell[3].P = "updated value"

	// Updating metadata
	data.Meta.Meta.DocumentStatistic.CellCount = "1000"

	// Writing new data to the file
	data.Content.Body.Spreadsheet.Table[1] = sheet
	if err := ods.Write(path, data, files); err != nil {
		panic(err)
	}
}

License

This project is licensed under the MIT License - see the LICENSE file for details.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(filepath string, ods ODS, files *zip.ReadCloser) error

Updates the specified ODS file with the provided content

Types

type AutomaticStyles added in v1.0.1

type AutomaticStyles struct {
	Text          string          `xml:",chardata" json:"text,omitempty"`
	Style         []Style         `xml:"style" json:"style,omitempty"`
	DateStyle     DateStyle       `xml:"date-style" json:"date-style,omitempty"`
	CurrencyStyle []CurrencyStyle `xml:"currency-style" json:"currency-style,omitempty"`
}

type Body added in v1.0.1

type Body struct {
	Text        string      `xml:",chardata" json:"text,omitempty"`
	Spreadsheet Spreadsheet `xml:"spreadsheet" json:"spreadsheet,omitempty"`
}

type CalculationSettings added in v1.0.1

type CalculationSettings struct {
	Text                  string    `xml:",chardata" json:"text,omitempty"`
	CaseSensitive         string    `xml:"case-sensitive,attr" json:"case-sensitive,omitempty"`
	AutomaticFindLabels   string    `xml:"automatic-find-labels,attr" json:"automatic-find-labels,omitempty"`
	UseRegularExpressions string    `xml:"use-regular-expressions,attr" json:"use-regular-expressions,omitempty"`
	UseWildcards          string    `xml:"use-wildcards,attr" json:"use-wildcards,omitempty"`
	Iteration             Iteration `xml:"iteration" json:"iteration,omitempty"`
}

type Content

type Content struct {
	XMLName         xml.Name        `xml:"document-content" json:"document-content,omitempty"`
	Text            string          `xml:",chardata" json:"text,omitempty"`
	Presentation    string          `xml:"presentation,attr" json:"presentation,omitempty"`
	Css3t           string          `xml:"css3t,attr" json:"css3t,omitempty"`
	Grddl           string          `xml:"grddl,attr" json:"grddl,omitempty"`
	Xhtml           string          `xml:"xhtml,attr" json:"xhtml,omitempty"`
	Xsi             string          `xml:"xsi,attr" json:"xsi,omitempty"`
	Xsd             string          `xml:"xsd,attr" json:"xsd,omitempty"`
	Xforms          string          `xml:"xforms,attr" json:"xforms,omitempty"`
	Dom             string          `xml:"dom,attr" json:"dom,omitempty"`
	Script          string          `xml:"script,attr" json:"script,omitempty"`
	Form            string          `xml:"form,attr" json:"form,omitempty"`
	Math            string          `xml:"math,attr" json:"math,omitempty"`
	Office          string          `xml:"office,attr" json:"office,omitempty"`
	Ooo             string          `xml:"ooo,attr" json:"ooo,omitempty"`
	Fo              string          `xml:"fo,attr" json:"fo,omitempty"`
	Ooow            string          `xml:"ooow,attr" json:"ooow,omitempty"`
	Xlink           string          `xml:"xlink,attr" json:"xlink,omitempty"`
	Drawooo         string          `xml:"drawooo,attr" json:"drawooo,omitempty"`
	Oooc            string          `xml:"oooc,attr" json:"oooc,omitempty"`
	Dc              string          `xml:"dc,attr" json:"dc,omitempty"`
	Calcext         string          `xml:"calcext,attr" json:"calcext,omitempty"`
	Style           string          `xml:"style,attr" json:"style,omitempty"`
	AttrText        string          `xml:"text,attr" json:"attrText,omitempty"`
	Of              string          `xml:"of,attr" json:"of,omitempty"`
	Tableooo        string          `xml:"tableooo,attr" json:"tableooo,omitempty"`
	Draw            string          `xml:"draw,attr" json:"draw,omitempty"`
	Dr3d            string          `xml:"dr3d,attr" json:"dr3d,omitempty"`
	Rpt             string          `xml:"rpt,attr" json:"rpt,omitempty"`
	Formx           string          `xml:"formx,attr" json:"formx,omitempty"`
	SVG             string          `xml:"svg,attr" json:"svg,omitempty"`
	Chart           string          `xml:"chart,attr" json:"chart,omitempty"`
	Table           string          `xml:"table,attr" json:"table,omitempty"`
	Meta            string          `xml:"meta,attr" json:"meta,omitempty"`
	Loext           string          `xml:"loext,attr" json:"loext,omitempty"`
	Number          string          `xml:"number,attr" json:"number,omitempty"`
	Field           string          `xml:"field,attr" json:"field,omitempty"`
	Version         string          `xml:"version,attr" json:"version,omitempty"`
	Scripts         string          `xml:"scripts" json:"scripts,omitempty"`
	FontFaceDecls   FontFaceDecls   `xml:"font-face-decls" json:"font-face-decls,omitempty"`
	AutomaticStyles AutomaticStyles `xml:"automatic-styles" json:"automatic-styles,omitempty"`
	Body            Body            `xml:"body" json:"body,omitempty"`
}

func Uncompress added in v1.0.2

func Uncompress(content Content, ignore int) Content

Reverses compression by permitting duplicate cells, preventing increments in NumberColumnsRepeated.

The ignore parameter sets a limit on repetitions to ignore if the number of repetitions exceeds this value. This helps prevent file corruption caused by adding excessive rows or columns and enhances performance. This value should be set to only what is needed and should generally stay below 100.

type CurrencyStyle added in v1.0.1

type CurrencyStyle struct {
	Chardata       string          `xml:",chardata" json:"chardata,omitempty"`
	Name           string          `xml:"name,attr" json:"name,omitempty"`
	Volatile       string          `xml:"volatile,attr" json:"volatile,omitempty"`
	Language       string          `xml:"language,attr" json:"language,omitempty"`
	Country        string          `xml:"country,attr" json:"country,omitempty"`
	CurrencySymbol CurrencySymbol  `xml:"currency-symbol" json:"currency-symbol,omitempty"`
	Number         Number          `xml:"number" json:"number,omitempty"`
	TextProperties TextProperties0 `xml:"text-properties" json:"text-properties,omitempty"`
	Text           string          `xml:"text" json:"text,omitempty"`
	Map            Map             `xml:"map" json:"map,omitempty"`
}

type CurrencyStyleMarshal added in v1.0.1

type CurrencyStyleMarshal struct {
	Chardata       string                 `xml:",chardata" json:"chardata,omitempty"`
	Name           string                 `xml:"number:name,attr" json:"name,omitempty"`
	Volatile       string                 `xml:"style:volatile,attr" json:"volatile,omitempty"`
	Language       string                 `xml:"number:language,attr" json:"language,omitempty"`
	Country        string                 `xml:"number:country,attr" json:"country,omitempty"`
	CurrencySymbol currencySymbolMarshal  `xml:"number:currency-symbol" json:"currency-symbol,omitempty"`
	Number         numberMarshal          `xml:"number:number" json:"number,omitempty"`
	TextProperties textProperties0Marshal `xml:"style:text-properties" json:"text-properties,omitempty"`
	Text           string                 `xml:"number:text" json:"text,omitempty"`
	Map            mapMarshal             `xml:"style:map" json:"map,omitempty"`
}

type CurrencySymbol added in v1.0.1

type CurrencySymbol struct {
	Text     string `xml:",chardata" json:"text,omitempty"`
	Language string `xml:"language,attr" json:"language,omitempty"`
	Country  string `xml:"country,attr" json:"country,omitempty"`
}

type DateStyle added in v1.0.1

type DateStyle struct {
	Chardata       string   `xml:",chardata" json:"chardata,omitempty"`
	Name           string   `xml:"name,attr" json:"name,omitempty"`
	AutomaticOrder string   `xml:"automatic-order,attr" json:"automatic-order,omitempty"`
	Month          Month    `xml:"month" json:"month,omitempty"`
	Text           []string `xml:"text" json:"text,omitempty"`
	Day            Day      `xml:"day" json:"day,omitempty"`
	Year           string   `xml:"year" json:"year,omitempty"`
}

type Day added in v1.0.1

type Day struct {
	Text  string `xml:",chardata" json:"text,omitempty"`
	Style string `xml:"style,attr" json:"style,omitempty"`
}

type FontFace added in v1.0.1

type FontFace struct {
	Text              string `xml:",chardata" json:"text,omitempty"`
	Name              string `xml:"name,attr" json:"name,omitempty"`
	FontFamily        string `xml:"font-family,attr" json:"font-family,omitempty"`
	FontFamilyGeneric string `xml:"font-family-generic,attr" json:"font-family-generic,omitempty"`
	FontPitch         string `xml:"font-pitch,attr" json:"font-pitch,omitempty"`
}

type FontFaceDecls added in v1.0.1

type FontFaceDecls struct {
	Text     string     `xml:",chardata" json:"text,omitempty"`
	FontFace []FontFace `xml:"font-face" json:"font-face,omitempty"`
}

type Forms added in v1.0.1

type Forms struct {
	Text            string `xml:",chardata" json:"text,omitempty"`
	AutomaticFocus  string `xml:"automatic-focus,attr" json:"automatic-focus,omitempty"`
	ApplyDesignMode string `xml:"apply-design-mode,attr" json:"apply-design-mode,omitempty"`
}

type Iteration added in v1.0.1

type Iteration struct {
	Text              string `xml:",chardata" json:"text,omitempty"`
	MaximumDifference string `xml:"maximum-difference,attr" json:"maximum-difference,omitempty"`
}

type Manifest added in v1.0.2

type Manifest struct {
	XMLName     xml.Name `xml:"RDF" json:"rdf,omitempty"`
	Text        string   `xml:",chardata" json:"text,omitempty"`
	Rdf         string   `xml:"rdf,attr,omitempty" json:"rdf0,omitempty"`
	Description []struct {
		Text  string `xml:",chardata" json:"text,omitempty"`
		About string `xml:"about,attr,omitempty" json:"about,omitempty"`
		Type  struct {
			Text     string `xml:",chardata" json:"text,omitempty"`
			Resource string `xml:"resource,attr,omitempty" json:"resource,omitempty"`
		} `xml:"type" json:"type,omitempty"`
		HasPart struct {
			Text     string `xml:",chardata" json:"text,omitempty"`
			Ns0      string `xml:"ns0,attr,omitempty" json:"ns0,omitempty"`
			Resource string `xml:"resource,attr,omitempty" json:"resource,omitempty"`
		} `xml:"hasPart" json:"haspart,omitempty"`
	} `xml:"Description" json:"description,omitempty"`
}

type Map added in v1.0.1

type Map struct {
	Text           string `xml:",chardata" json:"text,omitempty"`
	Condition      string `xml:"condition,attr" json:"condition,omitempty"`
	ApplyStyleName string `xml:"apply-style-name,attr" json:"apply-style-name,omitempty"`
}

type Meta added in v1.0.2

type Meta struct {
	XMLName  xml.Name `xml:"document-meta" json:"document-meta,omitempty"`
	Text     string   `xml:",chardata" json:"text,omitempty"`
	Grddl    string   `xml:"grddl,attr,omitempty" json:"grddl,omitempty"`
	AttrMeta string   `xml:"meta,attr,omitempty" json:"attrMeta,omitempty"`
	Dc       string   `xml:"dc,attr,omitempty" json:"dc,omitempty"`
	Xlink    string   `xml:"xlink,attr,omitempty" json:"xlink,omitempty"`
	Ooo      string   `xml:"ooo,attr,omitempty" json:"ooo,omitempty"`
	Office   string   `xml:"office,attr,omitempty" json:"office,omitempty"`
	Version  string   `xml:"version,attr,omitempty" json:"version,omitempty"`
	Meta     struct {
		Text              string `xml:",chardata" json:"text,omitempty"`
		Generator         string `xml:"generator"`
		Date              string `xml:"date"`
		EditingDuration   string `xml:"editing-duration"`
		EditingCycles     string `xml:"editing-cycles"`
		DocumentStatistic struct {
			Text        string `xml:",chardata" json:"text,omitempty"`
			TableCount  string `xml:"table-count,attr,omitempty" json:"table-count,omitempty"`
			CellCount   string `xml:"cell-count,attr,omitempty" json:"cell-count,omitempty"`
			ObjectCount string `xml:"object-count,attr,omitempty" json:"object-count,omitempty"`
		} `xml:"document-statistic" json:"document-statistic,omitempty"`
	} `xml:"meta" json:"meta,omitempty"`
}

type Mimetype added in v1.0.2

type Mimetype string

type Month added in v1.0.1

type Month struct {
	Text  string `xml:",chardata" json:"text,omitempty"`
	Style string `xml:"style,attr" json:"style,omitempty"`
}

type Number added in v1.0.1

type Number struct {
	Text             string `xml:",chardata" json:"text,omitempty"`
	DecimalPlaces    string `xml:"decimal-places,attr" json:"decimal-places,omitempty"`
	MinDecimalPlaces string `xml:"min-decimal-places,attr" json:"min-decimal-places,omitempty"`
	MinIntegerDigits string `xml:"min-integer-digits,attr" json:"min-integer-digits,omitempty"`
	Grouping         string `xml:"grouping,attr" json:"grouping,omitempty"`
}

type ODS added in v1.0.2

type ODS struct {
	Content  Content  `json:"content"`
	Meta     Meta     `json:"meta"`
	Manifest Manifest `json:"manifest"`
	Mimetype Mimetype `json:"mimetype"`
	Settings Settings `json:"settings"`
	Styles   Styles   `json:"styles"`
}

func Read

func Read(filepath string) (data ODS, files *zip.ReadCloser, err error)

Extracts the spreadsheet data from an ODS file and provides access to the archive.

type ParagraphProperties added in v1.0.1

type ParagraphProperties struct {
	Text       string `xml:",chardata" json:"text,omitempty"`
	TextAlign  string `xml:"text-align,attr" json:"text-align,omitempty"`
	MarginLeft string `xml:"margin-left,attr" json:"margin-left,omitempty"`
}

type Settings added in v1.0.2

type Settings struct {
	XMLName  xml.Name `xml:"document-settings" json:"document-settings,omitempty"`
	Text     string   `xml:",chardata" json:"text,omitempty"`
	Config   string   `xml:"config,attr" json:"config,omitempty"`
	Xlink    string   `xml:"xlink,attr" json:"xlink,omitempty"`
	Ooo      string   `xml:"ooo,attr" json:"ooo,omitempty"`
	Office   string   `xml:"office,attr" json:"office,omitempty"`
	Version  string   `xml:"version,attr" json:"version,omitempty"`
	Settings struct {
		Text          string `xml:",chardata" json:"text,omitempty"`
		ConfigItemSet []struct {
			Text       string `xml:",chardata" json:"text,omitempty"`
			Name       string `xml:"name,attr" json:"name,omitempty"`
			ConfigItem []struct {
				Text string `xml:",chardata" json:"text,omitempty"`
				Name string `xml:"name,attr" json:"name,omitempty"`
				Type string `xml:"type,attr" json:"type,omitempty"`
			} `xml:"config-item" json:"config-item,omitempty"`
			ConfigItemMapIndexed struct {
				Text               string `xml:",chardata" json:"text,omitempty"`
				Name               string `xml:"name,attr" json:"name,omitempty"`
				ConfigItemMapEntry struct {
					Text       string `xml:",chardata" json:"text,omitempty"`
					ConfigItem []struct {
						Text string `xml:",chardata" json:"text,omitempty"`
						Name string `xml:"name,attr" json:"name,omitempty"`
						Type string `xml:"type,attr" json:"type,omitempty"`
					} `xml:"config-item" json:"config-item,omitempty"`
					ConfigItemMapNamed struct {
						Text               string `xml:",chardata" json:"text,omitempty"`
						Name               string `xml:"name,attr" json:"name,omitempty"`
						ConfigItemMapEntry []struct {
							Text       string `xml:",chardata" json:"text,omitempty"`
							Name       string `xml:"name,attr" json:"name,omitempty"`
							ConfigItem []struct {
								Text string `xml:",chardata" json:"text,omitempty"`
								Name string `xml:"name,attr" json:"name,omitempty"`
								Type string `xml:"type,attr" json:"type,omitempty"`
							} `xml:"config-item" json:"config-item,omitempty"`
						} `xml:"config-item-map-entry" json:"config-item-map-entry,omitempty"`
					} `xml:"config-item-map-named" json:"config-item-map-named,omitempty"`
				} `xml:"config-item-map-entry" json:"config-item-map-entry,omitempty"`
			} `xml:"config-item-map-indexed" json:"config-item-map-indexed,omitempty"`
			ConfigItemMapNamed struct {
				Text               string `xml:",chardata" json:"text,omitempty"`
				Name               string `xml:"name,attr" json:"name,omitempty"`
				ConfigItemMapEntry []struct {
					Text       string `xml:",chardata" json:"text,omitempty"`
					Name       string `xml:"name,attr" json:"name,omitempty"`
					ConfigItem struct {
						Text string `xml:",chardata" json:"text,omitempty"`
						Name string `xml:"name,attr" json:"name,omitempty"`
						Type string `xml:"type,attr" json:"type,omitempty"`
					} `xml:"config-item" json:"config-item,omitempty"`
				} `xml:"config-item-map-entry" json:"config-item-map-entry,omitempty"`
			} `xml:"config-item-map-named" json:"config-item-map-named,omitempty"`
		} `xml:"config-item-set" json:"config-item-set,omitempty"`
	} `xml:"settings" json:"settings,omitempty"`
}

type Spreadsheet added in v1.0.1

type Spreadsheet struct {
	Text                string              `xml:",chardata" json:"text,omitempty"`
	CalculationSettings CalculationSettings `xml:"calculation-settings" json:"calculation-settings,omitempty"`
	Table               []Table             `xml:"table" json:"table,omitempty"`
	NamedExpressions    string              `xml:"named-expressions" json:"named-expressions,omitempty"`
}

type Style added in v1.0.1

type Style struct {
	Text                  string                `xml:",chardata" json:"text,omitempty"`
	Name                  string                `xml:"name,attr" json:"name,omitempty"`
	Family                string                `xml:"family,attr" json:"family,omitempty"`
	MasterPageName        string                `xml:"master-page-name,attr" json:"master-page-name,omitempty"`
	ParentStyleName       string                `xml:"parent-style-name,attr" json:"parent-style-name,omitempty"`
	DataStyleName         string                `xml:"data-style-name,attr" json:"data-style-name,omitempty"`
	TableColumnProperties TableColumnProperties `xml:"table-column-properties" json:"table-column-properties,omitempty"`
	TableRowProperties    TableRowProperties    `xml:"table-row-properties" json:"table-row-properties,omitempty"`
	TableProperties       TableProperties       `xml:"table-properties" json:"table-properties,omitempty"`
	TableCellProperties   TableCellProperties   `xml:"table-cell-properties" json:"table-cell-properties,omitempty"`
	ParagraphProperties   ParagraphProperties   `xml:"paragraph-properties" json:"paragraph-properties,omitempty"`
	TextProperties        TextProperties        `xml:"text-properties" json:"text-properties,omitempty"`
}

type Styles added in v1.0.2

type Styles struct {
	XMLName       xml.Name `xml:"document-styles" json:"document-styles,omitempty"`
	Text          string   `xml:",chardata" json:"text,omitempty"`
	Presentation  string   `xml:"presentation,attr" json:"presentation,omitempty"`
	Css3t         string   `xml:"css3t,attr" json:"css3t,omitempty"`
	Grddl         string   `xml:"grddl,attr" json:"grddl,omitempty"`
	Xhtml         string   `xml:"xhtml,attr" json:"xhtml,omitempty"`
	Dom           string   `xml:"dom,attr" json:"dom,omitempty"`
	Script        string   `xml:"script,attr" json:"script,omitempty"`
	Form          string   `xml:"form,attr" json:"form,omitempty"`
	Math          string   `xml:"math,attr" json:"math,omitempty"`
	Office        string   `xml:"office,attr" json:"office,omitempty"`
	Ooo           string   `xml:"ooo,attr" json:"ooo,omitempty"`
	Fo            string   `xml:"fo,attr" json:"fo,omitempty"`
	Ooow          string   `xml:"ooow,attr" json:"ooow,omitempty"`
	Xlink         string   `xml:"xlink,attr" json:"xlink,omitempty"`
	Drawooo       string   `xml:"drawooo,attr" json:"drawooo,omitempty"`
	Oooc          string   `xml:"oooc,attr" json:"oooc,omitempty"`
	Dc            string   `xml:"dc,attr" json:"dc,omitempty"`
	Calcext       string   `xml:"calcext,attr" json:"calcext,omitempty"`
	Style         string   `xml:"style,attr" json:"style,omitempty"`
	AttrText      string   `xml:"text,attr" json:"attrText,omitempty"`
	Of            string   `xml:"of,attr" json:"of,omitempty"`
	Tableooo      string   `xml:"tableooo,attr" json:"tableooo,omitempty"`
	Draw          string   `xml:"draw,attr" json:"draw,omitempty"`
	Dr3d          string   `xml:"dr3d,attr" json:"dr3d,omitempty"`
	Rpt           string   `xml:"rpt,attr" json:"rpt,omitempty"`
	SVG           string   `xml:"svg,attr" json:"svg,omitempty"`
	Chart         string   `xml:"chart,attr" json:"chart,omitempty"`
	Table         string   `xml:"table,attr" json:"table,omitempty"`
	Meta          string   `xml:"meta,attr" json:"meta,omitempty"`
	Loext         string   `xml:"loext,attr" json:"loext,omitempty"`
	Number        string   `xml:"number,attr" json:"number,omitempty"`
	Field         string   `xml:"field,attr" json:"field,omitempty"`
	Version       string   `xml:"version,attr" json:"version,omitempty"`
	FontFaceDecls struct {
		Text     string `xml:",chardata" json:"text,omitempty"`
		FontFace []struct {
			Text              string `xml:",chardata" json:"text,omitempty"`
			Name              string `xml:"name,attr" json:"name,omitempty"`
			FontFamily        string `xml:"font-family,attr" json:"font-family,omitempty"`
			FontFamilyGeneric string `xml:"font-family-generic,attr" json:"font-family-generic,omitempty"`
			FontPitch         string `xml:"font-pitch,attr" json:"font-pitch,omitempty"`
		} `xml:"font-face" json:"font-face,omitempty"`
	} `xml:"font-face-decls" json:"font-face-decls,omitempty"`
	Styles struct {
		Text         string `xml:",chardata" json:"text,omitempty"`
		DefaultStyle []struct {
			Text                string `xml:",chardata" json:"text,omitempty"`
			Family              string `xml:"family,attr" json:"family,omitempty"`
			ParagraphProperties struct {
				Text                       string `xml:",chardata" json:"text,omitempty"`
				TabStopDistance            string `xml:"tab-stop-distance,attr" json:"tab-stop-distance,omitempty"`
				TextAutospace              string `xml:"text-autospace,attr" json:"text-autospace,omitempty"`
				PunctuationWrap            string `xml:"punctuation-wrap,attr" json:"punctuation-wrap,omitempty"`
				LineBreak                  string `xml:"line-break,attr" json:"line-break,omitempty"`
				WritingMode                string `xml:"writing-mode,attr" json:"writing-mode,omitempty"`
				FontIndependentLineSpacing string `xml:"font-independent-line-spacing,attr" json:"font-independent-line-spacing,omitempty"`
				TabStops                   string `xml:"tab-stops"`
			} `xml:"paragraph-properties" json:"paragraph-properties,omitempty"`
			TextProperties struct {
				Text               string `xml:",chardata" json:"text,omitempty"`
				FontName           string `xml:"font-name,attr" json:"font-name,omitempty"`
				FontSize           string `xml:"font-size,attr" json:"font-size,omitempty"`
				Language           string `xml:"language,attr" json:"language,omitempty"`
				Country            string `xml:"country,attr" json:"country,omitempty"`
				FontNameAsian      string `xml:"font-name-asian,attr" json:"font-name-asian,omitempty"`
				FontSizeAsian      string `xml:"font-size-asian,attr" json:"font-size-asian,omitempty"`
				LanguageAsian      string `xml:"language-asian,attr" json:"language-asian,omitempty"`
				CountryAsian       string `xml:"country-asian,attr" json:"country-asian,omitempty"`
				FontNameComplex    string `xml:"font-name-complex,attr" json:"font-name-complex,omitempty"`
				FontSizeComplex    string `xml:"font-size-complex,attr" json:"font-size-complex,omitempty"`
				LanguageComplex    string `xml:"language-complex,attr" json:"language-complex,omitempty"`
				CountryComplex     string `xml:"country-complex,attr" json:"country-complex,omitempty"`
				UseWindowFontColor string `xml:"use-window-font-color,attr" json:"use-window-font-color,omitempty"`
				Opacity            string `xml:"opacity,attr" json:"opacity,omitempty"`
				FontFamily         string `xml:"font-family,attr" json:"font-family,omitempty"`
				FontFamilyGeneric  string `xml:"font-family-generic,attr" json:"font-family-generic,omitempty"`
				FontPitch          string `xml:"font-pitch,attr" json:"font-pitch,omitempty"`
				LetterKerning      string `xml:"letter-kerning,attr" json:"letter-kerning,omitempty"`
			} `xml:"text-properties" json:"text-properties,omitempty"`
			GraphicProperties struct {
				Text          string `xml:",chardata" json:"text,omitempty"`
				StrokeColor   string `xml:"stroke-color,attr" json:"stroke-color,omitempty"`
				FillColor     string `xml:"fill-color,attr" json:"fill-color,omitempty"`
				WrapOption    string `xml:"wrap-option,attr" json:"wrap-option,omitempty"`
				ShadowOffsetX string `xml:"shadow-offset-x,attr" json:"shadow-offset-x,omitempty"`
				ShadowOffsetY string `xml:"shadow-offset-y,attr" json:"shadow-offset-y,omitempty"`
				WritingMode   string `xml:"writing-mode,attr" json:"writing-mode,omitempty"`
			} `xml:"graphic-properties" json:"graphic-properties,omitempty"`
		} `xml:"default-style" json:"default-style,omitempty"`
		Style []struct {
			Text              string `xml:",chardata" json:"text,omitempty"`
			Name              string `xml:"name,attr" json:"name,omitempty"`
			Family            string `xml:"family,attr" json:"family,omitempty"`
			ParentStyleName   string `xml:"parent-style-name,attr" json:"parent-style-name,omitempty"`
			DisplayName       string `xml:"display-name,attr" json:"display-name,omitempty"`
			GraphicProperties struct {
				Text              string `xml:",chardata" json:"text,omitempty"`
				Stroke            string `xml:"stroke,attr" json:"stroke,omitempty"`
				MarkerStart       string `xml:"marker-start,attr" json:"marker-start,omitempty"`
				MarkerStartWidth  string `xml:"marker-start-width,attr" json:"marker-start-width,omitempty"`
				MarkerStartCenter string `xml:"marker-start-center,attr" json:"marker-start-center,omitempty"`
				Fill              string `xml:"fill,attr" json:"fill,omitempty"`
				FillColor         string `xml:"fill-color,attr" json:"fill-color,omitempty"`
				AutoGrowHeight    string `xml:"auto-grow-height,attr" json:"auto-grow-height,omitempty"`
				AutoGrowWidth     string `xml:"auto-grow-width,attr" json:"auto-grow-width,omitempty"`
				PaddingTop        string `xml:"padding-top,attr" json:"padding-top,omitempty"`
				PaddingBottom     string `xml:"padding-bottom,attr" json:"padding-bottom,omitempty"`
				PaddingLeft       string `xml:"padding-left,attr" json:"padding-left,omitempty"`
				PaddingRight      string `xml:"padding-right,attr" json:"padding-right,omitempty"`
				Shadow            string `xml:"shadow,attr" json:"shadow,omitempty"`
				ShadowOffsetX     string `xml:"shadow-offset-x,attr" json:"shadow-offset-x,omitempty"`
				ShadowOffsetY     string `xml:"shadow-offset-y,attr" json:"shadow-offset-y,omitempty"`
			} `xml:"graphic-properties" json:"graphic-properties,omitempty"`
			TextProperties struct {
				Text                   string `xml:",chardata" json:"text,omitempty"`
				FontName               string `xml:"font-name,attr" json:"font-name,omitempty"`
				FontFamily             string `xml:"font-family,attr" json:"font-family,omitempty"`
				FontSize               string `xml:"font-size,attr" json:"font-size,omitempty"`
				FontNameAsian          string `xml:"font-name-asian,attr" json:"font-name-asian,omitempty"`
				FontFamilyAsian        string `xml:"font-family-asian,attr" json:"font-family-asian,omitempty"`
				FontFamilyGenericAsian string `xml:"font-family-generic-asian,attr" json:"font-family-generic-asian,omitempty"`
				FontPitchAsian         string `xml:"font-pitch-asian,attr" json:"font-pitch-asian,omitempty"`
				FontSizeAsian          string `xml:"font-size-asian,attr" json:"font-size-asian,omitempty"`
				FontNameComplex        string `xml:"font-name-complex,attr" json:"font-name-complex,omitempty"`
				FontFamilyComplex      string `xml:"font-family-complex,attr" json:"font-family-complex,omitempty"`
				FontSizeComplex        string `xml:"font-size-complex,attr" json:"font-size-complex,omitempty"`
				Color                  string `xml:"color,attr" json:"color,omitempty"`
				FontStyle              string `xml:"font-style,attr" json:"font-style,omitempty"`
				FontWeight             string `xml:"font-weight,attr" json:"font-weight,omitempty"`
				TextUnderlineStyle     string `xml:"text-underline-style,attr" json:"text-underline-style,omitempty"`
				TextUnderlineWidth     string `xml:"text-underline-width,attr" json:"text-underline-width,omitempty"`
				TextUnderlineColor     string `xml:"text-underline-color,attr" json:"text-underline-color,omitempty"`
				FontStyleAsian         string `xml:"font-style-asian,attr" json:"font-style-asian,omitempty"`
				FontWeightAsian        string `xml:"font-weight-asian,attr" json:"font-weight-asian,omitempty"`
				FontStyleComplex       string `xml:"font-style-complex,attr" json:"font-style-complex,omitempty"`
				FontWeightComplex      string `xml:"font-weight-complex,attr" json:"font-weight-complex,omitempty"`
			} `xml:"text-properties" json:"text-properties,omitempty"`
			TableCellProperties struct {
				Text            string `xml:",chardata" json:"text,omitempty"`
				RotationAlign   string `xml:"rotation-align,attr" json:"rotation-align,omitempty"`
				VerticalAlign   string `xml:"vertical-align,attr" json:"vertical-align,omitempty"`
				BackgroundColor string `xml:"background-color,attr" json:"background-color,omitempty"`
				DiagonalBlTr    string `xml:"diagonal-bl-tr,attr" json:"diagonal-bl-tr,omitempty"`
				DiagonalTlBr    string `xml:"diagonal-tl-br,attr" json:"diagonal-tl-br,omitempty"`
				Border          string `xml:"border,attr" json:"border,omitempty"`
				WrapOption      string `xml:"wrap-option,attr" json:"wrap-option,omitempty"`
				ShrinkToFit     string `xml:"shrink-to-fit,attr" json:"shrink-to-fit,omitempty"`
			} `xml:"table-cell-properties" json:"table-cell-properties,omitempty"`
		} `xml:"style" json:"style,omitempty"`
		NumberStyle []struct {
			Chardata string `xml:",chardata" json:"chardata,omitempty"`
			Name     string `xml:"name,attr" json:"name,omitempty"`
			Volatile string `xml:"volatile,attr" json:"volatile,omitempty"`
			Language string `xml:"language,attr" json:"language,omitempty"`
			Country  string `xml:"country,attr" json:"country,omitempty"`
			Number   struct {
				Text             string `xml:",chardata" json:"text,omitempty"`
				MinIntegerDigits string `xml:"min-integer-digits,attr" json:"min-integer-digits,omitempty"`
				DecimalPlaces    string `xml:"decimal-places,attr" json:"decimal-places,omitempty"`
				MinDecimalPlaces string `xml:"min-decimal-places,attr" json:"min-decimal-places,omitempty"`
				Grouping         string `xml:"grouping,attr" json:"grouping,omitempty"`
			} `xml:"number" json:"number,omitempty"`
			ScientificNumber struct {
				Text               string `xml:",chardata" json:"text,omitempty"`
				DecimalPlaces      string `xml:"decimal-places,attr" json:"decimal-places,omitempty"`
				MinDecimalPlaces   string `xml:"min-decimal-places,attr" json:"min-decimal-places,omitempty"`
				MinIntegerDigits   string `xml:"min-integer-digits,attr" json:"min-integer-digits,omitempty"`
				MinExponentDigits  string `xml:"min-exponent-digits,attr" json:"min-exponent-digits,omitempty"`
				ExponentInterval   string `xml:"exponent-interval,attr" json:"exponent-interval,omitempty"`
				ForcedExponentSign string `xml:"forced-exponent-sign,attr" json:"forced-exponent-sign,omitempty"`
			} `xml:"scientific-number" json:"scientific-number,omitempty"`
			Text           []string `xml:"text"`
			TextProperties struct {
				Text  string `xml:",chardata" json:"text,omitempty"`
				Color string `xml:"color,attr" json:"color,omitempty"`
			} `xml:"text-properties" json:"text-properties,omitempty"`
			Map struct {
				Text           string `xml:",chardata" json:"text,omitempty"`
				Condition      string `xml:"condition,attr" json:"condition,omitempty"`
				ApplyStyleName string `xml:"apply-style-name,attr" json:"apply-style-name,omitempty"`
			} `xml:"map" json:"map,omitempty"`
			FillCharacter string `xml:"fill-character"`
		} `xml:"number-style" json:"number-style,omitempty"`
		TimeStyle []struct {
			Chardata           string `xml:",chardata" json:"chardata,omitempty"`
			Name               string `xml:"name,attr" json:"name,omitempty"`
			TruncateOnOverflow string `xml:"truncate-on-overflow,attr" json:"truncate-on-overflow,omitempty"`
			Language           string `xml:"language,attr" json:"language,omitempty"`
			Country            string `xml:"country,attr" json:"country,omitempty"`
			Minutes            struct {
				Text  string `xml:",chardata" json:"text,omitempty"`
				Style string `xml:"style,attr" json:"style,omitempty"`
			} `xml:"minutes" json:"minutes,omitempty"`
			Text    []string `xml:"text"`
			Seconds struct {
				Text          string `xml:",chardata" json:"text,omitempty"`
				Style         string `xml:"style,attr" json:"style,omitempty"`
				DecimalPlaces string `xml:"decimal-places,attr" json:"decimal-places,omitempty"`
			} `xml:"seconds" json:"seconds,omitempty"`
			Hours string `xml:"hours"`
			AmPm  string `xml:"am-pm"`
		} `xml:"time-style" json:"time-style,omitempty"`
		DateStyle []struct {
			Chardata string `xml:",chardata" json:"chardata,omitempty"`
			Name     string `xml:"name,attr" json:"name,omitempty"`
			Language string `xml:"language,attr" json:"language,omitempty"`
			Country  string `xml:"country,attr" json:"country,omitempty"`
			Month    struct {
				Text    string `xml:",chardata" json:"text,omitempty"`
				Textual string `xml:"textual,attr" json:"textual,omitempty"`
			} `xml:"month" json:"month,omitempty"`
			Text []string `xml:"text"`
			Day  string   `xml:"day"`
			Year struct {
				Text  string `xml:",chardata" json:"text,omitempty"`
				Style string `xml:"style,attr" json:"style,omitempty"`
			} `xml:"year" json:"year,omitempty"`
			Hours   string `xml:"hours"`
			Minutes struct {
				Text  string `xml:",chardata" json:"text,omitempty"`
				Style string `xml:"style,attr" json:"style,omitempty"`
			} `xml:"minutes" json:"minutes,omitempty"`
		} `xml:"date-style" json:"date-style,omitempty"`
		CurrencyStyle []struct {
			Chardata       string `xml:",chardata" json:"chardata,omitempty"`
			Name           string `xml:"name,attr" json:"name,omitempty"`
			Volatile       string `xml:"volatile,attr" json:"volatile,omitempty"`
			Language       string `xml:"language,attr" json:"language,omitempty"`
			Country        string `xml:"country,attr" json:"country,omitempty"`
			CurrencySymbol string `xml:"currency-symbol"`
			Number         struct {
				Text             string `xml:",chardata" json:"text,omitempty"`
				DecimalPlaces    string `xml:"decimal-places,attr" json:"decimal-places,omitempty"`
				MinDecimalPlaces string `xml:"min-decimal-places,attr" json:"min-decimal-places,omitempty"`
				MinIntegerDigits string `xml:"min-integer-digits,attr" json:"min-integer-digits,omitempty"`
				Grouping         string `xml:"grouping,attr" json:"grouping,omitempty"`
			} `xml:"number" json:"number,omitempty"`
			Text []string `xml:"text"`
			Map  struct {
				Text           string `xml:",chardata" json:"text,omitempty"`
				Condition      string `xml:"condition,attr" json:"condition,omitempty"`
				ApplyStyleName string `xml:"apply-style-name,attr" json:"apply-style-name,omitempty"`
			} `xml:"map" json:"map,omitempty"`
			TextProperties struct {
				Text  string `xml:",chardata" json:"text,omitempty"`
				Color string `xml:"color,attr" json:"color,omitempty"`
			} `xml:"text-properties" json:"text-properties,omitempty"`
			FillCharacter string `xml:"fill-character"`
		} `xml:"currency-style" json:"currency-style,omitempty"`
		TextStyle []struct {
			Chardata    string   `xml:",chardata" json:"chardata,omitempty"`
			Name        string   `xml:"name,attr" json:"name,omitempty"`
			Language    string   `xml:"language,attr" json:"language,omitempty"`
			Country     string   `xml:"country,attr" json:"country,omitempty"`
			Text        []string `xml:"text"`
			TextContent string   `xml:"text-content"`
			Map         []struct {
				Text           string `xml:",chardata" json:"text,omitempty"`
				Condition      string `xml:"condition,attr" json:"condition,omitempty"`
				ApplyStyleName string `xml:"apply-style-name,attr" json:"apply-style-name,omitempty"`
			} `xml:"map" json:"map,omitempty"`
		} `xml:"text-style" json:"text-style,omitempty"`
		Marker struct {
			Text        string `xml:",chardata" json:"text,omitempty"`
			Name        string `xml:"name,attr" json:"name,omitempty"`
			DisplayName string `xml:"display-name,attr" json:"display-name,omitempty"`
			ViewBox     string `xml:"viewBox,attr" json:"viewbox,omitempty"`
			D           string `xml:"d,attr" json:"d,omitempty"`
		} `xml:"marker" json:"marker,omitempty"`
	} `xml:"styles" json:"styles,omitempty"`
	AutomaticStyles struct {
		Text        string `xml:",chardata" json:"text,omitempty"`
		NumberStyle struct {
			Text   string `xml:",chardata" json:"text,omitempty"`
			Name   string `xml:"name,attr" json:"name,omitempty"`
			Number struct {
				Text             string `xml:",chardata" json:"text,omitempty"`
				DecimalPlaces    string `xml:"decimal-places,attr" json:"decimal-places,omitempty"`
				MinDecimalPlaces string `xml:"min-decimal-places,attr" json:"min-decimal-places,omitempty"`
				MinIntegerDigits string `xml:"min-integer-digits,attr" json:"min-integer-digits,omitempty"`
			} `xml:"number" json:"number,omitempty"`
		} `xml:"number-style" json:"number-style,omitempty"`
		PageLayout []struct {
			Text                 string `xml:",chardata" json:"text,omitempty"`
			Name                 string `xml:"name,attr" json:"name,omitempty"`
			PageLayoutProperties struct {
				Text             string `xml:",chardata" json:"text,omitempty"`
				FirstPageNumber  string `xml:"first-page-number,attr" json:"first-page-number,omitempty"`
				WritingMode      string `xml:"writing-mode,attr" json:"writing-mode,omitempty"`
				NumFormat        string `xml:"num-format,attr" json:"num-format,omitempty"`
				PrintOrientation string `xml:"print-orientation,attr" json:"print-orientation,omitempty"`
				MarginTop        string `xml:"margin-top,attr" json:"margin-top,omitempty"`
				MarginBottom     string `xml:"margin-bottom,attr" json:"margin-bottom,omitempty"`
				MarginLeft       string `xml:"margin-left,attr" json:"margin-left,omitempty"`
				MarginRight      string `xml:"margin-right,attr" json:"margin-right,omitempty"`
				PrintPageOrder   string `xml:"print-page-order,attr" json:"print-page-order,omitempty"`
				ScaleTo          string `xml:"scale-to,attr" json:"scale-to,omitempty"`
				Print            string `xml:"print,attr" json:"print,omitempty"`
			} `xml:"page-layout-properties" json:"page-layout-properties,omitempty"`
			HeaderStyle struct {
				Text                   string `xml:",chardata" json:"text,omitempty"`
				HeaderFooterProperties struct {
					Text            string `xml:",chardata" json:"text,omitempty"`
					MinHeight       string `xml:"min-height,attr" json:"min-height,omitempty"`
					MarginLeft      string `xml:"margin-left,attr" json:"margin-left,omitempty"`
					MarginRight     string `xml:"margin-right,attr" json:"margin-right,omitempty"`
					MarginBottom    string `xml:"margin-bottom,attr" json:"margin-bottom,omitempty"`
					Border          string `xml:"border,attr" json:"border,omitempty"`
					Padding         string `xml:"padding,attr" json:"padding,omitempty"`
					BackgroundColor string `xml:"background-color,attr" json:"background-color,omitempty"`
					BackgroundImage string `xml:"background-image"`
				} `xml:"header-footer-properties" json:"header-footer-properties,omitempty"`
			} `xml:"header-style" json:"header-style,omitempty"`
			FooterStyle struct {
				Text                   string `xml:",chardata" json:"text,omitempty"`
				HeaderFooterProperties struct {
					Text            string `xml:",chardata" json:"text,omitempty"`
					MinHeight       string `xml:"min-height,attr" json:"min-height,omitempty"`
					MarginLeft      string `xml:"margin-left,attr" json:"margin-left,omitempty"`
					MarginRight     string `xml:"margin-right,attr" json:"margin-right,omitempty"`
					MarginTop       string `xml:"margin-top,attr" json:"margin-top,omitempty"`
					Border          string `xml:"border,attr" json:"border,omitempty"`
					Padding         string `xml:"padding,attr" json:"padding,omitempty"`
					BackgroundColor string `xml:"background-color,attr" json:"background-color,omitempty"`
					BackgroundImage string `xml:"background-image"`
				} `xml:"header-footer-properties" json:"header-footer-properties,omitempty"`
			} `xml:"footer-style" json:"footer-style,omitempty"`
		} `xml:"page-layout" json:"page-layout,omitempty"`
	} `xml:"automatic-styles" json:"automatic-styles,omitempty"`
	MasterStyles struct {
		Text       string `xml:",chardata" json:"text,omitempty"`
		MasterPage []struct {
			Text           string `xml:",chardata" json:"text,omitempty"`
			Name           string `xml:"name,attr" json:"name,omitempty"`
			PageLayoutName string `xml:"page-layout-name,attr" json:"page-layout-name,omitempty"`
			DisplayName    string `xml:"display-name,attr" json:"display-name,omitempty"`
			Header         struct {
				Text    string `xml:",chardata" json:"text,omitempty"`
				Display string `xml:"display,attr" json:"display,omitempty"`
				P       struct {
					Text      string `xml:",chardata" json:"text,omitempty"`
					SheetName string `xml:"sheet-name"`
				} `xml:"p" json:"p,omitempty"`
				RegionLeft struct {
					Text string `xml:",chardata" json:"text,omitempty"`
					P    struct {
						Text      string `xml:",chardata" json:"text,omitempty"`
						SheetName string `xml:"sheet-name"`
						S         string `xml:"s"`
						Title     string `xml:"title"`
					} `xml:"p" json:"p,omitempty"`
				} `xml:"region-left" json:"region-left,omitempty"`
				RegionRight struct {
					Text string `xml:",chardata" json:"text,omitempty"`
					P    struct {
						Text string `xml:",chardata" json:"text,omitempty"`
						Date struct {
							Text          string `xml:",chardata" json:"text,omitempty"`
							DataStyleName string `xml:"data-style-name,attr" json:"data-style-name,omitempty"`
							DateValue     string `xml:"date-value,attr" json:"date-value,omitempty"`
						} `xml:"date" json:"date,omitempty"`
						Time struct {
							Text          string `xml:",chardata" json:"text,omitempty"`
							DataStyleName string `xml:"data-style-name,attr" json:"data-style-name,omitempty"`
							TimeValue     string `xml:"time-value,attr" json:"time-value,omitempty"`
						} `xml:"time" json:"time,omitempty"`
					} `xml:"p" json:"p,omitempty"`
				} `xml:"region-right" json:"region-right,omitempty"`
			} `xml:"header" json:"header,omitempty"`
			HeaderLeft struct {
				Text    string `xml:",chardata" json:"text,omitempty"`
				Display string `xml:"display,attr" json:"display,omitempty"`
			} `xml:"header-left" json:"header-left,omitempty"`
			HeaderFirst struct {
				Text    string `xml:",chardata" json:"text,omitempty"`
				Display string `xml:"display,attr" json:"display,omitempty"`
			} `xml:"header-first" json:"header-first,omitempty"`
			Footer struct {
				Text    string `xml:",chardata" json:"text,omitempty"`
				Display string `xml:"display,attr" json:"display,omitempty"`
				P       struct {
					Text       string `xml:",chardata" json:"text,omitempty"`
					PageNumber string `xml:"page-number"`
					S          string `xml:"s"`
					PageCount  string `xml:"page-count"`
				} `xml:"p" json:"p,omitempty"`
			} `xml:"footer" json:"footer,omitempty"`
			FooterLeft struct {
				Text    string `xml:",chardata" json:"text,omitempty"`
				Display string `xml:"display,attr" json:"display,omitempty"`
			} `xml:"footer-left" json:"footer-left,omitempty"`
			FooterFirst struct {
				Text    string `xml:",chardata" json:"text,omitempty"`
				Display string `xml:"display,attr" json:"display,omitempty"`
			} `xml:"footer-first" json:"footer-first,omitempty"`
		} `xml:"master-page" json:"master-page,omitempty"`
	} `xml:"master-styles" json:"master-styles,omitempty"`
}

type Table added in v1.0.1

type Table struct {
	Text        string        `xml:",chardata" json:"text,omitempty"`
	Name        string        `xml:"name,attr" json:"name,omitempty"`
	StyleName   string        `xml:"style-name,attr" json:"style-name,omitempty"`
	Forms       Forms         `xml:"forms" json:"forms,omitempty"`
	TableColumn []TableColumn `xml:"table-column" json:"table-column,omitempty"`
	TableRow    []TableRow    `xml:"table-row" json:"table-row,omitempty"`
}

type TableCell added in v1.0.1

type TableCell struct {
	Text                  string `xml:",chardata" json:"text,omitempty"`
	StyleName             string `xml:"style-name,attr" json:"style-name,omitempty"`
	ValueType             string `xml:"value-type,attr" json:"value-type,omitempty"`
	ValueType0            string `json:"value-type0,omitempty"`
	NumberColumnsRepeated string `xml:"number-columns-repeated,attr" json:"number-columns-repeated,omitempty"`
	Formula               string `xml:"formula,attr" json:"formula,omitempty"`
	Value                 string `xml:"value,attr" json:"value,omitempty"`
	Currency              string `xml:"currency,attr" json:"currency,omitempty"`
	DateValue             string `xml:"date-value,attr" json:"date-value,omitempty"`
	P                     string `xml:"p" json:"p,omitempty"`
}

type TableCellProperties added in v1.0.1

type TableCellProperties struct {
	Text            string `xml:",chardata" json:"text,omitempty"`
	BackgroundColor string `xml:"background-color,attr" json:"background-color,omitempty"`
	TextAlignSource string `xml:"text-align-source,attr" json:"text-align-source,omitempty"`
	RepeatContent   string `xml:"repeat-content,attr" json:"repeat-content,omitempty"`
	Border          string `xml:"border,attr" json:"border,omitempty"`
}

type TableColumn added in v1.0.1

type TableColumn struct {
	Text                  string `xml:",chardata" json:"text,omitempty"`
	StyleName             string `xml:"style-name,attr" json:"style-name,omitempty"`
	NumberColumnsRepeated string `xml:"number-columns-repeated,attr" json:"number-columns-repeated,omitempty"`
	DefaultCellStyleName  string `xml:"default-cell-style-name,attr" json:"default-cell-style-name,omitempty"`
}

type TableColumnProperties added in v1.0.1

type TableColumnProperties struct {
	Text        string `xml:",chardata" json:"text,omitempty"`
	BreakBefore string `xml:"break-before,attr" json:"break-before,omitempty"`
	ColumnWidth string `xml:"column-width,attr" json:"column-width,omitempty"`
}

type TableProperties added in v1.0.1

type TableProperties struct {
	Text        string `xml:",chardata" json:"text,omitempty"`
	Display     string `xml:"display,attr" json:"display,omitempty"`
	WritingMode string `xml:"writing-mode,attr" json:"writing-mode,omitempty"`
}

type TableRow added in v1.0.1

type TableRow struct {
	Text               string      `xml:",chardata" json:"text,omitempty"`
	StyleName          string      `xml:"style-name,attr" json:"style-name,omitempty"`
	NumberRowsRepeated string      `xml:"number-rows-repeated,attr" json:"number-rows-repeated,omitempty"`
	TableCell          []TableCell `xml:"table-cell" json:"table-cell,omitempty"`
}

type TableRowProperties added in v1.0.1

type TableRowProperties struct {
	Text                string `xml:",chardata" json:"text,omitempty"`
	RowHeight           string `xml:"row-height,attr" json:"row-height,omitempty"`
	BreakBefore         string `xml:"break-before,attr" json:"break-before,omitempty"`
	UseOptimalRowHeight string `xml:"use-optimal-row-height,attr" json:"use-optimal-row-height,omitempty"`
}

type TextProperties added in v1.0.1

type TextProperties struct {
	Text              string `xml:",chardata" json:"text,omitempty"`
	FontSize          string `xml:"font-size,attr" json:"font-size,omitempty"`
	FontWeight        string `xml:"font-weight,attr" json:"font-weight,omitempty"`
	FontSizeAsian     string `xml:"font-size-asian,attr" json:"font-size-asian,omitempty"`
	FontWeightAsian   string `xml:"font-weight-asian,attr" json:"font-weight-asian,omitempty"`
	FontSizeComplex   string `xml:"font-size-complex,attr" json:"font-size-complex,omitempty"`
	FontWeightComplex string `xml:"font-weight-complex,attr" json:"font-weight-complex,omitempty"`
}

type TextProperties0 added in v1.0.1

type TextProperties0 struct {
	Text  string `xml:",chardata" json:"text,omitempty"`
	Color string `xml:"color,attr" json:"color,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL