Add QExcell XLSX page setup support

This commit is contained in:
Курнат Андрей
2026-06-04 22:08:58 +03:00
parent 96aff5b76e
commit 5dfe97013d
4 changed files with 237 additions and 5 deletions
+10
View File
@@ -3,6 +3,9 @@ export type AppId = "word" | "sheets" | "slides" | "mail";
export type WordPageSizeId = "a4" | "letter";
export type WordPageOrientation = "portrait" | "landscape";
export type WordPageMarginPreset = "normal" | "narrow" | "wide";
export type SheetPageSizeId = "a4" | "letter";
export type SheetPageOrientation = "portrait" | "landscape";
export type SheetPageMarginPreset = "normal" | "narrow" | "wide";
export interface WordPageSetup {
size: WordPageSizeId;
@@ -10,6 +13,12 @@ export interface WordPageSetup {
marginPreset: WordPageMarginPreset;
}
export interface SheetPageSetup {
size: SheetPageSizeId;
orientation: SheetPageOrientation;
marginPreset: SheetPageMarginPreset;
}
export interface WordDocument {
id: string;
title: string;
@@ -40,6 +49,7 @@ export interface Sheet {
showGridLines?: boolean;
zoomScale?: number;
printArea?: string;
pageSetup?: SheetPageSetup;
cells: Record<string, string>;
mergedCells?: MergedCellRange[];
hyperlinks?: Record<string, string>;