Skip to main content

stella_docx_kernel/
lib.rs

1#![forbid(unsafe_code)]
2
3mod projection;
4mod semantic;
5#[cfg(all(target_arch = "wasm32", feature = "wasm"))]
6pub mod wasm;
7
8pub use projection::{
9    AttributedComment, AttributedRevision, BookmarkFact, CommentContent, DocumentPackageProjection,
10    DocumentParts, DocumentProjection, DocumentReviewFacts, DocumentStructureFacts, DocxLimits,
11    FormattingCompleteness, FormattingFactStatus, FormattingUnknownReason, InternalParagraphId,
12    InternalReferenceFact, InternalReferenceRole, NumberingHierarchyFact, PackageParagraphId,
13    ParagraphAlignmentFact, ParagraphAlignmentSource, ParagraphAlignmentValue,
14    ParagraphIdentityFacts, ParagraphIndentation, ParagraphIndentationFact,
15    ParagraphOutlineLevelFact, ParagraphStructure, ProjectedParagraph, ProjectionError,
16    ProjectionOptions, ReviewDetail, ReviewFactLimits, ReviewFactSet, ReviewFactUnknownReason,
17    ReviewPoint, ReviewSpan, RevisionContent, RevisionFactKind, RevisionPayload,
18    RevisionProjectionStatus, RevisionUnsupportedReason, RevisionView, SpanCoverage,
19    StructuralFactSet, StructuralFactUnknownReason, StructuralSpan, TextFormattingSpan,
20    TextMaterialization, TextStyle, extract_document_parts, extract_document_xml,
21    is_semantic_highlight_color, project_document_xml, project_document_xml_with_options,
22    project_docx, project_docx_with_options, project_docx_with_review_facts,
23    project_main_document_xml, project_paragraph_fragment,
24};
25pub use semantic::{
26    BlockLocation, InlineContext, PartCoverage, PartScan, RevisionKind, ScanError, ScanLimits,
27    ScanWork, SegmentSource, TextBlock, TextSegment, scan_wordprocessing_part,
28    scan_wordprocessing_part_with,
29};