Module text

Module text 

Source
Expand description

Text is stored as a simple String whenever possible. When there is a more complex structure, a TextTag is constructed which mirrors the Xml tree structure.

For construction of a new TextTag structure a few helper structs are defined.

use spreadsheet_ods::text::{TextP, TextTag, MetaAuthorName, MetaCreationDate, TextS};
use spreadsheet_ods::style::ParagraphStyleRef;

let p1_ref = ParagraphStyleRef::from("p1");

let txt = TextP::new()
            .style_name(&p1_ref)
            .text("some text")
            .tag(MetaAuthorName::new())
            .tag(TextS::new())
            .tag(MetaCreationDate::new())
            .tag(TextS::new())
            .text("whatever");
println!("{}", txt.into_xmltag());

Structs§

MetaAuthorInitials
$literal
MetaAuthorName
$literal
MetaCharacterCount
$literal
MetaCreationDate
$literal
MetaCreationTime
$literal
MetaCreator
$literal
MetaDate
$literal
MetaDescription
$literal
MetaEditingCycles
$literal
MetaEditingDuration
$literal
MetaFileName
$literal
MetaInitialCreator
$literal
MetaKeywords
$literal
MetaModificationDate
$literal
MetaModificationTime
$literal
MetaPageCount
$literal
MetaPageNumber
$literal
MetaPrintDate
$literal
MetaPrintTime
$literal
MetaPrintedBy
$literal
MetaSheetName
$literal
MetaSubject
$literal
MetaTime
$literal
MetaTitle
$literal
SoftPageBreak
$literal
TextA
$literal
TextH
$literal
TextP
$literal
TextS
$literal
TextSpan
$literal
TextTab
$literal

Type Aliases§

TextContent
Content of a TextTag is just some XmlContent.
TextTag
TextTags are just XmlTags.