@Internal public final class StyleSheet extends java.lang.Object
Fields documentation is quotes from Microsoft Office Word 97-2007 Binary File Format (.doc) Specification, page 36 of 210
(表示文档的样式表。 Word 文档格式存储为基于样式表中包含的样式的压缩样式。此类还包含用于解压缩不同格式属性的静态实用程序函数。字段文档引用自 Microsoft Office Word 97-2007 二进制文件格式 (.doc) 规范,第 36 页,共 210 页)Modifier and Type | Field and Description |
---|---|
static int |
NIL_STYLE |
Constructor and Description |
---|
StyleSheet(byte[] tableStream, int offset)
StyleSheet constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
CharacterProperties |
getCharacterStyle(int styleIndex)
Deprecated.
(已弃用。)
|
byte[] |
getCHPX(int styleIndex) |
byte[] |
getPAPX(int styleIndex) |
ParagraphProperties |
getParagraphStyle(int styleIndex)
Deprecated.
(已弃用。)
|
StyleDescription |
getStyleDescription(int styleIndex)
Gets the StyleDescription at index x.
(获取索引 x 处的 StyleDescription。)
|
int |
hashCode() |
int |
numStyles()
Gets the number of styles in the style sheet.
(获取样式表中的样式数。)
|
void |
writeTo(java.io.OutputStream out) |
public static final int NIL_STYLE
public StyleSheet(byte[] tableStream, int offset)
tableStream
- A byte array containing a document's raw stylesheet info. Found by using FileInformationBlock.getFcStshf() and FileInformationBLock.getLcbStshf()
(tableStream - 包含文档的原始样式表信息的字节数组。通过使用 FileInformationBlock.getFcStshf() 和 FileInformationBLock.getLcbStshf() 找到)
public void writeTo(java.io.OutputStream out) throws java.io.IOException
java.io.IOException
(java.io.IOException)
public boolean equals(java.lang.Object o)
equals
in class
java.lang.Object
public int hashCode()
hashCode
in class
java.lang.Object
public int numStyles()
public StyleDescription getStyleDescription(int styleIndex)
styleIndex
- the index of the desired StyleDescription.
(styleIndex - 所需 StyleDescription 的索引。)
@Deprecated public CharacterProperties getCharacterStyle(int styleIndex)
@Deprecated public ParagraphProperties getParagraphStyle(int styleIndex)
public byte[] getCHPX(int styleIndex)
public byte[] getPAPX(int styleIndex)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.