public final class HSLFSlideMaster extends HSLFMasterSheet
Constructor and Description |
---|
HSLFSlideMaster(MainMaster record, int sheetNo)
Constructs a SlideMaster from the MainMaster record,
|
Modifier and Type | Method and Description |
---|---|
HSLFMasterSheet |
getMasterSheet()
Returns
null since SlideMasters doen't have master sheet.
(由于 SlideMasters 没有母版表,因此返回 null。)
|
TextPropCollection |
getPropCollection(int txtype, int level, java.lang.String name, boolean isCharacter)
Find the master collection for the given txtype/level/name.
(查找给定 txtype/level/name 的主集合。)
|
java.util.List<java.util.List<HSLFTextParagraph>> |
getTextParagraphs()
Returns an array of all the TextRuns found
(返回找到的所有 TextRuns 的数组)
|
TxMasterStyleAtom[] |
getTxMasterStyleAtoms() |
protected void |
onAddTextShape(HSLFTextShape shape)
Subclasses should call this method and update the array of text runs when a text shape is added
(子类应调用此方法并在添加文本形状时更新文本运行数组)
|
protected void |
setSlideShow(HSLFSlideShow ss)
Assign SlideShow for this slide master.
(为此幻灯片母版分配幻灯片放映。)
|
_getSheetNumber, _getSheetRefId, addShape, allocateShapeId, createAutoShape, createConnector, createFreeform, createGroup, createOleShape, createPicture, createTable, createTextBox, draw, getBackground, getColorScheme, getFollowMasterGraphics, getHeadersFooters, getPlaceholder, getPlaceholderByTextType, getPlaceholderDetails, getPPDrawing, getProgrammableTag, getShapes, getSheetContainer, getSlideShow, iterator, onCreate, removeShape
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPlaceholder
draw, getBackground, getFollowMasterGraphics, getPlaceholderDetails, getSlideShow
addShape, createAutoShape, createConnector, createFreeform, createGroup, createOleShape, createPicture, createTable, createTextBox, getShapes, removeShape
public HSLFSlideMaster(MainMaster record, int sheetNo)
public java.util.List<java.util.List<HSLFTextParagraph>> getTextParagraphs()
getTextParagraphs
in class
HSLFSheet
(HSLFSheet 类中的 getTextParagraphs)
public HSLFMasterSheet getMasterSheet()
null
since SlideMasters doen't have master sheet.
(由于 SlideMasters 没有母版表,因此返回 null。)
getMasterSheet
in interface
Sheet<HSLFShape,HSLFTextParagraph>
(接口Sheet中的getMasterSheet
getMasterSheet
in class
HSLFSheet
(HSLFSheet 类中的 getMasterSheet)
public TextPropCollection getPropCollection(int txtype, int level, java.lang.String name, boolean isCharacter)
name = "*"
return the current collection, otherwise if the name is not found in the current selection of txtype/level/name, first try lower levels then try parent types, if it wasn't found there return
null
.
(查找给定 txtype/level/name 的主集合。这是返回默认样式属性的“主力”。如果 name = "*" 返回当前集合,否则如果在当前选择的 txtype/level/name 中没有找到该名称,则先尝试较低级别然后尝试父类型,如果没有找到则返回 null。)
getPropCollection
in class
HSLFMasterSheet
(HSLFMasterSheet 类中的 getPropCollection)
txtype
- the
TextHeaderAtom
type
(txtype - TextHeaderAtom 类型)
level
- the indent level of the paragraph, if the level is not defined for the found collection, the highest existing level will be used
(level - 段落的缩进级别,如果没有为找到的集合定义级别,将使用现有的最高级别)
name
- the property name,
(name - 属性名称,)
isCharacter
- if
true
use character styles, otherwise use paragraph styles
(isCharacter - 如果 true 使用字符样式,否则使用段落样式)
@Internal protected void setSlideShow(HSLFSlideShow ss)
setSlideShow
in class
HSLFSheet
protected void onAddTextShape(HSLFTextShape shape)
HSLFSheet
onAddTextShape
in class
HSLFSheet
public TxMasterStyleAtom[] getTxMasterStyleAtoms()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.