docx-rs/docx-core/src/xml_builder/settings.rs

26 lines
793 B
Rust
Raw Normal View History

2019-11-14 08:54:39 +02:00
use super::XMLBuilder;
use super::XmlEvent;
impl XMLBuilder {
pub(crate) fn open_settings(mut self) -> Self {
self.writer
2020-08-19 18:53:35 +03:00
.write(
XmlEvent::start_element("w:settings")
.attr(
"xmlns:w",
"http://schemas.openxmlformats.org/wordprocessingml/2006/main",
)
.attr(
"xmlns:w14",
"http://schemas.microsoft.com/office/word/2010/wordml",
)
.attr(
"xmlns:w15",
"http://schemas.microsoft.com/office/word/2012/wordml",
),
)
2019-11-14 08:54:39 +02:00
.expect("should write to buf");
self
}
}