Skip to main content

easydoc_writer/
lib.rs

1//! DOCX 文档写入器。
2//!
3//! 在 `docx-rs` 之上提供 Fluent 构建器 API,对标 `easyexcel-writer` 的模式。
4//!
5//! 对应 Java: `com.alibaba.excel` (`EasyExcel` 写入层)
6
7#![deny(unsafe_code)]
8
9mod builder;
10pub mod content_renderer;
11mod doc_editor;
12mod executor;
13mod handler;
14pub mod math_omml;
15mod style;
16pub mod util;
17
18mod doc_image;
19mod paragraph;
20mod run;
21mod table;
22
23pub use builder::doc_builder::DocBuilder;
24pub use builder::table_builder::TableWriteBuilder;
25pub use doc_editor::DocEditor;
26pub use executor::table_executor::TableWriteExecutor;
27pub use executor::write_executor::DocWriteExecutor;
28pub use handler::DocWriteHandler;
29pub use style::auto_width::AutoWidthStrategy;
30pub use style::banded_rows::BandedRowsStrategy;
31
32pub use doc_image::DocImage;
33pub use paragraph::Paragraph;
34pub use run::Run;
35pub use table::Table;
36
37// Re-export key types for the facade
38pub use easydoc_core::{
39    CellData, Color, DocValue, DocumentBlock, DocumentContent, DocumentTextRun, DocxRow,
40    FontConfig, HorizontalAlignment, ParagraphStyle, TableStyle,
41};