MCPcopy Index your code
hub / github.com/python-openxml/python-docx / CT_LsdException

Class CT_LsdException

src/docx/oxml/styles.py:67–89  ·  view source on GitHub ↗

`` `` element, defining override visibility behaviors for a named latent style.

Source from the content-addressed store, hash-verified

65
66
67class 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
92class CT_Style(BaseOxmlElement):

Callers

nothing calls this directly

Calls 2

OptionalAttributeClass · 0.90
RequiredAttributeClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…