xmlDecodeDrawing.go 1023 B

123456789101112131415161718192021
  1. package excelize
  2. import "encoding/xml"
  3. // decodeTwoCellAnchor directly maps the twoCellAnchor (Two Cell Anchor Shape Size). This element
  4. // specifies a two cell anchor placeholder for a group, a shape, or a drawing element. It moves
  5. // with cells and its extents are in EMU units.
  6. type decodeTwoCellAnchor struct {
  7. EditAs string `xml:"editAs,attr,omitempty"`
  8. Content string `xml:",innerxml"`
  9. }
  10. // decodeWsDr directly maps the root element for a part of this content type shall wsDr.
  11. // In order to solve the problem that the label structure is changed after serialization
  12. // and deserialization, two different structures are defined. decodeWsDr just for deserialization.
  13. type decodeWsDr struct {
  14. A string `xml:"xmlns a,attr"`
  15. Xdr string `xml:"xmlns xdr,attr"`
  16. TwoCellAnchor []*decodeTwoCellAnchor `xml:"twoCellAnchor,omitempty"`
  17. XMLName xml.Name `xml:"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing wsDr,omitempty"`
  18. }