t.go 603 B

123456789101112131415161718192021222324252627282930
  1. package text
  2. import (
  3. "github.com/kpmy/odf/model"
  4. "github.com/kpmy/odf/xmlns"
  5. )
  6. const (
  7. P model.LeafName = "text:p"
  8. S model.LeafName = "text:s"
  9. LineBreak model.LeafName = "text:line-break"
  10. Tab model.LeafName = "text:tab"
  11. Span model.LeafName = "text:span"
  12. )
  13. const (
  14. C model.AttrName = "text:c"
  15. StyleName model.AttrName = "text:style-name"
  16. AnchorType model.AttrName = "text:anchor-type"
  17. )
  18. const (
  19. Paragraph = "parahraph"
  20. )
  21. func init() {
  22. xmlns.Typed[C] = xmlns.INT
  23. xmlns.Typed[AnchorType] = xmlns.ENUM
  24. xmlns.Enums[AnchorType] = []string{Paragraph}
  25. }