2017-01-17 19:06:42 +08:00
|
|
|
package excelize
|
|
|
|
|
|
|
|
import "encoding/xml"
|
|
|
|
|
2017-03-01 11:00:42 +08:00
|
|
|
// decodeCellAnchor directly maps the oneCellAnchor (One Cell Anchor Shape Size)
|
|
|
|
// and twoCellAnchor (Two Cell Anchor Shape Size). This element specifies a two
|
|
|
|
// cell anchor placeholder for a group, a shape, or a drawing element. It moves
|
|
|
|
// with cells and its extents are in EMU units.
|
|
|
|
type decodeCellAnchor struct {
|
2017-01-17 19:06:42 +08:00
|
|
|
EditAs string `xml:"editAs,attr,omitempty"`
|
|
|
|
Content string `xml:",innerxml"`
|
|
|
|
}
|
|
|
|
|
2017-01-18 16:05:01 +08:00
|
|
|
// decodeWsDr directly maps the root element for a part of this content type
|
|
|
|
// shall wsDr. In order to solve the problem that the label structure is changed
|
|
|
|
// after serialization and deserialization, two different structures are
|
|
|
|
// defined. decodeWsDr just for deserialization.
|
2017-01-17 19:06:42 +08:00
|
|
|
type decodeWsDr struct {
|
2017-03-01 11:00:42 +08:00
|
|
|
A string `xml:"xmlns a,attr"`
|
|
|
|
Xdr string `xml:"xmlns xdr,attr"`
|
|
|
|
OneCellAnchor []*decodeCellAnchor `xml:"oneCellAnchor,omitempty"`
|
|
|
|
TwoCellAnchor []*decodeCellAnchor `xml:"twoCellAnchor,omitempty"`
|
|
|
|
XMLName xml.Name `xml:"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing wsDr,omitempty"`
|
2017-01-17 19:06:42 +08:00
|
|
|
}
|