xmlDecodeDrawing.go 1.0 KB

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