Skip to content

Commit

Permalink
schema: rename wordprocessingml to wml
Browse files Browse the repository at this point in the history
  • Loading branch information
tbaliance committed Sep 23, 2017
1 parent 5c7852d commit ca6c54d
Show file tree
Hide file tree
Showing 767 changed files with 2,948 additions and 2,948 deletions.
2 changes: 1 addition & 1 deletion _examples/document/header-footer-multiple/main.go
Expand Up @@ -4,7 +4,7 @@ package main
import (
"baliance.com/gooxml/document"
"baliance.com/gooxml/measurement"
wml "baliance.com/gooxml/schema/soo/wordprocessingml"
"baliance.com/gooxml/schema/soo/wml"
)

var lorem = `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin lobortis, lectus dictum feugiat tempus, sem neque finibus enim, sed eleifend sem nunc ac diam. Vestibulum tempus sagittis elementum`
Expand Down
2 changes: 1 addition & 1 deletion _examples/document/header-footer/main.go
Expand Up @@ -5,7 +5,7 @@ package main
import (
"baliance.com/gooxml/document"
"baliance.com/gooxml/measurement"
wml "baliance.com/gooxml/schema/soo/wordprocessingml"
"baliance.com/gooxml/schema/soo/wml"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion _examples/document/image/main.go
Expand Up @@ -8,7 +8,7 @@ import (
"baliance.com/gooxml/document"
"baliance.com/gooxml/measurement"

wml "baliance.com/gooxml/schema/soo/wordprocessingml"
"baliance.com/gooxml/schema/soo/wml"
)

var lorem = `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin lobortis, lectus dictum feugiat tempus, sem neque finibus enim, sed eleifend sem nunc ac diam. Vestibulum tempus sagittis elementum`
Expand Down
2 changes: 1 addition & 1 deletion _examples/document/tables/main.go
Expand Up @@ -6,7 +6,7 @@ import (
"baliance.com/gooxml/document"
"baliance.com/gooxml/measurement"

wml "baliance.com/gooxml/schema/soo/wordprocessingml"
"baliance.com/gooxml/schema/soo/wml"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion _examples/document/toc/main.go
Expand Up @@ -2,7 +2,7 @@
package main

import "baliance.com/gooxml/document"
import wml "baliance.com/gooxml/schema/soo/wordprocessingml"
import "baliance.com/gooxml/schema/soo/wml"

var lorem = `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin lobortis, lectus dictum feugiat tempus, sem neque finibus enim, sed eleifend sem nunc ac diam. Vestibulum tempus sagittis elementum`

Expand Down
2 changes: 1 addition & 1 deletion creator_test.go
Expand Up @@ -17,7 +17,7 @@ import (

"baliance.com/gooxml"

wml "baliance.com/gooxml/schema/soo/wordprocessingml"
"baliance.com/gooxml/schema/soo/wml"
"baliance.com/gooxml/zippkg"
)

Expand Down
2 changes: 1 addition & 1 deletion document/anchoreddrawing.go
Expand Up @@ -12,7 +12,7 @@ import (
"baliance.com/gooxml/common"
"baliance.com/gooxml/measurement"
pic "baliance.com/gooxml/schema/soo/drawingml/picture"
wml "baliance.com/gooxml/schema/soo/wordprocessingml"
"baliance.com/gooxml/schema/soo/wml"
)

// AnchoredDrawing is an absolutely positioned image within a document page.
Expand Down
2 changes: 1 addition & 1 deletion document/cell.go
Expand Up @@ -7,7 +7,7 @@

package document

import wml "baliance.com/gooxml/schema/soo/wordprocessingml"
import "baliance.com/gooxml/schema/soo/wml"

// Cell is a table cell within a document (not a spreadsheet)
type Cell struct {
Expand Down
2 changes: 1 addition & 1 deletion document/cellproperties.go
Expand Up @@ -7,7 +7,7 @@

package document

import wml "baliance.com/gooxml/schema/soo/wordprocessingml"
import "baliance.com/gooxml/schema/soo/wml"

// CellProperties are a table cells properties within a document.
type CellProperties struct {
Expand Down
2 changes: 1 addition & 1 deletion document/color.go
Expand Up @@ -11,7 +11,7 @@ import (
"fmt"

"baliance.com/gooxml/color"
wml "baliance.com/gooxml/schema/soo/wordprocessingml"
"baliance.com/gooxml/schema/soo/wml"
)

// Color controls the run or styles color.
Expand Down
2 changes: 1 addition & 1 deletion document/document.go
Expand Up @@ -25,7 +25,7 @@ import (
dml "baliance.com/gooxml/schema/soo/drawingml"
st "baliance.com/gooxml/schema/soo/officeDocument/sharedTypes"
"baliance.com/gooxml/schema/soo/package/relationships"
wml "baliance.com/gooxml/schema/soo/wordprocessingml"
"baliance.com/gooxml/schema/soo/wml"
)

// Document is a text document that can be written out in the OOXML .docx
Expand Down
2 changes: 1 addition & 1 deletion document/fonts.go
Expand Up @@ -7,7 +7,7 @@

package document

import wml "baliance.com/gooxml/schema/soo/wordprocessingml"
import "baliance.com/gooxml/schema/soo/wml"

// Fonts allows manipulating a style or run's fonts.
type Fonts struct {
Expand Down
2 changes: 1 addition & 1 deletion document/footer.go
Expand Up @@ -7,7 +7,7 @@

package document

import wml "baliance.com/gooxml/schema/soo/wordprocessingml"
import "baliance.com/gooxml/schema/soo/wml"

// Footer is a footer for a document section.
type Footer struct {
Expand Down
2 changes: 1 addition & 1 deletion document/formfield.go
Expand Up @@ -8,7 +8,7 @@
package document

import (
wml "baliance.com/gooxml/schema/soo/wordprocessingml"
"baliance.com/gooxml/schema/soo/wml"
)

// FormFieldType is the type of the form field.
Expand Down
2 changes: 1 addition & 1 deletion document/header.go
Expand Up @@ -7,7 +7,7 @@

package document

import wml "baliance.com/gooxml/schema/soo/wordprocessingml"
import "baliance.com/gooxml/schema/soo/wml"

// Header is a header for a document section.
type Header struct {
Expand Down
2 changes: 1 addition & 1 deletion document/numbering.go
Expand Up @@ -12,7 +12,7 @@ import (

"baliance.com/gooxml"
"baliance.com/gooxml/schema/soo/officeDocument/sharedTypes"
wml "baliance.com/gooxml/schema/soo/wordprocessingml"
"baliance.com/gooxml/schema/soo/wml"
)

// Numbering is the document wide numbering styles contained in numbering.xml.
Expand Down
2 changes: 1 addition & 1 deletion document/paragraph.go
Expand Up @@ -8,7 +8,7 @@
package document

import (
wml "baliance.com/gooxml/schema/soo/wordprocessingml"
"baliance.com/gooxml/schema/soo/wml"
)

// Paragraph is a paragraph within a document.
Expand Down
2 changes: 1 addition & 1 deletion document/paragraphproperties.go
Expand Up @@ -13,7 +13,7 @@ import (
"baliance.com/gooxml"
"baliance.com/gooxml/measurement"
"baliance.com/gooxml/schema/soo/officeDocument/sharedTypes"
wml "baliance.com/gooxml/schema/soo/wordprocessingml"
"baliance.com/gooxml/schema/soo/wml"
)

// ParagraphProperties are the properties for a paragraph.
Expand Down
2 changes: 1 addition & 1 deletion document/paragraphstyleproperties.go
Expand Up @@ -11,7 +11,7 @@ import (
"baliance.com/gooxml"
"baliance.com/gooxml/measurement"
"baliance.com/gooxml/schema/soo/officeDocument/sharedTypes"
wml "baliance.com/gooxml/schema/soo/wordprocessingml"
"baliance.com/gooxml/schema/soo/wml"
)

// ParagraphStyleProperties is the styling information for a paragraph.
Expand Down
2 changes: 1 addition & 1 deletion document/row.go
Expand Up @@ -8,7 +8,7 @@
package document

import (
wml "baliance.com/gooxml/schema/soo/wordprocessingml"
"baliance.com/gooxml/schema/soo/wml"
)

// Row is a row within a table within a document.
Expand Down
2 changes: 1 addition & 1 deletion document/run.go
Expand Up @@ -19,7 +19,7 @@ import (
dml "baliance.com/gooxml/schema/soo/drawingml"
pic "baliance.com/gooxml/schema/soo/drawingml/picture"
"baliance.com/gooxml/schema/soo/officeDocument/sharedTypes"
wml "baliance.com/gooxml/schema/soo/wordprocessingml"
"baliance.com/gooxml/schema/soo/wml"
)

// Run is a run of text within a paragraph that shares the same formatting.
Expand Down
2 changes: 1 addition & 1 deletion document/runstyleproperties.go
Expand Up @@ -10,7 +10,7 @@ package document
import (
"baliance.com/gooxml"
"baliance.com/gooxml/measurement"
wml "baliance.com/gooxml/schema/soo/wordprocessingml"
"baliance.com/gooxml/schema/soo/wml"
)

// RunStyleProperties controls run styling properties
Expand Down
2 changes: 1 addition & 1 deletion document/section.go
Expand Up @@ -11,7 +11,7 @@ import (
"log"

"baliance.com/gooxml"
wml "baliance.com/gooxml/schema/soo/wordprocessingml"
"baliance.com/gooxml/schema/soo/wml"
)

// Section is the beginning of a new section.
Expand Down
2 changes: 1 addition & 1 deletion document/settings.go
Expand Up @@ -9,7 +9,7 @@ package document

import (
"baliance.com/gooxml"
wml "baliance.com/gooxml/schema/soo/wordprocessingml"
"baliance.com/gooxml/schema/soo/wml"
)

// Settings controls the document settings.
Expand Down
2 changes: 1 addition & 1 deletion document/settings_test.go
Expand Up @@ -7,7 +7,7 @@ import (
"os"
"testing"

wml "baliance.com/gooxml/schema/soo/wordprocessingml"
"baliance.com/gooxml/schema/soo/wml"
"baliance.com/gooxml/testhelper"
"baliance.com/gooxml/zippkg"
)
Expand Down
2 changes: 1 addition & 1 deletion document/style.go
Expand Up @@ -8,7 +8,7 @@
package document

import (
wml "baliance.com/gooxml/schema/soo/wordprocessingml"
"baliance.com/gooxml/schema/soo/wml"
)

// Style is a style within the styles.xml file.
Expand Down
2 changes: 1 addition & 1 deletion document/styles.go
Expand Up @@ -13,7 +13,7 @@ import (
"baliance.com/gooxml"
"baliance.com/gooxml/measurement"
"baliance.com/gooxml/schema/soo/officeDocument/sharedTypes"
wml "baliance.com/gooxml/schema/soo/wordprocessingml"
"baliance.com/gooxml/schema/soo/wml"
)

// Styles is the document wide styles contained in styles.xml.
Expand Down
2 changes: 1 addition & 1 deletion document/table.go
Expand Up @@ -8,7 +8,7 @@
package document

import (
wml "baliance.com/gooxml/schema/soo/wordprocessingml"
"baliance.com/gooxml/schema/soo/wml"
)

// Table is a table within a document.
Expand Down
2 changes: 1 addition & 1 deletion document/tableborders.go
Expand Up @@ -11,7 +11,7 @@ import (
"baliance.com/gooxml"
"baliance.com/gooxml/color"
"baliance.com/gooxml/measurement"
wml "baliance.com/gooxml/schema/soo/wordprocessingml"
"baliance.com/gooxml/schema/soo/wml"
)

// TableBorders allows manipulation of borders on a table.
Expand Down
2 changes: 1 addition & 1 deletion document/tableproperties.go
Expand Up @@ -10,7 +10,7 @@ package document
import (
"baliance.com/gooxml"
"baliance.com/gooxml/measurement"
wml "baliance.com/gooxml/schema/soo/wordprocessingml"
"baliance.com/gooxml/schema/soo/wml"
)

// TableProperties are the properties for a table within a document
Expand Down
2 changes: 1 addition & 1 deletion document/tablewidth.go
Expand Up @@ -10,7 +10,7 @@ package document
import (
"baliance.com/gooxml"
"baliance.com/gooxml/measurement"
wml "baliance.com/gooxml/schema/soo/wordprocessingml"
"baliance.com/gooxml/schema/soo/wml"
)

// TableWidth controls width values in table settings.
Expand Down
Expand Up @@ -7,7 +7,7 @@
// appearing in the file LICENSE included in the packaging of this file. A
// commercial license can be purchased by contacting sales@baliance.com.

package wordprocessingml
package wml

import (
"encoding/xml"
Expand Down
Expand Up @@ -7,28 +7,28 @@
// appearing in the file LICENSE included in the packaging of this file. A
// commercial license can be purchased by contacting sales@baliance.com.

package wordprocessingml_test
package wml_test

import (
"encoding/xml"
"testing"

"baliance.com/gooxml/schema/soo/wordprocessingml"
"baliance.com/gooxml/schema/soo/wml"
)

func TestAG_PasswordConstructor(t *testing.T) {
v := wordprocessingml.NewAG_Password()
v := wml.NewAG_Password()
if v == nil {
t.Errorf("wordprocessingml.NewAG_Password must return a non-nil value")
t.Errorf("wml.NewAG_Password must return a non-nil value")
}
if err := v.Validate(); err != nil {
t.Errorf("newly constructed wordprocessingml.AG_Password should validate: %s", err)
t.Errorf("newly constructed wml.AG_Password should validate: %s", err)
}
}

func TestAG_PasswordMarshalUnmarshal(t *testing.T) {
v := wordprocessingml.NewAG_Password()
v := wml.NewAG_Password()
buf, _ := xml.Marshal(v)
v2 := wordprocessingml.NewAG_Password()
v2 := wml.NewAG_Password()
xml.Unmarshal(buf, v2)
}
Expand Up @@ -7,7 +7,7 @@
// appearing in the file LICENSE included in the packaging of this file. A
// commercial license can be purchased by contacting sales@baliance.com.

package wordprocessingml
package wml

import (
"encoding/xml"
Expand Down
Expand Up @@ -7,28 +7,28 @@
// appearing in the file LICENSE included in the packaging of this file. A
// commercial license can be purchased by contacting sales@baliance.com.

package wordprocessingml_test
package wml_test

import (
"encoding/xml"
"testing"

"baliance.com/gooxml/schema/soo/wordprocessingml"
"baliance.com/gooxml/schema/soo/wml"
)

func TestAG_SectPrAttributesConstructor(t *testing.T) {
v := wordprocessingml.NewAG_SectPrAttributes()
v := wml.NewAG_SectPrAttributes()
if v == nil {
t.Errorf("wordprocessingml.NewAG_SectPrAttributes must return a non-nil value")
t.Errorf("wml.NewAG_SectPrAttributes must return a non-nil value")
}
if err := v.Validate(); err != nil {
t.Errorf("newly constructed wordprocessingml.AG_SectPrAttributes should validate: %s", err)
t.Errorf("newly constructed wml.AG_SectPrAttributes should validate: %s", err)
}
}

func TestAG_SectPrAttributesMarshalUnmarshal(t *testing.T) {
v := wordprocessingml.NewAG_SectPrAttributes()
v := wml.NewAG_SectPrAttributes()
buf, _ := xml.Marshal(v)
v2 := wordprocessingml.NewAG_SectPrAttributes()
v2 := wml.NewAG_SectPrAttributes()
xml.Unmarshal(buf, v2)
}
Expand Up @@ -7,7 +7,7 @@
// appearing in the file LICENSE included in the packaging of this file. A
// commercial license can be purchased by contacting sales@baliance.com.

package wordprocessingml
package wml

import (
"encoding/xml"
Expand Down

0 comments on commit ca6c54d

Please sign in to comment.