Browse Source
1. 更新 poi univerjs 模型到 0.10.5 版本 前端核心发布: 8.2.129 1) 工作台增加是否自动提示处理下一条任务 2) 首页增加是否自动提示处理下一条任务main
133 changed files with 1520 additions and 928 deletions
@ -0,0 +1,152 @@ |
|||
{ |
|||
"name": "platform-core", |
|||
"version": "8.2.129", |
|||
"description": "前端核心包,用于快速构建前端的脚手架", |
|||
"//main": "库的主文件", |
|||
"main": "dist/platform-core.js", |
|||
"//files": "打包时需要包含的文件列表", |
|||
"files": [ |
|||
".bin", |
|||
"dist/configure.js", |
|||
"dist/css", |
|||
"dist/favicon.svg", |
|||
"dist/fonts", |
|||
"dist/index.html", |
|||
"dist/login-bg.jpg", |
|||
"dist/logo.svg", |
|||
"dist/platform-core.js", |
|||
"dist/types", |
|||
"template-project/*.*", |
|||
"template-project/public", |
|||
"template-project/src" |
|||
], |
|||
"//types": "类型申明主文件", |
|||
"types": "./dist/types/index.d.ts", |
|||
"private": false, |
|||
"keywords": [], |
|||
"author": "", |
|||
"license": "ISC", |
|||
"//bin": "可直接通过 npx 执行的命令", |
|||
"bin": { |
|||
"//platform": "npx platform", |
|||
"platform": "./.bin/platform.js" |
|||
}, |
|||
"scripts": { |
|||
"dev": "nodemon", |
|||
"serve": "node ./util-components-generator.cjs && cross-env NODE_ENV=development webpack serve --config webpack.env.serve.cjs", |
|||
"build": "node ./util-components-generator.cjs && cross-env NODE_ENV=development webpack --config webpack.env.build.cjs", |
|||
"prod": "node ./util-components-generator.cjs && cross-env NODE_ENV=production webpack --config webpack.env.prod.cjs", |
|||
"lib": "node ./util.template-generator.cjs && cross-env NODE_ENV=production webpack --config webpack.env.lib.cjs && tsc --project tsconfig.json --emitDeclarationOnly --noEmit false", |
|||
"check": "tsc --project tsconfig.json --emitDeclarationOnly --noEmit false", |
|||
"template": "node ./util.template-generator.cjs", |
|||
"clean": "platform clean dist ./node_modules ./pnpm-lock.yaml ./package-lock.json", |
|||
"sync": "platform sync" |
|||
}, |
|||
"engines": { |
|||
"node": ">=18", |
|||
"pnpm": ">=7" |
|||
}, |
|||
"publishConfig": { |
|||
"registry": "http://nexus.sc.io:8000/repository/npm-releases/", |
|||
"access": "public", |
|||
"no-git-checks": true |
|||
}, |
|||
"devDependencies": { |
|||
"@babel/core": "7.26.0", |
|||
"@babel/plugin-transform-class-properties": "7.25.9", |
|||
"@babel/plugin-transform-object-rest-spread": "7.25.9", |
|||
"@babel/preset-env": "7.26.0", |
|||
"@babel/preset-typescript": "7.26.0", |
|||
"@quasar/app-webpack": "4.0.7", |
|||
"@quasar/cli": "2.4.1", |
|||
"@types/mockjs": "1.0.10", |
|||
"@types/node": "22.10.7", |
|||
"@typescript-eslint/eslint-plugin": "8.20.0", |
|||
"@typescript-eslint/parser": "8.20.0", |
|||
"@vue/babel-plugin-jsx": "1.2.5", |
|||
"@vue/compiler-sfc": "3.5.13", |
|||
"@vuepress/bundler-webpack": "2.0.0-rc.15", |
|||
"@vuepress/theme-default": "2.0.0-rc.49", |
|||
"@webpack-cli/serve": "3.0.1", |
|||
"autoprefixer": "10.4.20", |
|||
"babel-loader": "9.2.1", |
|||
"clean-webpack-plugin": "4.0.0", |
|||
"copy-webpack-plugin": "12.0.2", |
|||
"cross-env": "7.0.3", |
|||
"css-loader": "7.1.2", |
|||
"eslint": "9.18.0", |
|||
"eslint-config-prettier": "10.0.1", |
|||
"eslint-plugin-prettier": "5.2.2", |
|||
"eslint-plugin-vue": "9.32.0", |
|||
"eslint-webpack-plugin": "4.2.0", |
|||
"html-webpack-plugin": "5.6.3", |
|||
"json5": "2.2.3", |
|||
"mini-css-extract-plugin": "2.9.2", |
|||
"nodemon": "3.1.9", |
|||
"postcss": "8.5.1", |
|||
"postcss-import": "16.1.0", |
|||
"postcss-loader": "8.1.1", |
|||
"postcss-preset-env": "10.1.3", |
|||
"prettier": "3.4.2", |
|||
"sass": "1.83.4", |
|||
"sass-loader": "16.0.4", |
|||
"tailwindcss": "3.4.17", |
|||
"typescript": "5.5.4", |
|||
"vue-loader": "17.4.2", |
|||
"vuepress": "2.0.0-rc.15", |
|||
"webpack": "5.97.1", |
|||
"webpack-bundle-analyzer": "4.10.2", |
|||
"webpack-cli": "6.0.1", |
|||
"webpack-dev-server": "5.2.0", |
|||
"webpack-merge": "6.0.1" |
|||
}, |
|||
"dependencies": { |
|||
"@codemirror/autocomplete": "6.18.6", |
|||
"@codemirror/commands": "6.8.1", |
|||
"@codemirror/lang-html": "6.4.9", |
|||
"@codemirror/lang-java": "6.0.1", |
|||
"@codemirror/lang-javascript": "6.2.3", |
|||
"@codemirror/lang-json": "6.0.1", |
|||
"@codemirror/lang-sql": "6.8.0", |
|||
"@codemirror/lang-xml": "6.1.0", |
|||
"@codemirror/language": "6.11.0", |
|||
"@codemirror/search": "6.5.10", |
|||
"@codemirror/state": "6.5.2", |
|||
"@codemirror/view": "6.36.5", |
|||
"@maxgraph/core": "0.14.0", |
|||
"@quasar/extras": "1.16.15", |
|||
"@quasar/quasar-ui-qmarkdown": "2.0.5", |
|||
"@univerjs/core": "0.10.5", |
|||
"@univerjs/design": "0.10.5", |
|||
"@univerjs/docs": "0.10.5", |
|||
"@univerjs/docs-ui": "0.10.5", |
|||
"@univerjs/engine-formula": "0.10.5", |
|||
"@univerjs/engine-render": "0.10.5", |
|||
"@univerjs/sheets": "0.10.5", |
|||
"@univerjs/sheets-formula": "0.10.5", |
|||
"@univerjs/sheets-formula-ui": "0.10.5", |
|||
"@univerjs/sheets-numfmt": "0.10.5", |
|||
"@univerjs/sheets-numfmt-ui": "0.10.5", |
|||
"@univerjs/sheets-ui": "0.10.5", |
|||
"@univerjs/ui": "0.10.5", |
|||
"@vueuse/core": "12.4.0", |
|||
"axios": "1.8.2", |
|||
"codemirror": "6.0.1", |
|||
"dayjs": "1.11.13", |
|||
"echarts": "5.6.0", |
|||
"exceljs": "4.4.0", |
|||
"file-saver": "2.0.5", |
|||
"luckyexcel": "1.0.1", |
|||
"mockjs": "1.1.0", |
|||
"pinia": "2.3.0", |
|||
"quasar": "2.17.6", |
|||
"sort-array": "5.0.0", |
|||
"svg-path-commander": "2.1.7", |
|||
"vue": "3.5.13", |
|||
"vue-dompurify-html": "5.2.0", |
|||
"vue-i18n": "11.0.1", |
|||
"vue-router": "4.5.0", |
|||
"xml-formatter": "3.6.3", |
|||
"node-sql-parser": "5.3.6" |
|||
} |
|||
} |
@ -1,17 +0,0 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
|
|||
public enum HorizontalAlign { |
|||
UNSPECIFIED(0), // The horizontal alignment is not specified. Do not use this.
|
|||
LEFT(1), // The text is explicitly aligned to the left of the cell.
|
|||
CENTER(2), // The text is explicitly aligned to the center of the cell.
|
|||
RIGHT(3), // The text is explicitly aligned to the right of the cell.
|
|||
JUSTIFIED(4), // The paragraph is justified.
|
|||
BOTH(5), // The paragraph is justified.
|
|||
DISTRIBUTED(6); |
|||
|
|||
private int value; |
|||
|
|||
HorizontalAlign(int value){ |
|||
this.value =value; |
|||
} |
|||
} |
@ -1,31 +0,0 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
|
|||
public class IDocsBorder { |
|||
private IColorStyle color; |
|||
private Integer width; |
|||
private DashStyleType dashStyle; |
|||
|
|||
public IColorStyle getColor() { |
|||
return color; |
|||
} |
|||
|
|||
public void setColor(IColorStyle color) { |
|||
this.color = color; |
|||
} |
|||
|
|||
public Integer getWidth() { |
|||
return width; |
|||
} |
|||
|
|||
public void setWidth(Integer width) { |
|||
this.width = width; |
|||
} |
|||
|
|||
public DashStyleType getDashStyle() { |
|||
return dashStyle; |
|||
} |
|||
|
|||
public void setDashStyle(DashStyleType dashStyle) { |
|||
this.dashStyle = dashStyle; |
|||
} |
|||
} |
@ -1,40 +0,0 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
|
|||
public class IFreeze { |
|||
private Integer xSplit; // count of fixed cols
|
|||
private Integer ySplit; // count of fixed rows
|
|||
private Integer startRow; // scrollable start row
|
|||
private Integer startColumn; // scrollable start column
|
|||
|
|||
public Integer getxSplit() { |
|||
return xSplit; |
|||
} |
|||
|
|||
public void setxSplit(Integer xSplit) { |
|||
this.xSplit = xSplit; |
|||
} |
|||
|
|||
public Integer getySplit() { |
|||
return ySplit; |
|||
} |
|||
|
|||
public void setySplit(Integer ySplit) { |
|||
this.ySplit = ySplit; |
|||
} |
|||
|
|||
public Integer getStartRow() { |
|||
return startRow; |
|||
} |
|||
|
|||
public void setStartRow(Integer startRow) { |
|||
this.startRow = startRow; |
|||
} |
|||
|
|||
public Integer getStartColumn() { |
|||
return startColumn; |
|||
} |
|||
|
|||
public void setStartColumn(Integer startColumn) { |
|||
this.startColumn = startColumn; |
|||
} |
|||
} |
@ -1,40 +0,0 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
|
|||
public class IPaddingData { |
|||
private Integer t; |
|||
private Integer r; |
|||
private Integer b; |
|||
private Integer l; |
|||
|
|||
public Integer getT() { |
|||
return t; |
|||
} |
|||
|
|||
public void setT(Integer t) { |
|||
this.t = t; |
|||
} |
|||
|
|||
public Integer getR() { |
|||
return r; |
|||
} |
|||
|
|||
public void setR(Integer r) { |
|||
this.r = r; |
|||
} |
|||
|
|||
public Integer getB() { |
|||
return b; |
|||
} |
|||
|
|||
public void setB(Integer b) { |
|||
this.b = b; |
|||
} |
|||
|
|||
public Integer getL() { |
|||
return l; |
|||
} |
|||
|
|||
public void setL(Integer l) { |
|||
this.l = l; |
|||
} |
|||
} |
@ -1,112 +0,0 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
|
|||
public class IRange { |
|||
private RangeType rangeType; |
|||
private AbsoluteRefType startAbsoluteRefType; |
|||
private AbsoluteRefType endAbsoluteRefType; |
|||
|
|||
/** |
|||
* Id of the Workbook the range belongs to. |
|||
* When this field is not defined, it should be considered as the range in the currently activated worksheet. |
|||
*/ |
|||
private String unitId; |
|||
/** |
|||
* Id of the Worksheet the range belongs to. |
|||
* When this field is not defined, it should be considered as the range in the currently activated worksheet. |
|||
*/ |
|||
private String sheetId; |
|||
|
|||
/** |
|||
* The start row (inclusive) of the range |
|||
* startRow |
|||
*/ |
|||
private int startRow; |
|||
/** |
|||
* The end row (exclusive) of the range |
|||
* endRow |
|||
*/ |
|||
private int endRow; |
|||
|
|||
/** |
|||
* The start column (inclusive) of the range |
|||
* startColumn |
|||
*/ |
|||
private int startColumn; |
|||
/** |
|||
* The end column (exclusive) of the range |
|||
* endColumn |
|||
*/ |
|||
private int endColumn; |
|||
|
|||
public RangeType getRangeType() { |
|||
return rangeType; |
|||
} |
|||
|
|||
public void setRangeType(RangeType rangeType) { |
|||
this.rangeType = rangeType; |
|||
} |
|||
|
|||
public AbsoluteRefType getStartAbsoluteRefType() { |
|||
return startAbsoluteRefType; |
|||
} |
|||
|
|||
public void setStartAbsoluteRefType(AbsoluteRefType startAbsoluteRefType) { |
|||
this.startAbsoluteRefType = startAbsoluteRefType; |
|||
} |
|||
|
|||
public AbsoluteRefType getEndAbsoluteRefType() { |
|||
return endAbsoluteRefType; |
|||
} |
|||
|
|||
public void setEndAbsoluteRefType(AbsoluteRefType endAbsoluteRefType) { |
|||
this.endAbsoluteRefType = endAbsoluteRefType; |
|||
} |
|||
|
|||
public String getUnitId() { |
|||
return unitId; |
|||
} |
|||
|
|||
public void setUnitId(String unitId) { |
|||
this.unitId = unitId; |
|||
} |
|||
|
|||
public String getSheetId() { |
|||
return sheetId; |
|||
} |
|||
|
|||
public void setSheetId(String sheetId) { |
|||
this.sheetId = sheetId; |
|||
} |
|||
|
|||
public int getStartRow() { |
|||
return startRow; |
|||
} |
|||
|
|||
public void setStartRow(int startRow) { |
|||
this.startRow = startRow; |
|||
} |
|||
|
|||
public int getEndRow() { |
|||
return endRow; |
|||
} |
|||
|
|||
public void setEndRow(int endRow) { |
|||
this.endRow = endRow; |
|||
} |
|||
|
|||
public int getStartColumn() { |
|||
return startColumn; |
|||
} |
|||
|
|||
public void setStartColumn(int startColumn) { |
|||
this.startColumn = startColumn; |
|||
} |
|||
|
|||
public int getEndColumn() { |
|||
return endColumn; |
|||
} |
|||
|
|||
public void setEndColumn(int endColumn) { |
|||
this.endColumn = endColumn; |
|||
} |
|||
} |
@ -1,30 +0,0 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
|
|||
public class IRangeLocation { |
|||
/** |
|||
* Id of the Workbook the range belongs to. |
|||
* When this field is not defined, it should be considered as the range in the currently activated worksheet. |
|||
*/ |
|||
private String unitId; |
|||
/** |
|||
* Id of the Worksheet the range belongs to. |
|||
* When this field is not defined, it should be considered as the range in the currently activated worksheet. |
|||
*/ |
|||
private String sheetId; |
|||
|
|||
public String getUnitId() { |
|||
return unitId; |
|||
} |
|||
|
|||
public void setUnitId(String unitId) { |
|||
this.unitId = unitId; |
|||
} |
|||
|
|||
public String getSheetId() { |
|||
return sheetId; |
|||
} |
|||
|
|||
public void setSheetId(String sheetId) { |
|||
this.sheetId = sheetId; |
|||
} |
|||
} |
@ -1,78 +0,0 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
|
|||
import java.util.Map; |
|||
|
|||
public class IWorkbookData { |
|||
private String id; //Unique identifier of the Univer Sheets.
|
|||
private String name; //Name of the Univer Sheets.
|
|||
private String appVersion; //Version of the Univer model definition.
|
|||
private LocaleType locale; //Locale of the document.
|
|||
private Map<String,IStyleData> styles; //Style references for the workbook.
|
|||
private String[] sheetOrder; //Array of sheet IDs representing the order of worksheets.
|
|||
private Map<String, IWorksheetData> sheets; //Record containing data for each worksheet.
|
|||
private IResource[] resources; //Store the data of plugins
|
|||
|
|||
public String getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(String id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public String getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name; |
|||
} |
|||
|
|||
public String getAppVersion() { |
|||
return appVersion; |
|||
} |
|||
|
|||
public void setAppVersion(String appVersion) { |
|||
this.appVersion = appVersion; |
|||
} |
|||
|
|||
public LocaleType getLocale() { |
|||
return locale; |
|||
} |
|||
|
|||
public void setLocale(LocaleType locale) { |
|||
this.locale = locale; |
|||
} |
|||
|
|||
public Map<String, IStyleData> getStyles() { |
|||
return styles; |
|||
} |
|||
|
|||
public void setStyles(Map<String, IStyleData> styles) { |
|||
this.styles = styles; |
|||
} |
|||
|
|||
public String[] getSheetOrder() { |
|||
return sheetOrder; |
|||
} |
|||
|
|||
public void setSheetOrder(String[] sheetOrder) { |
|||
this.sheetOrder = sheetOrder; |
|||
} |
|||
|
|||
public Map<String, IWorksheetData> getSheets() { |
|||
return sheets; |
|||
} |
|||
|
|||
public void setSheets(Map<String, IWorksheetData> sheets) { |
|||
this.sheets = sheets; |
|||
} |
|||
|
|||
public IResource[] getResources() { |
|||
return resources; |
|||
} |
|||
|
|||
public void setResources(IResource[] resources) { |
|||
this.resources = resources; |
|||
} |
|||
} |
@ -1,14 +0,0 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
|
|||
public enum VerticalAlign { |
|||
UNSPECIFIED(0), |
|||
TOP(1), // The text is explicitly aligned to the top of the cell.
|
|||
MIDDLE(2), // The text is explicitly aligned to the middle of the cell.
|
|||
BOTTOM(3); |
|||
|
|||
private int value; |
|||
|
|||
VerticalAlign(int value){ |
|||
this.value =value; |
|||
} |
|||
} |
@ -1,15 +0,0 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
|
|||
public enum VerticalAlignmentType { |
|||
CONTENT_ALIGNMENT_UNSPECIFIED(0),// An unspecified content alignment. The content alignment is inherited from the parent if one exists.
|
|||
BOTH(1), |
|||
TOP(2),// An alignment that aligns the content to the top of the content holder. Corresponds to ECMA-376 ST_TextAnchoringType 't'.
|
|||
CENTER(3),// An alignment that aligns the content to the middle of the content holder. Corresponds to ECMA-376 ST_TextAnchoringType 'ctr'.
|
|||
BOTTOM(4); |
|||
|
|||
private int value; |
|||
|
|||
VerticalAlignmentType(int value){ |
|||
this.value =value; |
|||
} |
|||
} |
@ -1,5 +1,11 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
/** |
|||
* none: A1 |
|||
* row: A$1 |
|||
* column: $A1 |
|||
* all: $A$1 |
|||
*/ |
|||
public enum AbsoluteRefType { |
|||
NONE(0), |
|||
ROW(1), |
@ -1,4 +1,4 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
public enum AlignTypeH { |
|||
CENTER(0), |
@ -1,4 +1,4 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
public enum AlignTypeV { |
|||
BOTTOM(0), |
@ -1,5 +1,8 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
/** |
|||
* Type of block |
|||
*/ |
|||
public enum BlockType { |
|||
DRAWING(0), |
|||
CUSTOM(1); |
@ -1,5 +1,8 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
/** |
|||
* Border style types enum |
|||
*/ |
|||
public enum BorderStyleTypes { |
|||
NONE(0), |
|||
THIN(1), |
@ -1,5 +1,8 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
/** |
|||
* The types of alignment for a bullet. |
|||
*/ |
|||
public enum BulletAlignment { |
|||
BULLET_ALIGNMENT_UNSPECIFIED(0),// The bullet alignment is unspecified.
|
|||
START(1),// The bullet is aligned to the start of the space allotted for rendering the bullet. Left-aligned for LTR text), right-aligned otherwise.
|
@ -1,5 +1,8 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
/** |
|||
* General Boolean Enum |
|||
*/ |
|||
public enum CellValueType { |
|||
STRING(1), |
|||
NUMBER(2), |
@ -1,4 +1,4 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
public enum CharacterSpacingControlType { |
|||
compressPunctuation(0), |
@ -1,5 +1,8 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
/** |
|||
* The style of column separators between columns. |
|||
*/ |
|||
public enum ColumnSeparatorType { |
|||
COLUMN_SEPARATOR_STYLE_UNSPECIFIED(0),// An unspecified column separator style.
|
|||
NONE(1),// No column separator lines between columns.
|
@ -1,4 +1,4 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
public enum CustomDecorationType { |
|||
COMMENT(0), |
@ -1,4 +1,4 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
public enum CustomRangeType { |
|||
HYPERLINK(0), |
@ -1,5 +1,8 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
/** |
|||
* The kinds of dashes with which linear geometry can be rendered. |
|||
*/ |
|||
public enum DashStyleType { |
|||
DASH_STYLE_UNSPECIFIED(0),// Unspecified dash style.
|
|||
SOLID(1),// Solid line. Corresponds to ECMA-376 ST_PresetLineDashVal value 'solid'. This is the default dash style.
|
@ -1,4 +1,4 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
public enum DocumentFlavor { |
|||
UNSPECIFIED(0), |
@ -1,5 +1,8 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
/** |
|||
* Types of drawings, used to distinguish between images, shapes, charts, tables, SmartArt, videos, DrawingGroup, Unit, Dom, etc. |
|||
*/ |
|||
public enum DrawingType { |
|||
/** |
|||
* Unrecognized drawing type), requires user to determine |
@ -1,4 +1,4 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
public enum GridType { |
|||
DEFAULT(0), |
@ -0,0 +1,20 @@ |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
/** |
|||
* An enum that specifies the horizontal alignment of text. |
|||
*/ |
|||
public enum HorizontalAlign { |
|||
UNSPECIFIED(0),// The horizontal alignment is not specified. Do not use this.
|
|||
LEFT(1),// The text is explicitly aligned to the left of the cell.
|
|||
CENTER(2),// text is explicitly aligned to the center of the cell.
|
|||
RIGHT(3),// The text is explicitly aligned to the right of the cell.
|
|||
JUSTIFIED(4),// The paragraph is justified.
|
|||
BOTH(5),// The paragraph is justified.
|
|||
DISTRIBUTED(6); |
|||
|
|||
private int value; |
|||
|
|||
HorizontalAlign(int value){ |
|||
this.value =value; |
|||
} |
|||
} |
@ -0,0 +1,63 @@ |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
public class IAbsoluteTransform { |
|||
// extends from ISize
|
|||
private Integer width; |
|||
private Integer height; |
|||
|
|||
// extends from IOffset
|
|||
private Double left; |
|||
private Double top; |
|||
|
|||
// extends from IScale
|
|||
private Double scaleX; |
|||
private Double scaleY; |
|||
|
|||
public Integer getWidth() { |
|||
return width; |
|||
} |
|||
|
|||
public void setWidth(Integer width) { |
|||
this.width = width; |
|||
} |
|||
|
|||
public Integer getHeight() { |
|||
return height; |
|||
} |
|||
|
|||
public void setHeight(Integer height) { |
|||
this.height = height; |
|||
} |
|||
|
|||
public Double getLeft() { |
|||
return left; |
|||
} |
|||
|
|||
public void setLeft(Double left) { |
|||
this.left = left; |
|||
} |
|||
|
|||
public Double getTop() { |
|||
return top; |
|||
} |
|||
|
|||
public void setTop(Double top) { |
|||
this.top = top; |
|||
} |
|||
|
|||
public Double getScaleX() { |
|||
return scaleX; |
|||
} |
|||
|
|||
public void setScaleX(Double scaleX) { |
|||
this.scaleX = scaleX; |
|||
} |
|||
|
|||
public Double getScaleY() { |
|||
return scaleY; |
|||
} |
|||
|
|||
public void setScaleY(Double scaleY) { |
|||
this.scaleY = scaleY; |
|||
} |
|||
} |
@ -1,6 +1,19 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
/** |
|||
* Style properties of top, bottom, left and right border |
|||
* |
|||
* TLBR = 'tlbr', //START_TOP_LEFT_END_BOTTOM_RIGHT
|
|||
* TLBC = 'tlbc', // START_TOP_LEFT_END_BOTTOM_CENTER
|
|||
|
|||
* TLMR = 'tlmr', // START_TOP_LEFT_END_MIDDLE_RIGHT
|
|||
|
|||
* BLTR = 'bltr', // START_BOTTOM_LEFT_END_TOP_RIGHT
|
|||
|
|||
* MLTR = 'mltr', // START_MIDDLE_LEFT_END_TOP_RIGHT
|
|||
|
|||
* BCTR = 'bctr', // START_BOTTOM_CENTER_END_TOP_RIGHT
|
|||
*/ |
|||
public class IBorderData { |
|||
private IBorderStyleData t; |
|||
private IBorderStyleData r; |
@ -1,5 +1,8 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
/** |
|||
* Style properties of border |
|||
*/ |
|||
public class IBorderStyleData { |
|||
private BorderStyleTypes s; |
|||
private IColorStyle cl; |
@ -1,5 +1,8 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
/** |
|||
* Properties of list |
|||
*/ |
|||
public class IBullet { |
|||
private String listType; |
|||
private String listId; |
@ -1,5 +1,8 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
/** |
|||
* RGB color or theme color |
|||
*/ |
|||
public class IColorStyle { |
|||
private String rgb; |
|||
private ThemeColorType th; |
@ -1,4 +1,4 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
|
@ -1,5 +1,8 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
/** |
|||
* Custom Block |
|||
*/ |
|||
public class ICustomBlock { |
|||
private Integer startIndex; |
|||
private BlockType blockType; |
@ -1,4 +1,4 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
public class ICustomDecoration { |
|||
private Integer startIndex; |
@ -1,4 +1,4 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
public class ICustomTable { |
|||
private Integer startIndex; |
@ -1,4 +1,4 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
public class IDistFromText { |
|||
private Integer distT; |
@ -1,5 +1,8 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
/** |
|||
* Properties of a draw object |
|||
*/ |
|||
public class IDocDrawingPosition { |
|||
private ISize size; |
|||
private IObjectPositionH positionH; |
@ -0,0 +1,70 @@ |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
/** |
|||
* Basics properties of doc style |
|||
*/ |
|||
public class IDocStyleBase extends IMargin { |
|||
private Integer pageNumberStart; |
|||
private ISize pageSize; |
|||
private PageOrientType pageOrient; |
|||
private DocumentFlavor documentFlavor; |
|||
private Integer marginHeader; |
|||
private Integer marginFooter; |
|||
private IDocumentRenderConfig renderConfig; |
|||
|
|||
public Integer getPageNumberStart() { |
|||
return pageNumberStart; |
|||
} |
|||
|
|||
public void setPageNumberStart(Integer pageNumberStart) { |
|||
this.pageNumberStart = pageNumberStart; |
|||
} |
|||
|
|||
public ISize getPageSize() { |
|||
return pageSize; |
|||
} |
|||
|
|||
public void setPageSize(ISize pageSize) { |
|||
this.pageSize = pageSize; |
|||
} |
|||
|
|||
public PageOrientType getPageOrient() { |
|||
return pageOrient; |
|||
} |
|||
|
|||
public void setPageOrient(PageOrientType pageOrient) { |
|||
this.pageOrient = pageOrient; |
|||
} |
|||
|
|||
public DocumentFlavor getDocumentFlavor() { |
|||
return documentFlavor; |
|||
} |
|||
|
|||
public void setDocumentFlavor(DocumentFlavor documentFlavor) { |
|||
this.documentFlavor = documentFlavor; |
|||
} |
|||
|
|||
public Integer getMarginHeader() { |
|||
return marginHeader; |
|||
} |
|||
|
|||
public void setMarginHeader(Integer marginHeader) { |
|||
this.marginHeader = marginHeader; |
|||
} |
|||
|
|||
public Integer getMarginFooter() { |
|||
return marginFooter; |
|||
} |
|||
|
|||
public void setMarginFooter(Integer marginFooter) { |
|||
this.marginFooter = marginFooter; |
|||
} |
|||
|
|||
public IDocumentRenderConfig getRenderConfig() { |
|||
return renderConfig; |
|||
} |
|||
|
|||
public void setRenderConfig(IDocumentRenderConfig renderConfig) { |
|||
this.renderConfig = renderConfig; |
|||
} |
|||
} |
@ -1,7 +1,33 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* Properties of document body |
|||
* Contain three update types: range overlay, range mutual exclusion, and placeholder |
|||
* \v COLUMN_BREAK |
|||
* \f PAGE_BREAK |
|||
* \0 DOCS_END |
|||
* \t TAB |
|||
* |
|||
* Needs to be changed: |
|||
* \r PARAGRAPH |
|||
* \n SECTION_BREAK |
|||
* |
|||
* \b customBlock: Scenarios where customBlock, images, mentions, etc. do not participate in the document flow. |
|||
* |
|||
* Table |
|||
* \x1A table start |
|||
* \x1B table row start |
|||
* \x1C table cell start |
|||
* \x1D table cell end |
|||
* \x1E table row end |
|||
* \x1F table end |
|||
* |
|||
* Special ranges within the document flow::hyperlinks,field,structured document tags, bookmark,comment |
|||
* \x1F customRange start |
|||
* \x1E customRange end |
|||
*/ |
|||
public class IDocumentBody { |
|||
private String dataStream; |
|||
private ITextRun[] textRuns; |
@ -0,0 +1,81 @@ |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
|
|||
public class IDocumentLayout { |
|||
private Integer defaultTabStop; |
|||
private CharacterSpacingControlType characterSpacingControl; |
|||
private Integer paragraphLineGapDefault; |
|||
@JsonFormat(shape = JsonFormat.Shape.NUMBER) |
|||
private Boolean spaceWidthEastAsian; |
|||
@JsonFormat(shape = JsonFormat.Shape.NUMBER) |
|||
private Boolean autoHyphenation; |
|||
private Integer consecutiveHyphenLimit; |
|||
@JsonFormat(shape = JsonFormat.Shape.NUMBER) |
|||
private Boolean doNotHyphenateCaps; |
|||
private Integer hyphenationZone; |
|||
|
|||
public Integer getDefaultTabStop() { |
|||
return defaultTabStop; |
|||
} |
|||
|
|||
public void setDefaultTabStop(Integer defaultTabStop) { |
|||
this.defaultTabStop = defaultTabStop; |
|||
} |
|||
|
|||
public CharacterSpacingControlType getCharacterSpacingControl() { |
|||
return characterSpacingControl; |
|||
} |
|||
|
|||
public void setCharacterSpacingControl(CharacterSpacingControlType characterSpacingControl) { |
|||
this.characterSpacingControl = characterSpacingControl; |
|||
} |
|||
|
|||
public Integer getParagraphLineGapDefault() { |
|||
return paragraphLineGapDefault; |
|||
} |
|||
|
|||
public void setParagraphLineGapDefault(Integer paragraphLineGapDefault) { |
|||
this.paragraphLineGapDefault = paragraphLineGapDefault; |
|||
} |
|||
|
|||
public Boolean getSpaceWidthEastAsian() { |
|||
return spaceWidthEastAsian; |
|||
} |
|||
|
|||
public void setSpaceWidthEastAsian(Boolean spaceWidthEastAsian) { |
|||
this.spaceWidthEastAsian = spaceWidthEastAsian; |
|||
} |
|||
|
|||
public Boolean getAutoHyphenation() { |
|||
return autoHyphenation; |
|||
} |
|||
|
|||
public void setAutoHyphenation(Boolean autoHyphenation) { |
|||
this.autoHyphenation = autoHyphenation; |
|||
} |
|||
|
|||
public Integer getConsecutiveHyphenLimit() { |
|||
return consecutiveHyphenLimit; |
|||
} |
|||
|
|||
public void setConsecutiveHyphenLimit(Integer consecutiveHyphenLimit) { |
|||
this.consecutiveHyphenLimit = consecutiveHyphenLimit; |
|||
} |
|||
|
|||
public Boolean getDoNotHyphenateCaps() { |
|||
return doNotHyphenateCaps; |
|||
} |
|||
|
|||
public void setDoNotHyphenateCaps(Boolean doNotHyphenateCaps) { |
|||
this.doNotHyphenateCaps = doNotHyphenateCaps; |
|||
} |
|||
|
|||
public Integer getHyphenationZone() { |
|||
return hyphenationZone; |
|||
} |
|||
|
|||
public void setHyphenationZone(Integer hyphenationZone) { |
|||
this.hyphenationZone = hyphenationZone; |
|||
} |
|||
} |
@ -1,7 +1,20 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
|
|||
/** |
|||
* the alignment mode is returned with respect to the offset of the sheet cell, |
|||
* because the document needs to render the layout for cells and |
|||
* support alignment across multiple cells (e.g., horizontal alignment of long text in overflow mode). |
|||
* The alignment mode of the document itself cannot meet this requirement, |
|||
* so an additional renderConfig needs to be added during the rendering of the document component. |
|||
* This means that there are two coexisting alignment modes. |
|||
* In certain cases, such as in an editor, conflicts may arise, |
|||
* requiring only one alignment mode to be retained. |
|||
* By removing the relevant configurations in renderConfig, |
|||
* the alignment mode of the sheet cell can be modified. |
|||
* The alternative alignment mode is applied to paragraphs within the document. |
|||
*/ |
|||
public class IDocumentRenderConfig { |
|||
private VerticalAlign verticalAlign; |
|||
private Integer centerAngle; |
@ -1,4 +1,4 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
public class IDocumentSettings { |
|||
private Integer zoomRatio; |
@ -1,4 +1,4 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
public class IDrawingSearch extends IDrawingSpace { |
|||
private String drawingId; |
@ -1,4 +1,4 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
public class IDrawingSpace { |
|||
private String unitId; |
@ -1,4 +1,4 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
public class IFooterData { |
|||
private String footerId; |
@ -0,0 +1,52 @@ |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
public class IFreeze { |
|||
/** |
|||
* count of fixed cols |
|||
*/ |
|||
private int xSplit; |
|||
/** |
|||
* count of fixed rows |
|||
*/ |
|||
private int ySplit; |
|||
/** |
|||
* scrollable start row(viewMain start row) |
|||
*/ |
|||
private int startRow; |
|||
/** |
|||
* scrollable start column(viewMain start column) |
|||
*/ |
|||
private int startColumn; |
|||
|
|||
public int getxSplit() { |
|||
return xSplit; |
|||
} |
|||
|
|||
public void setxSplit(int xSplit) { |
|||
this.xSplit = xSplit; |
|||
} |
|||
|
|||
public int getySplit() { |
|||
return ySplit; |
|||
} |
|||
|
|||
public void setySplit(int ySplit) { |
|||
this.ySplit = ySplit; |
|||
} |
|||
|
|||
public int getStartRow() { |
|||
return startRow; |
|||
} |
|||
|
|||
public void setStartRow(int startRow) { |
|||
this.startRow = startRow; |
|||
} |
|||
|
|||
public int getStartColumn() { |
|||
return startColumn; |
|||
} |
|||
|
|||
public void setStartColumn(int startColumn) { |
|||
this.startColumn = startColumn; |
|||
} |
|||
} |
@ -0,0 +1,80 @@ |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
|
|||
public class IHeaderAndFooterBase { |
|||
private String defaultHeaderId; |
|||
private String defaultFooterId; |
|||
private String evenPageHeaderId; |
|||
private String evenPageFooterId; |
|||
private String firstPageHeaderId; |
|||
private String firstPageFooterId; |
|||
@JsonFormat(shape = JsonFormat.Shape.NUMBER) |
|||
private Boolean useFirstPageHeaderFooter; |
|||
@JsonFormat(shape = JsonFormat.Shape.NUMBER) |
|||
private Boolean evenAndOddHeaders; |
|||
|
|||
public String getDefaultHeaderId() { |
|||
return defaultHeaderId; |
|||
} |
|||
|
|||
public void setDefaultHeaderId(String defaultHeaderId) { |
|||
this.defaultHeaderId = defaultHeaderId; |
|||
} |
|||
|
|||
public String getDefaultFooterId() { |
|||
return defaultFooterId; |
|||
} |
|||
|
|||
public void setDefaultFooterId(String defaultFooterId) { |
|||
this.defaultFooterId = defaultFooterId; |
|||
} |
|||
|
|||
public String getEvenPageHeaderId() { |
|||
return evenPageHeaderId; |
|||
} |
|||
|
|||
public void setEvenPageHeaderId(String evenPageHeaderId) { |
|||
this.evenPageHeaderId = evenPageHeaderId; |
|||
} |
|||
|
|||
public String getEvenPageFooterId() { |
|||
return evenPageFooterId; |
|||
} |
|||
|
|||
public void setEvenPageFooterId(String evenPageFooterId) { |
|||
this.evenPageFooterId = evenPageFooterId; |
|||
} |
|||
|
|||
public String getFirstPageHeaderId() { |
|||
return firstPageHeaderId; |
|||
} |
|||
|
|||
public void setFirstPageHeaderId(String firstPageHeaderId) { |
|||
this.firstPageHeaderId = firstPageHeaderId; |
|||
} |
|||
|
|||
public String getFirstPageFooterId() { |
|||
return firstPageFooterId; |
|||
} |
|||
|
|||
public void setFirstPageFooterId(String firstPageFooterId) { |
|||
this.firstPageFooterId = firstPageFooterId; |
|||
} |
|||
|
|||
public Boolean getUseFirstPageHeaderFooter() { |
|||
return useFirstPageHeaderFooter; |
|||
} |
|||
|
|||
public void setUseFirstPageHeaderFooter(Boolean useFirstPageHeaderFooter) { |
|||
this.useFirstPageHeaderFooter = useFirstPageHeaderFooter; |
|||
} |
|||
|
|||
public Boolean getEvenAndOddHeaders() { |
|||
return evenAndOddHeaders; |
|||
} |
|||
|
|||
public void setEvenAndOddHeaders(Boolean evenAndOddHeaders) { |
|||
this.evenAndOddHeaders = evenAndOddHeaders; |
|||
} |
|||
} |
@ -1,4 +1,4 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
public class IHeaderData { |
|||
private String headerId; |
@ -1,4 +1,4 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
public class IIndentStart { |
|||
private INumberUnit indentFirstLine; |
@ -1,5 +1,8 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
/** |
|||
* The properties of a list which describe the look and feel of bullets belonging to paragraphs associated with a list. |
|||
*/ |
|||
public class IListData { |
|||
private String listType; |
|||
private INestingLevel[] nestingLevel; |
@ -0,0 +1,40 @@ |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
public class IMargin { |
|||
private Integer marginTop; |
|||
private Integer marginBottom; |
|||
private Integer marginRight; |
|||
private Integer marginLeft; |
|||
|
|||
public Integer getMarginTop() { |
|||
return marginTop; |
|||
} |
|||
|
|||
public void setMarginTop(Integer marginTop) { |
|||
this.marginTop = marginTop; |
|||
} |
|||
|
|||
public Integer getMarginBottom() { |
|||
return marginBottom; |
|||
} |
|||
|
|||
public void setMarginBottom(Integer marginBottom) { |
|||
this.marginBottom = marginBottom; |
|||
} |
|||
|
|||
public Integer getMarginRight() { |
|||
return marginRight; |
|||
} |
|||
|
|||
public void setMarginRight(Integer marginRight) { |
|||
this.marginRight = marginRight; |
|||
} |
|||
|
|||
public Integer getMarginLeft() { |
|||
return marginLeft; |
|||
} |
|||
|
|||
public void setMarginLeft(Integer marginLeft) { |
|||
this.marginLeft = marginLeft; |
|||
} |
|||
} |
@ -1,5 +1,8 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
/** |
|||
* Contains properties describing the look and feel of a list bullet at a given level of nesting. |
|||
*/ |
|||
public class INestingLevel { |
|||
private IParagraphStyle paragraphProperties; |
|||
private BulletAlignment bulletAlignment; |
@ -1,4 +1,4 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
public class INumberUnit { |
|||
private Integer v; |
@ -1,4 +1,4 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
public class IObjectPositionH { |
|||
private ObjectRelativeFromH relativeFrom; |
@ -1,4 +1,4 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
public class IObjectPositionV { |
|||
private ObjectRelativeFromV relativeFrom; |
@ -0,0 +1,22 @@ |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
public class IOffset { |
|||
private Double left; |
|||
private Double top; |
|||
|
|||
public Double getLeft() { |
|||
return left; |
|||
} |
|||
|
|||
public void setLeft(Double left) { |
|||
this.left = left; |
|||
} |
|||
|
|||
public Double getTop() { |
|||
return top; |
|||
} |
|||
|
|||
public void setTop(Double top) { |
|||
this.top = top; |
|||
} |
|||
} |
@ -0,0 +1,43 @@ |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
/** |
|||
* Top,right,bottom,left padding |
|||
*/ |
|||
public class IPaddingData { |
|||
private double t; |
|||
private double r; |
|||
private double b; |
|||
private double l; |
|||
|
|||
public double getT() { |
|||
return t; |
|||
} |
|||
|
|||
public void setT(double t) { |
|||
this.t = t; |
|||
} |
|||
|
|||
public double getR() { |
|||
return r; |
|||
} |
|||
|
|||
public void setR(double r) { |
|||
this.r = r; |
|||
} |
|||
|
|||
public double getB() { |
|||
return b; |
|||
} |
|||
|
|||
public void setB(double b) { |
|||
this.b = b; |
|||
} |
|||
|
|||
public double getL() { |
|||
return l; |
|||
} |
|||
|
|||
public void setL(double l) { |
|||
this.l = l; |
|||
} |
|||
} |
@ -1,4 +1,4 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
public class IParagraph { |
|||
private Integer startIndex; |
@ -1,6 +1,6 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
public class IParagraphBorder extends IDocsBorder { |
|||
public class IParagraphBorder { |
|||
private Integer padding; |
|||
|
|||
public Integer getPadding() { |
@ -1,4 +1,4 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
|
@ -1,6 +1,9 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
public class IParagraphStyle extends IParagraphProperties { |
|||
/** |
|||
* Properties of paragraph style |
|||
*/ |
|||
public class IParagraphStyle extends IParagraphProperties{ |
|||
private ITextStyle textStyle; |
|||
|
|||
public ITextStyle getTextStyle() { |
@ -0,0 +1,46 @@ |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
/** |
|||
* Range data structure |
|||
* |
|||
* One of the range types, |
|||
* |
|||
* e.g., |
|||
* { |
|||
* startRow:0 , |
|||
* startColumn:0, |
|||
* endRow:1, |
|||
* endColumn:1, |
|||
* } |
|||
* |
|||
* means "A1:B2" |
|||
*/ |
|||
public class IRange { |
|||
private RangeType rangeType; |
|||
private AbsoluteRefType startAbsoluteRefType; |
|||
private AbsoluteRefType endAbsoluteRefType; |
|||
|
|||
public RangeType getRangeType() { |
|||
return rangeType; |
|||
} |
|||
|
|||
public void setRangeType(RangeType rangeType) { |
|||
this.rangeType = rangeType; |
|||
} |
|||
|
|||
public AbsoluteRefType getStartAbsoluteRefType() { |
|||
return startAbsoluteRefType; |
|||
} |
|||
|
|||
public void setStartAbsoluteRefType(AbsoluteRefType startAbsoluteRefType) { |
|||
this.startAbsoluteRefType = startAbsoluteRefType; |
|||
} |
|||
|
|||
public AbsoluteRefType getEndAbsoluteRefType() { |
|||
return endAbsoluteRefType; |
|||
} |
|||
|
|||
public void setEndAbsoluteRefType(AbsoluteRefType endAbsoluteRefType) { |
|||
this.endAbsoluteRefType = endAbsoluteRefType; |
|||
} |
|||
} |
@ -1,13 +1,14 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
|
|||
import java.util.Map; |
|||
|
|||
public class IReferenceSource { |
|||
private Map<String,ITable> tableSource; |
|||
private Map<String, ITable> tableSource; |
|||
private Map<String, IFooterData> footers; |
|||
private Map<String,IHeaderData> headers; |
|||
private Map<String,IListData> lists; |
|||
private Map<String,IDocDrawingBase> drawings; |
|||
private Map<String, IHeaderData> headers; |
|||
private Map<String, IListData> lists; |
|||
private Map<String, IDocDrawingBase> drawings; |
|||
private String[] drawingsOrder; |
|||
private String[] headerFooterDrawingsOrder; |
|||
|
@ -1,4 +1,4 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
public class IResource { |
|||
private String id; |
@ -0,0 +1,50 @@ |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
public class IRotationSkewFlipTransform { |
|||
private Double angle; |
|||
private Double skewX; |
|||
private Double skewY; |
|||
private Boolean flipX; |
|||
private Boolean flipY; |
|||
|
|||
public Double getAngle() { |
|||
return angle; |
|||
} |
|||
|
|||
public void setAngle(Double angle) { |
|||
this.angle = angle; |
|||
} |
|||
|
|||
public Double getSkewX() { |
|||
return skewX; |
|||
} |
|||
|
|||
public void setSkewX(Double skewX) { |
|||
this.skewX = skewX; |
|||
} |
|||
|
|||
public Double getSkewY() { |
|||
return skewY; |
|||
} |
|||
|
|||
public void setSkewY(Double skewY) { |
|||
this.skewY = skewY; |
|||
} |
|||
|
|||
public Boolean getFlipX() { |
|||
return flipX; |
|||
} |
|||
|
|||
public void setFlipX(Boolean flipX) { |
|||
this.flipX = flipX; |
|||
} |
|||
|
|||
public Boolean getFlipY() { |
|||
return flipY; |
|||
} |
|||
|
|||
public void setFlipY(Boolean flipY) { |
|||
this.flipY = flipY; |
|||
} |
|||
} |
|||
|
@ -1,4 +1,4 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
|
@ -0,0 +1,22 @@ |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
public class IScale { |
|||
private Double scaleX; |
|||
private Double scaleY; |
|||
|
|||
public Double getScaleX() { |
|||
return scaleX; |
|||
} |
|||
|
|||
public void setScaleX(Double scaleX) { |
|||
this.scaleX = scaleX; |
|||
} |
|||
|
|||
public Double getScaleY() { |
|||
return scaleY; |
|||
} |
|||
|
|||
public void setScaleY(Double scaleY) { |
|||
this.scaleY = scaleY; |
|||
} |
|||
} |
@ -0,0 +1,85 @@ |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
public class ISectionBreakBase { |
|||
private Integer charSpace; |
|||
private Integer linePitch; |
|||
private GridType gridType; |
|||
private ISectionColumnProperties[] columnProperties; |
|||
private ColumnSeparatorType columnSeparatorType; |
|||
private TextDirection contentDirection; |
|||
private SectionType sectionType; |
|||
private SectionType sectionTypeNext; |
|||
private TextDirectionType textDirection; |
|||
|
|||
public Integer getCharSpace() { |
|||
return charSpace; |
|||
} |
|||
|
|||
public void setCharSpace(Integer charSpace) { |
|||
this.charSpace = charSpace; |
|||
} |
|||
|
|||
public Integer getLinePitch() { |
|||
return linePitch; |
|||
} |
|||
|
|||
public void setLinePitch(Integer linePitch) { |
|||
this.linePitch = linePitch; |
|||
} |
|||
|
|||
public GridType getGridType() { |
|||
return gridType; |
|||
} |
|||
|
|||
public void setGridType(GridType gridType) { |
|||
this.gridType = gridType; |
|||
} |
|||
|
|||
public ISectionColumnProperties[] getColumnProperties() { |
|||
return columnProperties; |
|||
} |
|||
|
|||
public void setColumnProperties(ISectionColumnProperties[] columnProperties) { |
|||
this.columnProperties = columnProperties; |
|||
} |
|||
|
|||
public ColumnSeparatorType getColumnSeparatorType() { |
|||
return columnSeparatorType; |
|||
} |
|||
|
|||
public void setColumnSeparatorType(ColumnSeparatorType columnSeparatorType) { |
|||
this.columnSeparatorType = columnSeparatorType; |
|||
} |
|||
|
|||
public TextDirection getContentDirection() { |
|||
return contentDirection; |
|||
} |
|||
|
|||
public void setContentDirection(TextDirection contentDirection) { |
|||
this.contentDirection = contentDirection; |
|||
} |
|||
|
|||
public SectionType getSectionType() { |
|||
return sectionType; |
|||
} |
|||
|
|||
public void setSectionType(SectionType sectionType) { |
|||
this.sectionType = sectionType; |
|||
} |
|||
|
|||
public SectionType getSectionTypeNext() { |
|||
return sectionTypeNext; |
|||
} |
|||
|
|||
public void setSectionTypeNext(SectionType sectionTypeNext) { |
|||
this.sectionTypeNext = sectionTypeNext; |
|||
} |
|||
|
|||
public TextDirectionType getTextDirection() { |
|||
return textDirection; |
|||
} |
|||
|
|||
public void setTextDirection(TextDirectionType textDirection) { |
|||
this.textDirection = textDirection; |
|||
} |
|||
} |
@ -1,5 +1,8 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
/** |
|||
* Properties of section column |
|||
*/ |
|||
public class ISectionColumnProperties { |
|||
private Integer width; |
|||
private Integer paddingEnd; |
@ -1,5 +1,8 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
/** |
|||
* Properties of shading |
|||
*/ |
|||
public class IShading { |
|||
private IColorStyle backgroundColor; |
|||
|
@ -1,4 +1,4 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
public class ISize { |
|||
private Integer width; |
@ -1,12 +1,15 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
|
|||
public class IStyleData { |
|||
private ITextRotation tr; //textRotation
|
|||
private TextDirection td; //textDirection
|
|||
private HorizontalAlign ht; //horizontalAlignment
|
|||
private VerticalAlign vt; //verticalAlignment
|
|||
private WrapStrategy tb; //wrapStrategy
|
|||
private IPaddingData pd; //padding
|
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
/** |
|||
* Properties of cell style |
|||
*/ |
|||
public class IStyleData extends IStyleBase{ |
|||
private ITextRotation tr;//textRotation
|
|||
private TextDirection td;//textDirection
|
|||
private HorizontalAlign ht;//horizontalAlignment
|
|||
private VerticalAlign vt;//verticalAlignment
|
|||
private WrapStrategy tb;//wrapStrategy
|
|||
private IPaddingData pd;//padding
|
|||
|
|||
public ITextRotation getTr() { |
|||
return tr; |
@ -1,4 +1,4 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
public class ITabStop { |
|||
private Integer offset; |
@ -1,7 +1,10 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
|
|||
/** |
|||
* Properties of table |
|||
*/ |
|||
public class ITable { |
|||
private ITableRow[] tableRows; |
|||
private ITableColumn[] tableColumns; |
@ -1,4 +1,4 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
public class ITableAnchor { |
|||
private IObjectPositionH positionH; |
@ -1,5 +1,8 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
/** |
|||
* Properties of cell border |
|||
*/ |
|||
public class ITableCellBorder { |
|||
private IColorStyle color; |
|||
private INumberUnit width; |
@ -1,4 +1,5 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
|
|||
public class ITableCellMargin { |
|||
private INumberUnit start; |
@ -1,4 +1,4 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
public class ITableColumn { |
|||
private IWidthInTableSize size; |
@ -1,7 +1,10 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
|
|||
/** |
|||
* Properties of row of table |
|||
*/ |
|||
public class ITableRow { |
|||
private ITableCell[] tableCells; |
|||
private ITableRowSize trHeight; |
@ -1,4 +1,5 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
|
|||
public class ITableRowSize { |
|||
private INumberUnit val; |
@ -1,14 +1,32 @@ |
|||
package io.sc.platform.poi.univer.model; |
|||
package io.sc.platform.poi.univerjs.model; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
|
|||
/** |
|||
* Properties of text decoration |
|||
*/ |
|||
public class ITextDecoration { |
|||
/** |
|||
* show |
|||
*/ |
|||
@JsonFormat(shape = JsonFormat.Shape.NUMBER) |
|||
private boolean s; // show
|
|||
private boolean s; |
|||
|
|||
/** |
|||
* color is follow the font color. the default value is TRUE, it's also TRUE if it is undefined. the cl has no effect when `c` is TRUE. |
|||
*/ |
|||
@JsonFormat(shape = JsonFormat.Shape.NUMBER) |
|||
private boolean c; // color is follow the font color. the default value is TRUE, it's also TRUE if it is undefined. the cl has no effect when `c` is TRUE.
|
|||
private IColorStyle cl; // color
|
|||
private TextDecoration t; // lineType
|
|||
private boolean c; |
|||
|
|||
/** |
|||
* color |
|||
*/ |
|||
private IColorStyle cl; |
|||
|
|||
/** |
|||
* lineType |
|||
*/ |
|||
private TextDecoration t; |
|||
|
|||
public boolean isS() { |
|||
return s; |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue