HomeUniDoc
...

Package ink

Overview ▾

Index ▾

Constants
Variables
type CT_CtxLink
    func NewCT_CtxLink() *CT_CtxLink
    func (m *CT_CtxLink) MarshalXML(e *xml.Encoder, start xml.StartElement) error
    func (m *CT_CtxLink) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
    func (m *CT_CtxLink) Validate() error
    func (m *CT_CtxLink) ValidateWithPath(path string) error
type CT_CtxNode
    func NewCT_CtxNode() *CT_CtxNode
    func (m *CT_CtxNode) MarshalXML(e *xml.Encoder, start xml.StartElement) error
    func (m *CT_CtxNode) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
    func (m *CT_CtxNode) Validate() error
    func (m *CT_CtxNode) ValidateWithPath(path string) error
type CT_Property
    func NewCT_Property() *CT_Property
    func (m *CT_Property) MarshalXML(e *xml.Encoder, start xml.StartElement) error
    func (m *CT_Property) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
    func (m *CT_Property) Validate() error
    func (m *CT_Property) ValidateWithPath(path string) error
type Context
    func NewContext() *Context
    func (m *Context) MarshalXML(e *xml.Encoder, start xml.StartElement) error
    func (m *Context) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
    func (m *Context) Validate() error
    func (m *Context) ValidateWithPath(path string) error
type ST_CtxNodeType
    func ParseUnionST_CtxNodeType(s string) (ST_CtxNodeType, error)
    func (m ST_CtxNodeType) MarshalXML(e *xml.Encoder, start xml.StartElement) error
    func (m ST_CtxNodeType) String() string
    func (m *ST_CtxNodeType) Validate() error
    func (m *ST_CtxNodeType) ValidateWithPath(path string) error
type ST_Dir
    func (m ST_Dir) MarshalXML(e *xml.Encoder, start xml.StartElement) error
    func (e ST_Dir) MarshalXMLAttr(name xml.Name) (xml.Attr, error)
    func (m ST_Dir) String() string
    func (m *ST_Dir) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
    func (e *ST_Dir) UnmarshalXMLAttr(attr xml.Attr) error
    func (m ST_Dir) Validate() error
    func (m ST_Dir) ValidateWithPath(path string) error
