pub enum WpdEvent {
Show 38 variants
Text(String),
Tab,
Space,
LineBreak,
ParagraphEnd,
ListItemStart {
ordered: bool,
level: u8,
counter: u32,
},
ListItemEnd,
HeadingStart {
level: u8,
},
BoldStart,
BoldEnd,
ItalicStart,
ItalicEnd,
UnderlineStart,
UnderlineEnd,
StrikethroughStart,
StrikethroughEnd,
SuperscriptStart,
SuperscriptEnd,
SubscriptStart,
SubscriptEnd,
TableStart,
RowStart {
header: bool,
},
CellStart {
column: i32,
col_span: u32,
row_span: u32,
},
CoveredCell {
column: i32,
},
CellEnd,
RowEnd,
TableEnd,
HeaderStart,
HeaderEnd,
FooterStart,
FooterEnd,
NoteStart {
endnote: bool,
},
NoteEnd,
AsideStart {
kind: String,
},
AsideEnd,
LinkStart {
href: String,
},
LinkEnd,
Field(String),
}Expand description
A single event recorded from the librevenge callback walk, decoded 1:1
from the binary stream shim.cpp produces. Events are strictly ordered
and properly nested (each *Start has a matching *End), mirroring the
order libwpd invoked the corresponding callbacks in.
Variants§
Text(String)
Literal run of text.
Tab
A tab character.
Space
A non-breaking/explicit space.
LineBreak
An explicit line break within a paragraph.
ParagraphEnd
End of the current paragraph.
ListItemStart
Start of a list item.
Fields
ListItemEnd
End of a list item.
HeadingStart
Start of a heading paragraph (text:outline-level 1-6).
BoldStart
Start of a bold span.
BoldEnd
End of a bold span.
ItalicStart
Start of an italic span.
ItalicEnd
End of an italic span.
UnderlineStart
Start of an underline span.
UnderlineEnd
End of an underline span.
StrikethroughStart
Start of a strikethrough span.
StrikethroughEnd
End of a strikethrough span.
SuperscriptStart
Start of a superscript span.
SuperscriptEnd
End of a superscript span.
SubscriptStart
Start of a subscript span.
SubscriptEnd
End of a subscript span.
TableStart
Start of a table.
RowStart
Start of a table row.
CellStart
Start of a real (non-covered) table cell.
Fields
CoveredCell
A covered (merged-away) grid position from a vertical or horizontal span.
CellEnd
End of a table cell.
RowEnd
End of a table row.
TableEnd
End of a table.
HeaderStart
Start of the document’s running header (recurs on every page).
HeaderEnd
End of the document’s running header.
Start of the document’s running footer.
End of the document’s running footer.
NoteStart
Start of a footnote or endnote body, anchored at this point in the flow.
NoteEnd
End of a footnote or endnote body.
AsideStart
Start of a comment or text-box aside.
AsideEnd
End of a comment or text-box aside.
LinkStart
Start of a hyperlink span.
LinkEnd
End of a hyperlink span.
Field(String)
An inserted field (page number, page count, date, time, or another field type libwpd reported by name), already mapped to a stable placeholder string by the shim.