Browse Source
1) 修改 login 页面 thymeleaf 模版 2) 实现了 jpa criteria 的绝大多数 前端核心发布: 8.2.110 1) 修改了 logout 2)增加数据导出Excel模版配置main
180 changed files with 5877 additions and 71 deletions
@ -0,0 +1,53 @@ |
|||
<template> |
|||
<div class="border border-gray-200" style="height: 100%"></div> |
|||
</template> |
|||
<script setup lang="ts"> |
|||
// import { LocaleType, mergeLocales, Univer, UniverInstanceType } from '@univerjs/core'; |
|||
// import { FUniver } from '@univerjs/core/facade'; |
|||
// import DesignEnUS from '@univerjs/design/locale/en-US'; |
|||
// import { UniverDocsPlugin } from '@univerjs/docs'; |
|||
// import { UniverDocsUIPlugin } from '@univerjs/docs-ui'; |
|||
// import DocsUIEnUS from '@univerjs/docs-ui/locale/en-US'; |
|||
// import { UniverFormulaEnginePlugin } from '@univerjs/engine-formula'; |
|||
// import { UniverRenderEnginePlugin } from '@univerjs/engine-render'; |
|||
// import { UniverSheetsPlugin } from '@univerjs/sheets'; |
|||
// import { UniverSheetsFormulaPlugin } from '@univerjs/sheets-formula'; |
|||
// import { UniverSheetsFormulaUIPlugin } from '@univerjs/sheets-formula-ui'; |
|||
// import SheetsFormulaUIEnUS from '@univerjs/sheets-formula-ui/locale/en-US'; |
|||
// import { UniverSheetsNumfmtPlugin } from '@univerjs/sheets-numfmt'; |
|||
// import { UniverSheetsNumfmtUIPlugin } from '@univerjs/sheets-numfmt-ui'; |
|||
// import SheetsNumfmtUIEnUS from '@univerjs/sheets-numfmt-ui/locale/en-US'; |
|||
// import { UniverSheetsUIPlugin } from '@univerjs/sheets-ui'; |
|||
// import SheetsUIEnUS from '@univerjs/sheets-ui/locale/en-US'; |
|||
// import SheetsEnUS from '@univerjs/sheets/locale/en-US'; |
|||
// import { UniverUIPlugin } from '@univerjs/ui'; |
|||
// import UIEnUS from '@univerjs/ui/locale/en-US'; |
|||
// import '@univerjs/design/lib/index.css'; |
|||
// import '@univerjs/ui/lib/index.css'; |
|||
// import '@univerjs/docs-ui/lib/index.css'; |
|||
// import '@univerjs/sheets-ui/lib/index.css'; |
|||
// import '@univerjs/sheets-formula-ui/lib/index.css'; |
|||
// import '@univerjs/sheets-numfmt-ui/lib/index.css'; |
|||
|
|||
// const univer = new Univer({ |
|||
// locale: LocaleType.EN_US, |
|||
// locales: { |
|||
// [LocaleType.EN_US]: mergeLocales(DesignEnUS, UIEnUS, DocsUIEnUS, SheetsEnUS, SheetsUIEnUS, SheetsFormulaUIEnUS, SheetsNumfmtUIEnUS), |
|||
// }, |
|||
// }); |
|||
// univer.registerPlugin(UniverRenderEnginePlugin); |
|||
// univer.registerPlugin(UniverFormulaEnginePlugin); |
|||
// univer.registerPlugin(UniverUIPlugin, { |
|||
// container: 'app', |
|||
// }); |
|||
// univer.registerPlugin(UniverDocsPlugin); |
|||
// univer.registerPlugin(UniverDocsUIPlugin); |
|||
// univer.registerPlugin(UniverSheetsPlugin); |
|||
// univer.registerPlugin(UniverSheetsUIPlugin); |
|||
// univer.registerPlugin(UniverSheetsFormulaPlugin); |
|||
// univer.registerPlugin(UniverSheetsFormulaUIPlugin); |
|||
// univer.registerPlugin(UniverSheetsNumfmtPlugin); |
|||
// univer.registerPlugin(UniverSheetsNumfmtUIPlugin); |
|||
// univer.createUnit(UniverInstanceType.UNIVER_SHEET, {}); |
|||
// const univerAPI = FUniver.newAPI(univer); |
|||
</script> |
@ -0,0 +1,53 @@ |
|||
<template> |
|||
<div class="border border-gray-200" style="height: 100%"></div> |
|||
</template> |
|||
<script setup lang="ts"> |
|||
// import { LocaleType, mergeLocales, Univer, UniverInstanceType } from '@univerjs/core'; |
|||
// import { FUniver } from '@univerjs/core/facade'; |
|||
// import DesignEnUS from '@univerjs/design/locale/en-US'; |
|||
// import { UniverDocsPlugin } from '@univerjs/docs'; |
|||
// import { UniverDocsUIPlugin } from '@univerjs/docs-ui'; |
|||
// import DocsUIEnUS from '@univerjs/docs-ui/locale/en-US'; |
|||
// import { UniverFormulaEnginePlugin } from '@univerjs/engine-formula'; |
|||
// import { UniverRenderEnginePlugin } from '@univerjs/engine-render'; |
|||
// import { UniverSheetsPlugin } from '@univerjs/sheets'; |
|||
// import { UniverSheetsFormulaPlugin } from '@univerjs/sheets-formula'; |
|||
// import { UniverSheetsFormulaUIPlugin } from '@univerjs/sheets-formula-ui'; |
|||
// import SheetsFormulaUIEnUS from '@univerjs/sheets-formula-ui/locale/en-US'; |
|||
// import { UniverSheetsNumfmtPlugin } from '@univerjs/sheets-numfmt'; |
|||
// import { UniverSheetsNumfmtUIPlugin } from '@univerjs/sheets-numfmt-ui'; |
|||
// import SheetsNumfmtUIEnUS from '@univerjs/sheets-numfmt-ui/locale/en-US'; |
|||
// import { UniverSheetsUIPlugin } from '@univerjs/sheets-ui'; |
|||
// import SheetsUIEnUS from '@univerjs/sheets-ui/locale/en-US'; |
|||
// import SheetsEnUS from '@univerjs/sheets/locale/en-US'; |
|||
// import { UniverUIPlugin } from '@univerjs/ui'; |
|||
// import UIEnUS from '@univerjs/ui/locale/en-US'; |
|||
// import '@univerjs/design/lib/index.css'; |
|||
// import '@univerjs/ui/lib/index.css'; |
|||
// import '@univerjs/docs-ui/lib/index.css'; |
|||
// import '@univerjs/sheets-ui/lib/index.css'; |
|||
// import '@univerjs/sheets-formula-ui/lib/index.css'; |
|||
// import '@univerjs/sheets-numfmt-ui/lib/index.css'; |
|||
|
|||
// const univer = new Univer({ |
|||
// locale: LocaleType.EN_US, |
|||
// locales: { |
|||
// [LocaleType.EN_US]: mergeLocales(DesignEnUS, UIEnUS, DocsUIEnUS, SheetsEnUS, SheetsUIEnUS, SheetsFormulaUIEnUS, SheetsNumfmtUIEnUS), |
|||
// }, |
|||
// }); |
|||
// univer.registerPlugin(UniverRenderEnginePlugin); |
|||
// univer.registerPlugin(UniverFormulaEnginePlugin); |
|||
// univer.registerPlugin(UniverUIPlugin, { |
|||
// container: 'app', |
|||
// }); |
|||
// univer.registerPlugin(UniverDocsPlugin); |
|||
// univer.registerPlugin(UniverDocsUIPlugin); |
|||
// univer.registerPlugin(UniverSheetsPlugin); |
|||
// univer.registerPlugin(UniverSheetsUIPlugin); |
|||
// univer.registerPlugin(UniverSheetsFormulaPlugin); |
|||
// univer.registerPlugin(UniverSheetsFormulaUIPlugin); |
|||
// univer.registerPlugin(UniverSheetsNumfmtPlugin); |
|||
// univer.registerPlugin(UniverSheetsNumfmtUIPlugin); |
|||
// univer.createUnit(UniverInstanceType.UNIVER_SHEET, {}); |
|||
// const univerAPI = FUniver.newAPI(univer); |
|||
</script> |
@ -1,6 +1,7 @@ |
|||
dependencies { |
|||
api( |
|||
project(":io.sc.platform.jdbc"), |
|||
|
|||
"com.opencsv:opencsv:${opencsv_version}", |
|||
) |
|||
} |
@ -0,0 +1,14 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public enum AbsoluteRefType { |
|||
NONE(0), |
|||
ROW(1), |
|||
COLUMN(2), |
|||
ALL(3); |
|||
|
|||
private int value; |
|||
|
|||
AbsoluteRefType(int value){ |
|||
this.value =value; |
|||
} |
|||
} |
@ -0,0 +1,17 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public enum AlignTypeH { |
|||
CENTER(0), |
|||
INSIDE(1), |
|||
LEFT(2), |
|||
OUTSIDE(3), |
|||
RIGHT(4), |
|||
BOTH(5), |
|||
DISTRIBUTE(6); |
|||
|
|||
private int value; |
|||
|
|||
AlignTypeH(int value){ |
|||
this.value =value; |
|||
} |
|||
} |
@ -0,0 +1,15 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public enum AlignTypeV { |
|||
BOTTOM(0), |
|||
CENTER(1), |
|||
INSIDE(2), |
|||
OUTSIDE(3), |
|||
TOP(4); |
|||
|
|||
private int value; |
|||
|
|||
AlignTypeV(int value){ |
|||
this.value =value; |
|||
} |
|||
} |
@ -0,0 +1,14 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public enum BaselineOffset { |
|||
NORMAL(1), |
|||
SUBSCRIPT(2), |
|||
SUPERSCRIPT(3); |
|||
|
|||
private int value; |
|||
|
|||
BaselineOffset(int value){ |
|||
this.value =value; |
|||
} |
|||
} |
|||
|
@ -0,0 +1,12 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public enum BlockType { |
|||
DRAWING(0), |
|||
CUSTOM(1); |
|||
|
|||
private int value; |
|||
|
|||
BlockType(int value){ |
|||
this.value =value; |
|||
} |
|||
} |
@ -0,0 +1,24 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public enum BorderStyleTypes { |
|||
NONE(0), |
|||
THIN(1), |
|||
HAIR(2), |
|||
DOTTED(3), |
|||
DASHED(4), |
|||
DASH_DOT(5), |
|||
DASH_DOT_DOT(6), |
|||
DOUBLE(7), |
|||
MEDIUM(8), |
|||
MEDIUM_DASHED(9), |
|||
MEDIUM_DASH_DOT(10), |
|||
MEDIUM_DASH_DOT_DOT(11), |
|||
SLANT_DASH_DOT(12), |
|||
THICK(13); |
|||
|
|||
private int value; |
|||
|
|||
BorderStyleTypes(int value){ |
|||
this.value =value; |
|||
} |
|||
} |
@ -0,0 +1,15 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
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.
|
|||
CENTER(2),// The bullet is aligned to the center of the space allotted for rendering the bullet.
|
|||
END(3),// The bullet is aligned to the end of the space allotted for rendering the bullet. Right-aligned for LTR text), left-aligned otherwise.
|
|||
BOTH(4); |
|||
|
|||
private int value; |
|||
|
|||
BulletAlignment(int value){ |
|||
this.value =value; |
|||
} |
|||
} |
@ -0,0 +1,14 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public enum CellValueType { |
|||
STRING(1), |
|||
NUMBER(2), |
|||
BOOLEAN(3), |
|||
FORCE_STRING(4); |
|||
|
|||
private int value; |
|||
|
|||
CellValueType(int value){ |
|||
this.value =value; |
|||
} |
|||
} |
@ -0,0 +1,13 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public enum CharacterSpacingControlType { |
|||
compressPunctuation(0), |
|||
compressPunctuationAndJapaneseKana(1), |
|||
doNotCompress(2); |
|||
|
|||
private int value; |
|||
|
|||
CharacterSpacingControlType(int value){ |
|||
this.value =value; |
|||
} |
|||
} |
@ -0,0 +1,13 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public enum ColumnSeparatorType { |
|||
COLUMN_SEPARATOR_STYLE_UNSPECIFIED(0),// An unspecified column separator style.
|
|||
NONE(1),// No column separator lines between columns.
|
|||
BETWEEN_EACH_COLUMN(2); |
|||
|
|||
private int value; |
|||
|
|||
ColumnSeparatorType(int value){ |
|||
this.value =value; |
|||
} |
|||
} |
@ -0,0 +1,12 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public enum CustomDecorationType { |
|||
COMMENT(0), |
|||
DELETED(9999); |
|||
|
|||
private int value; |
|||
|
|||
CustomDecorationType(int value){ |
|||
this.value =value; |
|||
} |
|||
} |
@ -0,0 +1,19 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public enum CustomRangeType { |
|||
HYPERLINK(0), |
|||
FIELD(1),// 17.16 Fields and Hyperlinks
|
|||
SDT(2),// 17.5.2 Structured Document Tags
|
|||
BOOKMARK(3), |
|||
COMMENT(4), |
|||
CUSTOM(5), |
|||
MENTION(6), |
|||
UNI_FORMULA(7), |
|||
DELTED(9999); |
|||
|
|||
private int value; |
|||
|
|||
CustomRangeType(int value){ |
|||
this.value =value; |
|||
} |
|||
} |
@ -0,0 +1,14 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
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.
|
|||
DOT(2),// Dotted line. Corresponds to ECMA-376 ST_PresetLineDashVal value 'dot'.
|
|||
DASH(3); |
|||
|
|||
private int value; |
|||
|
|||
DashStyleType(int value){ |
|||
this.value =value; |
|||
} |
|||
} |
@ -0,0 +1,13 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public enum DocumentFlavor { |
|||
UNSPECIFIED(0), |
|||
TRADITIONAL(1), |
|||
MODERN(2); |
|||
|
|||
private int value; |
|||
|
|||
DocumentFlavor(int value){ |
|||
this.value =value; |
|||
} |
|||
} |
@ -0,0 +1,50 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public enum DrawingType { |
|||
/** |
|||
* Unrecognized drawing type), requires user to determine |
|||
*/ |
|||
UNRECOGNIZED(-1), |
|||
/** |
|||
* Image |
|||
*/ |
|||
DRAWING_IMAGE(0), |
|||
/** |
|||
* Shape), similar to shapes in Office), including circles), rectangles), lines), etc. |
|||
*/ |
|||
DRAWING_SHAPE(1), |
|||
/** |
|||
* Chart |
|||
*/ |
|||
DRAWING_CHART(2), |
|||
/** |
|||
* Table |
|||
*/ |
|||
DRAWING_TABLE(3), |
|||
/** |
|||
* SmartArt), similar to SmartArt in Office |
|||
*/ |
|||
DRAWING_SMART_ART(4), |
|||
/** |
|||
* Video |
|||
*/ |
|||
DRAWING_VIDEO(5), |
|||
/** |
|||
* Drawing group |
|||
*/ |
|||
DRAWING_GROUP(6), |
|||
/** |
|||
* Univer object), allows inserting images), tables), documents), slides as floating objects into the document |
|||
*/ |
|||
DRAWING_UNIT(7), |
|||
/** |
|||
* Dom element), allows inserting HTML elements as floating objects into the document |
|||
*/ |
|||
DRAWING_DOM(8); |
|||
|
|||
private int value; |
|||
|
|||
DrawingType(int value){ |
|||
this.value =value; |
|||
} |
|||
} |
@ -0,0 +1,14 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public enum GridType { |
|||
DEFAULT(0), |
|||
LINES(1), |
|||
LINES_AND_CHARS(2), |
|||
SNAP_TO_CHARS(3); |
|||
|
|||
private int value; |
|||
|
|||
GridType(int value){ |
|||
this.value =value; |
|||
} |
|||
} |
@ -0,0 +1,17 @@ |
|||
package io.sc.platform.excel.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; |
|||
} |
|||
} |
@ -0,0 +1,94 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public class IBorderData { |
|||
private IBorderStyleData t; |
|||
private IBorderStyleData r; |
|||
private IBorderStyleData b; |
|||
private IBorderStyleData l; |
|||
private IBorderStyleData tl_br; |
|||
private IBorderStyleData tl_bc; |
|||
private IBorderStyleData tl_mr; |
|||
private IBorderStyleData bl_tr; |
|||
private IBorderStyleData ml_tr; |
|||
private IBorderStyleData bc_tr; |
|||
|
|||
public IBorderStyleData getT() { |
|||
return t; |
|||
} |
|||
|
|||
public void setT(IBorderStyleData t) { |
|||
this.t = t; |
|||
} |
|||
|
|||
public IBorderStyleData getR() { |
|||
return r; |
|||
} |
|||
|
|||
public void setR(IBorderStyleData r) { |
|||
this.r = r; |
|||
} |
|||
|
|||
public IBorderStyleData getB() { |
|||
return b; |
|||
} |
|||
|
|||
public void setB(IBorderStyleData b) { |
|||
this.b = b; |
|||
} |
|||
|
|||
public IBorderStyleData getL() { |
|||
return l; |
|||
} |
|||
|
|||
public void setL(IBorderStyleData l) { |
|||
this.l = l; |
|||
} |
|||
|
|||
public IBorderStyleData getTl_br() { |
|||
return tl_br; |
|||
} |
|||
|
|||
public void setTl_br(IBorderStyleData tl_br) { |
|||
this.tl_br = tl_br; |
|||
} |
|||
|
|||
public IBorderStyleData getTl_bc() { |
|||
return tl_bc; |
|||
} |
|||
|
|||
public void setTl_bc(IBorderStyleData tl_bc) { |
|||
this.tl_bc = tl_bc; |
|||
} |
|||
|
|||
public IBorderStyleData getTl_mr() { |
|||
return tl_mr; |
|||
} |
|||
|
|||
public void setTl_mr(IBorderStyleData tl_mr) { |
|||
this.tl_mr = tl_mr; |
|||
} |
|||
|
|||
public IBorderStyleData getBl_tr() { |
|||
return bl_tr; |
|||
} |
|||
|
|||
public void setBl_tr(IBorderStyleData bl_tr) { |
|||
this.bl_tr = bl_tr; |
|||
} |
|||
|
|||
public IBorderStyleData getMl_tr() { |
|||
return ml_tr; |
|||
} |
|||
|
|||
public void setMl_tr(IBorderStyleData ml_tr) { |
|||
this.ml_tr = ml_tr; |
|||
} |
|||
|
|||
public IBorderStyleData getBc_tr() { |
|||
return bc_tr; |
|||
} |
|||
|
|||
public void setBc_tr(IBorderStyleData bc_tr) { |
|||
this.bc_tr = bc_tr; |
|||
} |
|||
} |
@ -0,0 +1,22 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public class IBorderStyleData { |
|||
private BorderStyleTypes s; |
|||
private IColorStyle cl; |
|||
|
|||
public BorderStyleTypes getS() { |
|||
return s; |
|||
} |
|||
|
|||
public void setS(BorderStyleTypes s) { |
|||
this.s = s; |
|||
} |
|||
|
|||
public IColorStyle getCl() { |
|||
return cl; |
|||
} |
|||
|
|||
public void setCl(IColorStyle cl) { |
|||
this.cl = cl; |
|||
} |
|||
} |
@ -0,0 +1,40 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public class IBullet { |
|||
private String listType; |
|||
private String listId; |
|||
private Integer nestingLevel; |
|||
private ITextStyle textStyle; |
|||
|
|||
public String getListType() { |
|||
return listType; |
|||
} |
|||
|
|||
public void setListType(String listType) { |
|||
this.listType = listType; |
|||
} |
|||
|
|||
public String getListId() { |
|||
return listId; |
|||
} |
|||
|
|||
public void setListId(String listId) { |
|||
this.listId = listId; |
|||
} |
|||
|
|||
public Integer getNestingLevel() { |
|||
return nestingLevel; |
|||
} |
|||
|
|||
public void setNestingLevel(Integer nestingLevel) { |
|||
this.nestingLevel = nestingLevel; |
|||
} |
|||
|
|||
public ITextStyle getTextStyle() { |
|||
return textStyle; |
|||
} |
|||
|
|||
public void setTextStyle(ITextStyle textStyle) { |
|||
this.textStyle = textStyle; |
|||
} |
|||
} |
@ -0,0 +1,88 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
import java.util.Map; |
|||
|
|||
public class ICellData { |
|||
/** |
|||
* The unique key, a random string, is used for the plug-in to associate the cell. When the cell information changes, |
|||
* the plug-in does not need to change the data, reducing the pressure on the back-end interface id?: string. |
|||
*/ |
|||
private IDocumentData p; |
|||
/** |
|||
* style id, IStyleData | String |
|||
*/ |
|||
private Object s; |
|||
/** |
|||
* Origin value, string | number | boolean |
|||
*/ |
|||
private Object v; |
|||
private CellValueType t; |
|||
/** |
|||
* Raw formula string. For example `=SUM(A1:B4)`. |
|||
*/ |
|||
private String f; |
|||
/** |
|||
* Id of the formula. |
|||
*/ |
|||
private String si; |
|||
/** |
|||
* User stored custom fields |
|||
*/ |
|||
private Map<String,Object> custom; |
|||
|
|||
public IDocumentData getP() { |
|||
return p; |
|||
} |
|||
|
|||
public void setP(IDocumentData p) { |
|||
this.p = p; |
|||
} |
|||
|
|||
public Object getS() { |
|||
return s; |
|||
} |
|||
|
|||
public void setS(Object s) { |
|||
this.s = s; |
|||
} |
|||
|
|||
public Object getV() { |
|||
return v; |
|||
} |
|||
|
|||
public void setV(Object v) { |
|||
this.v = v; |
|||
} |
|||
|
|||
public CellValueType getT() { |
|||
return t; |
|||
} |
|||
|
|||
public void setT(CellValueType t) { |
|||
this.t = t; |
|||
} |
|||
|
|||
public String getF() { |
|||
return f; |
|||
} |
|||
|
|||
public void setF(String f) { |
|||
this.f = f; |
|||
} |
|||
|
|||
public String getSi() { |
|||
return si; |
|||
} |
|||
|
|||
public void setSi(String si) { |
|||
this.si = si; |
|||
} |
|||
|
|||
public Map<String, Object> getCustom() { |
|||
return custom; |
|||
} |
|||
|
|||
public void setCustom(Map<String, Object> custom) { |
|||
this.custom = custom; |
|||
} |
|||
} |
@ -0,0 +1,22 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public class IColorStyle { |
|||
private String rgb; |
|||
private ThemeColorType th; |
|||
|
|||
public String getRgb() { |
|||
return rgb; |
|||
} |
|||
|
|||
public void setRgb(String rgb) { |
|||
this.rgb = rgb; |
|||
} |
|||
|
|||
public ThemeColorType getTh() { |
|||
return th; |
|||
} |
|||
|
|||
public void setTh(ThemeColorType th) { |
|||
this.th = th; |
|||
} |
|||
} |
@ -0,0 +1,57 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
|
|||
import java.util.Map; |
|||
|
|||
public class IColumnData { |
|||
/** |
|||
* width |
|||
*/ |
|||
private Integer w; |
|||
/** |
|||
* hidden |
|||
*/ |
|||
@JsonFormat(shape = JsonFormat.Shape.NUMBER) |
|||
private boolean hd; |
|||
/** |
|||
* style id |
|||
*/ |
|||
private Object s; |
|||
/** |
|||
* User stored custom fields |
|||
*/ |
|||
private Map<String,Object> custom; |
|||
|
|||
public Integer getW() { |
|||
return w; |
|||
} |
|||
|
|||
public void setW(Integer w) { |
|||
this.w = w; |
|||
} |
|||
|
|||
public boolean isHd() { |
|||
return hd; |
|||
} |
|||
|
|||
public void setHd(boolean hd) { |
|||
this.hd = hd; |
|||
} |
|||
|
|||
public Object getS() { |
|||
return s; |
|||
} |
|||
|
|||
public void setS(Object s) { |
|||
this.s = s; |
|||
} |
|||
|
|||
public Map<String, Object> getCustom() { |
|||
return custom; |
|||
} |
|||
|
|||
public void setCustom(Map<String, Object> custom) { |
|||
this.custom = custom; |
|||
} |
|||
} |
@ -0,0 +1,26 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
|
|||
public class IColumnHeader { |
|||
private Integer height; |
|||
|
|||
@JsonFormat(shape = JsonFormat.Shape.NUMBER) |
|||
private boolean hidden; |
|||
|
|||
public Integer getHeight() { |
|||
return height; |
|||
} |
|||
|
|||
public void setHeight(Integer height) { |
|||
this.height = height; |
|||
} |
|||
|
|||
public boolean isHidden() { |
|||
return hidden; |
|||
} |
|||
|
|||
public void setHidden(boolean hidden) { |
|||
this.hidden = hidden; |
|||
} |
|||
} |
@ -0,0 +1,31 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public class ICustomBlock { |
|||
private Integer startIndex; |
|||
private BlockType blockType; |
|||
private String blockId; |
|||
|
|||
public Integer getStartIndex() { |
|||
return startIndex; |
|||
} |
|||
|
|||
public void setStartIndex(Integer startIndex) { |
|||
this.startIndex = startIndex; |
|||
} |
|||
|
|||
public BlockType getBlockType() { |
|||
return blockType; |
|||
} |
|||
|
|||
public void setBlockType(BlockType blockType) { |
|||
this.blockType = blockType; |
|||
} |
|||
|
|||
public String getBlockId() { |
|||
return blockId; |
|||
} |
|||
|
|||
public void setBlockId(String blockId) { |
|||
this.blockId = blockId; |
|||
} |
|||
} |
@ -0,0 +1,40 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public class ICustomDecoration { |
|||
private Integer startIndex; |
|||
private Integer endIndex; |
|||
private String id; |
|||
private CustomDecorationType type; |
|||
|
|||
public Integer getStartIndex() { |
|||
return startIndex; |
|||
} |
|||
|
|||
public void setStartIndex(Integer startIndex) { |
|||
this.startIndex = startIndex; |
|||
} |
|||
|
|||
public Integer getEndIndex() { |
|||
return endIndex; |
|||
} |
|||
|
|||
public void setEndIndex(Integer endIndex) { |
|||
this.endIndex = endIndex; |
|||
} |
|||
|
|||
public String getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(String id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public CustomDecorationType getType() { |
|||
return type; |
|||
} |
|||
|
|||
public void setType(CustomDecorationType type) { |
|||
this.type = type; |
|||
} |
|||
} |
@ -0,0 +1,67 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
import java.util.Map; |
|||
|
|||
public class ICustomRange { |
|||
private Integer startIndex; |
|||
private Integer endIndex; |
|||
private String rangeId; |
|||
private CustomRangeType rangeType; |
|||
/** |
|||
* display as a whole-entity |
|||
*/ |
|||
private boolean wholeEntity; |
|||
/** |
|||
* properties of custom range, |
|||
* for example, hyperlink: `{ url: string }` |
|||
*/ |
|||
private Map<String,Object> properties; |
|||
|
|||
public Integer getStartIndex() { |
|||
return startIndex; |
|||
} |
|||
|
|||
public void setStartIndex(Integer startIndex) { |
|||
this.startIndex = startIndex; |
|||
} |
|||
|
|||
public Integer getEndIndex() { |
|||
return endIndex; |
|||
} |
|||
|
|||
public void setEndIndex(Integer endIndex) { |
|||
this.endIndex = endIndex; |
|||
} |
|||
|
|||
public String getRangeId() { |
|||
return rangeId; |
|||
} |
|||
|
|||
public void setRangeId(String rangeId) { |
|||
this.rangeId = rangeId; |
|||
} |
|||
|
|||
public CustomRangeType getRangeType() { |
|||
return rangeType; |
|||
} |
|||
|
|||
public void setRangeType(CustomRangeType rangeType) { |
|||
this.rangeType = rangeType; |
|||
} |
|||
|
|||
public boolean isWholeEntity() { |
|||
return wholeEntity; |
|||
} |
|||
|
|||
public void setWholeEntity(boolean wholeEntity) { |
|||
this.wholeEntity = wholeEntity; |
|||
} |
|||
|
|||
public Map<String, Object> getProperties() { |
|||
return properties; |
|||
} |
|||
|
|||
public void setProperties(Map<String, Object> properties) { |
|||
this.properties = properties; |
|||
} |
|||
} |
@ -0,0 +1,31 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public class ICustomTable { |
|||
private Integer startIndex; |
|||
private Integer endIndex; |
|||
private String tableId; |
|||
|
|||
public Integer getStartIndex() { |
|||
return startIndex; |
|||
} |
|||
|
|||
public void setStartIndex(Integer startIndex) { |
|||
this.startIndex = startIndex; |
|||
} |
|||
|
|||
public Integer getEndIndex() { |
|||
return endIndex; |
|||
} |
|||
|
|||
public void setEndIndex(Integer endIndex) { |
|||
this.endIndex = endIndex; |
|||
} |
|||
|
|||
public String getTableId() { |
|||
return tableId; |
|||
} |
|||
|
|||
public void setTableId(String tableId) { |
|||
this.tableId = tableId; |
|||
} |
|||
} |
@ -0,0 +1,40 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public class IDistFromText { |
|||
private Integer distT; |
|||
private Integer distB; |
|||
private Integer distL; |
|||
private Integer distR; |
|||
|
|||
public Integer getDistT() { |
|||
return distT; |
|||
} |
|||
|
|||
public void setDistT(Integer distT) { |
|||
this.distT = distT; |
|||
} |
|||
|
|||
public Integer getDistB() { |
|||
return distB; |
|||
} |
|||
|
|||
public void setDistB(Integer distB) { |
|||
this.distB = distB; |
|||
} |
|||
|
|||
public Integer getDistL() { |
|||
return distL; |
|||
} |
|||
|
|||
public void setDistL(Integer distL) { |
|||
this.distL = distL; |
|||
} |
|||
|
|||
public Integer getDistR() { |
|||
return distR; |
|||
} |
|||
|
|||
public void setDistR(Integer distR) { |
|||
this.distR = distR; |
|||
} |
|||
} |
@ -0,0 +1,127 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
|
|||
public class IDocDrawingBase extends IDrawingParam { |
|||
private String drawingId; |
|||
private String title; |
|||
private String description; |
|||
private IDocDrawingPosition docTransform; |
|||
private PositionedObjectLayoutType layoutType; |
|||
|
|||
@JsonFormat(shape = JsonFormat.Shape.NUMBER) |
|||
private boolean behindDoc; |
|||
private int[] start; |
|||
private int[][] lineTo; |
|||
private WrapTextType wrapText; |
|||
private int distL; |
|||
private int distR; |
|||
private int distT; |
|||
private int distB; |
|||
|
|||
@Override |
|||
public String getDrawingId() { |
|||
return drawingId; |
|||
} |
|||
|
|||
@Override |
|||
public void setDrawingId(String drawingId) { |
|||
this.drawingId = drawingId; |
|||
} |
|||
|
|||
public String getTitle() { |
|||
return title; |
|||
} |
|||
|
|||
public void setTitle(String title) { |
|||
this.title = title; |
|||
} |
|||
|
|||
public String getDescription() { |
|||
return description; |
|||
} |
|||
|
|||
public void setDescription(String description) { |
|||
this.description = description; |
|||
} |
|||
|
|||
public IDocDrawingPosition getDocTransform() { |
|||
return docTransform; |
|||
} |
|||
|
|||
public void setDocTransform(IDocDrawingPosition docTransform) { |
|||
this.docTransform = docTransform; |
|||
} |
|||
|
|||
public PositionedObjectLayoutType getLayoutType() { |
|||
return layoutType; |
|||
} |
|||
|
|||
public void setLayoutType(PositionedObjectLayoutType layoutType) { |
|||
this.layoutType = layoutType; |
|||
} |
|||
|
|||
public boolean isBehindDoc() { |
|||
return behindDoc; |
|||
} |
|||
|
|||
public void setBehindDoc(boolean behindDoc) { |
|||
this.behindDoc = behindDoc; |
|||
} |
|||
|
|||
public int[] getStart() { |
|||
return start; |
|||
} |
|||
|
|||
public void setStart(int[] start) { |
|||
this.start = start; |
|||
} |
|||
|
|||
public int[][] getLineTo() { |
|||
return lineTo; |
|||
} |
|||
|
|||
public void setLineTo(int[][] lineTo) { |
|||
this.lineTo = lineTo; |
|||
} |
|||
|
|||
public WrapTextType getWrapText() { |
|||
return wrapText; |
|||
} |
|||
|
|||
public void setWrapText(WrapTextType wrapText) { |
|||
this.wrapText = wrapText; |
|||
} |
|||
|
|||
public int getDistL() { |
|||
return distL; |
|||
} |
|||
|
|||
public void setDistL(int distL) { |
|||
this.distL = distL; |
|||
} |
|||
|
|||
public int getDistR() { |
|||
return distR; |
|||
} |
|||
|
|||
public void setDistR(int distR) { |
|||
this.distR = distR; |
|||
} |
|||
|
|||
public int getDistT() { |
|||
return distT; |
|||
} |
|||
|
|||
public void setDistT(int distT) { |
|||
this.distT = distT; |
|||
} |
|||
|
|||
public int getDistB() { |
|||
return distB; |
|||
} |
|||
|
|||
public void setDistB(int distB) { |
|||
this.distB = distB; |
|||
} |
|||
} |
@ -0,0 +1,40 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public class IDocDrawingPosition { |
|||
private ISize size; |
|||
private IObjectPositionH positionH; |
|||
private IObjectPositionV positionV; |
|||
private Integer angle; |
|||
|
|||
public ISize getSize() { |
|||
return size; |
|||
} |
|||
|
|||
public void setSize(ISize size) { |
|||
this.size = size; |
|||
} |
|||
|
|||
public IObjectPositionH getPositionH() { |
|||
return positionH; |
|||
} |
|||
|
|||
public void setPositionH(IObjectPositionH positionH) { |
|||
this.positionH = positionH; |
|||
} |
|||
|
|||
public IObjectPositionV getPositionV() { |
|||
return positionV; |
|||
} |
|||
|
|||
public void setPositionV(IObjectPositionV positionV) { |
|||
this.positionV = positionV; |
|||
} |
|||
|
|||
public Integer getAngle() { |
|||
return angle; |
|||
} |
|||
|
|||
public void setAngle(Integer angle) { |
|||
this.angle = angle; |
|||
} |
|||
} |
@ -0,0 +1,31 @@ |
|||
package io.sc.platform.excel.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; |
|||
} |
|||
} |
@ -0,0 +1,91 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
import java.util.Map; |
|||
|
|||
public class IDocumentBody { |
|||
private String dataStream; |
|||
private ITextRun[] textRuns; |
|||
private IParagraph[] paragraphs; |
|||
private ISectionBreak[] sectionBreaks; |
|||
private ICustomBlock[] customBlocks; |
|||
private ICustomTable[] tables; |
|||
private ICustomRange[] customRanges; |
|||
private ICustomDecoration[] customDecorations; |
|||
/** |
|||
* for copy/paste, data of custom-range and other module |
|||
* it won't save to disk |
|||
*/ |
|||
private Map<String,String> payloads; |
|||
|
|||
public String getDataStream() { |
|||
return dataStream; |
|||
} |
|||
|
|||
public void setDataStream(String dataStream) { |
|||
this.dataStream = dataStream; |
|||
} |
|||
|
|||
public ITextRun[] getTextRuns() { |
|||
return textRuns; |
|||
} |
|||
|
|||
public void setTextRuns(ITextRun[] textRuns) { |
|||
this.textRuns = textRuns; |
|||
} |
|||
|
|||
public IParagraph[] getParagraphs() { |
|||
return paragraphs; |
|||
} |
|||
|
|||
public void setParagraphs(IParagraph[] paragraphs) { |
|||
this.paragraphs = paragraphs; |
|||
} |
|||
|
|||
public ISectionBreak[] getSectionBreaks() { |
|||
return sectionBreaks; |
|||
} |
|||
|
|||
public void setSectionBreaks(ISectionBreak[] sectionBreaks) { |
|||
this.sectionBreaks = sectionBreaks; |
|||
} |
|||
|
|||
public ICustomBlock[] getCustomBlocks() { |
|||
return customBlocks; |
|||
} |
|||
|
|||
public void setCustomBlocks(ICustomBlock[] customBlocks) { |
|||
this.customBlocks = customBlocks; |
|||
} |
|||
|
|||
public ICustomTable[] getTables() { |
|||
return tables; |
|||
} |
|||
|
|||
public void setTables(ICustomTable[] tables) { |
|||
this.tables = tables; |
|||
} |
|||
|
|||
public ICustomRange[] getCustomRanges() { |
|||
return customRanges; |
|||
} |
|||
|
|||
public void setCustomRanges(ICustomRange[] customRanges) { |
|||
this.customRanges = customRanges; |
|||
} |
|||
|
|||
public ICustomDecoration[] getCustomDecorations() { |
|||
return customDecorations; |
|||
} |
|||
|
|||
public void setCustomDecorations(ICustomDecoration[] customDecorations) { |
|||
this.customDecorations = customDecorations; |
|||
} |
|||
|
|||
public Map<String, String> getPayloads() { |
|||
return payloads; |
|||
} |
|||
|
|||
public void setPayloads(Map<String, String> payloads) { |
|||
this.payloads = payloads; |
|||
} |
|||
} |
@ -0,0 +1,87 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public class IDocumentData extends IReferenceSource { |
|||
/** unit ID */ |
|||
private String id; |
|||
/** Revision of this document. Would be used in collaborated editing. Starts with zero. */ |
|||
private Integer rev; |
|||
private LocaleType locale; |
|||
private String title; |
|||
private IDocumentBody body; |
|||
private IDocumentStyle documentStyle; |
|||
private IDocumentSettings settings; |
|||
private IResource[] resources; |
|||
private boolean disabled; |
|||
|
|||
public String getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(String id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Integer getRev() { |
|||
return rev; |
|||
} |
|||
|
|||
public void setRev(Integer rev) { |
|||
this.rev = rev; |
|||
} |
|||
|
|||
public LocaleType getLocale() { |
|||
return locale; |
|||
} |
|||
|
|||
public void setLocale(LocaleType locale) { |
|||
this.locale = locale; |
|||
} |
|||
|
|||
public String getTitle() { |
|||
return title; |
|||
} |
|||
|
|||
public void setTitle(String title) { |
|||
this.title = title; |
|||
} |
|||
|
|||
public IDocumentBody getBody() { |
|||
return body; |
|||
} |
|||
|
|||
public void setBody(IDocumentBody body) { |
|||
this.body = body; |
|||
} |
|||
|
|||
public IDocumentStyle getDocumentStyle() { |
|||
return documentStyle; |
|||
} |
|||
|
|||
public void setDocumentStyle(IDocumentStyle documentStyle) { |
|||
this.documentStyle = documentStyle; |
|||
} |
|||
|
|||
public IDocumentSettings getSettings() { |
|||
return settings; |
|||
} |
|||
|
|||
public void setSettings(IDocumentSettings settings) { |
|||
this.settings = settings; |
|||
} |
|||
|
|||
public IResource[] getResources() { |
|||
return resources; |
|||
} |
|||
|
|||
public void setResources(IResource[] resources) { |
|||
this.resources = resources; |
|||
} |
|||
|
|||
public boolean isDisabled() { |
|||
return disabled; |
|||
} |
|||
|
|||
public void setDisabled(boolean disabled) { |
|||
this.disabled = disabled; |
|||
} |
|||
} |
@ -0,0 +1,102 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
|
|||
public class IDocumentRenderConfig { |
|||
private VerticalAlign verticalAlign; |
|||
private Integer centerAngle; |
|||
private Integer vertexAngle; |
|||
private HorizontalAlign horizontalAlign; |
|||
|
|||
@JsonFormat(shape = JsonFormat.Shape.NUMBER) |
|||
private boolean isRotateNonEastAsian; |
|||
private IColorStyle background; |
|||
private WrapStrategy wrapStrategy; |
|||
private CellValueType cellValueType; |
|||
|
|||
@JsonFormat(shape = JsonFormat.Shape.NUMBER) |
|||
private boolean isRenderStyle; |
|||
|
|||
@JsonFormat(shape = JsonFormat.Shape.NUMBER) |
|||
private boolean zeroWidthParagraphBreak; |
|||
|
|||
public VerticalAlign getVerticalAlign() { |
|||
return verticalAlign; |
|||
} |
|||
|
|||
public void setVerticalAlign(VerticalAlign verticalAlign) { |
|||
this.verticalAlign = verticalAlign; |
|||
} |
|||
|
|||
public Integer getCenterAngle() { |
|||
return centerAngle; |
|||
} |
|||
|
|||
public void setCenterAngle(Integer centerAngle) { |
|||
this.centerAngle = centerAngle; |
|||
} |
|||
|
|||
public Integer getVertexAngle() { |
|||
return vertexAngle; |
|||
} |
|||
|
|||
public void setVertexAngle(Integer vertexAngle) { |
|||
this.vertexAngle = vertexAngle; |
|||
} |
|||
|
|||
public HorizontalAlign getHorizontalAlign() { |
|||
return horizontalAlign; |
|||
} |
|||
|
|||
public void setHorizontalAlign(HorizontalAlign horizontalAlign) { |
|||
this.horizontalAlign = horizontalAlign; |
|||
} |
|||
|
|||
public boolean isRotateNonEastAsian() { |
|||
return isRotateNonEastAsian; |
|||
} |
|||
|
|||
public void setRotateNonEastAsian(boolean rotateNonEastAsian) { |
|||
isRotateNonEastAsian = rotateNonEastAsian; |
|||
} |
|||
|
|||
public IColorStyle getBackground() { |
|||
return background; |
|||
} |
|||
|
|||
public void setBackground(IColorStyle background) { |
|||
this.background = background; |
|||
} |
|||
|
|||
public WrapStrategy getWrapStrategy() { |
|||
return wrapStrategy; |
|||
} |
|||
|
|||
public void setWrapStrategy(WrapStrategy wrapStrategy) { |
|||
this.wrapStrategy = wrapStrategy; |
|||
} |
|||
|
|||
public CellValueType getCellValueType() { |
|||
return cellValueType; |
|||
} |
|||
|
|||
public void setCellValueType(CellValueType cellValueType) { |
|||
this.cellValueType = cellValueType; |
|||
} |
|||
|
|||
public boolean isRenderStyle() { |
|||
return isRenderStyle; |
|||
} |
|||
|
|||
public void setRenderStyle(boolean renderStyle) { |
|||
isRenderStyle = renderStyle; |
|||
} |
|||
|
|||
public boolean isZeroWidthParagraphBreak() { |
|||
return zeroWidthParagraphBreak; |
|||
} |
|||
|
|||
public void setZeroWidthParagraphBreak(boolean zeroWidthParagraphBreak) { |
|||
this.zeroWidthParagraphBreak = zeroWidthParagraphBreak; |
|||
} |
|||
} |
@ -0,0 +1,13 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public class IDocumentSettings { |
|||
private Integer zoomRatio; |
|||
|
|||
public Integer getZoomRatio() { |
|||
return zoomRatio; |
|||
} |
|||
|
|||
public void setZoomRatio(Integer zoomRatio) { |
|||
this.zoomRatio = zoomRatio; |
|||
} |
|||
} |
@ -0,0 +1,272 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
|
|||
public class IDocumentStyle { |
|||
private ITextStyle textStyle; |
|||
|
|||
private Integer pageNumberStart; |
|||
private ISize pageSize; |
|||
private PageOrientType pageOrient; |
|||
private DocumentFlavor documentFlavor; |
|||
private Integer marginHeader; |
|||
private Integer marginFooter; |
|||
private IDocumentRenderConfig renderConfig; |
|||
|
|||
private Integer margIntegerop; |
|||
private Integer marginBottom; |
|||
private Integer marginRight; |
|||
private Integer marginLeft; |
|||
|
|||
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; |
|||
|
|||
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 ITextStyle getTextStyle() { |
|||
return textStyle; |
|||
} |
|||
|
|||
public void setTextStyle(ITextStyle textStyle) { |
|||
this.textStyle = textStyle; |
|||
} |
|||
|
|||
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; |
|||
} |
|||
|
|||
public Integer getMargIntegerop() { |
|||
return margIntegerop; |
|||
} |
|||
|
|||
public void setMargIntegerop(Integer margIntegerop) { |
|||
this.margIntegerop = margIntegerop; |
|||
} |
|||
|
|||
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; |
|||
} |
|||
|
|||
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 isSpaceWidthEastAsian() { |
|||
return spaceWidthEastAsian; |
|||
} |
|||
|
|||
public void setSpaceWidthEastAsian(boolean spaceWidthEastAsian) { |
|||
this.spaceWidthEastAsian = spaceWidthEastAsian; |
|||
} |
|||
|
|||
public boolean isAutoHyphenation() { |
|||
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 isDoNotHyphenateCaps() { |
|||
return doNotHyphenateCaps; |
|||
} |
|||
|
|||
public void setDoNotHyphenateCaps(boolean doNotHyphenateCaps) { |
|||
this.doNotHyphenateCaps = doNotHyphenateCaps; |
|||
} |
|||
|
|||
public Integer getHyphenationZone() { |
|||
return hyphenationZone; |
|||
} |
|||
|
|||
public void setHyphenationZone(Integer hyphenationZone) { |
|||
this.hyphenationZone = hyphenationZone; |
|||
} |
|||
|
|||
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 isUseFirstPageHeaderFooter() { |
|||
return useFirstPageHeaderFooter; |
|||
} |
|||
|
|||
public void setUseFirstPageHeaderFooter(boolean useFirstPageHeaderFooter) { |
|||
this.useFirstPageHeaderFooter = useFirstPageHeaderFooter; |
|||
} |
|||
|
|||
public boolean isEvenAndOddHeaders() { |
|||
return evenAndOddHeaders; |
|||
} |
|||
|
|||
public void setEvenAndOddHeaders(boolean evenAndOddHeaders) { |
|||
this.evenAndOddHeaders = evenAndOddHeaders; |
|||
} |
|||
} |
@ -0,0 +1,53 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
|
|||
public class IDrawingParam extends IDrawingSearch { |
|||
private DrawingType drawingType; |
|||
private ITransformState transform; |
|||
private ITransformState[] transforms; |
|||
|
|||
@JsonFormat(shape = JsonFormat.Shape.NUMBER) |
|||
private boolean isMultiTransform; |
|||
private String groupId; |
|||
|
|||
public DrawingType getDrawingType() { |
|||
return drawingType; |
|||
} |
|||
|
|||
public void setDrawingType(DrawingType drawingType) { |
|||
this.drawingType = drawingType; |
|||
} |
|||
|
|||
public ITransformState getTransform() { |
|||
return transform; |
|||
} |
|||
|
|||
public void setTransform(ITransformState transform) { |
|||
this.transform = transform; |
|||
} |
|||
|
|||
public ITransformState[] getTransforms() { |
|||
return transforms; |
|||
} |
|||
|
|||
public void setTransforms(ITransformState[] transforms) { |
|||
this.transforms = transforms; |
|||
} |
|||
|
|||
public boolean isMultiTransform() { |
|||
return isMultiTransform; |
|||
} |
|||
|
|||
public void setMultiTransform(boolean multiTransform) { |
|||
isMultiTransform = multiTransform; |
|||
} |
|||
|
|||
public String getGroupId() { |
|||
return groupId; |
|||
} |
|||
|
|||
public void setGroupId(String groupId) { |
|||
this.groupId = groupId; |
|||
} |
|||
} |
@ -0,0 +1,13 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public class IDrawingSearch extends IDrawingSpace { |
|||
private String drawingId; |
|||
|
|||
public String getDrawingId() { |
|||
return drawingId; |
|||
} |
|||
|
|||
public void setDrawingId(String drawingId) { |
|||
this.drawingId = drawingId; |
|||
} |
|||
} |
@ -0,0 +1,22 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public class IDrawingSpace { |
|||
private String unitId; |
|||
private String subUnitId; |
|||
|
|||
public String getUnitId() { |
|||
return unitId; |
|||
} |
|||
|
|||
public void setUnitId(String unitId) { |
|||
this.unitId = unitId; |
|||
} |
|||
|
|||
public String getSubUnitId() { |
|||
return subUnitId; |
|||
} |
|||
|
|||
public void setSubUnitId(String subUnitId) { |
|||
this.subUnitId = subUnitId; |
|||
} |
|||
} |
@ -0,0 +1,22 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public class IFooterData { |
|||
private String footerId; |
|||
private IDocumentBody body; |
|||
|
|||
public String getFooterId() { |
|||
return footerId; |
|||
} |
|||
|
|||
public void setFooterId(String footerId) { |
|||
this.footerId = footerId; |
|||
} |
|||
|
|||
public IDocumentBody getBody() { |
|||
return body; |
|||
} |
|||
|
|||
public void setBody(IDocumentBody body) { |
|||
this.body = body; |
|||
} |
|||
} |
@ -0,0 +1,40 @@ |
|||
package io.sc.platform.excel.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; |
|||
} |
|||
} |
@ -0,0 +1,22 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public class IHeaderData { |
|||
private String headerId; |
|||
private IDocumentBody body; |
|||
|
|||
public String getHeaderId() { |
|||
return headerId; |
|||
} |
|||
|
|||
public void setHeaderId(String headerId) { |
|||
this.headerId = headerId; |
|||
} |
|||
|
|||
public IDocumentBody getBody() { |
|||
return body; |
|||
} |
|||
|
|||
public void setBody(IDocumentBody body) { |
|||
this.body = body; |
|||
} |
|||
} |
@ -0,0 +1,49 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public class IIndentStart { |
|||
private INumberUnit indentFirstLine; |
|||
private INumberUnit hanging; |
|||
private INumberUnit indentStart; |
|||
private ITabStop[] tabStops; |
|||
private INumberUnit indentEnd; |
|||
|
|||
public INumberUnit getIndentFirstLine() { |
|||
return indentFirstLine; |
|||
} |
|||
|
|||
public void setIndentFirstLine(INumberUnit indentFirstLine) { |
|||
this.indentFirstLine = indentFirstLine; |
|||
} |
|||
|
|||
public INumberUnit getHanging() { |
|||
return hanging; |
|||
} |
|||
|
|||
public void setHanging(INumberUnit hanging) { |
|||
this.hanging = hanging; |
|||
} |
|||
|
|||
public INumberUnit getIndentStart() { |
|||
return indentStart; |
|||
} |
|||
|
|||
public void setIndentStart(INumberUnit indentStart) { |
|||
this.indentStart = indentStart; |
|||
} |
|||
|
|||
public ITabStop[] getTabStops() { |
|||
return tabStops; |
|||
} |
|||
|
|||
public void setTabStops(ITabStop[] tabStops) { |
|||
this.tabStops = tabStops; |
|||
} |
|||
|
|||
public INumberUnit getIndentEnd() { |
|||
return indentEnd; |
|||
} |
|||
|
|||
public void setIndentEnd(INumberUnit indentEnd) { |
|||
this.indentEnd = indentEnd; |
|||
} |
|||
} |
@ -0,0 +1,22 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public class IListData { |
|||
private String listType; |
|||
private INestingLevel[] nestingLevel; |
|||
|
|||
public String getListType() { |
|||
return listType; |
|||
} |
|||
|
|||
public void setListType(String listType) { |
|||
this.listType = listType; |
|||
} |
|||
|
|||
public INestingLevel[] getNestingLevel() { |
|||
return nestingLevel; |
|||
} |
|||
|
|||
public void setNestingLevel(INestingLevel[] nestingLevel) { |
|||
this.nestingLevel = nestingLevel; |
|||
} |
|||
} |
@ -0,0 +1,67 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public class INestingLevel { |
|||
private IParagraphStyle paragraphProperties; |
|||
private BulletAlignment bulletAlignment; |
|||
private String glyphFormat; |
|||
private ITextStyle textStyle; |
|||
private Integer startNumber; |
|||
private ListGlyphType glyphType; |
|||
private String glyphSymbol; |
|||
|
|||
public IParagraphStyle getParagraphProperties() { |
|||
return paragraphProperties; |
|||
} |
|||
|
|||
public void setParagraphProperties(IParagraphStyle paragraphProperties) { |
|||
this.paragraphProperties = paragraphProperties; |
|||
} |
|||
|
|||
public BulletAlignment getBulletAlignment() { |
|||
return bulletAlignment; |
|||
} |
|||
|
|||
public void setBulletAlignment(BulletAlignment bulletAlignment) { |
|||
this.bulletAlignment = bulletAlignment; |
|||
} |
|||
|
|||
public String getGlyphFormat() { |
|||
return glyphFormat; |
|||
} |
|||
|
|||
public void setGlyphFormat(String glyphFormat) { |
|||
this.glyphFormat = glyphFormat; |
|||
} |
|||
|
|||
public ITextStyle getTextStyle() { |
|||
return textStyle; |
|||
} |
|||
|
|||
public void setTextStyle(ITextStyle textStyle) { |
|||
this.textStyle = textStyle; |
|||
} |
|||
|
|||
public Integer getStartNumber() { |
|||
return startNumber; |
|||
} |
|||
|
|||
public void setStartNumber(Integer startNumber) { |
|||
this.startNumber = startNumber; |
|||
} |
|||
|
|||
public ListGlyphType getGlyphType() { |
|||
return glyphType; |
|||
} |
|||
|
|||
public void setGlyphType(ListGlyphType glyphType) { |
|||
this.glyphType = glyphType; |
|||
} |
|||
|
|||
public String getGlyphSymbol() { |
|||
return glyphSymbol; |
|||
} |
|||
|
|||
public void setGlyphSymbol(String glyphSymbol) { |
|||
this.glyphSymbol = glyphSymbol; |
|||
} |
|||
} |
@ -0,0 +1,22 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public class INumberUnit { |
|||
private Integer v; |
|||
private NumberUnitType u; |
|||
|
|||
public Integer getV() { |
|||
return v; |
|||
} |
|||
|
|||
public void setV(Integer v) { |
|||
this.v = v; |
|||
} |
|||
|
|||
public NumberUnitType getU() { |
|||
return u; |
|||
} |
|||
|
|||
public void setU(NumberUnitType u) { |
|||
this.u = u; |
|||
} |
|||
} |
@ -0,0 +1,40 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public class IObjectPositionH { |
|||
private ObjectRelativeFromH relativeFrom; |
|||
private AlignTypeH align; |
|||
private Integer posOffset; |
|||
private Integer percent; |
|||
|
|||
public ObjectRelativeFromH getRelativeFrom() { |
|||
return relativeFrom; |
|||
} |
|||
|
|||
public void setRelativeFrom(ObjectRelativeFromH relativeFrom) { |
|||
this.relativeFrom = relativeFrom; |
|||
} |
|||
|
|||
public AlignTypeH getAlign() { |
|||
return align; |
|||
} |
|||
|
|||
public void setAlign(AlignTypeH align) { |
|||
this.align = align; |
|||
} |
|||
|
|||
public Integer getPosOffset() { |
|||
return posOffset; |
|||
} |
|||
|
|||
public void setPosOffset(Integer posOffset) { |
|||
this.posOffset = posOffset; |
|||
} |
|||
|
|||
public Integer getPercent() { |
|||
return percent; |
|||
} |
|||
|
|||
public void setPercent(Integer percent) { |
|||
this.percent = percent; |
|||
} |
|||
} |
@ -0,0 +1,40 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public class IObjectPositionV { |
|||
private ObjectRelativeFromV relativeFrom; |
|||
private AlignTypeV align; |
|||
private Integer posOffset; |
|||
private Integer percent; |
|||
|
|||
public ObjectRelativeFromV getRelativeFrom() { |
|||
return relativeFrom; |
|||
} |
|||
|
|||
public void setRelativeFrom(ObjectRelativeFromV relativeFrom) { |
|||
this.relativeFrom = relativeFrom; |
|||
} |
|||
|
|||
public AlignTypeV getAlign() { |
|||
return align; |
|||
} |
|||
|
|||
public void setAlign(AlignTypeV align) { |
|||
this.align = align; |
|||
} |
|||
|
|||
public Integer getPosOffset() { |
|||
return posOffset; |
|||
} |
|||
|
|||
public void setPosOffset(Integer posOffset) { |
|||
this.posOffset = posOffset; |
|||
} |
|||
|
|||
public Integer getPercent() { |
|||
return percent; |
|||
} |
|||
|
|||
public void setPercent(Integer percent) { |
|||
this.percent = percent; |
|||
} |
|||
} |
@ -0,0 +1,40 @@ |
|||
package io.sc.platform.excel.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; |
|||
} |
|||
} |
@ -0,0 +1,31 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public class IParagraph { |
|||
private Integer startIndex; |
|||
private IParagraphStyle paragraphStyle; |
|||
private IBullet bullet; |
|||
|
|||
public Integer getStartIndex() { |
|||
return startIndex; |
|||
} |
|||
|
|||
public void setStartIndex(Integer startIndex) { |
|||
this.startIndex = startIndex; |
|||
} |
|||
|
|||
public IParagraphStyle getParagraphStyle() { |
|||
return paragraphStyle; |
|||
} |
|||
|
|||
public void setParagraphStyle(IParagraphStyle paragraphStyle) { |
|||
this.paragraphStyle = paragraphStyle; |
|||
} |
|||
|
|||
public IBullet getBullet() { |
|||
return bullet; |
|||
} |
|||
|
|||
public void setBullet(IBullet bullet) { |
|||
this.bullet = bullet; |
|||
} |
|||
} |
@ -0,0 +1,13 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public class IParagraphBorder extends IDocsBorder { |
|||
private Integer padding; |
|||
|
|||
public Integer getPadding() { |
|||
return padding; |
|||
} |
|||
|
|||
public void setPadding(Integer padding) { |
|||
this.padding = padding; |
|||
} |
|||
} |
@ -0,0 +1,199 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
|
|||
public class IParagraphProperties extends IIndentStart { |
|||
private String headingId; |
|||
private NamedStyleType namedStyleType; |
|||
private HorizontalAlign horizontalAlign; |
|||
private Integer lineSpacing; |
|||
private TextDirection direction; |
|||
private SpacingRule spacingRule; |
|||
|
|||
@JsonFormat(shape = JsonFormat.Shape.NUMBER) |
|||
private boolean snapToGrid; |
|||
private INumberUnit spaceAbove; |
|||
private INumberUnit spaceBelow; |
|||
private IParagraphBorder borderBetween; |
|||
private IParagraphBorder borderTop; |
|||
private IParagraphBorder borderBottom; |
|||
private IParagraphBorder borderLeft; |
|||
private IParagraphBorder borderRight; |
|||
|
|||
@JsonFormat(shape = JsonFormat.Shape.NUMBER) |
|||
private boolean keepLines; |
|||
|
|||
@JsonFormat(shape = JsonFormat.Shape.NUMBER) |
|||
private boolean keepNext; |
|||
|
|||
@JsonFormat(shape = JsonFormat.Shape.NUMBER) |
|||
private boolean wordWrap; |
|||
|
|||
@JsonFormat(shape = JsonFormat.Shape.NUMBER) |
|||
private boolean widowControl; |
|||
|
|||
private IShading shading; |
|||
|
|||
@JsonFormat(shape = JsonFormat.Shape.NUMBER) |
|||
private boolean suppressHyphenation; |
|||
|
|||
public String getHeadingId() { |
|||
return headingId; |
|||
} |
|||
|
|||
public void setHeadingId(String headingId) { |
|||
this.headingId = headingId; |
|||
} |
|||
|
|||
public NamedStyleType getNamedStyleType() { |
|||
return namedStyleType; |
|||
} |
|||
|
|||
public void setNamedStyleType(NamedStyleType namedStyleType) { |
|||
this.namedStyleType = namedStyleType; |
|||
} |
|||
|
|||
public HorizontalAlign getHorizontalAlign() { |
|||
return horizontalAlign; |
|||
} |
|||
|
|||
public void setHorizontalAlign(HorizontalAlign horizontalAlign) { |
|||
this.horizontalAlign = horizontalAlign; |
|||
} |
|||
|
|||
public Integer getLineSpacing() { |
|||
return lineSpacing; |
|||
} |
|||
|
|||
public void setLineSpacing(Integer lineSpacing) { |
|||
this.lineSpacing = lineSpacing; |
|||
} |
|||
|
|||
public TextDirection getDirection() { |
|||
return direction; |
|||
} |
|||
|
|||
public void setDirection(TextDirection direction) { |
|||
this.direction = direction; |
|||
} |
|||
|
|||
public SpacingRule getSpacingRule() { |
|||
return spacingRule; |
|||
} |
|||
|
|||
public void setSpacingRule(SpacingRule spacingRule) { |
|||
this.spacingRule = spacingRule; |
|||
} |
|||
|
|||
public boolean isSnapToGrid() { |
|||
return snapToGrid; |
|||
} |
|||
|
|||
public void setSnapToGrid(boolean snapToGrid) { |
|||
this.snapToGrid = snapToGrid; |
|||
} |
|||
|
|||
public INumberUnit getSpaceAbove() { |
|||
return spaceAbove; |
|||
} |
|||
|
|||
public void setSpaceAbove(INumberUnit spaceAbove) { |
|||
this.spaceAbove = spaceAbove; |
|||
} |
|||
|
|||
public INumberUnit getSpaceBelow() { |
|||
return spaceBelow; |
|||
} |
|||
|
|||
public void setSpaceBelow(INumberUnit spaceBelow) { |
|||
this.spaceBelow = spaceBelow; |
|||
} |
|||
|
|||
public IParagraphBorder getBorderBetween() { |
|||
return borderBetween; |
|||
} |
|||
|
|||
public void setBorderBetween(IParagraphBorder borderBetween) { |
|||
this.borderBetween = borderBetween; |
|||
} |
|||
|
|||
public IParagraphBorder getBorderTop() { |
|||
return borderTop; |
|||
} |
|||
|
|||
public void setBorderTop(IParagraphBorder borderTop) { |
|||
this.borderTop = borderTop; |
|||
} |
|||
|
|||
public IParagraphBorder getBorderBottom() { |
|||
return borderBottom; |
|||
} |
|||
|
|||
public void setBorderBottom(IParagraphBorder borderBottom) { |
|||
this.borderBottom = borderBottom; |
|||
} |
|||
|
|||
public IParagraphBorder getBorderLeft() { |
|||
return borderLeft; |
|||
} |
|||
|
|||
public void setBorderLeft(IParagraphBorder borderLeft) { |
|||
this.borderLeft = borderLeft; |
|||
} |
|||
|
|||
public IParagraphBorder getBorderRight() { |
|||
return borderRight; |
|||
} |
|||
|
|||
public void setBorderRight(IParagraphBorder borderRight) { |
|||
this.borderRight = borderRight; |
|||
} |
|||
|
|||
public boolean isKeepLines() { |
|||
return keepLines; |
|||
} |
|||
|
|||
public void setKeepLines(boolean keepLines) { |
|||
this.keepLines = keepLines; |
|||
} |
|||
|
|||
public boolean isKeepNext() { |
|||
return keepNext; |
|||
} |
|||
|
|||
public void setKeepNext(boolean keepNext) { |
|||
this.keepNext = keepNext; |
|||
} |
|||
|
|||
public boolean isWordWrap() { |
|||
return wordWrap; |
|||
} |
|||
|
|||
public void setWordWrap(boolean wordWrap) { |
|||
this.wordWrap = wordWrap; |
|||
} |
|||
|
|||
public boolean isWidowControl() { |
|||
return widowControl; |
|||
} |
|||
|
|||
public void setWidowControl(boolean widowControl) { |
|||
this.widowControl = widowControl; |
|||
} |
|||
|
|||
public IShading getShading() { |
|||
return shading; |
|||
} |
|||
|
|||
public void setShading(IShading shading) { |
|||
this.shading = shading; |
|||
} |
|||
|
|||
public boolean isSuppressHyphenation() { |
|||
return suppressHyphenation; |
|||
} |
|||
|
|||
public void setSuppressHyphenation(boolean suppressHyphenation) { |
|||
this.suppressHyphenation = suppressHyphenation; |
|||
} |
|||
} |
@ -0,0 +1,13 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public class IParagraphStyle extends IParagraphProperties { |
|||
private ITextStyle textStyle; |
|||
|
|||
public ITextStyle getTextStyle() { |
|||
return textStyle; |
|||
} |
|||
|
|||
public void setTextStyle(ITextStyle textStyle) { |
|||
this.textStyle = textStyle; |
|||
} |
|||
} |
@ -0,0 +1,112 @@ |
|||
package io.sc.platform.excel.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; |
|||
} |
|||
} |
@ -0,0 +1,30 @@ |
|||
package io.sc.platform.excel.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; |
|||
} |
|||
} |
@ -0,0 +1,69 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
import java.util.Map; |
|||
|
|||
public class IReferenceSource { |
|||
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 String[] drawingsOrder; |
|||
private String[] headerFooterDrawingsOrder; |
|||
|
|||
public Map<String, ITable> getTableSource() { |
|||
return tableSource; |
|||
} |
|||
|
|||
public void setTableSource(Map<String, ITable> tableSource) { |
|||
this.tableSource = tableSource; |
|||
} |
|||
|
|||
public Map<String, IFooterData> getFooters() { |
|||
return footers; |
|||
} |
|||
|
|||
public void setFooters(Map<String, IFooterData> footers) { |
|||
this.footers = footers; |
|||
} |
|||
|
|||
public Map<String, IHeaderData> getHeaders() { |
|||
return headers; |
|||
} |
|||
|
|||
public void setHeaders(Map<String, IHeaderData> headers) { |
|||
this.headers = headers; |
|||
} |
|||
|
|||
public Map<String, IListData> getLists() { |
|||
return lists; |
|||
} |
|||
|
|||
public void setLists(Map<String, IListData> lists) { |
|||
this.lists = lists; |
|||
} |
|||
|
|||
public Map<String, IDocDrawingBase> getDrawings() { |
|||
return drawings; |
|||
} |
|||
|
|||
public void setDrawings(Map<String, IDocDrawingBase> drawings) { |
|||
this.drawings = drawings; |
|||
} |
|||
|
|||
public String[] getDrawingsOrder() { |
|||
return drawingsOrder; |
|||
} |
|||
|
|||
public void setDrawingsOrder(String[] drawingsOrder) { |
|||
this.drawingsOrder = drawingsOrder; |
|||
} |
|||
|
|||
public String[] getHeaderFooterDrawingsOrder() { |
|||
return headerFooterDrawingsOrder; |
|||
} |
|||
|
|||
public void setHeaderFooterDrawingsOrder(String[] headerFooterDrawingsOrder) { |
|||
this.headerFooterDrawingsOrder = headerFooterDrawingsOrder; |
|||
} |
|||
} |
@ -0,0 +1,31 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public class IResource { |
|||
private String id; |
|||
private String name; |
|||
private String data; |
|||
|
|||
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 getData() { |
|||
return data; |
|||
} |
|||
|
|||
public void setData(String data) { |
|||
this.data = data; |
|||
} |
|||
} |
@ -0,0 +1,82 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
|
|||
import java.util.Map; |
|||
|
|||
public class IRowData { |
|||
/** |
|||
* height in pixel |
|||
*/ |
|||
private Integer h; |
|||
/** |
|||
* is current row self-adaptive to its content, use `ah` to set row height when true, else use `h`. |
|||
*/ |
|||
@JsonFormat(shape = JsonFormat.Shape.NUMBER) |
|||
private boolean ia; |
|||
/** |
|||
* auto height |
|||
*/ |
|||
private Integer ah; |
|||
/** |
|||
* hidden |
|||
*/ |
|||
@JsonFormat(shape = JsonFormat.Shape.NUMBER) |
|||
private boolean hd; |
|||
/** |
|||
* style id |
|||
*/ |
|||
private Object s; |
|||
/** |
|||
* User stored custom fields |
|||
*/ |
|||
private Map<String,Object> custom; |
|||
|
|||
public Integer getH() { |
|||
return h; |
|||
} |
|||
|
|||
public void setH(Integer h) { |
|||
this.h = h; |
|||
} |
|||
|
|||
public boolean isIa() { |
|||
return ia; |
|||
} |
|||
|
|||
public void setIa(boolean ia) { |
|||
this.ia = ia; |
|||
} |
|||
|
|||
public Integer getAh() { |
|||
return ah; |
|||
} |
|||
|
|||
public void setAh(Integer ah) { |
|||
this.ah = ah; |
|||
} |
|||
|
|||
public boolean isHd() { |
|||
return hd; |
|||
} |
|||
|
|||
public void setHd(boolean hd) { |
|||
this.hd = hd; |
|||
} |
|||
|
|||
public Object getS() { |
|||
return s; |
|||
} |
|||
|
|||
public void setS(Object s) { |
|||
this.s = s; |
|||
} |
|||
|
|||
public Map<String, Object> getCustom() { |
|||
return custom; |
|||
} |
|||
|
|||
public void setCustom(Map<String, Object> custom) { |
|||
this.custom = custom; |
|||
} |
|||
} |
@ -0,0 +1,26 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
|
|||
public class IRowHeader { |
|||
private Integer width; |
|||
|
|||
@JsonFormat(shape = JsonFormat.Shape.NUMBER) |
|||
private boolean hidden; |
|||
|
|||
public Integer getWidth() { |
|||
return width; |
|||
} |
|||
|
|||
public void setWidth(Integer width) { |
|||
this.width = width; |
|||
} |
|||
|
|||
public boolean isHidden() { |
|||
return hidden; |
|||
} |
|||
|
|||
public void setHidden(boolean hidden) { |
|||
this.hidden = hidden; |
|||
} |
|||
} |
@ -0,0 +1,275 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
|
|||
public class ISectionBreak { |
|||
private Integer startIndex; |
|||
|
|||
private Integer marginTop; |
|||
private Integer marginBottom; |
|||
private Integer marginRight; |
|||
private Integer marginLeft; |
|||
|
|||
private Integer pageNumberStart; |
|||
private ISize pageSize; |
|||
private PageOrientType pageOrient; |
|||
private DocumentFlavor documentFlavor; |
|||
private Integer marginHeader; |
|||
private Integer marginFooter; |
|||
private IDocumentRenderConfig renderConfig; |
|||
|
|||
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; |
|||
|
|||
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 Integer getStartIndex() { |
|||
return startIndex; |
|||
} |
|||
|
|||
public void setStartIndex(Integer startIndex) { |
|||
this.startIndex = startIndex; |
|||
} |
|||
|
|||
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; |
|||
} |
|||
|
|||
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; |
|||
} |
|||
|
|||
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; |
|||
} |
|||
|
|||
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 isUseFirstPageHeaderFooter() { |
|||
return useFirstPageHeaderFooter; |
|||
} |
|||
|
|||
public void setUseFirstPageHeaderFooter(boolean useFirstPageHeaderFooter) { |
|||
this.useFirstPageHeaderFooter = useFirstPageHeaderFooter; |
|||
} |
|||
|
|||
public boolean isEvenAndOddHeaders() { |
|||
return evenAndOddHeaders; |
|||
} |
|||
|
|||
public void setEvenAndOddHeaders(boolean evenAndOddHeaders) { |
|||
this.evenAndOddHeaders = evenAndOddHeaders; |
|||
} |
|||
} |
@ -0,0 +1,22 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public class ISectionColumnProperties { |
|||
private Integer width; |
|||
private Integer paddingEnd; |
|||
|
|||
public Integer getWidth() { |
|||
return width; |
|||
} |
|||
|
|||
public void setWidth(Integer width) { |
|||
this.width = width; |
|||
} |
|||
|
|||
public Integer getPaddingEnd() { |
|||
return paddingEnd; |
|||
} |
|||
|
|||
public void setPaddingEnd(Integer paddingEnd) { |
|||
this.paddingEnd = paddingEnd; |
|||
} |
|||
} |
@ -0,0 +1,13 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public class IShading { |
|||
private IColorStyle backgroundColor; |
|||
|
|||
public IColorStyle getBackgroundColor() { |
|||
return backgroundColor; |
|||
} |
|||
|
|||
public void setBackgroundColor(IColorStyle backgroundColor) { |
|||
this.backgroundColor = backgroundColor; |
|||
} |
|||
} |
@ -0,0 +1,22 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public class ISize { |
|||
private Integer width; |
|||
private Integer height; |
|||
|
|||
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; |
|||
} |
|||
} |
@ -0,0 +1,127 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
|
|||
public class IStyleBase { |
|||
private String ff; // fontFamily
|
|||
private Integer fs; //fontSize pt
|
|||
|
|||
@JsonFormat(shape = JsonFormat.Shape.NUMBER) |
|||
private boolean it; // italic
|
|||
|
|||
@JsonFormat(shape = JsonFormat.Shape.NUMBER) |
|||
private boolean bl; //bold
|
|||
private ITextDecoration ul; //underline
|
|||
private ITextDecoration bbl;//bottomBorerLine
|
|||
private ITextDecoration st; //strikethrough
|
|||
private ITextDecoration ol; //overline
|
|||
private IColorStyle bg; //background
|
|||
private IBorderData bd; //border
|
|||
private IColorStyle cl; //foreground
|
|||
private BaselineOffset va; //Subscript 下标 /Superscript上标 Text
|
|||
private String n; //Numfmt pattern
|
|||
|
|||
public String getFf() { |
|||
return ff; |
|||
} |
|||
|
|||
public void setFf(String ff) { |
|||
this.ff = ff; |
|||
} |
|||
|
|||
public Integer getFs() { |
|||
return fs; |
|||
} |
|||
|
|||
public void setFs(Integer fs) { |
|||
this.fs = fs; |
|||
} |
|||
|
|||
public boolean isIt() { |
|||
return it; |
|||
} |
|||
|
|||
public void setIt(boolean it) { |
|||
this.it = it; |
|||
} |
|||
|
|||
public boolean isBl() { |
|||
return bl; |
|||
} |
|||
|
|||
public void setBl(boolean bl) { |
|||
this.bl = bl; |
|||
} |
|||
|
|||
public ITextDecoration getUl() { |
|||
return ul; |
|||
} |
|||
|
|||
public void setUl(ITextDecoration ul) { |
|||
this.ul = ul; |
|||
} |
|||
|
|||
public ITextDecoration getBbl() { |
|||
return bbl; |
|||
} |
|||
|
|||
public void setBbl(ITextDecoration bbl) { |
|||
this.bbl = bbl; |
|||
} |
|||
|
|||
public ITextDecoration getSt() { |
|||
return st; |
|||
} |
|||
|
|||
public void setSt(ITextDecoration st) { |
|||
this.st = st; |
|||
} |
|||
|
|||
public ITextDecoration getOl() { |
|||
return ol; |
|||
} |
|||
|
|||
public void setOl(ITextDecoration ol) { |
|||
this.ol = ol; |
|||
} |
|||
|
|||
public IColorStyle getBg() { |
|||
return bg; |
|||
} |
|||
|
|||
public void setBg(IColorStyle bg) { |
|||
this.bg = bg; |
|||
} |
|||
|
|||
public IBorderData getBd() { |
|||
return bd; |
|||
} |
|||
|
|||
public void setBd(IBorderData bd) { |
|||
this.bd = bd; |
|||
} |
|||
|
|||
public IColorStyle getCl() { |
|||
return cl; |
|||
} |
|||
|
|||
public void setCl(IColorStyle cl) { |
|||
this.cl = cl; |
|||
} |
|||
|
|||
public BaselineOffset getVa() { |
|||
return va; |
|||
} |
|||
|
|||
public void setVa(BaselineOffset va) { |
|||
this.va = va; |
|||
} |
|||
|
|||
public String getN() { |
|||
return n; |
|||
} |
|||
|
|||
public void setN(String n) { |
|||
this.n = n; |
|||
} |
|||
} |
@ -0,0 +1,58 @@ |
|||
package io.sc.platform.excel.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
|
|||
|
|||
public ITextRotation getTr() { |
|||
return tr; |
|||
} |
|||
|
|||
public void setTr(ITextRotation tr) { |
|||
this.tr = tr; |
|||
} |
|||
|
|||
public TextDirection getTd() { |
|||
return td; |
|||
} |
|||
|
|||
public void setTd(TextDirection td) { |
|||
this.td = td; |
|||
} |
|||
|
|||
public HorizontalAlign getHt() { |
|||
return ht; |
|||
} |
|||
|
|||
public void setHt(HorizontalAlign ht) { |
|||
this.ht = ht; |
|||
} |
|||
|
|||
public VerticalAlign getVt() { |
|||
return vt; |
|||
} |
|||
|
|||
public void setVt(VerticalAlign vt) { |
|||
this.vt = vt; |
|||
} |
|||
|
|||
public WrapStrategy getTb() { |
|||
return tb; |
|||
} |
|||
|
|||
public void setTb(WrapStrategy tb) { |
|||
this.tb = tb; |
|||
} |
|||
|
|||
public IPaddingData getPd() { |
|||
return pd; |
|||
} |
|||
|
|||
public void setPd(IPaddingData pd) { |
|||
this.pd = pd; |
|||
} |
|||
} |
@ -0,0 +1,22 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public class ITabStop { |
|||
private Integer offset; |
|||
private TabStopAlignment alignment; |
|||
|
|||
public Integer getOffset() { |
|||
return offset; |
|||
} |
|||
|
|||
public void setOffset(Integer offset) { |
|||
this.offset = offset; |
|||
} |
|||
|
|||
public TabStopAlignment getAlignment() { |
|||
return alignment; |
|||
} |
|||
|
|||
public void setAlignment(TabStopAlignment alignment) { |
|||
this.alignment = alignment; |
|||
} |
|||
} |
@ -0,0 +1,124 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
|
|||
public class ITable { |
|||
private ITableRow[] tableRows; |
|||
private ITableColumn[] tableColumns; |
|||
private TableAlignmentType align; |
|||
private INumberUnit indent; |
|||
private TableTextWrapType textWrap; |
|||
private ITableAnchor position; |
|||
private IDistFromText dist; |
|||
private IWidthInTableSize size; |
|||
private String tableId; |
|||
private ITableCellMargin cellMargin; |
|||
private TableLayoutType layout; |
|||
@JsonFormat(shape = JsonFormat.Shape.NUMBER) |
|||
private boolean overlap; |
|||
private String description; |
|||
|
|||
public ITableRow[] getTableRows() { |
|||
return tableRows; |
|||
} |
|||
|
|||
public void setTableRows(ITableRow[] tableRows) { |
|||
this.tableRows = tableRows; |
|||
} |
|||
|
|||
public ITableColumn[] getTableColumns() { |
|||
return tableColumns; |
|||
} |
|||
|
|||
public void setTableColumns(ITableColumn[] tableColumns) { |
|||
this.tableColumns = tableColumns; |
|||
} |
|||
|
|||
public TableAlignmentType getAlign() { |
|||
return align; |
|||
} |
|||
|
|||
public void setAlign(TableAlignmentType align) { |
|||
this.align = align; |
|||
} |
|||
|
|||
public INumberUnit getIndent() { |
|||
return indent; |
|||
} |
|||
|
|||
public void setIndent(INumberUnit indent) { |
|||
this.indent = indent; |
|||
} |
|||
|
|||
public TableTextWrapType getTextWrap() { |
|||
return textWrap; |
|||
} |
|||
|
|||
public void setTextWrap(TableTextWrapType textWrap) { |
|||
this.textWrap = textWrap; |
|||
} |
|||
|
|||
public ITableAnchor getPosition() { |
|||
return position; |
|||
} |
|||
|
|||
public void setPosition(ITableAnchor position) { |
|||
this.position = position; |
|||
} |
|||
|
|||
public IDistFromText getDist() { |
|||
return dist; |
|||
} |
|||
|
|||
public void setDist(IDistFromText dist) { |
|||
this.dist = dist; |
|||
} |
|||
|
|||
public IWidthInTableSize getSize() { |
|||
return size; |
|||
} |
|||
|
|||
public void setSize(IWidthInTableSize size) { |
|||
this.size = size; |
|||
} |
|||
|
|||
public String getTableId() { |
|||
return tableId; |
|||
} |
|||
|
|||
public void setTableId(String tableId) { |
|||
this.tableId = tableId; |
|||
} |
|||
|
|||
public ITableCellMargin getCellMargin() { |
|||
return cellMargin; |
|||
} |
|||
|
|||
public void setCellMargin(ITableCellMargin cellMargin) { |
|||
this.cellMargin = cellMargin; |
|||
} |
|||
|
|||
public TableLayoutType getLayout() { |
|||
return layout; |
|||
} |
|||
|
|||
public void setLayout(TableLayoutType layout) { |
|||
this.layout = layout; |
|||
} |
|||
|
|||
public boolean isOverlap() { |
|||
return overlap; |
|||
} |
|||
|
|||
public void setOverlap(boolean overlap) { |
|||
this.overlap = overlap; |
|||
} |
|||
|
|||
public String getDescription() { |
|||
return description; |
|||
} |
|||
|
|||
public void setDescription(String description) { |
|||
this.description = description; |
|||
} |
|||
} |
@ -0,0 +1,22 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public class ITableAnchor { |
|||
private IObjectPositionH positionH; |
|||
private IObjectPositionV positionV; |
|||
|
|||
public IObjectPositionH getPositionH() { |
|||
return positionH; |
|||
} |
|||
|
|||
public void setPositionH(IObjectPositionH positionH) { |
|||
this.positionH = positionH; |
|||
} |
|||
|
|||
public IObjectPositionV getPositionV() { |
|||
return positionV; |
|||
} |
|||
|
|||
public void setPositionV(IObjectPositionV positionV) { |
|||
this.positionV = positionV; |
|||
} |
|||
} |
@ -0,0 +1,107 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
|
|||
public class ITableCell { |
|||
private ITableCellMargin margin; |
|||
private Integer rowSpan; |
|||
private Integer columnSpan; |
|||
private IColorStyle backgroundColor; |
|||
private ITableCellBorder borderLeft; |
|||
private ITableCellBorder borderRight; |
|||
private ITableCellBorder borderTop; |
|||
private ITableCellBorder borderBottom; |
|||
private IWidthInTableSize size; |
|||
|
|||
@JsonFormat(shape = JsonFormat.Shape.NUMBER) |
|||
private boolean tcFitText; |
|||
private VerticalAlignmentType vAlign; |
|||
|
|||
public ITableCellMargin getMargin() { |
|||
return margin; |
|||
} |
|||
|
|||
public void setMargin(ITableCellMargin margin) { |
|||
this.margin = margin; |
|||
} |
|||
|
|||
public Integer getRowSpan() { |
|||
return rowSpan; |
|||
} |
|||
|
|||
public void setRowSpan(Integer rowSpan) { |
|||
this.rowSpan = rowSpan; |
|||
} |
|||
|
|||
public Integer getColumnSpan() { |
|||
return columnSpan; |
|||
} |
|||
|
|||
public void setColumnSpan(Integer columnSpan) { |
|||
this.columnSpan = columnSpan; |
|||
} |
|||
|
|||
public IColorStyle getBackgroundColor() { |
|||
return backgroundColor; |
|||
} |
|||
|
|||
public void setBackgroundColor(IColorStyle backgroundColor) { |
|||
this.backgroundColor = backgroundColor; |
|||
} |
|||
|
|||
public ITableCellBorder getBorderLeft() { |
|||
return borderLeft; |
|||
} |
|||
|
|||
public void setBorderLeft(ITableCellBorder borderLeft) { |
|||
this.borderLeft = borderLeft; |
|||
} |
|||
|
|||
public ITableCellBorder getBorderRight() { |
|||
return borderRight; |
|||
} |
|||
|
|||
public void setBorderRight(ITableCellBorder borderRight) { |
|||
this.borderRight = borderRight; |
|||
} |
|||
|
|||
public ITableCellBorder getBorderTop() { |
|||
return borderTop; |
|||
} |
|||
|
|||
public void setBorderTop(ITableCellBorder borderTop) { |
|||
this.borderTop = borderTop; |
|||
} |
|||
|
|||
public ITableCellBorder getBorderBottom() { |
|||
return borderBottom; |
|||
} |
|||
|
|||
public void setBorderBottom(ITableCellBorder borderBottom) { |
|||
this.borderBottom = borderBottom; |
|||
} |
|||
|
|||
public IWidthInTableSize getSize() { |
|||
return size; |
|||
} |
|||
|
|||
public void setSize(IWidthInTableSize size) { |
|||
this.size = size; |
|||
} |
|||
|
|||
public boolean isTcFitText() { |
|||
return tcFitText; |
|||
} |
|||
|
|||
public void setTcFitText(boolean tcFitText) { |
|||
this.tcFitText = tcFitText; |
|||
} |
|||
|
|||
public VerticalAlignmentType getvAlign() { |
|||
return vAlign; |
|||
} |
|||
|
|||
public void setvAlign(VerticalAlignmentType vAlign) { |
|||
this.vAlign = vAlign; |
|||
} |
|||
} |
@ -0,0 +1,31 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public class ITableCellBorder { |
|||
private IColorStyle color; |
|||
private INumberUnit width; |
|||
private DashStyleType dashStyle; |
|||
|
|||
public IColorStyle getColor() { |
|||
return color; |
|||
} |
|||
|
|||
public void setColor(IColorStyle color) { |
|||
this.color = color; |
|||
} |
|||
|
|||
public INumberUnit getWidth() { |
|||
return width; |
|||
} |
|||
|
|||
public void setWidth(INumberUnit width) { |
|||
this.width = width; |
|||
} |
|||
|
|||
public DashStyleType getDashStyle() { |
|||
return dashStyle; |
|||
} |
|||
|
|||
public void setDashStyle(DashStyleType dashStyle) { |
|||
this.dashStyle = dashStyle; |
|||
} |
|||
} |
@ -0,0 +1,40 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public class ITableCellMargin { |
|||
private INumberUnit start; |
|||
private INumberUnit end; |
|||
private INumberUnit top; |
|||
private INumberUnit bottom; |
|||
|
|||
public INumberUnit getStart() { |
|||
return start; |
|||
} |
|||
|
|||
public void setStart(INumberUnit start) { |
|||
this.start = start; |
|||
} |
|||
|
|||
public INumberUnit getEnd() { |
|||
return end; |
|||
} |
|||
|
|||
public void setEnd(INumberUnit end) { |
|||
this.end = end; |
|||
} |
|||
|
|||
public INumberUnit getTop() { |
|||
return top; |
|||
} |
|||
|
|||
public void setTop(INumberUnit top) { |
|||
this.top = top; |
|||
} |
|||
|
|||
public INumberUnit getBottom() { |
|||
return bottom; |
|||
} |
|||
|
|||
public void setBottom(INumberUnit bottom) { |
|||
this.bottom = bottom; |
|||
} |
|||
} |
@ -0,0 +1,13 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public class ITableColumn { |
|||
private IWidthInTableSize size; |
|||
|
|||
public IWidthInTableSize getSize() { |
|||
return size; |
|||
} |
|||
|
|||
public void setSize(IWidthInTableSize size) { |
|||
this.size = size; |
|||
} |
|||
} |
@ -0,0 +1,54 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
|
|||
public class ITableRow { |
|||
private ITableCell[] tableCells; |
|||
private ITableRowSize trHeight; |
|||
@JsonFormat(shape = JsonFormat.Shape.NUMBER) |
|||
private boolean cantSplit; |
|||
@JsonFormat(shape = JsonFormat.Shape.NUMBER) |
|||
private boolean isFirstRow; |
|||
@JsonFormat(shape = JsonFormat.Shape.NUMBER) |
|||
private boolean repeatHeaderRow; |
|||
|
|||
public ITableCell[] getTableCells() { |
|||
return tableCells; |
|||
} |
|||
|
|||
public void setTableCells(ITableCell[] tableCells) { |
|||
this.tableCells = tableCells; |
|||
} |
|||
|
|||
public ITableRowSize getTrHeight() { |
|||
return trHeight; |
|||
} |
|||
|
|||
public void setTrHeight(ITableRowSize trHeight) { |
|||
this.trHeight = trHeight; |
|||
} |
|||
|
|||
public boolean isCantSplit() { |
|||
return cantSplit; |
|||
} |
|||
|
|||
public void setCantSplit(boolean cantSplit) { |
|||
this.cantSplit = cantSplit; |
|||
} |
|||
|
|||
public boolean isFirstRow() { |
|||
return isFirstRow; |
|||
} |
|||
|
|||
public void setFirstRow(boolean firstRow) { |
|||
isFirstRow = firstRow; |
|||
} |
|||
|
|||
public boolean isRepeatHeaderRow() { |
|||
return repeatHeaderRow; |
|||
} |
|||
|
|||
public void setRepeatHeaderRow(boolean repeatHeaderRow) { |
|||
this.repeatHeaderRow = repeatHeaderRow; |
|||
} |
|||
} |
@ -0,0 +1,22 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public class ITableRowSize { |
|||
private INumberUnit val; |
|||
private TableRowHeightRule hRule; |
|||
|
|||
public INumberUnit getVal() { |
|||
return val; |
|||
} |
|||
|
|||
public void setVal(INumberUnit val) { |
|||
this.val = val; |
|||
} |
|||
|
|||
public TableRowHeightRule gethRule() { |
|||
return hRule; |
|||
} |
|||
|
|||
public void sethRule(TableRowHeightRule hRule) { |
|||
this.hRule = hRule; |
|||
} |
|||
} |
@ -0,0 +1,44 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
|
|||
public class ITextDecoration { |
|||
@JsonFormat(shape = JsonFormat.Shape.NUMBER) |
|||
private boolean s; // show
|
|||
@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
|
|||
|
|||
public boolean isS() { |
|||
return s; |
|||
} |
|||
|
|||
public void setS(boolean s) { |
|||
this.s = s; |
|||
} |
|||
|
|||
public boolean isC() { |
|||
return c; |
|||
} |
|||
|
|||
public void setC(boolean c) { |
|||
this.c = c; |
|||
} |
|||
|
|||
public IColorStyle getCl() { |
|||
return cl; |
|||
} |
|||
|
|||
public void setCl(IColorStyle cl) { |
|||
this.cl = cl; |
|||
} |
|||
|
|||
public TextDecoration getT() { |
|||
return t; |
|||
} |
|||
|
|||
public void setT(TextDecoration t) { |
|||
this.t = t; |
|||
} |
|||
} |
@ -0,0 +1,25 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
|
|||
public class ITextRotation { |
|||
private Integer a; //angle
|
|||
@JsonFormat(shape = JsonFormat.Shape.NUMBER) |
|||
private boolean v; //vertical
|
|||
|
|||
public Integer getA() { |
|||
return a; |
|||
} |
|||
|
|||
public void setA(Integer a) { |
|||
this.a = a; |
|||
} |
|||
|
|||
public boolean isV() { |
|||
return v; |
|||
} |
|||
|
|||
public void setV(boolean v) { |
|||
this.v = v; |
|||
} |
|||
} |
@ -0,0 +1,40 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public class ITextRun { |
|||
private Integer st; |
|||
private Integer ed; |
|||
private String sId; |
|||
private ITextStyle ts; |
|||
|
|||
public Integer getSt() { |
|||
return st; |
|||
} |
|||
|
|||
public void setSt(Integer st) { |
|||
this.st = st; |
|||
} |
|||
|
|||
public Integer getEd() { |
|||
return ed; |
|||
} |
|||
|
|||
public void setEd(Integer ed) { |
|||
this.ed = ed; |
|||
} |
|||
|
|||
public String getsId() { |
|||
return sId; |
|||
} |
|||
|
|||
public void setsId(String sId) { |
|||
this.sId = sId; |
|||
} |
|||
|
|||
public ITextStyle getTs() { |
|||
return ts; |
|||
} |
|||
|
|||
public void setTs(ITextStyle ts) { |
|||
this.ts = ts; |
|||
} |
|||
} |
@ -0,0 +1,31 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public class ITextStyle { |
|||
private Integer sc; |
|||
private Integer pos; |
|||
private Integer sa; |
|||
|
|||
public Integer getSc() { |
|||
return sc; |
|||
} |
|||
|
|||
public void setSc(Integer sc) { |
|||
this.sc = sc; |
|||
} |
|||
|
|||
public Integer getPos() { |
|||
return pos; |
|||
} |
|||
|
|||
public void setPos(Integer pos) { |
|||
this.pos = pos; |
|||
} |
|||
|
|||
public Integer getSa() { |
|||
return sa; |
|||
} |
|||
|
|||
public void setSa(Integer sa) { |
|||
this.sa = sa; |
|||
} |
|||
} |
@ -0,0 +1,103 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public class ITransformState { |
|||
private Integer width; |
|||
private Integer height; |
|||
private Integer left; |
|||
private Integer top; |
|||
private Integer scaleX; |
|||
private Integer scaleY; |
|||
private Integer angle; |
|||
private Integer skewX; |
|||
private Integer skewY; |
|||
private boolean flipX; |
|||
private boolean flipY; |
|||
|
|||
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 Integer getLeft() { |
|||
return left; |
|||
} |
|||
|
|||
public void setLeft(Integer left) { |
|||
this.left = left; |
|||
} |
|||
|
|||
public Integer getTop() { |
|||
return top; |
|||
} |
|||
|
|||
public void setTop(Integer top) { |
|||
this.top = top; |
|||
} |
|||
|
|||
public Integer getScaleX() { |
|||
return scaleX; |
|||
} |
|||
|
|||
public void setScaleX(Integer scaleX) { |
|||
this.scaleX = scaleX; |
|||
} |
|||
|
|||
public Integer getScaleY() { |
|||
return scaleY; |
|||
} |
|||
|
|||
public void setScaleY(Integer scaleY) { |
|||
this.scaleY = scaleY; |
|||
} |
|||
|
|||
public Integer getAngle() { |
|||
return angle; |
|||
} |
|||
|
|||
public void setAngle(Integer angle) { |
|||
this.angle = angle; |
|||
} |
|||
|
|||
public Integer getSkewX() { |
|||
return skewX; |
|||
} |
|||
|
|||
public void setSkewX(Integer skewX) { |
|||
this.skewX = skewX; |
|||
} |
|||
|
|||
public Integer getSkewY() { |
|||
return skewY; |
|||
} |
|||
|
|||
public void setSkewY(Integer skewY) { |
|||
this.skewY = skewY; |
|||
} |
|||
|
|||
public boolean isFlipX() { |
|||
return flipX; |
|||
} |
|||
|
|||
public void setFlipX(boolean flipX) { |
|||
this.flipX = flipX; |
|||
} |
|||
|
|||
public boolean isFlipY() { |
|||
return flipY; |
|||
} |
|||
|
|||
public void setFlipY(boolean flipY) { |
|||
this.flipY = flipY; |
|||
} |
|||
} |
@ -0,0 +1,22 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public class IWidthInTableSize { |
|||
private TableSizeType type; |
|||
private INumberUnit width; |
|||
|
|||
public TableSizeType getType() { |
|||
return type; |
|||
} |
|||
|
|||
public void setType(TableSizeType type) { |
|||
this.type = type; |
|||
} |
|||
|
|||
public INumberUnit getWidth() { |
|||
return width; |
|||
} |
|||
|
|||
public void setWidth(INumberUnit width) { |
|||
this.width = width; |
|||
} |
|||
} |
@ -0,0 +1,78 @@ |
|||
package io.sc.platform.excel.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; |
|||
} |
|||
} |
@ -0,0 +1,164 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
|
|||
import java.util.Map; |
|||
|
|||
public class IWorksheetData { |
|||
private String id; // Unique identifier for the worksheet.
|
|||
private String name; // Name of the worksheet.
|
|||
private String tabColor; // Color of the worksheet tab.
|
|||
@JsonFormat(shape = JsonFormat.Shape.NUMBER) |
|||
private boolean hidden; // Whether the sheet is hidden. Default: false.
|
|||
private IFreeze freeze; // Freeze pane settings.
|
|||
private Integer rowCount; // Total number of rows.
|
|||
private Integer columnCount; // Total number of columns.
|
|||
private Integer defaultColumnWidth; // Default width for columns, unit px.
|
|||
private Integer defaultRowHeight; // Default height for rows, unit px.
|
|||
private IRange[] mergeData; // Array of merged cell ranges.
|
|||
private Map<Integer, Map<Integer,ICellData>> cellData; // Matrix of cell contents. More details.
|
|||
private Map<Integer,IRowData> rowData; // Array of row data objects.
|
|||
private Map<Integer,IColumnData> columnData; // Array of column data objects.
|
|||
private IRowHeader rowHeader; // Row header configuration.
|
|||
private IColumnHeader columnHeader; // Column header configuration.
|
|||
@JsonFormat(shape = JsonFormat.Shape.NUMBER) |
|||
private boolean showGridlines; // Whether gridlines are visible.
|
|||
@JsonFormat(shape = JsonFormat.Shape.NUMBER) |
|||
private boolean rightToLeft; // Whether the worksheet is in right-to-left mode.
|
|||
|
|||
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 getTabColor() { |
|||
return tabColor; |
|||
} |
|||
|
|||
public void setTabColor(String tabColor) { |
|||
this.tabColor = tabColor; |
|||
} |
|||
|
|||
public boolean isHidden() { |
|||
return hidden; |
|||
} |
|||
|
|||
public void setHidden(boolean hidden) { |
|||
this.hidden = hidden; |
|||
} |
|||
|
|||
public IFreeze getFreeze() { |
|||
return freeze; |
|||
} |
|||
|
|||
public void setFreeze(IFreeze freeze) { |
|||
this.freeze = freeze; |
|||
} |
|||
|
|||
public Integer getRowCount() { |
|||
return rowCount; |
|||
} |
|||
|
|||
public void setRowCount(Integer rowCount) { |
|||
this.rowCount = rowCount; |
|||
} |
|||
|
|||
public Integer getColumnCount() { |
|||
return columnCount; |
|||
} |
|||
|
|||
public void setColumnCount(Integer columnCount) { |
|||
this.columnCount = columnCount; |
|||
} |
|||
|
|||
public Integer getDefaultColumnWidth() { |
|||
return defaultColumnWidth; |
|||
} |
|||
|
|||
public void setDefaultColumnWidth(Integer defaultColumnWidth) { |
|||
this.defaultColumnWidth = defaultColumnWidth; |
|||
} |
|||
|
|||
public Integer getDefaultRowHeight() { |
|||
return defaultRowHeight; |
|||
} |
|||
|
|||
public void setDefaultRowHeight(Integer defaultRowHeight) { |
|||
this.defaultRowHeight = defaultRowHeight; |
|||
} |
|||
|
|||
public IRange[] getMergeData() { |
|||
return mergeData; |
|||
} |
|||
|
|||
public void setMergeData(IRange[] mergeData) { |
|||
this.mergeData = mergeData; |
|||
} |
|||
|
|||
public Map<Integer, Map<Integer, ICellData>> getCellData() { |
|||
return cellData; |
|||
} |
|||
|
|||
public void setCellData(Map<Integer, Map<Integer, ICellData>> cellData) { |
|||
this.cellData = cellData; |
|||
} |
|||
|
|||
public Map<Integer, IRowData> getRowData() { |
|||
return rowData; |
|||
} |
|||
|
|||
public void setRowData(Map<Integer, IRowData> rowData) { |
|||
this.rowData = rowData; |
|||
} |
|||
|
|||
public Map<Integer, IColumnData> getColumnData() { |
|||
return columnData; |
|||
} |
|||
|
|||
public void setColumnData(Map<Integer, IColumnData> columnData) { |
|||
this.columnData = columnData; |
|||
} |
|||
|
|||
public IRowHeader getRowHeader() { |
|||
return rowHeader; |
|||
} |
|||
|
|||
public void setRowHeader(IRowHeader rowHeader) { |
|||
this.rowHeader = rowHeader; |
|||
} |
|||
|
|||
public IColumnHeader getColumnHeader() { |
|||
return columnHeader; |
|||
} |
|||
|
|||
public void setColumnHeader(IColumnHeader columnHeader) { |
|||
this.columnHeader = columnHeader; |
|||
} |
|||
|
|||
public boolean isShowGridlines() { |
|||
return showGridlines; |
|||
} |
|||
|
|||
public void setShowGridlines(boolean showGridlines) { |
|||
this.showGridlines = showGridlines; |
|||
} |
|||
|
|||
public boolean isRightToLeft() { |
|||
return rightToLeft; |
|||
} |
|||
|
|||
public void setRightToLeft(boolean rightToLeft) { |
|||
this.rightToLeft = rightToLeft; |
|||
} |
|||
} |
@ -0,0 +1,75 @@ |
|||
package io.sc.platform.excel.univer.model; |
|||
|
|||
public enum ListGlyphType { |
|||
BULLET(0),// The glyph type is unspecified or unsupported.
|
|||
NONE(1),// An empty string.
|
|||
DECIMAL(2),// A number), like 1), 2), or 3.
|
|||
DECIMAL_ZERO(3),// A number where single digit numbers are prefixed with a zero), like 01), 02), or 03. Numbers with more than one digit are not prefixed with a zero.
|
|||
UPPER_LETTER(4),// An uppercase letter), like A), B), or C.
|
|||
LOWER_LETTER(5),// A lowercase letter), like a), b), or c.
|
|||
UPPER_ROMAN(6),// An uppercase Roman numeral), like I), II), or III.
|
|||
LOWER_ROMAN(7),// A lowercase Roman numeral), like i), ii), or iii.
|
|||
/** |
|||
* Not yet achieved), aligned with Excel's standards. |
|||
* 17.18.59 ST_NumberFormat (Numbering Format) |
|||
*/ |
|||
ORDINAL(8), |
|||
CARDINAL_TEXT(9), |
|||
ORDINAL_TEXT(10), |
|||
HEX(11), |
|||
CHICAGO(12), |
|||
IDEOGRAPH_DIGITAL(13), |
|||
JAPANESE_COUNTING(14), |
|||
AIUEO(15), |
|||
IROHA(16), |
|||
DECIMAL_FULL_WIDTH(17), |
|||
DECIMAL_HALF_WIDTH(18), |
|||
JAPANESE_LEGAL(19), |
|||
JAPANESE_DIGITAL_TEN_THOUSAND(20), |
|||
DECIMAL_ENCLOSED_CIRCLE(21), |
|||
DECIMAL_FULL_WIDTH2(22), |
|||
AIUEO_FULL_WIDTH(23), |
|||
IROHA_FULL_WIDTH(24), |
|||
GANADA(25), |
|||
CHOSUNG(26), |
|||
DECIMAL_ENCLOSED_FULLSTOP(27), |
|||
DECIMAL_ENCLOSED_PAREN(28), |
|||
DECIMAL_ENCLOSED_CIRCLE_CHINESE(29), |
|||
IDEOGRAPH_ENCLOSED_CIRCLE(30), |
|||
IDEOGRAPH_TRADITIONAL(31), |
|||
IDEOGRAPH_ZODIAC(32), |
|||
IDEOGRAPH_ZODIAC_TRADITIONAL(33), |
|||
TAIWANESE_COUNTING(34), |
|||
IDEOGRAPH_LEGAL_TRADITIONAL(35), |
|||
TAIWANESE_COUNTING_THOUSAND(36), |
|||
TAIWANESE_DIGITAL(37), |
|||
CHINESE_COUNTING(38), |
|||
CHINESE_LEGAL_SIMPLIFIED(39), |
|||
CHINESE_COUNTING_THOUSAND(40), |
|||
KOREAN_DIGITAL(41), |
|||
KOREAN_COUNTING(42), |
|||
KOREAN_LEGAL(43), |
|||
KOREAN_DIGITAL2(44), |
|||
VIETNAMESE_COUNTING(45), |
|||
RUSSIAN_LOWER(46), |
|||
RUSSIAN_UPPER(47), |
|||
NUMBER_IN_DASH(48), |
|||
HEBREW1(49), |
|||
HEBREW2(50), |
|||
ARABIC_ALPHA(51), |
|||
ARABIC_ABJAD(52), |
|||
HINDI_VOWELS(53), |
|||
HINDI_CONSONANTS(54), |
|||
HINDI_NUMBERS(55), |
|||
HINDI_COUNTING(56), |
|||
THAI_LETTERS(57), |
|||
THAI_NUMBERS(58), |
|||
THAI_COUNTING(59), |
|||
CUSTOM(60); |
|||
|
|||
private int value; |
|||
|
|||
ListGlyphType(int value){ |
|||
this.value =value; |
|||
} |
|||
} |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue