Expand description
DrawingML (DML) support for the ooxml library.
This crate provides shared DrawingML types used by Word (WML), Excel (SML), and PowerPoint (PML) documents.
DrawingML is defined in ECMA-376 Part 4 and provides common elements for text formatting, shapes, images, and charts.
§Text Content
DrawingML text is structured as paragraphs containing runs. Use the
extension traits from ext for convenient access:
ⓘ
use ooxml_dml::ext::{TextBodyExt, TextParagraphExt, TextRunExt};
use ooxml_dml::types::TextBody;
fn process_text(body: &TextBody) {
for para in body.paragraphs() {
println!("Paragraph: {}", para.text());
for run in para.runs() {
if run.is_bold() {
println!(" Bold: {}", run.text());
}
}
}
}Re-exports§
pub use generated as types;pub use generated_parsers as parsers;pub use generated_serializers as serializers;pub use error::Error;pub use error::Result;pub use ext::DataModelExt;pub use ext::ChartExt;pub use ext::ChartKind;pub use ext::ChartSpaceExt;pub use ext::ChartTitleExt;pub use ext::PlotAreaExt;pub use ext::TableCellExt;pub use ext::TableExt;pub use ext::TableRowExt;pub use ext::TextBodyExt;pub use ext::TextParagraphExt;pub use ext::TextRunExt;
Modules§
- error
- Error types for DrawingML parsing.
- ext
- Extension traits for DrawingML types.
- generated
- Generated types from the ECMA-376 DrawingML schema.
- generated_
parsers - Generated
FromXmlparsers for all generated types. - generated_
serializers - Generated
ToXmlserializers for all generated types.