public class Paragraph extends Range implements Duplicatable
Modifier and Type | Field and Description |
---|---|
protected short |
_istd |
protected SprmBuffer |
_papx |
protected ParagraphProperties |
_props |
static short |
SPRM_ANLD |
static short |
SPRM_AUTOSPACEDE |
static short |
SPRM_AUTOSPACEDN |
static short |
SPRM_BRCBAR |
static short |
SPRM_BRCBOTTOM |
static short |
SPRM_BRCL |
static short |
SPRM_BRCLEFT |
static short |
SPRM_BRCP |
static short |
SPRM_BRCRIGHT |
static short |
SPRM_BRCTOP |
static short |
SPRM_CHGTABS |
static short |
SPRM_CHGTABSPAPX |
static short |
SPRM_CRLF |
static short |
SPRM_DCS |
static short |
SPRM_DXAABS |
static short |
SPRM_DXAFROMTEXT |
static short |
SPRM_DXALEFT |
static short |
SPRM_DXALEFT1 |
static short |
SPRM_DXARIGHT |
static short |
SPRM_DXAWIDTH |
static short |
SPRM_DYAABS |
static short |
SPRM_DYAAFTER |
static short |
SPRM_DYABEFORE |
static short |
SPRM_DYAFROMTEXT |
static short |
SPRM_DYALINE |
static short |
SPRM_FADJUSTRIGHT |
static short |
SPRM_FBIDI |
static short |
SPRM_FINTABLE |
static short |
SPRM_FKEEP |
static short |
SPRM_FKEEPFOLLOW |
static short |
SPRM_FKINSOKU |
static short |
SPRM_FLOCKED |
static short |
SPRM_FNOAUTOHYPH |
static short |
SPRM_FNOLINENUMB |
static short |
SPRM_FNUMRMLNS |
static short |
SPRM_FOVERFLOWPUNCT |
static short |
SPRM_FPAGEBREAKBEFORE |
static short |
SPRM_FRAMETEXTFLOW |
static short |
SPRM_FSIDEBYSIDE |
static short |
SPRM_FTOPLINEPUNCT |
static short |
SPRM_FTTP |
static short |
SPRM_FWIDOWCONTROL |
static short |
SPRM_FWORDWRAP |
static short |
SPRM_ILFO |
static short |
SPRM_ILVL |
static short |
SPRM_JC |
static short |
SPRM_NUMRM |
static short |
SPRM_OUTLVL |
static short |
SPRM_PC |
static short |
SPRM_PROPRMARK |
static short |
SPRM_RULER |
static short |
SPRM_SHD |
static short |
SPRM_SHD80 |
static short |
SPRM_USEPGSUSETTINGS |
static short |
SPRM_WALIGNFONT |
static short |
SPRM_WHEIGHTABS |
static short |
SPRM_WR |
_characters, _charEnd, _charRangeFound, _charStart, _doc, _end, _paragraphs, _parEnd, _parRangeFound, _parStart, _sectionEnd, _sections, _sectionStart, _start, _text, TYPE_CHARACTER, TYPE_LISTENTRY, TYPE_PARAGRAPH, TYPE_SECTION, TYPE_TABLE, TYPE_TEXT, TYPE_UNDEFINED
Modifier and Type | Method and Description |
---|---|
ParagraphProperties |
cloneProperties()
Clone the ParagraphProperties object associated with this
Paragraph, so that you can apply the same properties to
another Paragraph.
|
Paragraph |
copy() |
BorderCode |
getBarBorder() |
BorderCode |
getBottomBorder() |
DropCapSpecifier |
getDropCap() |
int |
getFirstLineIndent() |
int |
getFontAlignment() |
int |
getIlfo()
Returns the ilfo, an index to the document's hpllfo, which
describes the automatic number formatting of the paragraph.
|
int |
getIlvl()
Returns the multi-level indent for the paragraph.
|
int |
getIndentFromLeft() |
int |
getIndentFromRight() |
int |
getJustification() |
BorderCode |
getLeftBorder() |
LineSpacingDescriptor |
getLineSpacing() |
HWPFList |
getList() |
int |
getLvl()
Returns the heading level (1-8), or 9 if the paragraph
isn't in a heading style.
|
ParagraphProperties |
getProps() |
BorderCode |
getRightBorder() |
ShadingDescriptor |
getShading() |
int |
getSpacingAfter() |
int |
getSpacingBefore() |
short |
getStyleIndex()
Returns the index of the style which applies to this
Paragraph.
|
int |
getTableLevel() |
int |
getTabStopsNumber()
Returns number of tabs stops defined for paragraph.
|
int[] |
getTabStopsPositions()
Returns array of positions of itbdMac tab stops
|
BorderCode |
getTopBorder() |
boolean |
isAutoHyphenated() |
boolean |
isBackward() |
boolean |
isEmbeddedCellMark() |
boolean |
isInList() |
boolean |
isInTable() |
boolean |
isKinsoku() |
boolean |
isLineNotNumbered() |
boolean |
isSideBySide() |
boolean |
isTableRowEnd() |
boolean |
isVertical() |
boolean |
isWidowControlled() |
boolean |
isWordWrapped() |
boolean |
keepOnPage() |
boolean |
keepWithNext() |
protected static ParagraphProperties |
newParagraph_applyStyleProperties(StyleSheet styleSheet,
PAPX papx,
ParagraphProperties properties) |
static Paragraph |
newParagraph(Range parent,
PAPX papx) |
boolean |
pageBreakBefore() |
void |
setAutoHyphenated(boolean autoHyph) |
void |
setBackward(boolean bward) |
void |
setBarBorder(BorderCode bar) |
void |
setBottomBorder(BorderCode bottom) |
void |
setDropCap(DropCapSpecifier dcs) |
void |
setFirstLineIndent(int first) |
void |
setFontAlignment(int align) |
void |
setIndentFromLeft(int dxaLeft) |
void |
setIndentFromRight(int dxaRight) |
void |
setJustification(byte jc) |
void |
setKeepOnPage(boolean fKeep) |
void |
setKeepWithNext(boolean fKeepFollow) |
void |
setKinsoku(boolean kinsoku) |
void |
setLeftBorder(BorderCode left) |
void |
setLineNotNumbered(boolean fNoLnn) |
void |
setLineSpacing(LineSpacingDescriptor lspd) |
void |
setPageBreakBefore(boolean fPageBreak) |
void |
setRightBorder(BorderCode right) |
void |
setShading(ShadingDescriptor shd) |
void |
setSideBySide(boolean fSideBySide) |
void |
setSpacingAfter(int after) |
void |
setSpacingBefore(int before) |
void |
setTopBorder(BorderCode top) |
void |
setVertical(boolean vertical) |
void |
setWidowControl(boolean widowControl) |
void |
setWordWrapped(boolean wrap) |
java.lang.String |
toString() |
adjustFIB, delete, getCharacterRun, getDocument, getEndOffset, getParagraph, getSection, getStartOffset, getTable, initAll, insertAfter, insertBefore, insertTableBefore, numCharacterRuns, numParagraphs, numSections, replaceText, replaceText, replaceText, reset, sanityCheck, stripFields, text
public static final short SPRM_JC
public static final short SPRM_FSIDEBYSIDE
public static final short SPRM_FKEEP
public static final short SPRM_FKEEPFOLLOW
public static final short SPRM_FPAGEBREAKBEFORE
public static final short SPRM_BRCL
public static final short SPRM_BRCP
public static final short SPRM_ILVL
public static final short SPRM_ILFO
public static final short SPRM_FNOLINENUMB
public static final short SPRM_CHGTABSPAPX
public static final short SPRM_DXARIGHT
public static final short SPRM_DXALEFT
public static final short SPRM_DXALEFT1
public static final short SPRM_DYALINE
public static final short SPRM_DYABEFORE
public static final short SPRM_DYAAFTER
public static final short SPRM_CHGTABS
public static final short SPRM_FINTABLE
public static final short SPRM_FTTP
public static final short SPRM_DXAABS
public static final short SPRM_DYAABS
public static final short SPRM_DXAWIDTH
public static final short SPRM_PC
public static final short SPRM_WR
public static final short SPRM_BRCTOP
public static final short SPRM_BRCLEFT
public static final short SPRM_BRCBOTTOM
public static final short SPRM_BRCRIGHT
public static final short SPRM_BRCBAR
public static final short SPRM_FNOAUTOHYPH
public static final short SPRM_WHEIGHTABS
public static final short SPRM_DCS
public static final short SPRM_SHD80
public static final short SPRM_SHD
public static final short SPRM_DYAFROMTEXT
public static final short SPRM_DXAFROMTEXT
public static final short SPRM_FLOCKED
public static final short SPRM_FWIDOWCONTROL
public static final short SPRM_RULER
public static final short SPRM_FKINSOKU
public static final short SPRM_FWORDWRAP
public static final short SPRM_FOVERFLOWPUNCT
public static final short SPRM_FTOPLINEPUNCT
public static final short SPRM_AUTOSPACEDE
public static final short SPRM_AUTOSPACEDN
public static final short SPRM_WALIGNFONT
public static final short SPRM_FRAMETEXTFLOW
public static final short SPRM_ANLD
public static final short SPRM_PROPRMARK
public static final short SPRM_OUTLVL
public static final short SPRM_FBIDI
public static final short SPRM_FNUMRMLNS
public static final short SPRM_CRLF
public static final short SPRM_NUMRM
public static final short SPRM_USEPGSUSETTINGS
public static final short SPRM_FADJUSTRIGHT
protected short _istd
protected ParagraphProperties _props
protected SprmBuffer _papx
protected static ParagraphProperties newParagraph_applyStyleProperties(StyleSheet styleSheet, PAPX papx, ParagraphProperties properties)
public short getStyleIndex()
StyleSheet
, via
StyleSheet.getStyleDescription(int)
public boolean isInTable()
public boolean isTableRowEnd()
true
, if table trailer paragraph (last in table row),
false
otherwisepublic int getTableLevel()
public boolean isEmbeddedCellMark()
true
, if the end of paragraph mark is really an end of
cell mark for a nested table cell, false
otherwisepublic int getJustification()
public void setJustification(byte jc)
public boolean keepOnPage()
public void setKeepOnPage(boolean fKeep)
public boolean keepWithNext()
public void setKeepWithNext(boolean fKeepFollow)
public boolean pageBreakBefore()
public void setPageBreakBefore(boolean fPageBreak)
public boolean isLineNotNumbered()
public void setLineNotNumbered(boolean fNoLnn)
public boolean isSideBySide()
public void setSideBySide(boolean fSideBySide)
public boolean isAutoHyphenated()
public void setAutoHyphenated(boolean autoHyph)
public boolean isWidowControlled()
public void setWidowControl(boolean widowControl)
public int getIndentFromRight()
public void setIndentFromRight(int dxaRight)
public int getIndentFromLeft()
public void setIndentFromLeft(int dxaLeft)
public int getFirstLineIndent()
public void setFirstLineIndent(int first)
public LineSpacingDescriptor getLineSpacing()
public void setLineSpacing(LineSpacingDescriptor lspd)
public int getSpacingBefore()
public void setSpacingBefore(int before)
public int getSpacingAfter()
public void setSpacingAfter(int after)
public boolean isKinsoku()
public void setKinsoku(boolean kinsoku)
public boolean isWordWrapped()
public void setWordWrapped(boolean wrap)
public int getFontAlignment()
public void setFontAlignment(int align)
public boolean isVertical()
public void setVertical(boolean vertical)
public boolean isBackward()
public void setBackward(boolean bward)
public BorderCode getTopBorder()
public void setTopBorder(BorderCode top)
public BorderCode getLeftBorder()
public void setLeftBorder(BorderCode left)
public BorderCode getBottomBorder()
public void setBottomBorder(BorderCode bottom)
public BorderCode getRightBorder()
public void setRightBorder(BorderCode right)
public BorderCode getBarBorder()
public void setBarBorder(BorderCode bar)
public ShadingDescriptor getShading()
public void setShading(ShadingDescriptor shd)
public DropCapSpecifier getDropCap()
public void setDropCap(DropCapSpecifier dcs)
public int getIlfo()
public int getIlvl()
public int getLvl()
public int getTabStopsNumber()
public int[] getTabStopsPositions()
public HWPFList getList()
public boolean isInList()
public ParagraphProperties cloneProperties()
public Paragraph copy()
copy
in interface Duplicatable
@Internal public ParagraphProperties getProps()
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.