type ST_KnownCtxNodeType
    func (m ST_KnownCtxNodeType) MarshalXML(e *xml.Encoder, start xml.StartElement) error
    func (e ST_KnownCtxNodeType) MarshalXMLAttr(name xml.Name) (xml.Attr, error)
    func (m ST_KnownCtxNodeType) String() string
    func (m *ST_KnownCtxNodeType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
    func (e *ST_KnownCtxNodeType) UnmarshalXMLAttr(attr xml.Attr) error
    func (m ST_KnownCtxNodeType) Validate() error
    func (m ST_KnownCtxNodeType) ValidateWithPath(path string) error
type ST_KnownSemanticType
    func (m ST_KnownSemanticType) MarshalXML(e *xml.Encoder, start xml.StartElement) error
    func (e ST_KnownSemanticType) MarshalXMLAttr(name xml.Name) (xml.Attr, error)
    func (m ST_KnownSemanticType) String() string
    func (m *ST_KnownSemanticType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
    func (e *ST_KnownSemanticType) UnmarshalXMLAttr(attr xml.Attr) error
    func (m ST_KnownSemanticType) Validate() error
    func (m ST_KnownSemanticType) ValidateWithPath(path string) error
type ST_Points
    func ParseSliceST_Points(v string) (ST_Points, error)
type ST_Ref
    func ParseUnionST_Ref(s string) (ST_Ref, error)
    func (m ST_Ref) MarshalXML(e *xml.Encoder, start xml.StartElement) error
    func (m ST_Ref) String() string
    func (m *ST_Ref) Validate() error
    func (m *ST_Ref) ValidateWithPath(path string) error
type ST_SemanticType
    func ParseUnionST_SemanticType(s string) (ST_SemanticType, error)
    func (m ST_SemanticType) MarshalXML(e *xml.Encoder, start xml.StartElement) error
    func (m ST_SemanticType) String() string
    func (m *ST_SemanticType) Validate() error
    func (m *ST_SemanticType) ValidateWithPath(path string) error

Package files

CT_CtxLink.go CT_CtxNode.go CT_Property.go Context.go ST_CtxNodeType.go ST_Ref.go ST_SemanticType.go common.go

Constants

const ST_GuidPattern = `\{[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}\}`
const ST_PointPattern = `-?[0-9]+,-?[0-9]+`

Variables

var ST_GuidPatternRe = regexp.MustCompile(ST_GuidPattern)
var ST_PointPatternRe = regexp.MustCompile(ST_PointPattern)
type CT_CtxLink struct {
    DirectionAttr ST_Dir
    RefAttr       *ST_Ref
}
func NewCT_CtxLink() *CT_CtxLink

func (*CT_CtxLink) MarshalXML

func (m *CT_CtxLink) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*CT_CtxLink) UnmarshalXML

func (m *CT_CtxLink) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

func (*CT_CtxLink) Validate

func (m *CT_CtxLink) Validate() error

Validate validates the CT_CtxLink and its children

func (*CT_CtxLink) ValidateWithPath

func (m *CT_CtxLink) ValidateWithPath(path string) error

ValidateWithPath validates the CT_CtxLink and its children, prefixing error messages with path

type CT_CtxNode

type CT_CtxNode struct {
    IdAttr                 *string
    TypeAttr               ST_CtxNodeType
    RotatedBoundingBoxAttr *ST_Points
    AlignmentLevelAttr     *int32
    ContentTypeAttr        *int32
    AscenderAttr           *ST_Points
    DescenderAttr          *ST_Points
    BaselineAttr           *ST_Points
    MidlineAttr            *ST_Points
    CustomRecognizerIdAttr *string
    MathMLAttr             *string
    MathStructAttr         *string
    MathSymbolAttr         *string
    BeginModifierTypeAttr  *string
    EndModifierTypeAttr    *string
    RotationAngleAttr      *int32
    HotPointsAttr          *ST_Points
    CentroidAttr           *string
    SemanticTypeAttr       *ST_SemanticType
    ShapeNameAttr          *string
    ShapeGeometryAttr      *ST_Points
    Property               []*CT_Property
    SourceLink             []*CT_CtxLink
    DestinationLink        []*CT_CtxLink
}

func NewCT_CtxNode

func NewCT_CtxNode() *CT_CtxNode

func (*CT_CtxNode) MarshalXML

func (m *CT_CtxNode) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*CT_CtxNode) UnmarshalXML

func (m *CT_CtxNode) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

func (*CT_CtxNode) Validate

func (m *CT_CtxNode) Validate() error

Validate validates the CT_CtxNode and its children

func (*CT_CtxNode) ValidateWithPath

func (m *CT_CtxNode) ValidateWithPath(path string) error

ValidateWithPath validates the CT_CtxNode and its children, prefixing error messages with path

type CT_Property

type CT_Property struct {
    TypeAttr string
    Content  string
}

func NewCT_Property

func NewCT_Property() *CT_Property

func (*CT_Property) MarshalXML

func (m *CT_Property) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*CT_Property) UnmarshalXML

func (m *CT_Property) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

func (*CT_Property) Validate

func (m *CT_Property) Validate() error

Validate validates the CT_Property and its children

func (*CT_Property) ValidateWithPath

func (m *CT_Property) ValidateWithPath(path string) error

ValidateWithPath validates the CT_Property and its children, prefixing error messages with path

type Context

type Context struct {
    CT_CtxNode
}

func NewContext

func NewContext() *Context

func (*Context) MarshalXML

func (m *Context) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*Context) UnmarshalXML

func (m *Context) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

func (*Context) Validate

func (m *Context) Validate() error

Validate validates the Context and its children

func (*Context) ValidateWithPath

func (m *Context) ValidateWithPath(path string) error

ValidateWithPath validates the Context and its children, prefixing error messages with path

type ST_CtxNodeType

ST_CtxNodeType is a union type

type ST_CtxNodeType struct {
    ST_KnownCtxNodeType ST_KnownCtxNodeType
    ST_Guid             *string
}

