pub trait ValueFormatTrait {
Show 19 methods // Required methods fn format_ref(&self) -> ValueFormatRef; fn set_name<S: Into<String>>(&mut self, name: S); fn name(&self) -> &String; fn value_type(&self) -> ValueType; fn set_origin(&mut self, origin: StyleOrigin); fn origin(&self) -> StyleOrigin; fn set_styleuse(&mut self, styleuse: StyleUse); fn styleuse(&self) -> StyleUse; fn attrmap(&self) -> &AttrMap2; fn attrmap_mut(&mut self) -> &mut AttrMap2; fn textstyle(&self) -> &AttrMap2; fn textstyle_mut(&mut self) -> &mut AttrMap2; fn push_part(&mut self, part: FormatPart); fn push_parts(&mut self, partvec: &mut Vec<FormatPart>); fn parts(&self) -> &Vec<FormatPart>; fn parts_mut(&mut self) -> &mut Vec<FormatPart>; fn push_stylemap(&mut self, stylemap: ValueStyleMap); fn stylemaps(&self) -> Option<&Vec<ValueStyleMap>>; fn stylemaps_mut(&mut self) -> &mut Vec<ValueStyleMap>;
}
Expand description

Trait used by the builder types.

Required Methods§

source

fn format_ref(&self) -> ValueFormatRef

Returns a reference name for this value format.

source

fn set_name<S: Into<String>>(&mut self, name: S)

The style:name attribute specifies names that reference style mechanisms.

source

fn name(&self) -> &String

The style:name attribute specifies names that reference style mechanisms.

source

fn value_type(&self) -> ValueType

Returns the value type.

source

fn set_origin(&mut self, origin: StyleOrigin)

Sets the storage location for this ValueFormat. Either content.xml or styles.xml.

source

fn origin(&self) -> StyleOrigin

Returns the storage location.

source

fn set_styleuse(&mut self, styleuse: StyleUse)

How is the style used in the document.

source

fn styleuse(&self) -> StyleUse

How is the style used in the document.

source

fn attrmap(&self) -> &AttrMap2

All direct attributes of the number:xxx-style tag.

source

fn attrmap_mut(&mut self) -> &mut AttrMap2

All direct attributes of the number:xxx-style tag.

source

fn textstyle(&self) -> &AttrMap2

Text style attributes.

source

fn textstyle_mut(&mut self) -> &mut AttrMap2

Text style attributes.

source

fn push_part(&mut self, part: FormatPart)

Adds a format part.

source

fn push_parts(&mut self, partvec: &mut Vec<FormatPart>)

Adds all format parts.

source

fn parts(&self) -> &Vec<FormatPart>

Returns the parts.

source

fn parts_mut(&mut self) -> &mut Vec<FormatPart>

Returns the mutable parts.

source

fn push_stylemap(&mut self, stylemap: ValueStyleMap)

Adds a stylemap.

source

fn stylemaps(&self) -> Option<&Vec<ValueStyleMap>>

Returns the stylemaps

source

fn stylemaps_mut(&mut self) -> &mut Vec<ValueStyleMap>

Returns the mutable stylemap.

Object Safety§

This trait is not object safe.

Implementors§