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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
use strong_xml::{XmlRead, XmlWrite};
use crate::__string_enum;
#[derive(Debug, Default, XmlRead, XmlWrite, Clone)]
#[cfg_attr(test, derive(PartialEq))]
#[xml(tag = "w:docGrid")]
pub struct PageGrid {
#[xml(attr = "w:type")]
pub ty: Option<GridType>,
#[xml(attr = "w:linePitch")]
pub line_pitch: Option<isize>,
#[xml(attr = "w:charSpace")]
pub char_space: Option<isize>,
}
#[derive(Debug, Clone)]
#[cfg_attr(test, derive(PartialEq))]
pub enum GridType {
Default, Lines, LinesAndChars, SnapToChars, }
__string_enum! {
GridType {
Default = "default",
Lines = "lines",
LinesAndChars = "linesAndChars",
SnapToChars = "snapToChars",
}
}