func ParseUnionST_CtxNodeType

func ParseUnionST_CtxNodeType(s string) (ST_CtxNodeType, error)

func (ST_CtxNodeType) MarshalXML

func (m ST_CtxNodeType) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (ST_CtxNodeType) String

func (m ST_CtxNodeType) String() string

func (*ST_CtxNodeType) Validate

func (m *ST_CtxNodeType) Validate() error

func (*ST_CtxNodeType) ValidateWithPath

func (m *ST_CtxNodeType) ValidateWithPath(path string) error

type ST_Dir

type ST_Dir byte
const (
    ST_DirUnset ST_Dir = 0
    ST_DirTo    ST_Dir = 1
    ST_DirFrom  ST_Dir = 2
    ST_DirWith  ST_Dir = 3
)

func (ST_Dir) MarshalXML

func (m ST_Dir) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (ST_Dir) MarshalXMLAttr

func (e ST_Dir) MarshalXMLAttr(name xml.Name) (xml.Attr, error)

func (ST_Dir) String

func (m ST_Dir) String() string

func (*ST_Dir) UnmarshalXML

func (m *ST_Dir) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

func (*ST_Dir) UnmarshalXMLAttr

func (e *ST_Dir) UnmarshalXMLAttr(attr xml.Attr) error

func (ST_Dir) Validate

func (m ST_Dir) Validate() error

func (ST_Dir) ValidateWithPath

func (m ST_Dir) ValidateWithPath(path string) error

type ST_KnownCtxNodeType

type ST_KnownCtxNodeType byte
const (
    ST_KnownCtxNodeTypeUnset            ST_KnownCtxNodeType = 0
    ST_KnownCtxNodeTypeRoot             ST_KnownCtxNodeType = 1
    ST_KnownCtxNodeTypeUnclassifiedInk  ST_KnownCtxNodeType = 2
    ST_KnownCtxNodeTypeWritingRegion    ST_KnownCtxNodeType = 3
    ST_KnownCtxNodeTypeAnalysisHint     ST_KnownCtxNodeType = 4
    ST_KnownCtxNodeTypeObject           ST_KnownCtxNodeType = 5
    ST_KnownCtxNodeTypeInkDrawing       ST_KnownCtxNodeType = 6
    ST_KnownCtxNodeTypeImage            ST_KnownCtxNodeType = 7
    ST_KnownCtxNodeTypeParagraph        ST_KnownCtxNodeType = 8
    ST_KnownCtxNodeTypeLine             ST_KnownCtxNodeType = 9
    ST_KnownCtxNodeTypeInkBullet        ST_KnownCtxNodeType = 10
    ST_KnownCtxNodeTypeInkWord          ST_KnownCtxNodeType = 11
    ST_KnownCtxNodeTypeTextWord         ST_KnownCtxNodeType = 12
    ST_KnownCtxNodeTypeCustomRecognizer ST_KnownCtxNodeType = 13
    ST_KnownCtxNodeTypeMathRegion       ST_KnownCtxNodeType = 14
    ST_KnownCtxNodeTypeMathEquation     ST_KnownCtxNodeType = 15
    ST_KnownCtxNodeTypeMathStruct       ST_KnownCtxNodeType = 16
    ST_KnownCtxNodeTypeMathSymbol       ST_KnownCtxNodeType = 17
    ST_KnownCtxNodeTypeMathIdentifier   ST_KnownCtxNodeType = 18
    ST_KnownCtxNodeTypeMathOperator     ST_KnownCtxNodeType = 19
    ST_KnownCtxNodeTypeMathNumber       ST_KnownCtxNodeType = 20
    ST_KnownCtxNodeTypeNonInkDrawing    ST_KnownCtxNodeType = 21
    ST_KnownCtxNodeTypeGroupNode        ST_KnownCtxNodeType = 22
    ST_KnownCtxNodeTypeMixedDrawing     ST_KnownCtxNodeType = 23
)

func (ST_KnownCtxNodeType) MarshalXML

func (m ST_KnownCtxNodeType) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (ST_KnownCtxNodeType) MarshalXMLAttr

