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

25 lines
722 B
Rust

use super::XMLBuilder;
use super::XmlEvent;
use std::io::Write;
use xml::writer::Result;
impl<W: Write> XMLBuilder<W> {
pub(crate) fn open_settings(self) -> Result<Self> {
self.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",
),
)
}
}