pub struct CT_TextListStyle {
pub default_paragraph_properties: Option<CT_TextParagraphProperties>,
pub level1: Option<CT_TextParagraphProperties>,
pub level2: Option<CT_TextParagraphProperties>,
pub level3: Option<CT_TextParagraphProperties>,
pub level4: Option<CT_TextParagraphProperties>,
pub level5: Option<CT_TextParagraphProperties>,
pub level6: Option<CT_TextParagraphProperties>,
pub level7: Option<CT_TextParagraphProperties>,
pub level8: Option<CT_TextParagraphProperties>,
pub level9: Option<CT_TextParagraphProperties>,
/* private fields */
}Expand description
DrawingML list defaults for each of the nine paragraph levels.
Fields§
§default_paragraph_properties: Option<CT_TextParagraphProperties>§level1: Option<CT_TextParagraphProperties>§level2: Option<CT_TextParagraphProperties>§level3: Option<CT_TextParagraphProperties>§level4: Option<CT_TextParagraphProperties>§level5: Option<CT_TextParagraphProperties>§level6: Option<CT_TextParagraphProperties>§level7: Option<CT_TextParagraphProperties>§level8: Option<CT_TextParagraphProperties>§level9: Option<CT_TextParagraphProperties>Implementations§
Source§impl CT_TextListStyle
impl CT_TextListStyle
Sourcepub fn from_xml(xml: &[u8]) -> Result<Self>
pub fn from_xml(xml: &[u8]) -> Result<Self>
Parses a complete list-style element with any prefix, including the PresentationML wrappers that share this DrawingML content model.
Sourcepub fn from_xml_with_inherited_namespaces(
xml: &[u8],
inherited: &[(String, String)],
) -> Result<Self>
pub fn from_xml_with_inherited_namespaces( xml: &[u8], inherited: &[(String, String)], ) -> Result<Self>
Parses a list-style fragment using its actual enclosing namespace bindings. The original root attributes and opaque children remain retained source facts.
Sourcepub fn with_inherited_defaults(&self, defaults: &Self) -> Result<Self>
pub fn with_inherited_defaults(&self, defaults: &Self) -> Result<Self>
Returns local list defaults over the inherited default and each level.
Sourcepub fn write_xml<W: Write>(&self, writer: &mut Writer<W>) -> Result<()>
pub fn write_xml<W: Write>(&self, writer: &mut Writer<W>) -> Result<()>
Writes the list style with fixed prefixes and ascending level order.
Sourcepub fn write_xml_as<W: Write>(
&self,
writer: &mut Writer<W>,
tag: &str,
) -> Result<()>
pub fn write_xml_as<W: Write>( &self, writer: &mut Writer<W>, tag: &str, ) -> Result<()>
Writes the list style using a caller-selected OOXML wrapper tag.
Sourcepub fn level(&self, level: usize) -> Option<&CT_TextParagraphProperties>
pub fn level(&self, level: usize) -> Option<&CT_TextParagraphProperties>
Returns one level by its one-based DrawingML number.
pub fn raw_children(&self) -> &OrderedRawChildren
Trait Implementations§
Source§impl Clone for CT_TextListStyle
impl Clone for CT_TextListStyle
Source§impl Debug for CT_TextListStyle
impl Debug for CT_TextListStyle
Source§impl Default for CT_TextListStyle
impl Default for CT_TextListStyle
impl Eq for CT_TextListStyle
Auto Trait Implementations§
impl Freeze for CT_TextListStyle
impl RefUnwindSafe for CT_TextListStyle
impl Send for CT_TextListStyle
impl Sync for CT_TextListStyle
impl Unpin for CT_TextListStyle
impl UnsafeUnpin for CT_TextListStyle
impl UnwindSafe for CT_TextListStyle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more