public final class HSLFTextParagraph extends java.lang.Object implements TextParagraph<HSLFShape,HSLFTextParagraph,HSLFTextRun>
TextParagraph.BulletStyle, TextParagraph.FontAlign, TextParagraph.TextAlign
Modifier and Type | Field and Description |
---|---|
protected HSLFTextShape |
_parentShape |
protected TextRulerAtom |
_ruler |
protected java.util.List<HSLFTextRun> |
_runs |
protected static POILogger |
logger |
Modifier and Type | Method and Description |
---|---|
void |
addTabStops(double positionInPoints, TabStop.TabStopType tabStopType)
Set the
TabStop collection
(设置 TabStop 集合)
|
void |
addTextRun(HSLFTextRun run) |
protected static HSLFTextRun |
appendText(java.util.List<HSLFTextParagraph> paragraphs, java.lang.String text, boolean newParagraph)
Adds the supplied text onto the end of the TextParagraphs, creating a new RichTextRun for it to sit in.
(将提供的文本添加到 TextParagraphs 的末尾,创建一个新的 RichTextRun 供其放置。)
|
protected static void |
applyCharacterStyles(java.util.List<HSLFTextParagraph> paragraphs, java.util.List<TextPropCollection> charStyles) |
protected static void |
applyHyperlinks(java.util.List<HSLFTextParagraph> paragraphs) |
protected static void |
applyParagraphIndents(java.util.List<HSLFTextParagraph> paragraphs, java.util.List<IndentProp> paraStyles) |
protected static void |
applyParagraphStyles(java.util.List<HSLFTextParagraph> paragraphs, java.util.List<TextPropCollection> paraStyles) |
void |
clearTabStops()
Removes the tabstops of this paragraphs.
(删除此段落的制表位。)
|
TextRulerAtom |
createTextRuler() |
protected static java.util.List<HSLFTextParagraph> |
findTextParagraphs(EscherTextboxWrapper wrapper, HSLFSheet sheet)
Scans through the supplied record array, looking for a TextHeaderAtom followed by one of a TextBytesAtom or a TextCharsAtom.
(扫描提供的记录数组,查找 TextHeaderAtom 后跟 TextBytesAtom 或 TextCharsAtom 之一。)
|
static java.util.List<java.util.List<HSLFTextParagraph>> |
findTextParagraphs(PPDrawing ppdrawing, HSLFSheet sheet)
For a given PPDrawing, grab all the TextRuns
(对于给定的 PPDrawing,获取所有 TextRuns)
|
protected static java.util.List<java.util.List<HSLFTextParagraph>> |
findTextParagraphs(Record[] records)
Scans through the supplied record array, looking for a TextHeaderAtom followed by one of a TextBytesAtom or a TextCharsAtom.
(扫描提供的记录数组,查找 TextHeaderAtom 后跟 TextBytesAtom 或 TextCharsAtom 之一。)
|
protected static void |
fixLineEndings(java.util.List<HSLFTextParagraph> paragraphs)
Check and add linebreaks to text runs leading other paragraphs
(检查并添加换行符到引导其他段落的文本运行)
|
AutoNumberingScheme |
getAutoNumberingScheme() |
java.lang.Integer |
getAutoNumberingStartAt() |
java.lang.Character |
getBulletChar()
Returns the bullet character
(返回项目符号字符)
|
java.awt.Color |
getBulletColor()
Returns the bullet color
(返回项目符号颜色)
|
java.lang.String |
getBulletFont()
Returns the bullet font
(返回项目符号字体)
|
java.lang.Double |
getBulletSize()
Returns the bullet size, null if unset
(返回项目符号大小,如果未设置,则返回 null)
|
TextParagraph.BulletStyle |
getBulletStyle() |
protected static java.awt.Color |
getColorFromColorIndexStruct(int rgb, HSLFSheet sheet) |
java.lang.String |
getDefaultFontFamily() |
java.lang.Double |
getDefaultFontSize() |
java.lang.Double |
getDefaultTabSize() |
TextParagraph.FontAlign |
getFontAlign()
Returns the font alignment that is applied to the paragraph.
(返回应用于段落的字体对齐方式。)
|
java.lang.Double |
getIndent() |
int |
getIndentLevel() |
protected int |
getIndex() |
java.lang.Double |
getLeftMargin() |
java.lang.Double |
getLineSpacing()
Returns the vertical line spacing that is to be used within a paragraph.
(返回要在段落中使用的垂直行距。)
|
TextPropCollection |
getParagraphStyle() |
HSLFTextShape |
getParentShape() |
protected <T extends TextProp> |
getPropVal(TextPropCollection props, java.lang.String propName)
Fetch the value of the given Paragraph related TextProp.
(获取给定段落相关 TextProp 的值。)
|
static java.lang.String |
getRawText(java.util.List<HSLFTextParagraph> paragraphs) |
Record[] |
getRecords()
Returns records that make up the list of text paragraphs (there can be misc InteractiveInfo, TxInteractiveInfo and other records)
(返回构成文本段落列表的记录(可能有 misc InteractiveInfo、TxInteractiveInfo 等记录))
|
java.lang.Double |
getRightMargin()
Specifies the right margin of the paragraph.
(指定段落的右边距。)
|
int |
getRunType()
Returns the type of the text, from the TextHeaderAtom.
(从 TextHeaderAtom 返回文本的类型。)
|
protected int |
getShapeId() |
HSLFSheet |
getSheet() |
java.lang.Double |
getSpaceAfter()
The amount of vertical white space after the paragraph This may be specified in two different ways, percentage spacing and font point spacing:
(段落后的垂直空白量这可以通过两种不同的方式指定,百分比间距和字体点间距:)
|
java.lang.Double |
getSpaceBefore()
The amount of vertical white space before the paragraph This may be specified in two different ways, percentage spacing and font point spacing:
(段落前的垂直空白量这可以通过两种不同的方式指定,百分比间距和字体点间距:)
|
StyleTextProp9Atom |
getStyleTextProp9Atom()
Numbered List info
(编号列表信息)
|
java.util.List<? extends TabStop> |
getTabStops()
Get the
TabStops - the list can't be and it's entries shouldn't be modified.
(获取 TabStops - 列表不能,它的条目不应该被修改。)
|
static java.lang.String |
getText(java.util.List<HSLFTextParagraph> paragraphs) |
TextParagraph.TextAlign |
getTextAlign()
Returns the alignment that is applied to the paragraph.
(返回应用于段落的对齐方式。)
|
EscherTextboxWrapper |
getTextboxWrapper() |
TextRulerAtom |
getTextRuler() |
java.util.List<HSLFTextRun> |
getTextRuns()
Fetch the text runs that are contained within this block of text
(获取包含在此文本块中的文本运行)
|
boolean |
isBullet()
Returns whether this rich text run has bullets
(返回此富文本运行是否有项目符号)
|
boolean |
isDirty() |
boolean |
isDrawingBased()
Is this Text Run one from a
PPDrawing , or is it one from the
SlideListWithText ?
(这个文本是来自 PPDrawing 的,还是来自 SlideListWithText 的?)
|
boolean |
isHeaderOrFooter()
Convenience method to determine if this text paragraph is part of the slide header or footer
(确定此文本段落是幻灯片页眉或页脚的一部分的便捷方法)
|
java.util.Iterator<HSLFTextRun> |
iterator() |
void |
setBullet(boolean flag)
Sets whether this rich text run has bullets
(设置此富文本运行是否有项目符号)
|
void |
setBulletChar(java.lang.Character c)
Sets the bullet character
(设置项目符号字符)
|
void |
setBulletColor(java.awt.Color color)
Sets the bullet color
(设置项目符号颜色)
|
void |
setBulletFont(java.lang.String typeface)
Sets the bullet font
(设置项目符号字体)
|
void |
setBulletSize(java.lang.Double size)
Sets the bullet size
(设置项目符号大小)
|
void |
setBulletStyle(java.lang.Object... styles)
Sets the bullet styles.
(设置项目符号样式。)
|
void |
setDirty()
marks this paragraph dirty, so its records will be renewed on save
(将此段落标记为脏,因此其记录将在保存时更新)
|
void |
setIndent(java.lang.Double indent)
Specifies the indent size that will be applied to the first line of text in the paragraph.
(指定将应用于段落中第一行文本的缩进大小。)
|
void |
setIndentLevel(int level)
Specifies the particular level text properties that this paragraph will follow.
(指定此段落将遵循的特定级别文本属性。)
|
protected void |
setIndex(int index)
Sets the index of the paragraph in the SLWT container
(设置 SLWT 容器中段落的索引)
|
void |
setLeftMargin(java.lang.Double leftMargin)
Specifies the left margin of the paragraph.
(指定段落的左边距。)
|
void |
setLineSpacing(java.lang.Double lineSpacing)
This element specifies the vertical line spacing that is to be used within a paragraph.
(此元素指定要在段落中使用的垂直行距。)
|
void |
setParagraphStyle(TextPropCollection paragraphStyle) |
void |
setParagraphTextPropVal(java.lang.String propName, java.lang.Integer val)
Sets the value of the given Paragraph TextProp, add if required
(设置给定段落 TextProp 的值,如果需要,添加)
|
void |
setParentShape(HSLFTextShape parentShape) |
protected void |
setPropVal(TextPropCollection props, java.lang.String name, java.lang.Integer val)
Returns the named TextProp, either by fetching it (if it exists) or adding it (if it didn't)
(通过获取它(如果存在)或添加它(如果不存在)返回命名的 TextProp)
|
void |
setRightMargin(java.lang.Double rightMargin) |
void |
setRunType(int runType) |
protected void |
setShapeId(int id) |
void |
setSpaceAfter(java.lang.Double spaceAfter)
Set the amount of vertical white space that will be present after the paragraph.
(设置段落后出现的垂直空白量。)
|
void |
setSpaceBefore(java.lang.Double spaceBefore)
Set the amount of vertical white space that will be present before the paragraph.
(设置段落之前将出现的垂直空白量。)
|
void |
setStyleTextProp9Atom(StyleTextProp9Atom styleTextProp9Atom)
Numbered List info
(编号列表信息)
|
static HSLFTextRun |
setText(java.util.List<HSLFTextParagraph> paragraphs, java.lang.String text)
Sets (overwrites) the current text.
(设置(覆盖)当前文本。)
|
void |
setTextAlign(TextParagraph.TextAlign align)
Specifies the alignment that is to be applied to the paragraph.
(指定要应用于段落的对齐方式。)
|
protected static void |
storeText(java.util.List<HSLFTextParagraph> paragraphs)
Saves the modified paragraphs/textrun to the records.
(将修改后的段落/textrun 保存到记录中。)
|
static void |
supplySheet(java.util.List<HSLFTextParagraph> paragraphs, HSLFSheet sheet)
Supply the Sheet we belong to, which might have an assigned SlideShow Also passes it on to our child RichTextRuns
(提供我们所属的 Sheet,它可能有一个分配的 SlideShow 也将它传递给我们的子 RichTextRuns)
|
static java.lang.String |
toExternalString(java.lang.String rawText, int runType)
Converts raw text from the text paragraphs to a formatted string, i.e.
(将文本段落中的原始文本转换为格式化字符串,即)
|
protected static java.lang.String |
toInternalString(java.lang.String s)
Returns a new string with line breaks converted into internal ppt representation
(返回一个新字符串,换行符转换为内部 ppt 表示)
|
java.lang.String |
toString() |
protected static final POILogger logger
protected TextRulerAtom _ruler
protected final java.util.List<HSLFTextRun> _runs
protected HSLFTextShape _parentShape
public void addTextRun(HSLFTextRun run)
public java.util.List<HSLFTextRun> getTextRuns()
TextParagraph
getTextRuns
in interface
TextParagraph<HSLFShape,HSLFTextParagraph,HSLFTextRun>
(接口 TextParagraph 中的 getTextRuns
public TextPropCollection getParagraphStyle()
public void setParagraphStyle(TextPropCollection paragraphStyle)
public static void supplySheet(java.util.List<HSLFTextParagraph> paragraphs, HSLFSheet sheet)
public HSLFSheet getSheet()
protected int getShapeId()
protected void setShapeId(int id)
id
- Shape ID
(id - 形状 ID)
protected int getIndex()
protected void setIndex(int index)
index
-
(指数 -)
public int getRunType()
TextHeaderAtom
public void setRunType(int runType)
public boolean isDrawingBased()
PPDrawing
, or is it one from the
SlideListWithText
?
(这个文本是来自 PPDrawing 的,还是来自 SlideListWithText 的?)
public TextRulerAtom getTextRuler()
public TextRulerAtom createTextRuler()
public Record[] getRecords()
public void setStyleTextProp9Atom(StyleTextProp9Atom styleTextProp9Atom)
public StyleTextProp9Atom getStyleTextProp9Atom()
public java.util.Iterator<HSLFTextRun> iterator()
iterator
in interface
java.lang.Iterable<HSLFTextRun>
(接口 java.lang.Iterable 中的迭代器
public java.lang.Double getLeftMargin()
getLeftMargin
in interface
TextParagraph<HSLFShape,HSLFTextParagraph,HSLFTextRun>
(接口 TextParagraph 中的 getLeftMargin
public void setLeftMargin(java.lang.Double leftMargin)
TextParagraph
setLeftMargin
in interface
TextParagraph<HSLFShape,HSLFTextParagraph,HSLFTextRun>
(接口 TextParagraph 中的 setLeftMargin
leftMargin
- the left margin (in points) or null to unset
(leftMargin - 左边距(以磅为单位)或 null 取消设置)
public java.lang.Double getRightMargin()
TextParagraph
getRightMargin
in interface
TextParagraph<HSLFShape,HSLFTextParagraph,HSLFTextRun>
(接口 TextParagraph 中的 getRightMargin
public void setRightMargin(java.lang.Double rightMargin)
setRightMargin
in interface
TextParagraph<HSLFShape,HSLFTextParagraph,HSLFTextRun>
(接口 TextParagraph 中的 setRightMargin
rightMargin
- the right margin (in points) of the paragraph
(rightMargin - 段落的右边距(以磅为单位))
public java.lang.Double getIndent()
getIndent
in interface
TextParagraph<HSLFShape,HSLFTextParagraph,HSLFTextRun>
(接口 TextParagraph 中的 getIndent
public void setIndent(java.lang.Double indent)
TextParagraph
setIndent
in interface
TextParagraph<HSLFShape,HSLFTextParagraph,HSLFTextRun>
(接口 TextParagraph 中的 setIndent
indent
- the indent (in points) applied to the first line of text in the paragraph
(indent - 应用于段落中第一行文本的缩进(以磅为单位))
public java.lang.String getDefaultFontFamily()
getDefaultFontFamily
in interface
TextParagraph<HSLFShape,HSLFTextParagraph,HSLFTextRun>
(接口 TextParagraph 中的 getDefaultFontFamily
public java.lang.Double getDefaultFontSize()
getDefaultFontSize
in interface
TextParagraph<HSLFShape,HSLFTextParagraph,HSLFTextRun>
(接口 TextParagraph 中的 getDefaultFontSize
public void setTextAlign(TextParagraph.TextAlign align)
TextParagraph
TextParagraph.TextAlign
.
(指定要应用于段落的对齐方式。可能的值包括左、右、居中、对齐和分布,请参阅 TextParagraph.TextAlign。)
setTextAlign
in interface
TextParagraph<HSLFShape,HSLFTextParagraph,HSLFTextRun>
(接口 TextParagraph 中的 setTextAlign
align
- text align
(对齐 - 文本对齐)
public TextParagraph.TextAlign getTextAlign()
TextParagraph
TextParagraph.TextAlign.LEFT
then.
(返回应用于段落的对齐方式。如果省略此属性,则返回 null。用户代码可以隐含 TextParagraph.TextAlign.LEFT 的值。)
getTextAlign
in interface
TextParagraph<HSLFShape,HSLFTextParagraph,HSLFTextRun>
(接口 TextParagraph 中的 getTextAlign
public TextParagraph.FontAlign getFontAlign()
TextParagraph
TextParagraph.FontAlign.AUTO
(返回应用于段落的字体对齐方式。如果省略该属性,则返回 null,用户代码可以隐含 TextParagraph.FontAlign.AUTO 的值)
getFontAlign
in interface
TextParagraph<HSLFShape,HSLFTextParagraph,HSLFTextRun>
(接口 TextParagraph 中的 getFontAlign
public AutoNumberingScheme getAutoNumberingScheme()
public java.lang.Integer getAutoNumberingStartAt()
public TextParagraph.BulletStyle getBulletStyle()
getBulletStyle
in interface
TextParagraph<HSLFShape,HSLFTextParagraph,HSLFTextRun>
(接口 TextParagraph 中的 getBulletStyle
null
then no bullets are used
(段落的项目符号样式,如果为 null 则不使用项目符号)
public void setBulletStyle(java.lang.Object... styles)
TextParagraph
setBulletStyle
in interface
TextParagraph<HSLFShape,HSLFTextParagraph,HSLFTextRun>
(接口 TextParagraph 中的 setBulletStyle
public HSLFTextShape getParentShape()
getParentShape
in interface
TextParagraph<HSLFShape,HSLFTextParagraph,HSLFTextRun>
(接口 TextParagraph 中的 getParentShape
public void setParentShape(HSLFTextShape parentShape)
public int getIndentLevel()
getIndentLevel
in interface
TextParagraph<HSLFShape,HSLFTextParagraph,HSLFTextRun>
(接口 TextParagraph 中的 getIndentLevel
public void setIndentLevel(int level)
TextParagraph
setIndentLevel
in interface
TextParagraph<HSLFShape,HSLFTextParagraph,HSLFTextRun>
(接口 TextParagraph 中的 setIndentLevel
level
- the level (0 ... 4)
(level - 级别 (0 ... 4))
public void setBullet(boolean flag)
public boolean isBullet()
public void setBulletChar(java.lang.Character c)
public java.lang.Character getBulletChar()
public void setBulletSize(java.lang.Double size)
public java.lang.Double getBulletSize()
public void setBulletColor(java.awt.Color color)
public java.awt.Color getBulletColor()
public void setBulletFont(java.lang.String typeface)
public java.lang.String getBulletFont()
public void setLineSpacing(java.lang.Double lineSpacing)
TextParagraph
If linespacing >= 0, then linespacing is a percentage of normal line height If linespacing < 0, the absolute value of linespacing is the spacing in points
Examples:
// spacing will be 120% of the size of the largest text on each line
paragraph.setLineSpacing(120);
// spacing will be 200% of the size of the largest text on each line
paragraph.setLineSpacing(200);
// spacing will be 48 points
paragraph.setLineSpacing(-48.0);
(此元素指定要在段落中使用的垂直行距。这可以通过两种不同的方式指定,百分比间距和字体点间距: 如果行间距 >= 0,则行间距是正常行高的百分比 如果行间距 < 0,行间距的绝对值是以点为单位的间距示例://间距将是每行段落上最大文本大小的 120%.setLineSpacing(120); // 间距将是每行最大文本大小的 200%。paragraph.setLineSpacing(200); // 间距为 48 点 paragraph.setLineSpacing(-48.0);)
setLineSpacing
in interface
TextParagraph<HSLFShape,HSLFTextParagraph,HSLFTextRun>
(接口 TextParagraph 中的 setLineSpacing
lineSpacing
- the vertical line spacing
(lineSpacing - 垂直行距)
public java.lang.Double getLineSpacing()
TextParagraph
If linespacing >= 0, then linespacing is a percentage of normal line height. If linespacing < 0, the absolute value of linespacing is the spacing in points
(返回要在段落中使用的垂直行距。这可以通过两种不同的方式指定,百分比间距和字体点间距: 如果行间距 >= 0,则行间距是正常行高的百分比。如果linespacing < 0,则linespacing的绝对值是以点为单位的间距)getLineSpacing
in interface
TextParagraph<HSLFShape,HSLFTextParagraph,HSLFTextRun>
(接口 TextParagraph 中的 getLineSpacing
public void setSpaceBefore(java.lang.Double spaceBefore)
TextParagraph
If spaceBefore >= 0, then space is a percentage of normal line height. If spaceBefore < 0, the absolute value of linespacing is the spacing in points
Examples:
// The paragraph will be formatted to have a spacing before the paragraph text.
// The spacing will be 200% of the size of the largest text on each line
paragraph.setSpaceBefore(200);
// The spacing will be a size of 48 points
paragraph.setSpaceBefore(-48.0);
(设置段落之前将出现的垂直空白量。此空间以百分比或点数指定:如果 spaceBefore >= 0,则空间是法线高度的百分比。如果 spaceBefore < 0,则 linepacing 的绝对值是以磅为单位的间距示例: // 段落将被格式化为在段落文本之前有一个间距。 // 间距将是每行最大文本大小的 200%。paragraph.setSpaceBefore(200); // 间距将是 48 磅的大小 paragraph.setSpaceBefore(-48.0);)
setSpaceBefore
in interface
TextParagraph<HSLFShape,HSLFTextParagraph,HSLFTextRun>
(接口 TextParagraph 中的 setSpaceBefore
spaceBefore
- the vertical white space before the paragraph, null to unset
(spaceBefore - 段落前的垂直空白,null 取消设置)
public java.lang.Double getSpaceBefore()
TextParagraph
If spaceBefore >= 0, then space is a percentage of normal line height. If spaceBefore < 0, the absolute value in points
(段落前的垂直空白量 这可以用两种不同的方式指定,百分比间距和字体点间距: 如果 spaceBefore >= 0,则间距是正常行高的百分比。如果 spaceBefore < 0,则以点为单位的绝对值)getSpaceBefore
in interface
TextParagraph<HSLFShape,HSLFTextParagraph,HSLFTextRun>
(接口 TextParagraph 中的 getSpaceBefore
public void setSpaceAfter(java.lang.Double spaceAfter)
TextParagraph
If spaceAfter >= 0, then space is a percentage of normal line height. If spaceAfter < 0, the absolute value of linespacing is the spacing in points
Examples:
// The paragraph will be formatted to have a spacing after the paragraph text.
// The spacing will be 200% of the size of the largest text on each line
paragraph.setSpaceAfter(200);
// The spacing will be a size of 48 points
paragraph.setSpaceAfter(-48.0);
(设置段落后出现的垂直空白量。此空间以百分比或点数指定:如果 spaceAfter >= 0,则空间是法线高度的百分比。如果 spaceAfter < 0,则 linepacing 的绝对值是以磅为单位的间距示例: // 段落将被格式化为在段落文本之后有一个间距。 // 间距将是每行最大文本大小的 200%。paragraph.setSpaceAfter(200); // 间距将是 48 磅的大小 paragraph.setSpaceAfter(-48.0);)
setSpaceAfter
in interface
TextParagraph<HSLFShape,HSLFTextParagraph,HSLFTextRun>
(接口TextParagraph中的setSpaceAfter
spaceAfter
- the vertical white space after the paragraph, null to unset
(spaceAfter - 段落后的垂直空白,null 取消设置)
public java.lang.Double getSpaceAfter()
TextParagraph
If spaceBefore >= 0, then space is a percentage of normal line height. If spaceBefore < 0, the absolute value of linespacing is the spacing in points
(段落后的垂直空白量 这可以通过两种不同的方式指定,百分比间距和字体点间距: 如果 spaceBefore >= 0,则间距是正常行高的百分比。如果 spaceBefore < 0,则 linepacing 的绝对值是以磅为单位的间距)getSpaceAfter
in interface
TextParagraph<HSLFShape,HSLFTextParagraph,HSLFTextRun>
(接口TextParagraph中的getSpaceAfter
public java.lang.Double getDefaultTabSize()
getDefaultTabSize
in interface
TextParagraph<HSLFShape,HSLFTextParagraph,HSLFTextRun>
(接口 TextParagraph 中的 getDefaultTabSize
public java.util.List<? extends TabStop> getTabStops()
TextParagraph
TabStops
- the list can't be and it's entries shouldn't be modified. Opposed to other properties, this method is not cascading to the master sheet, if the property is not defined on the normal slide level, i.e. the tabstops on different levels aren't merged.
(获取 TabStops - 列表不能,它的条目不应该被修改。与其他属性相反,如果该属性未在正常幻灯片级别上定义,即不合并不同级别的制表位,则此方法不会级联到主工作表。)
getTabStops
in interface
TextParagraph<HSLFShape,HSLFTextParagraph,HSLFTextRun>
(接口 TextParagraph 中的 getTabStops
null
if no tabstops are defined
(tabstop 集合,如果没有定义 tabstop,则返回 null)
public void addTabStops(double positionInPoints, TabStop.TabStopType tabStopType)
TextParagraph
TabStop
collection
(设置 TabStop 集合)
addTabStops
in interface
TextParagraph<HSLFShape,HSLFTextParagraph,HSLFTextRun>
(接口 TextParagraph 中的 addTabStops
public void clearTabStops()
TextParagraph
clearTabStops
in interface
TextParagraph<HSLFShape,HSLFTextParagraph,HSLFTextRun>
(界面 TextParagraph 中的 clearTabStops
protected <T extends TextProp> T getPropVal(TextPropCollection props, java.lang.String propName)
protected void setPropVal(TextPropCollection props, java.lang.String name, java.lang.Integer val)
props
- the TextPropCollection to fetch from / add into
(props - 要从中获取/添加到的 TextPropCollection)
name
- the name of the TextProp to fetch/add
(name - 要获取/添加的 TextProp 的名称)
val
- the value, null if unset
(val - 值,如果未设置,则为 null)
protected static void fixLineEndings(java.util.List<HSLFTextParagraph> paragraphs)
protected static void storeText(java.util.List<HSLFTextParagraph> paragraphs)
protected static HSLFTextRun appendText(java.util.List<HSLFTextParagraph> paragraphs, java.lang.String text, boolean newParagraph)
text
- the text string used by this object.
(text - 此对象使用的文本字符串。)
public static HSLFTextRun setText(java.util.List<HSLFTextParagraph> paragraphs, java.lang.String text)
text
- the text string used by this object.
(text - 此对象使用的文本字符串。)
public static java.lang.String getText(java.util.List<HSLFTextParagraph> paragraphs)
public static java.lang.String getRawText(java.util.List<HSLFTextParagraph> paragraphs)
public java.lang.String toString()
toString
in class
java.lang.Object
protected static java.lang.String toInternalString(java.lang.String s)
public static java.lang.String toExternalString(java.lang.String rawText, int runType)
rawText
- the raw text
(rawText - 原始文本)
runType
- the run type of the shape, paragraph or headerAtom. use -1 if unknown
(runType - 形状、段落或 headerAtom 的运行类型。如果未知,使用 -1)
public static java.util.List<java.util.List<HSLFTextParagraph>> findTextParagraphs(PPDrawing ppdrawing, HSLFSheet sheet)
protected static java.util.List<HSLFTextParagraph> findTextParagraphs(EscherTextboxWrapper wrapper, HSLFSheet sheet)
wrapper
- an EscherTextboxWrapper
(wrapper - 一个 EscherTextboxWrapper)
protected static java.util.List<java.util.List<HSLFTextParagraph>> findTextParagraphs(Record[] records)
records
- the records to build from
(记录 - 要构建的记录)
protected static void applyHyperlinks(java.util.List<HSLFTextParagraph> paragraphs)
protected static void applyCharacterStyles(java.util.List<HSLFTextParagraph> paragraphs, java.util.List<TextPropCollection> charStyles)
protected static void applyParagraphStyles(java.util.List<HSLFTextParagraph> paragraphs, java.util.List<TextPropCollection> paraStyles)
protected static void applyParagraphIndents(java.util.List<HSLFTextParagraph> paragraphs, java.util.List<IndentProp> paraStyles)
public EscherTextboxWrapper getTextboxWrapper()
protected static java.awt.Color getColorFromColorIndexStruct(int rgb, HSLFSheet sheet)
public void setParagraphTextPropVal(java.lang.String propName, java.lang.Integer val)
propName
- The name of the Paragraph TextProp
(propName - 段落 TextProp 的名称)
val
- The value to set for the TextProp
(val - 为 TextProp 设置的值)
public void setDirty()
public boolean isDirty()
public boolean isHeaderOrFooter()
isHeaderOrFooter
in interface
TextParagraph<HSLFShape,HSLFTextParagraph,HSLFTextRun>
(接口 TextParagraph 中的 isHeaderOrFooter
RoundTripHFPlaceholder12
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.