2.2.5.4.3 Style-to-Master Inheritance

Masters in a web drawing can be linked to a style, which can affect various properties of the master including its visual appearance. A relationship to such a style is called style-to-master inheritance. A style-to-master inheritance allows a master to take on properties from the style it inherits from. A master can have zero to three style-to-master inheritance relationships.

The style-to-master inheritances in a web drawing are specified by the Master XML Part. Each style-to-master inheritance is specified by the attributes of a ShapeSheet_Type child element of the Shapes_Type descendant element of the MasterContents element in a part. Style-to-master inheritance information is specified by the ShapeSheet_Type element and a StyleSheet_Type child element of a StyleSheets_Type child element of the VisioDocument element in the Document XML Part.

If the LineStyle, FillStyle, and TextStyle attributes of the ShapeSheet_Type element are empty, a style-to-master inheritance is not specified. If the LineStyle, FillStyle, or TextStyle attributes of the ShapeSheet_Type element are not empty, a style-to-master inheritance exists individually for each attribute between the ShapeSheet_Type element and the StyleSheet_Type element whose ID attribute value is equal to the value of a LineStyle, FillStyle, or TextStyle attribute of the ShapeSheet_Type element.

The LineStyle, FillStyle, and TextStyle attributes of a ShapeSheet_Type element each specify a set of Cell_Type child elements of the StyleSheet_Type element as specified in the table found in section 2.2.5.4.2.