`` `` element, defining override visibility behaviors for a named latent style.
| 65 | |
| 66 | |
| 67 | class CT_LsdException(BaseOxmlElement): |
| 68 | """``<w:lsdException>`` element, defining override visibility behaviors for a named |
| 69 | latent style.""" |
| 70 | |
| 71 | locked = OptionalAttribute("w:locked", ST_OnOff) |
| 72 | name = RequiredAttribute("w:name", ST_String) |
| 73 | qFormat = OptionalAttribute("w:qFormat", ST_OnOff) |
| 74 | semiHidden = OptionalAttribute("w:semiHidden", ST_OnOff) |
| 75 | uiPriority = OptionalAttribute("w:uiPriority", ST_DecimalNumber) |
| 76 | unhideWhenUsed = OptionalAttribute("w:unhideWhenUsed", ST_OnOff) |
| 77 | |
| 78 | def delete(self): |
| 79 | """Remove this `w:lsdException` element from the XML document.""" |
| 80 | self.getparent().remove(self) |
| 81 | |
| 82 | def on_off_prop(self, attr_name): |
| 83 | """Return the boolean value of the attribute having `attr_name`, or |None| if |
| 84 | not present.""" |
| 85 | return getattr(self, attr_name) |
| 86 | |
| 87 | def set_on_off_prop(self, attr_name, value): |
| 88 | """Set the on/off attribute having `attr_name` to `value`.""" |
| 89 | setattr(self, attr_name, value) |
| 90 | |
| 91 | |
| 92 | class CT_Style(BaseOxmlElement): |
nothing calls this directly
no test coverage detected
searching dependent graphs…