1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
use strong_xml::{XmlRead, XmlWrite};
use crate::{__setter, __xml_test_suites, formatting::TableJustification};
#[derive(Debug, Default, XmlRead, XmlWrite, Clone)]
#[cfg_attr(test, derive(PartialEq))]
#[xml(tag = "w:trPr")]
pub struct TableRowProperty {
#[xml(child = "w:jc")]
pub justification: Option<TableJustification>,
}
impl TableRowProperty {
__setter!(justification: Option<TableJustification>);
}
__xml_test_suites!(
TableRowProperty,
TableRowProperty::default(),
r#"<w:trPr/>"#,
TableRowProperty::default().justification(crate::formatting::TableJustificationVal::Start),
r#"<w:trPr><w:jc w:val="start"/></w:trPr>"#,
);