14.2.5 Diagram Layout Definition Part
Content Type:
application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml
Root
http://purl.oclc.org/ooxml/drawingml/diagram
Namespace:
Source Relationship:
http://purl.oclc.org/ooxml/officeDocument/relationships/diagramLayout
An instance of this part type is a template that describes how diagram-related data is mapped to a shape.
A package shall contain exactly one Diagram Layout Definition part per diagram. Each Layout Definition part shall be the target of an explicit relationship from a WordprocessingML Main Document (11.3.10); a SpreadsheetML Drawings part (12.3.8); or a PresentationML Handout Master (13.3.3), Notes Master (13.3.4), Notes Slide (13.3.5), Slide (13.3.8), Slide Layout (13.3.9), or Slide Master (13.3.10) part. If a document contains multiple diagrams having the same graphic layout definition, each of those diagrams shall have its own copy of that Diagram Layout Definition part.
[Example: The following SpreadsheetML Drawings part-relationship item contains a relationship to two Diagram Layout Definition parts, which are stored in the ZIP items ../graphics/layoutN.xml.
<Relationships xmlns="…">
<Relationship Id="rId2"
Type="http://…/diagramLayout" Target="../graphics/layout1.xml"/>
<Relationship Id="rId6"
Type="http://…/diagramLayout" Target="../graphics/layout2.xml"/>
</Relationships>
end example]
The root element for a part of this content type shall be layoutDef.
[Example: layout1.xml contains the following:
<lo:layoutDef xmlns:lo="…" uniqueId="…2" minVer="12.0" defStyle="">
<lo:title lang="" val="Hierarchy 2"/>
<lo:desc lang="" val=""/>
<lo:catLst>
<lo:cat type="hierarchy" pri="2000"/>
</lo:catLst>
<lo:sampData>
…
</lo:sampData>
<lo:styleData>
…
</lo:styleData>
<lo:clrData>
…
</lo:clrData>
<lo:layoutNode name="Name0" styleLbl="" moveWith="">
…
</lo:layoutNode>
</lo:layoutDef>
end example]
A Diagram Layout Definition part shall be located within the package containing the relationships part (expressed syntactically, the TargetMode attribute of the Relationship element shall be Internal).
A Diagram Layout Definition part is permitted to have explicit relationships to the following parts and items defined by ISO/IEC 29500:
- Image (15.2.14)
A Diagram Layout Definition part shall not have any implicit or explicit relationships to other parts defined by ISO/IEC 29500.