structure

package
v0.9.21 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CellData

type CellData interface {
	GetString() string
	GetFloat64() float64
	GetInt64() int64
	GetXFIndex() int
	GetType() string
}

type ExtRst

type ExtRst struct {
	Reserved [2]byte
	Cb       [2]byte
	Phs      Phs
	Rphssub  RPHSSub
	Rgphruns []PhRuns
}

type FontIndex

type FontIndex struct {
	Ifnt [2]byte
}

type FormatRun

type FormatRun struct {
	Ich  [2]byte
	Ifnt FontIndex
}

type ISSTINF

type ISSTINF struct {
	Ib       [4]byte
	Cb       [2]byte
	Reserved [2]byte
}

type LPWideString

type LPWideString struct {
	CchCharacters [2]byte
	RgchData      []byte
}

type PhRuns

type PhRuns struct {
	IchFirst [2]byte
	IchMom   [2]byte
	CchMom   [2]byte
}

type Phs

type Phs struct {
	Ifnt FontIndex
	Info [2]byte
}

type RKNum

type RKNum [4]byte

func (*RKNum) GetFloat

func (r *RKNum) GetFloat() (fn float64)

func (*RKNum) GetInt64

func (r *RKNum) GetInt64() (in int64)

func (*RKNum) GetString

func (r *RKNum) GetString() (s string)

type RKREC

type RKREC struct {
	Ixfe [2]byte
	RK   RKNum
}

type RPHSSub

type RPHSSub struct {
	Crun [2]byte
	Cch  [2]byte
	St   LPWideString
}

type XLUnicodeRichExtendedString

type XLUnicodeRichExtendedString struct {
	Cch [2]byte

	/*
		A - fHighByte (1 bit): A bit that specifies whether the characters in rgb are double-byte characters.
		MUST be a value from the following table:

		B - reserved1 (1 bit): MUST be zero, and MUST be ignored.
		C - fExtSt (1 bit): A bit that specifies whether the string contains phonetic string data
		D - fRichSt (1 bit): A bit that specifies whether the string is a rich string and the string
			has at least
		reserved2 (4 bits): MUST be zero, and MUST be ignored.
	*/
	FHighByte byte // ABCD
	CRun      [2]byte
	CbExtRst  [4]byte
	Rgb       []byte // If fHighByte is 0x0 size = cch.  If fHighByte is 0x1 size = cch*2

	/*
		An optional array of FormatRun structure that specifies the formatting for each
		text run. The number of elements in the array is cRun. MUST exist if and only if fRichSt is 0x1.
	*/
	RgRun []FormatRun

	/*
		An optional ExtRst that specifies the phonetic string data. The size of this structure is
		cbExtRst. MUST exist if and only if fExtSt is 0x1.
	*/
	ExtRst ExtRst
}

func (*XLUnicodeRichExtendedString) Read

func (s *XLUnicodeRichExtendedString) Read(stream []byte) uint32

func (*XLUnicodeRichExtendedString) String

func (s *XLUnicodeRichExtendedString) String() string

Jump to

Keyboard shortcuts

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