pub struct PresentationRoot {
pub slide_width: Option<Emu>,
pub slide_height: Option<Emu>,
pub slide_ids: Vec<SlideIdEntry>,
pub sld_master_ids: Vec<SldMasterIdEntry>,
pub notes_master_ids: Vec<NotesMasterIdEntry>,
pub default_text_style: Option<String>,
pub notes_size: Option<(Emu, Emu)>,
pub sections: SectionList,
}Expand description
演示文稿的根 <p:presentation> 元素。
Fields§
§slide_width: Option<Emu>幻灯片宽度(EMU)。None 表示不写出 <p:sldSz>。
slide_height: Option<Emu>幻灯片高度(EMU)。None 表示不写出 <p:sldSz>。
slide_ids: Vec<SlideIdEntry>所有 slide 的 ID 列表(<p:sldIdLst>)。
sld_master_ids: Vec<SldMasterIdEntry>母版 ID 列表(<p:sldMasterIdLst>)。
已实现:from_opc 解析时回填,to_xml 时遍历写出。
空列表时 to_xml 使用默认的单个母版(id=2147483648, rIdP1)。
notes_master_ids: Vec<NotesMasterIdEntry>备注母版 ID 列表(<p:notesMasterIdLst>,round-trip 保真)。
已实现:from_opc 解析时回填,to_xml 时遍历写出。
空列表时 to_xml 不输出 <p:notesMasterIdLst>(PowerPoint 兼容:无 notesMaster 即不写)。
default_text_style: Option<String>默认文本样式(<p:defaultTextStyle>),XML 字符串。None 使用内置默认。
notes_size: Option<(Emu, Emu)>备注页尺寸(宽, 高,EMU)。None 使用默认 6858000 × 9144000。
sections: SectionList章节分组(<p14:sectionLst> 扩展元素,TODO-039)。
空列表时不输出任何 section 相关 XML;
非空时在 <p:defaultTextStyle> 之后追加 <p:extLst><p:ext ...><p14:sectionLst>...。
Implementations§
Trait Implementations§
Source§impl Clone for PresentationRoot
impl Clone for PresentationRoot
Source§fn clone(&self) -> PresentationRoot
fn clone(&self) -> PresentationRoot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PresentationRoot
impl Debug for PresentationRoot
Source§impl Default for PresentationRoot
impl Default for PresentationRoot
Auto Trait Implementations§
impl Freeze for PresentationRoot
impl RefUnwindSafe for PresentationRoot
impl Send for PresentationRoot
impl Sync for PresentationRoot
impl Unpin for PresentationRoot
impl UnsafeUnpin for PresentationRoot
impl UnwindSafe for PresentationRoot
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more