forked from plandem/xlsx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
font_effect.go
30 lines (24 loc) · 903 Bytes
/
font_effect.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright (c) 2017 Andrey Gayvoronsky <plandem@gmail.com>
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package primitives
import (
"encoding/xml"
"github.com/plandem/ooxml/ml"
)
//FontEffectType is a type to encode XSD ST_VerticalAlignRun
type FontEffectType ml.Property
//List of all possible values for FontEffectType
const (
FontEffectBaseline FontEffectType = "baseline"
FontEffectSuperscript FontEffectType = "superscript"
FontEffectSubscript FontEffectType = "subscript"
)
//MarshalXML marshal FontEffectType
func (t *FontEffectType) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
return (*ml.Property)(t).MarshalXML(e, start)
}
//UnmarshalXML unmarshal FontEffectType
func (t *FontEffectType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
return (*ml.Property)(t).UnmarshalXML(d, start)
}