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::{
19    AuxParts, DateInterpretation, OpenOptions, ReadMode, Workbook, WorkbookFormat,
20};
21
22pub use sheetkit_core::cell::{
23    date_to_serial, datetime_to_serial, is_date_format_code, is_date_num_fmt, serial_to_date,
24    serial_to_datetime, CellValue,
25};
26pub use sheetkit_core::chart::{ChartConfig, ChartSeries, ChartType, View3DConfig};
27pub use sheetkit_core::comment::CommentConfig;
28pub use sheetkit_core::conditional::{
29    CfOperator, CfValueType, ConditionalFormatRule, ConditionalFormatType, ConditionalStyle,
30};
31pub use sheetkit_core::control::{FormControlConfig, FormControlInfo, FormControlType};
32pub use sheetkit_core::hyperlink::{HyperlinkInfo, HyperlinkType};
33pub use sheetkit_core::image::{ImageConfig, ImageFormat, PictureInfo};
34pub use sheetkit_core::numfmt::{builtin_format_code, format_number, format_with_builtin};
35pub use sheetkit_core::page_layout::{Orientation, PageMarginsConfig, PaperSize};
36pub use sheetkit_core::pivot::{
37    AggregateFunction, PivotDataField, PivotField, PivotTableConfig, PivotTableInfo,
38};
39pub use sheetkit_core::render::RenderOptions;
40pub use sheetkit_core::rich_text::{rich_text_to_plain, RichTextRun};
41pub use sheetkit_core::shape::{ShapeConfig, ShapeType};
42pub use sheetkit_core::slicer::{SlicerConfig, SlicerInfo};
43pub use sheetkit_core::sparkline::{SparklineConfig, SparklineType};
44pub use sheetkit_core::style::{
45    AlignmentStyle, BorderLineStyle, BorderSideStyle, BorderStyle, FillStyle, FontStyle,
46    GradientFillStyle, GradientStop, GradientType, HorizontalAlign, NumFmtStyle, PatternType,
47    ProtectionStyle, Style, StyleColor, VerticalAlign,
48};
49pub use sheetkit_core::threaded_comment::{
50    PersonData, PersonInput, ThreadedCommentData, ThreadedCommentInput,
51};
52pub use sheetkit_core::validation::{
53    DataValidationConfig, ErrorStyle, ValidationOperator, ValidationType,
54};
55pub use sheetkit_core::vba::{VbaModule, VbaModuleType, VbaProject};
56
57/// Utility functions for cell reference conversion.
58pub mod utils {
59    pub use sheetkit_core::utils::cell_ref::{
60        cell_name_to_coordinates, column_name_to_number, column_number_to_name,
61        coordinates_to_cell_name,
62    };
63    pub use sheetkit_core::utils::constants;
64}