document

package
v0.0.0-...-dfdad10 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	XMLNS_W   = `http://schemas.openxmlformats.org/wordprocessingml/2006/main`
	XMLNS_R   = `http://schemas.openxmlformats.org/officeDocument/2006/relationships`
	XMLNS_WP  = `http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing`
	XMLNS_WPS = `http://schemas.microsoft.com/office/word/2010/wordprocessingShape`
	XMLNS_WPC = `http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas`
	XMLNS_WPG = `http://schemas.microsoft.com/office/word/2010/wordprocessingGroup`

	XMLNS_REL     = `http://schemas.openxmlformats.org/package/2006/relationships`
	REL_HYPERLINK = `http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink`
	REL_IMAGE     = `http://schemas.openxmlformats.org/officeDocument/2006/relationships/image`

	REL_TARGETMODE = "External"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Body

type Body struct {
	Items []interface{}
}

Body <w:body> Body.Items 文本内容格式

type Document

type Document struct {
	XMLName xml.Name `xml:"w:document"`
	XmlW    string   `xml:"xmlns:w,attr"`             // cannot be unmarshalled in
	XmlR    string   `xml:"xmlns:r,attr,omitempty"`   // cannot be unmarshalled in
	XmlWp   string   `xml:"xmlns:wp,attr,omitempty"`  // cannot be unmarshalled in
	XmlWps  string   `xml:"xmlns:wps,attr,omitempty"` // cannot be unmarshalled in
	XmlWpc  string   `xml:"xmlns:wpc,attr,omitempty"` // cannot be unmarshalled in
	XmlWpg  string   `xml:"xmlns:wpg,attr,omitempty"` // cannot be unmarshalled in

	Body Body `xml:"w:body"`
}

Document docx对象

type Relationship

type Relationship struct {
	ID         string `xml:"Id,attr"`
	Type       string `xml:"Type,attr"`
	Target     string `xml:"Target,attr"`
	TargetMode string `xml:"TargetMode,attr,omitempty"`
}

Relationship ...

type Relationships

type Relationships struct {
	Xmlns        string `xml:"xmlns,attr"`
	Relationship []Relationship
}

Relationships ...

Jump to

Keyboard shortcuts

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