| 1 |
//! The properties of OneNote objects that we can parse. |
| 2 |
//! |
| 3 |
//! See [\[MS-ONE\] 2.1.12] for the list of properties the OneNote file format specifies. |
| 4 |
//! |
| 5 |
//! [\[MS-ONE\] 2.1.12]: https://docs.microsoft.com/en-us/openspecs/office_file_formats/ms-one/e9bf7da8-7aab-4668-be5e-e0c421175e3c |
| 6 |
|
| 7 |
pub(crate) mod author; |
| 8 |
pub(crate) mod charset; |
| 9 |
pub(crate) mod color; |
| 10 |
pub(crate) mod color_ref; |
| 11 |
pub(crate) mod file_type; |
| 12 |
pub(crate) mod ink_dimensions; |
| 13 |
pub(crate) mod layout_alignment; |
| 14 |
pub(crate) mod note_tag; |
| 15 |
pub(crate) mod note_tag_property_status; |
| 16 |
pub(crate) mod note_tag_shape; |
| 17 |
pub(crate) mod object_reference; |
| 18 |
pub(crate) mod object_space_reference; |
| 19 |
pub(crate) mod outline_indent_distance; |
| 20 |
pub(crate) mod page_size; |
| 21 |
pub(crate) mod paragraph_alignment; |
| 22 |
mod references; |
| 23 |
pub(crate) mod simple; |
| 24 |
pub(crate) mod time; |
| 25 |
|
| 26 |
#[derive(Debug, Copy, Clone, PartialEq)] |
| 27 |
#[allow(dead_code)] |
| 28 |
#[allow(clippy::enum_clike_unportable_variant)] |
| 29 |
pub(crate) enum PropertyType { |
| 30 |
ActionItemSchemaVersion = 0x0C003473, |
| 31 |
ActionItemStatus = 0x10003470, |
| 32 |
ActionItemType = 0x10003463, |
| 33 |
Author = 0x1C001D75, |
| 34 |
AuthorMostRecent = 0x20001D79, |
| 35 |
AuthorOriginal = 0x20001D78, |
| 36 |
BodyTextAlignment = 0x0C001C13, |
| 37 |
Bold = 0x08001C04, |
| 38 |
CachedTitleString = 0x1C001CF3, |
| 39 |
CachedTitleStringFromPage = 0x1C001D3C, |
| 40 |
CannotBeSelected = 0x08001CB2, |
| 41 |
Charset = 0x0C001D01, |
| 42 |
ChildGraphSpaceElementNodes = 0x2C001D63, |
| 43 |
ColumnCount = 0x14001D58, |
| 44 |
ConflictingUserName = 0x1C001D9E, |
| 45 |
ContentChildNodes = 0x24001C1F, |
| 46 |
CreationTimeStamp = 0x14001D09, |
| 47 |
Deletable = 0x08001D0C, |
| 48 |
DescendantsCannotBeMoved = 0x08001CF9, |
| 49 |
DisplayedPageNumber = 0x14003480, |
| 50 |
EditRootRtl = 0x08001C92, |
| 51 |
ElementChildNodes = 0x24001C20, |
| 52 |
EmbeddedFileContainer = 0x20001D9B, |
| 53 |
EmbeddedFileName = 0x1C001D9C, |
| 54 |
EnableHistory = 0x08001E1E, |
| 55 |
EnforceOutlineStructure = 0x08001C91, |
| 56 |
FileAncestorIdentityGuid = 0x1C001D95, |
| 57 |
FileIdentityGuid = 0x1C001D94, |
| 58 |
FileLastCodeVersionThatWroteToIt = 0x14001D99, |
| 59 |
FileNameCrc = 0x14001D93, |
| 60 |
Font = 0x1C001C0A, |
| 61 |
FontColor = 0x14001C0C, |
| 62 |
FontSize = 0x10001C0B, |
| 63 |
HasVersionPages = 0x08003462, |
| 64 |
Hidden = 0x08001E16, |
| 65 |
Highlight = 0x14001C0D, |
| 66 |
Hyperlink = 0x08001E14, |
| 67 |
HyperlinkProtected = 0x08001E19, |
| 68 |
IRecordMedia = 0x14001D24, |
| 69 |
ImageAltText = 0x1C001E58, |
| 70 |
ImageFilename = 0x1C001DD7, |
| 71 |
ImageUploadState = 0x140034CB, |
| 72 |
IsBackground = 0x08001D13, |
| 73 |
IsBoilerText = 0x08001C88, |
| 74 |
IsConflictObjectForRender = 0x08001D96, |
| 75 |
IsConflictObjectForSelection = 0x08001DDB, |
| 76 |
IsConflictPage = 0x08001D7C, |
| 77 |
IsDeletedGraphSpaceContent = 0x00001DE9, |
| 78 |
IsLayoutSizeSetByUser = 0x08001CBD, |
| 79 |
IsReadOnly = 0x08001CDE, |
| 80 |
IsTitleDate = 0x08001CB5, |
| 81 |
IsTitleText = 0x08001CB4, |
| 82 |
IsTitleTime = 0x08001C87, |
| 83 |
Italic = 0x08001C05, |
| 84 |
LanguageId = 0x14001C3B, |
| 85 |
LastModifiedTime = 0x14001D7A, |
| 86 |
LastModifiedTimeStamp = 0x18001D77, |
| 87 |
LayoutAlignmentInParent = 0x14001C3E, |
| 88 |
LayoutAlignmentSelf = 0x14001C84, |
| 89 |
LayoutCollisionPriority = 0x14001CF1, |
| 90 |
LayoutMaxHeight = 0x14001C1C, |
| 91 |
LayoutMaxWidth = 0x14001C1B, |
| 92 |
LayoutMinimumOutlineWidth = 0x14001CEC, |
| 93 |
LayoutOutlineReservedWidth = 0x14001CDB, |
| 94 |
LayoutResolveChildCollisions = 0x08001CDC, |
| 95 |
LayoutTightAlignment = 0x08001CFF, |
| 96 |
LayoutTightLayout = 0x08001C00, |
| 97 |
ListFont = 0x1C001C52, |
| 98 |
ListMsaaIndex = 0x10001D0E, |
| 99 |
ListNodes = 0x24001C26, |
| 100 |
ListRestart = 0x14001CB7, |
| 101 |
ListSpacingMu = 0x14001CCB, |
| 102 |
MathFormatting = 0x08003401, |
| 103 |
MetaDataObjectsAboveGraphSpace = 0x24003442, |
| 104 |
NextStyle = 0x1C00348A, |
| 105 |
NoteTagCompleted = 0x1400346F, |
| 106 |
NoteTagCreated = 0x1400346E, |
| 107 |
NoteTagDefinitionOid = 0x20003488, |
| 108 |
NoteTagHighlightColor = 0x14003465, |
| 109 |
NoteTagLabel = 0x1C003468, |
| 110 |
NoteTagPropertyStatus = 0x14003467, |
| 111 |
NoteTagShape = 0x10003464, |
| 112 |
NoteTagStates = 0x04003489, |
| 113 |
NoteTagTextColor = 0x14003466, |
| 114 |
NotebookManagementEntityGuid = 0x1C001C30, |
| 115 |
NumberListFormat = 0x1C001C1A, |
| 116 |
OffsetFromParentHoriz = 0x14001C14, |
| 117 |
OffsetFromParentVert = 0x14001C15, |
| 118 |
OutlineElementChildLevel = 0x0C001C03, |
| 119 |
OutlineElementRtl = 0x08001C34, |
| 120 |
PageHeight = 0x14001C02, |
| 121 |
PageLevel = 0x14001DFF, |
| 122 |
PageMarginBottom = 0x14001C4D, |
| 123 |
PageMarginLeft = 0x14001C4E, |
| 124 |
PageMarginOriginX = 0x14001D0F, |
| 125 |
PageMarginOriginY = 0x14001D10, |
| 126 |
PageMarginRight = 0x14001C4F, |
| 127 |
PageMarginTop = 0x14001C4C, |
| 128 |
PageSize = 0x14001C8B, |
| 129 |
PageWidth = 0x14001C01, |
| 130 |
ParagraphAlignment = 0x0C003477, |
| 131 |
ParagraphLineSpacingExact = 0x14003430, |
| 132 |
ParagraphSpaceAfter = 0x1400342F, |
| 133 |
ParagraphSpaceBefore = 0x1400342E, |
| 134 |
ParagraphStyle = 0x2000342C, |
| 135 |
ParagraphStyleId = 0x1C00345A, |
| 136 |
PictureContainer = 0x20001C3F, |
| 137 |
PictureHeight = 0x140034CE, |
| 138 |
PictureWidth = 0x140034CD, |
| 139 |
PortraitPage = 0x08001C8E, |
| 140 |
ReadingOrderRtl = 0x08003476, |
| 141 |
RgOutlineIndentDistance = 0x1C001C12, |
| 142 |
RichEditTextLangId = 0x10001CFE, |
| 143 |
RichEditTextUnicode = 0x1C001C22, |
| 144 |
RowCount = 0x14001D57, |
| 145 |
SchemaRevisionInOrderToRead = 0x14001D82, |
| 146 |
SchemaRevisionInOrderToWrite = 0x1400348B, |
| 147 |
SectionDisplayName = 0x1C00349B, |
| 148 |
SourceFilepath = 0x1C001D9D, |
| 149 |
Strikethrough = 0x08001C07, |
| 150 |
StructureElementChildNodes = 0x24001D5F, |
| 151 |
Subscript = 0x08001C09, |
| 152 |
Superscript = 0x08001C08, |
| 153 |
TableBordersVisible = 0x08001D5E, |
| 154 |
TableColumnWidths = 0x1C001D66, |
| 155 |
TableColumnsLocked = 0x1C001D7D, |
| 156 |
TaskTagDueDat = 0x1400346B, |
| 157 |
TextExtendedAscii = 0x1C003498, |
| 158 |
TextRunData = 0x40003499, |
| 159 |
TextRunDataObject = 0x24003458, |
| 160 |
TextRunFormatting = 0x24001E13, |
| 161 |
TextRunIndex = 0x1C001E12, |
| 162 |
TextRunIsEmbeddedObject = 0x08001E22, |
| 163 |
TopologyCreationTimeStamp = 0x18001C65, |
| 164 |
Underline = 0x08001C06, |
| 165 |
UnderlineType = 0x0C001E15, |
| 166 |
VersionHistoryGraphSpaceContextNodes = 0x3400347B, |
| 167 |
WebPictureContainer14 = 0x200034C8, |
| 168 |
WzHyperlinkUrl = 0x1C001E20, |
| 169 |
|
| 170 |
// Undocumented: |
| 171 |
TocChildren = 0x24001CF6, |
| 172 |
FolderChildFilename = 0x1C001D6B, |
| 173 |
NotebookElementOrderingId = 0x14001CB9, |
| 174 |
PictureFileExtension = 0x24003424, |
| 175 |
NoteTags = 0x40003489, |
| 176 |
NoteTag = 0x44000811, |
| 177 |
SectionColor = 0x14001CBE, |
| 178 |
CellBackgroundColor = 0x14001E26, |
| 179 |
InkBias = 0x0C00341C, |
| 180 |
InkData = 0x20003415, |
| 181 |
InkDimensions = 0x1C00340A, |
| 182 |
InkPath = 0x1C00340B, |
| 183 |
InkStrokeProperties = 0x20003409, |
| 184 |
InkStrokes = 0x24003416, |
| 185 |
InkAntialised = 0x8000340E, |
| 186 |
InkFitToCurve = 0x80003410, |
| 187 |
InkIgnorePressure = 0x08003411, |
| 188 |
InkPenTip = 0x0C003412, |
| 189 |
InkRasterOperation = 0x0C003413, |
| 190 |
InkTransparency = 0x0C003414, |
| 191 |
InkHeight = 0x1400340C, |
| 192 |
InkWidth = 0x1400340D, |
| 193 |
InkColor = 0x1400340F, |
| 194 |
InkScalingX = 0x14001C46, |
| 195 |
InkScalingY = 0x14001C47, |
| 196 |
InkBoundingBox = 0x1C003418, |
| 197 |
EmbeddedObjectType = 0x14003457, |
| 198 |
EmbeddedInkStartX = 0x1400349E, |
| 199 |
EmbeddedInkStartY = 0x1400349F, |
| 200 |
EmbeddedInkWidth = 0x140034A0, |
| 201 |
EmbeddedInkHeight = 0x140034A1, |
| 202 |
EmbeddedInkOffsetHoriz = 0x140034A2, |
| 203 |
EmbeddedInkOffsetVert = 0x140034A3, |
| 204 |
EmbeddedInkSpaceWidth = 0x14001C27, |
| 205 |
EmbeddedInkSpaceHeight = 0x14001C28, |
| 206 |
ImageEmbedType = 0x140035F2, |
| 207 |
ImageEmbeddedUrl = 0x1C0035F3, |
| 208 |
} |