pub struct CT_PageArea {
pub physical_box: Option<String>,
pub application_box: Option<String>,
pub content_box: Option<String>,
pub bleed_box: Option<String>,
}Expand description
对应 Java: org.ofdrw.core.basicStructure.doc.CT_PageArea
页面区域结构,描述页面的物理区域、出血区域、裁切区域等。 对应 GB/T 33190-2016 图 7。
Fields§
§physical_box: Option<String>物理区域,格式 “topLeftX topLeftY width height”(单位 mm)。
application_box: Option<String>出版区域(应用显示区域),格式同上。
content_box: Option<String>内容区域(版心),格式同上。
bleed_box: Option<String>出血区域,格式同上。
Implementations§
Source§impl CT_PageArea
impl CT_PageArea
Sourcepub fn to_xml_string(&self) -> String
pub fn to_xml_string(&self) -> String
序列化为 OFD XML 字符串。
Trait Implementations§
Source§impl Clone for CT_PageArea
impl Clone for CT_PageArea
Source§fn clone(&self) -> CT_PageArea
fn clone(&self) -> CT_PageArea
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 CT_PageArea
impl Debug for CT_PageArea
Source§impl Default for CT_PageArea
impl Default for CT_PageArea
Source§impl PartialEq for CT_PageArea
impl PartialEq for CT_PageArea
impl StructuralPartialEq for CT_PageArea
Source§impl XmlElement for CT_PageArea
impl XmlElement for CT_PageArea
Source§fn element_name(&self) -> &'static str
fn element_name(&self) -> &'static str
对应 Java: org.ofdrw.core.basicStructure.doc.CT_PageArea
Source§fn child_nodes(&self) -> Vec<XmlNode>
fn child_nodes(&self) -> Vec<XmlNode>
子元素(作为
XmlNode 提供,便于嵌套序列化)。Source§fn from_xml(node: &XmlNode) -> Result<Self, XmlElementError>
fn from_xml(node: &XmlNode) -> Result<Self, XmlElementError>
从节点树解析(对应 ofdrw 解析侧;quick-xml 产物)。 Read more
Source§fn text_content(&self) -> Option<&str>
fn text_content(&self) -> Option<&str>
文本内容(简单文本元素)。
Auto Trait Implementations§
impl Freeze for CT_PageArea
impl RefUnwindSafe for CT_PageArea
impl Send for CT_PageArea
impl Sync for CT_PageArea
impl Unpin for CT_PageArea
impl UnsafeUnpin for CT_PageArea
impl UnwindSafe for CT_PageArea
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