| 1 |
//! A OneNote file parser. |
| 2 |
|
| 3 |
#![warn(missing_docs)] |
| 4 |
#![deny(unused_must_use)] |
| 5 |
#![cfg_attr(feature = "backtrace", feature(error_generic_member_access))] |
| 6 |
#![cfg_attr(feature = "backtrace", feature(provide_any))] |
| 7 |
|
| 8 |
pub mod errors; |
| 9 |
mod fsshttpb; |
| 10 |
#[macro_use] |
| 11 |
mod macros; |
| 12 |
mod one; |
| 13 |
mod onenote; |
| 14 |
mod onestore; |
| 15 |
mod reader; |
| 16 |
mod shared; |
| 17 |
mod utils; |
| 18 |
|
| 19 |
pub(crate) type Reader<'a, 'b> = &'b mut crate::reader::Reader<'a>; |
| 20 |
|
| 21 |
pub use crate::onenote::Parser; |
| 22 |
|
| 23 |
/// The data that represents a OneNote notebook. |
| 24 |
pub mod notebook { |
| 25 |
pub use crate::onenote::notebook::Notebook; |
| 26 |
} |
| 27 |
|
| 28 |
/// The data that represents a OneNote section. |
| 29 |
pub mod section { |
| 30 |
pub use crate::onenote::section::{Section, SectionEntry, SectionGroup}; |
| 31 |
} |
| 32 |
|
| 33 |
/// The data that represents a OneNote page. |
| 34 |
pub mod page { |
| 35 |
pub use crate::onenote::page::{Page, Title}; |
| 36 |
pub use crate::onenote::page_content::PageContent; |
| 37 |
pub use crate::onenote::page_series::PageSeries; |
| 38 |
} |
| 39 |
|
| 40 |
/// The data that represents the contents of a OneNote section. |
| 41 |
pub mod contents { |
| 42 |
pub use crate::onenote::content::Content; |
| 43 |
pub use crate::onenote::embedded_file::EmbeddedFile; |
| 44 |
pub use crate::onenote::image::Image; |
| 45 |
pub use crate::onenote::ink::{Ink, InkBoundingBox, InkPoint, InkStroke}; |
| 46 |
pub use crate::onenote::list::List; |
| 47 |
pub use crate::onenote::note_tag::NoteTag; |
| 48 |
pub use crate::onenote::outline::{Outline, OutlineElement, OutlineGroup, OutlineItem}; |
| 49 |
pub use crate::onenote::rich_text::{ |
| 50 |
EmbeddedInkContainer, EmbeddedInkSpace, EmbeddedObject, ParagraphStyling, RichText, |
| 51 |
}; |
| 52 |
pub use crate::onenote::table::{Table, TableCell, TableRow}; |
| 53 |
} |
| 54 |
|
| 55 |
/// Collection of properties used by the OneNote file format. |
| 56 |
pub mod property { |
| 57 |
/// Properties related to multiple types of objects. |
| 58 |
pub mod common { |
| 59 |
pub use crate::one::property::color::Color; |
| 60 |
pub use crate::one::property::color_ref::ColorRef; |
| 61 |
} |
| 62 |
|
| 63 |
/// Properties related to embedded files. |
| 64 |
pub mod embedded_file { |
| 65 |
pub use crate::one::property::file_type::FileType; |
| 66 |
} |
| 67 |
|
| 68 |
/// Properties related to note tags. |
| 69 |
pub mod note_tag { |
| 70 |
pub use crate::one::property::note_tag::{ActionItemStatus, ActionItemType}; |
| 71 |
pub use crate::one::property::note_tag_property_status::NoteTagPropertyStatus; |
| 72 |
pub use crate::one::property::note_tag_shape::NoteTagShape; |
| 73 |
pub use crate::onenote::note_tag::NoteTagDefinition; |
| 74 |
} |
| 75 |
|
| 76 |
/// Properties related to rich-text content. |
| 77 |
pub mod rich_text { |
| 78 |
pub use crate::one::property::charset::Charset; |
| 79 |
pub use crate::one::property::paragraph_alignment::ParagraphAlignment; |
| 80 |
pub use crate::onenote::rich_text::ParagraphStyling; |
| 81 |
} |
| 82 |
} |