example: fix old example after namespace change

This commit is contained in:
Todd 2017-10-10 07:49:23 -05:00
parent 97606f33f1
commit 693acf8c3f

View File

@ -4,7 +4,7 @@ package main
import ( import (
"baliance.com/gooxml/color" "baliance.com/gooxml/color"
"baliance.com/gooxml/document" "baliance.com/gooxml/document"
"baliance.com/gooxml/schema/soo/wordprocessingml" "baliance.com/gooxml/schema/soo/wml"
) )
func main() { func main() {
@ -70,13 +70,13 @@ func main() {
run.SetImprint(true) run.SetImprint(true)
run = createParaRun(doc, "highlighting") run = createParaRun(doc, "highlighting")
run.SetHighlight(wordprocessingml.ST_HighlightColorYellow) run.SetHighlight(wml.ST_HighlightColorYellow)
run = createParaRun(doc, "underline") run = createParaRun(doc, "underline")
run.SetUnderline(wordprocessingml.ST_UnderlineWavyDouble, color.Red) run.SetUnderline(wml.ST_UnderlineWavyDouble, color.Red)
run = createParaRun(doc, "text effects") run = createParaRun(doc, "text effects")
run.SetEffect(wordprocessingml.ST_TextEffectAntsRed) run.SetEffect(wml.ST_TextEffectAntsRed)
doc.SaveToFile("simple.docx") doc.SaveToFile("simple.docx")
} }