Documentation ¶
Index ¶
- Constants
- Variables
- func BeginSpreadsheet() string
- func EndSheet() string
- func EndSpreadsheet() string
- func Manifest() string
- func Meta() string
- func Mimetype() string
- func Row(values ...interface{}) string
- func Settings() string
- func StreamBeginSpreadsheet(qw422016 *qt422016.Writer)
- func StreamEndSheet(qw422016 *qt422016.Writer)
- func StreamEndSpreadsheet(qw422016 *qt422016.Writer)
- func StreamManifest(qw422016 *qt422016.Writer)
- func StreamMeta(qw422016 *qt422016.Writer)
- func StreamMimetype(qw422016 *qt422016.Writer)
- func StreamRow(qw422016 *qt422016.Writer, values ...interface{})
- func StreamSettings(qw422016 *qt422016.Writer)
- func StreamStyles(qw422016 *qt422016.Writer, styles map[string]string)
- func StreamXML(qw422016 *qt422016.Writer, s string)
- func Styles(styles map[string]string) string
- func WriteBeginSpreadsheet(qq422016 qtio422016.Writer)
- func WriteEndSheet(qq422016 qtio422016.Writer)
- func WriteEndSpreadsheet(qq422016 qtio422016.Writer)
- func WriteManifest(qq422016 qtio422016.Writer)
- func WriteMeta(qq422016 qtio422016.Writer)
- func WriteMimetype(qq422016 qtio422016.Writer)
- func WriteRow(qq422016 qtio422016.Writer, values ...interface{})
- func WriteSettings(qq422016 qtio422016.Writer)
- func WriteStyles(qq422016 qtio422016.Writer, styles map[string]string)
- func WriteXML(qq422016 qtio422016.Writer, s string)
- func XML(s string) string
- type ODSSheet
- type ODSWriter
- func (ow *ODSWriter) BeginSheet(name string, cols []spreadsheet.Column) string
- func (ow *ODSWriter) Close() error
- func (ow *ODSWriter) NewSheet(name string, cols []spreadsheet.Column) (spreadsheet.Sheet, error)
- func (ow *ODSWriter) StreamBeginSheet(qw422016 *qt422016.Writer, name string, cols []spreadsheet.Column)
- func (ow *ODSWriter) WriteBeginSheet(qq422016 qtio422016.Writer, name string, cols []spreadsheet.Column)
- type Style
- type ValueType
Constants ¶
View Source
const MaxRowCount = 1 << 20
Variables ¶
View Source
var ( // FloatType for numerical data FloatType = ValueType{'f'} // DateType for dates DateType = ValueType{'d'} // LinkType is a string that seems to be a https?:// link LinkType = ValueType{'a'} // StringType for everything else StringType = ValueType{'s'} )
Functions ¶
func BeginSpreadsheet ¶
func BeginSpreadsheet() string
func EndSpreadsheet ¶
func EndSpreadsheet() string
func StreamBeginSpreadsheet ¶
func StreamEndSheet ¶
func StreamEndSpreadsheet ¶
func StreamManifest ¶
func StreamMeta ¶
func StreamMimetype ¶
func StreamSettings ¶
func WriteBeginSpreadsheet ¶
func WriteBeginSpreadsheet(qq422016 qtio422016.Writer)
func WriteEndSheet ¶
func WriteEndSheet(qq422016 qtio422016.Writer)
func WriteEndSpreadsheet ¶
func WriteEndSpreadsheet(qq422016 qtio422016.Writer)
func WriteManifest ¶
func WriteManifest(qq422016 qtio422016.Writer)
func WriteMeta ¶
func WriteMeta(qq422016 qtio422016.Writer)
func WriteMimetype ¶
func WriteMimetype(qq422016 qtio422016.Writer)
func WriteRow ¶
func WriteRow(qq422016 qtio422016.Writer, values ...interface{})
func WriteSettings ¶
func WriteSettings(qq422016 qtio422016.Writer)
func WriteStyles ¶
func WriteStyles(qq422016 qtio422016.Writer, styles map[string]string)
func WriteXML ¶
func WriteXML(qq422016 qtio422016.Writer, s string)
Types ¶
type ODSWriter ¶
type ODSWriter struct {
// contains filtered or unexported fields
}
ODSWriter writes content.xml of ODS zip.
func NewWriter ¶
NewWriter returns a content writer and a zip closer for an ods file.
This writer allows concurrent write to separate sheets.
func (*ODSWriter) BeginSheet ¶
func (ow *ODSWriter) BeginSheet(name string, cols []spreadsheet.Column) string
func (*ODSWriter) NewSheet ¶
func (ow *ODSWriter) NewSheet(name string, cols []spreadsheet.Column) (spreadsheet.Sheet, error)
func (*ODSWriter) StreamBeginSheet ¶
func (*ODSWriter) WriteBeginSheet ¶
func (ow *ODSWriter) WriteBeginSheet(qq422016 qtio422016.Writer, name string, cols []spreadsheet.Column)
type Style ¶
type Style struct { XMLName xml.Name `xml:"style"` Name string `xml:"name,attr"` Family string `xml:"family,attr"` MasterPageName string `xml:"master-page-name,attr"` DataStyleName string `xml:"data-style-name,attr"` TableProperties struct { Display string `xml:"display,attr"` WritingMode string `xml:"writing-mode,attr"` } `xml:"table-properties"` TextProperties struct { FontWeight string `xml:"font-weight,attr"` FontStyle string `xml:"font-style,attr"` TextPosition string `xml:"text-position,attr"` TextLineThroughType string `xml:"text-line-through-type,attr"` TextLineThroughStyle string `xml:"text-line-through-style,attr"` TextUnderlineType string `xml:"text-underline-type,attr"` TextUnderlineStyle string `xml:"text-underline-style,attr"` TextUnderlineWidth string `xml:"text-underline-width,attr"` Display string `xml:"display,attr"` TextUnderlineColor string `xml:"text-underline-color,attr"` TextUnderlineMode string `xml:"text-underline-mode,attr"` FontSize string `xml:"font-size,attr"` Color string `xml:"color,attr"` FontFamily string `xml:"font-family,attr"` } `xml:"text-properties"` TableRowProperties struct { RowHeight string `xml:"row-height,attr"` UseOptimalRowHeight string `xml:"use-optimal-row-height,attr"` } `xml:"table-row-properties"` TableColumnProperties struct { ColumnWidth string `xml:"column-width,attr"` UseOptimalColumnWidth string `xml:"use-optimal-column-width,attr"` } `xml:"table-column-properties"` TableCellProperties struct { BackgroundColor string `xml:"background-color,attr"` BorderTop string `xml:"border-top,attr"` BorderBottom string `xml:"border-bottom,attr"` BorderLeft string `xml:"border-left,attr"` BorderRight string `xml:"border-right,attr"` DiagonalBlTr string `xml:"diagonal-bl-tr,attr"` DiagonalTlBr string `xml:"diagonal-tl-br,attr"` VerticalAlign string `xml:"vertical-align,attr"` WrapOption string `xml:"wrap-option,attr"` ShrinkToFit string `xml:"shrink-to-fit,attr"` WritingMode string `xml:"writing-mode,attr"` GlyphOrientationVertical string `xml:"glyph-orientation-vertical,attr"` CellProtect string `xml:"cell-protect,attr"` RotationAlign string `xml:"rotation-align,attr"` RotationAngle string `xml:"rotation-angle,attr"` PrintContent string `xml:"print-content,attr"` DecimalPlaces string `xml:"decimal-places,attr"` TextAlignSource string `xml:"text-align-source,attr"` RepeatContent string `xml:"repeat-content,attr"` } `xml:"table-cell-properties"` ParagraphProperties struct { WritingModeAutomatic string `xml:"writing-mode-automatic,attr"` MarginLeft string `xml:"margin-left,attr"` } `xml:"paragraph-properties"` }
Style information - generated from content.xml with github.com/miek/zek/cmd/zek.
Click to show internal directories.
Click to hide internal directories.