pub struct Annotation { /* private fields */ }
Expand description
The office:annotation element specifies an OpenDocument annotation. The annotation’s text is contained in text:p and text:list elements.
Implementations§
Source§impl Annotation
impl Annotation
Sourcepub fn attrmap_mut(&mut self) -> &mut AttrMap2
pub fn attrmap_mut(&mut self) -> &mut AttrMap2
Allows access to all attributes of the style itself.
Sourcepub fn set_display(&mut self, display: bool)
pub fn set_display(&mut self, display: bool)
Name
Sourcepub fn set_creator<S: Into<String>>(&mut self, creator: Option<S>)
pub fn set_creator<S: Into<String>>(&mut self, creator: Option<S>)
Creator
Sourcepub fn date(&self) -> Option<&NaiveDateTime>
pub fn date(&self) -> Option<&NaiveDateTime>
Date of the annotation.
Sourcepub fn set_date(&mut self, date: Option<NaiveDateTime>)
pub fn set_date(&mut self, date: Option<NaiveDateTime>)
Date of the annotation.
Sourcepub fn push_text_str<S: Into<String>>(&mut self, text: S)
pub fn push_text_str<S: Into<String>>(&mut self, text: S)
Text.
Sourcepub fn set_draw_caption_point_x(&mut self, x: Length)
pub fn set_draw_caption_point_x(&mut self, x: Length)
The draw:caption-point-x attribute, along with draw:caption-point-y specifies the position of a point that is captioned. A set of lines is rendered to that point from the caption area.
Sourcepub fn set_draw_caption_point_y(&mut self, y: Length)
pub fn set_draw_caption_point_y(&mut self, y: Length)
The draw:caption-point-y attribute, along with draw:caption-point-y specifies the position of a point that is captioned. A set of lines is rendered to that point from the caption area.
Sourcepub fn set_draw_class_names(&mut self, names: &[GraphicStyleRef])
pub fn set_draw_class_names(&mut self, names: &[GraphicStyleRef])
The draw:class-names attribute specifies a white-space-separated list of styles with the family value of graphic. The referenced styles are applied in the order they are contained in the list. If both draw:style-name and draw:class-names are present, the style referenced by the draw:style-name attribute is applied before the styles referenced by the draw:class-names attribute.
Sourcepub fn set_draw_corner_radius(&mut self, radius: u32)
pub fn set_draw_corner_radius(&mut self, radius: u32)
The draw:corner-radius attribute specifies the radius of the circle used to round off the corners of a caption draw:caption, rectangle draw:rect, or a text-box draw:textbox. The svg:rx 19.554 and svg:ry 19.555 attributes can also be used to round off the corners of a rectangle draw:rect.
If svg:rx and/or svg:ry and draw:corner-radius attributes are present on an element, the svg:rx and svg:ry attributes control the rounding applied to the shape defined by the element. If one or both of svg:rx and svg:ry attributes are present, any draw:corner-radius attribute is ignored.
Sourcepub fn set_draw_id<S: Into<String>>(&mut self, id: S)
pub fn set_draw_id<S: Into<String>>(&mut self, id: S)
The draw:id attribute specifies identifiers for draw elements. OpenDocument consumers shall ignore a draw:id attribute if it occurs on a draw element with an xml:id attribute value. OpenDocument producers may write draw:id attributes for any draw element in addition to an xml:id attribute. The value of a draw:id attribute shall equal the value of an xml:id attribute on the same element.
The draw:id attribute is deprecated in favor of xml:id
Sourcepub fn set_draw_layer<S: Into<String>>(&mut self, layer: S)
pub fn set_draw_layer<S: Into<String>>(&mut self, layer: S)
The draw:layer attribute specifies the name of a layer in the layer-set of a document.
Note: The effect of this attribute is to assign a shape to a particular layer.
Sourcepub fn set_draw_style_name(&mut self, style: GraphicStyleRef)
pub fn set_draw_style_name(&mut self, style: GraphicStyleRef)
The draw:style-name attribute specifies the name of a style:style element with a style:family attribute value value of graphic.
Sourcepub fn set_draw_text_style_name(&mut self, style: ParagraphStyleRef)
pub fn set_draw_text_style_name(&mut self, style: ParagraphStyleRef)
The draw:text-style-name attribute specifies a style for formatting of text in a shape. The value of this attribute is the name of a style:style 16.2 element with a style:family 19.480 attribute value of paragraph.
Sourcepub fn set_draw_transform<S: AsRef<str>>(&mut self, transform: &[S])
pub fn set_draw_transform<S: AsRef<str>>(&mut self, transform: &[S])
The draw:transform attribute specifies a list of transformations that can be applied to a drawing shape. The value of this attribute is a list of transform definitions, which are applied to the drawing shape in the order in which they are listed. The transform definitions in the list shall be separated by a white space and/or a comma “,” (U+002C, COMMA). Unless otherwise stated, the parameters of the transform definitions are double values (18.2)
The defined transforms are: • matrix(a b c d e f), specifies a transformation in the form of a transformation matrix of six values. “The values describe a standard 3x2 homogeneous transformation matrix in column-major order, where the right column (e, f) describes the translation. • rotate(rotate-angle), specifies a rotation by rotate-angle degrees about the origin of the shape’s coordinate system. • scale(sx [sy]), specifies a scale operation by sx and sy. If sy is not provided, it is assumed to be equal to sx. • skewX(skew-angle), specifies a skew transformation by skew-angle degrees along the x-axis. • skewY(skew-angle), specifies a skew transformation by skew-angle degrees along the y-axis. • translate(tx [ty]), specifies a translation by tx and ty, where tx and ty are lengths (18.3.18). If ty is not provided, it is assumed to be zero.
Sourcepub fn set_draw_z_index(&mut self, z_index: u32)
pub fn set_draw_z_index(&mut self, z_index: u32)
The draw:z-index attribute defines a rendering order for shapes in a document instance. In the absence of this attribute, shapes are rendered in the order in which they appear in the document. The draw:z-index values increase from back to front.
For a shape on which the style:run-through 20.351 attribute with value foreground is in effect, producers should not generate a draw:z-index value that is smaller than the value of any draw:z-index on a shape on which the style:run-through attribute with value background is in effect.
Producers shall not generate a draw:z-index for shapes that are children of a draw:g element 10.3.15 or a dr3d:scene element 10.5.2.
Sourcepub fn set_height(&mut self, height: Length)
pub fn set_height(&mut self, height: Length)
Height.
Sourcepub fn svg_x(&mut self, x: Length)
pub fn svg_x(&mut self, x: Length)
See §5.1.2 of SVG. For drawing shapes that have a non-rectangular shape, the coordinate refers to the drawing shape’s bounding box.
Sourcepub fn svg_y(&mut self, y: Length)
pub fn svg_y(&mut self, y: Length)
See §5.1.2 of SVG. For drawing shapes that have a non-rectangular shape, the coordinate refers to the drawing shape’s bounding box.
Sourcepub fn set_table_end_cell_address(&mut self, cellref: CellRef)
pub fn set_table_end_cell_address(&mut self, cellref: CellRef)
The table:end-cell-address attribute specifies the end position of the shape if it is included in a spreadsheet document.
Sourcepub fn set_table_end_x(&mut self, x: Length)
pub fn set_table_end_x(&mut self, x: Length)
The table:end-x attribute specifies the x-coordinate of the end position of a shape relative to the top-left edge of a cell. The size attributes of the shape are ignored.
Sourcepub fn set_table_end_y(&mut self, y: Length)
pub fn set_table_end_y(&mut self, y: Length)
The table:end-y attribute specifies the y-coordinate of the end position of a shape relative to the top-left edge of a cell. The size attributes of the shape are ignored.
Sourcepub fn set_table_table_background(&mut self, is_bg: bool)
pub fn set_table_table_background(&mut self, is_bg: bool)
The table:table-background attribute specifies whether a shape is in the table background if the drawing shape is included in a spreadsheet document.
The defined values for the table:table-background attribute are:
- false: shape is included in foreground of a table.
- true: shape is included in background of a table.
Sourcepub fn set_xml_id<S: Into<String>>(&mut self, id: S)
pub fn set_xml_id<S: Into<String>>(&mut self, id: S)
The table:end-y attribute specifies the y-coordinate of the end position of a shape relative to the top-left edge of a cell. The size attributes of the shape are ignored.
Trait Implementations§
Source§impl Clone for Annotation
impl Clone for Annotation
Source§fn clone(&self) -> Annotation
fn clone(&self) -> Annotation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for Annotation
impl Debug for Annotation
Source§impl GetSize for Annotation
impl GetSize for Annotation
Source§fn get_heap_size(&self) -> usize
fn get_heap_size(&self) -> usize
Source§fn get_stack_size() -> usize
fn get_stack_size() -> usize
Source§fn get_heap_size_with_tracker<T>(&self, tracker: T) -> (usize, T)where
T: GetSizeTracker,
fn get_heap_size_with_tracker<T>(&self, tracker: T) -> (usize, T)where
T: GetSizeTracker,
tracker
. Read moreSource§fn get_size_with_tracker<T>(&self, tracker: T) -> (usize, T)where
T: GetSizeTracker,
fn get_size_with_tracker<T>(&self, tracker: T) -> (usize, T)where
T: GetSizeTracker,
tracker
. Read more