sheetkit/
lib.rs

1//! SheetKit: High-level API for reading and writing Excel (.xlsx) files.
2//!
3//! # Quick Start
4//!
5//! ```no_run
6//! use sheetkit::Workbook;
7//!
8//! let wb = Workbook::new();
9//! wb.save("output.xlsx").unwrap();
10//! ```
11
12pub use sheetkit_core::defined_names::{DefinedNameInfo, DefinedNameScope};
13pub use sheetkit_core::doc_props::{AppProperties, CustomPropertyValue, DocProperties};
14pub use sheetkit_core::error::{Error, Result};
15pub use sheetkit_core::protection::WorkbookProtectionConfig;
16pub use sheetkit_core::sheet::SheetProtectionConfig;
17pub use sheetkit_core::stream::StreamWriter;
18pub use sheetkit_core::workbook::{AuxParts, OpenOptions, ReadMode, Workbook, WorkbookFormat};
19
20pub use sheetkit_core::cell::{
21    date_to_serial, datetime_to_serial, is_date_format_code, is_date_num_fmt, serial_to_date,
22    serial_to_datetime, CellValue,
23};
24pub use sheetkit_core::chart::{ChartConfig, ChartSeries, ChartType, View3DConfig};
25pub use sheetkit_core::comment::CommentConfig;
26pub use sheetkit_core::conditional::{
27    CfOperator, CfValueType, ConditionalFormatRule, ConditionalFormatType, ConditionalStyle,
28};
29pub use sheetkit_core::control::{FormControlConfig, FormControlInfo, FormControlType};
30pub use sheetkit_core::hyperlink::{HyperlinkInfo, HyperlinkType};
31pub use sheetkit_core::image::{ImageConfig, ImageFormat, PictureInfo};
32pub use sheetkit_core::numfmt::{builtin_format_code, format_number, format_with_builtin};
33pub use sheetkit_core::page_layout::{Orientation, PageMarginsConfig, PaperSize};
34pub use sheetkit_core::pivot::{
35    AggregateFunction, PivotDataField, PivotField, PivotTableConfig, PivotTableInfo,
36};
37pub use sheetkit_core::render::RenderOptions;
38pub use sheetkit_core::rich_text::{rich_text_to_plain, RichTextRun};
39pub use sheetkit_core::shape::{ShapeConfig, ShapeType};
40pub use sheetkit_core::slicer::{SlicerConfig, SlicerInfo};
41pub use sheetkit_core::sparkline::{SparklineConfig, SparklineType};
42pub use sheetkit_core::style::{
43    AlignmentStyle, BorderLineStyle, BorderSideStyle, BorderStyle, FillStyle, FontStyle,
44    GradientFillStyle, GradientStop, GradientType, HorizontalAlign, NumFmtStyle, PatternType,
45    ProtectionStyle, Style, StyleColor, VerticalAlign,
46};
47pub use sheetkit_core::threaded_comment::{
48    PersonData, PersonInput, ThreadedCommentData, ThreadedCommentInput,
49};
50pub use sheetkit_core::validation::{
51    DataValidationConfig, ErrorStyle, ValidationOperator, ValidationType,
52};
53pub use sheetkit_core::vba::{VbaModule, VbaModuleType, VbaProject};
54
55/// Utility functions for cell reference conversion.
56pub mod utils {
57    pub use sheetkit_core::utils::cell_ref::{
58        cell_name_to_coordinates, column_name_to_number, column_number_to_name,
59        coordinates_to_cell_name,
60    };
61    pub use sheetkit_core::utils::constants;
62}