func (e ST_KnownCtxNodeType) MarshalXMLAttr(name xml.Name) (xml.Attr, error)

func (ST_KnownCtxNodeType) String

func (m ST_KnownCtxNodeType) String() string

func (*ST_KnownCtxNodeType) UnmarshalXML

func (m *ST_KnownCtxNodeType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

func (*ST_KnownCtxNodeType) UnmarshalXMLAttr

func (e *ST_KnownCtxNodeType) UnmarshalXMLAttr(attr xml.Attr) error

func (ST_KnownCtxNodeType) Validate

func (m ST_KnownCtxNodeType) Validate() error

func (ST_KnownCtxNodeType) ValidateWithPath

func (m ST_KnownCtxNodeType) ValidateWithPath(path string) error

type ST_KnownSemanticType

type ST_KnownSemanticType byte
const (
    ST_KnownSemanticTypeUnset         ST_KnownSemanticType = 0
    ST_KnownSemanticTypeNone          ST_KnownSemanticType = 1
    ST_KnownSemanticTypeUnderline     ST_KnownSemanticType = 2
    ST_KnownSemanticTypeStrikethrough ST_KnownSemanticType = 3
    ST_KnownSemanticTypeHighlight     ST_KnownSemanticType = 4
    ST_KnownSemanticTypeScratchOut    ST_KnownSemanticType = 5
    ST_KnownSemanticTypeVerticalRange ST_KnownSemanticType = 6
    ST_KnownSemanticTypeCallout       ST_KnownSemanticType = 7
    ST_KnownSemanticTypeEnclosure     ST_KnownSemanticType = 8
    ST_KnownSemanticTypeComment       ST_KnownSemanticType = 9
    ST_KnownSemanticTypeContainer     ST_KnownSemanticType = 10
    ST_KnownSemanticTypeConnector     ST_KnownSemanticType = 11
)

func (ST_KnownSemanticType) MarshalXML

func (m ST_KnownSemanticType) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (ST_KnownSemanticType) MarshalXMLAttr

func (e ST_KnownSemanticType) MarshalXMLAttr(name xml.Name) (xml.Attr, error)

func (ST_KnownSemanticType) String

func (m ST_KnownSemanticType) String() string

func (*ST_KnownSemanticType) UnmarshalXML

func (m *ST_KnownSemanticType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

func (*ST_KnownSemanticType) UnmarshalXMLAttr

func (e *ST_KnownSemanticType) UnmarshalXMLAttr(attr xml.Attr) error

func (ST_KnownSemanticType) Validate

func (m ST_KnownSemanticType) Validate() error

func (ST_KnownSemanticType) ValidateWithPath

func (m ST_KnownSemanticType) ValidateWithPath(path string) error

type ST_Points

type ST_Points []string

func ParseSliceST_Points

func ParseSliceST_Points(v string) (ST_Points, error)

type ST_Ref

ST_Ref is a union type

type ST_Ref struct {
    ST_Guid *string
    Uint32  *uint32
}

func ParseUnionST_Ref

func ParseUnionST_Ref(s string) (ST_Ref, error)

func (ST_Ref) MarshalXML

func (m ST_Ref) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (ST_Ref) String

func (m ST_Ref) String() string

func (*ST_Ref) Validate

func (m *ST_Ref) Validate() error

func (*ST_Ref) ValidateWithPath

func (m *ST_Ref) ValidateWithPath(path string) error

type ST_SemanticType

ST_SemanticType is a union type

type ST_SemanticType struct {
    ST_KnownSemanticType ST_KnownSemanticType
    Uint32               *uint32
}

func ParseUnionST_SemanticType

func ParseUnionST_SemanticType(s string) (ST_SemanticType, error)

func (ST_SemanticType) MarshalXML

func (m ST_SemanticType) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (ST_SemanticType) String

func (m ST_SemanticType) String() string

func (*ST_SemanticType) Validate

func (m *ST_SemanticType) Validate() error

func (*ST_SemanticType) ValidateWithPath

func (m *ST_SemanticType) ValidateWithPath(path string) error