org.apache.poi.hwpf.usermodel
Class Paragraph
java.lang.Object
org.apache.poi.hwpf.usermodel.Range
org.apache.poi.hwpf.usermodel.Paragraph
- All Implemented Interfaces:
- java.lang.Cloneable
- Direct Known Subclasses:
- ListEntry, TableRow
public class Paragraph
- extends Range
- implements java.lang.Cloneable
Fields inherited from class org.apache.poi.hwpf.usermodel.Range |
_characters, _charEnd, _charRangeFound, _charStart, _doc, _end, _paragraphs, _parEnd, _parRangeFound, _parStart, _sectionEnd, _sections, _sectionStart, _start, _text, _textEnd, _textRangeFound, _textStart, TYPE_CHARACTER, TYPE_LISTENTRY, TYPE_PARAGRAPH, TYPE_SECTION, TYPE_TABLE, TYPE_TEXT, TYPE_UNDEFINED |
Methods inherited from class org.apache.poi.hwpf.usermodel.Range |
adjustFIB, delete, getCharacterRun, getDocument, getEndOffset, getParagraph, getSection, getStartOffset, getTable, initAll, insertAfter, insertAfter, insertAfter, insertAfter, insertAfter, insertBefore, insertBefore, insertBefore, insertBefore, insertBefore, insertBefore, numCharacterRuns, numParagraphs, numSections, replaceText, text, usesUnicode |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SPRM_JC
public static final short SPRM_JC
- See Also:
- Constant Field Values
SPRM_FSIDEBYSIDE
public static final short SPRM_FSIDEBYSIDE
- See Also:
- Constant Field Values
SPRM_FKEEP
public static final short SPRM_FKEEP
- See Also:
- Constant Field Values
SPRM_FKEEPFOLLOW
public static final short SPRM_FKEEPFOLLOW
- See Also:
- Constant Field Values
SPRM_FPAGEBREAKBEFORE
public static final short SPRM_FPAGEBREAKBEFORE
- See Also:
- Constant Field Values
SPRM_BRCL
public static final short SPRM_BRCL
- See Also:
- Constant Field Values
SPRM_BRCP
public static final short SPRM_BRCP
- See Also:
- Constant Field Values
SPRM_ILVL
public static final short SPRM_ILVL
- See Also:
- Constant Field Values
SPRM_ILFO
public static final short SPRM_ILFO
- See Also:
- Constant Field Values
SPRM_FNOLINENUMB
public static final short SPRM_FNOLINENUMB
- See Also:
- Constant Field Values
SPRM_CHGTABSPAPX
public static final short SPRM_CHGTABSPAPX
- See Also:
- Constant Field Values
SPRM_DXARIGHT
public static final short SPRM_DXARIGHT
- See Also:
- Constant Field Values
SPRM_DXALEFT
public static final short SPRM_DXALEFT
- See Also:
- Constant Field Values
SPRM_DXALEFT1
public static final short SPRM_DXALEFT1
- See Also:
- Constant Field Values
SPRM_DYALINE
public static final short SPRM_DYALINE
- See Also:
- Constant Field Values
SPRM_DYABEFORE
public static final short SPRM_DYABEFORE
- See Also:
- Constant Field Values
SPRM_DYAAFTER
public static final short SPRM_DYAAFTER
- See Also:
- Constant Field Values
SPRM_CHGTABS
public static final short SPRM_CHGTABS
- See Also:
- Constant Field Values
SPRM_FINTABLE
public static final short SPRM_FINTABLE
- See Also:
- Constant Field Values
SPRM_FTTP
public static final short SPRM_FTTP
- See Also:
- Constant Field Values
SPRM_DXAABS
public static final short SPRM_DXAABS
- See Also:
- Constant Field Values
SPRM_DYAABS
public static final short SPRM_DYAABS
- See Also:
- Constant Field Values
SPRM_DXAWIDTH
public static final short SPRM_DXAWIDTH
- See Also:
- Constant Field Values
SPRM_PC
public static final short SPRM_PC
- See Also:
- Constant Field Values
SPRM_WR
public static final short SPRM_WR
- See Also:
- Constant Field Values
SPRM_BRCTOP
public static final short SPRM_BRCTOP
- See Also:
- Constant Field Values
SPRM_BRCLEFT
public static final short SPRM_BRCLEFT
- See Also:
- Constant Field Values
SPRM_BRCBOTTOM
public static final short SPRM_BRCBOTTOM
- See Also:
- Constant Field Values
SPRM_BRCRIGHT
public static final short SPRM_BRCRIGHT
- See Also:
- Constant Field Values
SPRM_BRCBAR
public static final short SPRM_BRCBAR
- See Also:
- Constant Field Values
SPRM_FNOAUTOHYPH
public static final short SPRM_FNOAUTOHYPH
- See Also:
- Constant Field Values
SPRM_WHEIGHTABS
public static final short SPRM_WHEIGHTABS
- See Also:
- Constant Field Values
SPRM_DCS
public static final short SPRM_DCS
- See Also:
- Constant Field Values
SPRM_SHD
public static final short SPRM_SHD
- See Also:
- Constant Field Values
SPRM_DYAFROMTEXT
public static final short SPRM_DYAFROMTEXT
- See Also:
- Constant Field Values
SPRM_DXAFROMTEXT
public static final short SPRM_DXAFROMTEXT
- See Also:
- Constant Field Values
SPRM_FLOCKED
public static final short SPRM_FLOCKED
- See Also:
- Constant Field Values
SPRM_FWIDOWCONTROL
public static final short SPRM_FWIDOWCONTROL
- See Also:
- Constant Field Values
SPRM_RULER
public static final short SPRM_RULER
- See Also:
- Constant Field Values
SPRM_FKINSOKU
public static final short SPRM_FKINSOKU
- See Also:
- Constant Field Values
SPRM_FWORDWRAP
public static final short SPRM_FWORDWRAP
- See Also:
- Constant Field Values
SPRM_FOVERFLOWPUNCT
public static final short SPRM_FOVERFLOWPUNCT
- See Also:
- Constant Field Values
SPRM_FTOPLINEPUNCT
public static final short SPRM_FTOPLINEPUNCT
- See Also:
- Constant Field Values
SPRM_AUTOSPACEDE
public static final short SPRM_AUTOSPACEDE
- See Also:
- Constant Field Values
SPRM_AUTOSPACEDN
public static final short SPRM_AUTOSPACEDN
- See Also:
- Constant Field Values
SPRM_WALIGNFONT
public static final short SPRM_WALIGNFONT
- See Also:
- Constant Field Values
SPRM_FRAMETEXTFLOW
public static final short SPRM_FRAMETEXTFLOW
- See Also:
- Constant Field Values
SPRM_ANLD
public static final short SPRM_ANLD
- See Also:
- Constant Field Values
SPRM_PROPRMARK
public static final short SPRM_PROPRMARK
- See Also:
- Constant Field Values
SPRM_OUTLVL
public static final short SPRM_OUTLVL
- See Also:
- Constant Field Values
SPRM_FBIDI
public static final short SPRM_FBIDI
- See Also:
- Constant Field Values
SPRM_FNUMRMLNS
public static final short SPRM_FNUMRMLNS
- See Also:
- Constant Field Values
SPRM_CRLF
public static final short SPRM_CRLF
- See Also:
- Constant Field Values
SPRM_NUMRM
public static final short SPRM_NUMRM
- See Also:
- Constant Field Values
SPRM_USEPGSUSETTINGS
public static final short SPRM_USEPGSUSETTINGS
- See Also:
- Constant Field Values
SPRM_FADJUSTRIGHT
public static final short SPRM_FADJUSTRIGHT
- See Also:
- Constant Field Values
_istd
protected short _istd
_props
protected ParagraphProperties _props
_papx
protected SprmBuffer _papx
Paragraph
protected Paragraph(int startIdx,
int endIdx,
Table parent)
Paragraph
protected Paragraph(PAPX papx,
Range parent)
getStyleIndex
public short getStyleIndex()
type
public int type()
- Description copied from class:
Range
- This method is used to determine the type. Handy for switch statements
compared to the instanceof operator.
- Overrides:
type
in class Range
- Returns:
- A TYPE constant.
isInTable
public boolean isInTable()
isTableRowEnd
public boolean isTableRowEnd()
getTableLevel
public int getTableLevel()
isEmbeddedCellMark
public boolean isEmbeddedCellMark()
getJustification
public int getJustification()
setJustification
public void setJustification(byte jc)
keepOnPage
public boolean keepOnPage()
setKeepOnPage
public void setKeepOnPage(boolean fKeep)
keepWithNext
public boolean keepWithNext()
setKeepWithNext
public void setKeepWithNext(boolean fKeepFollow)
pageBreakBefore
public boolean pageBreakBefore()
setPageBreakBefore
public void setPageBreakBefore(boolean fPageBreak)
isLineNotNumbered
public boolean isLineNotNumbered()
setLineNotNumbered
public void setLineNotNumbered(boolean fNoLnn)
isSideBySide
public boolean isSideBySide()
setSideBySide
public void setSideBySide(boolean fSideBySide)
isAutoHyphenated
public boolean isAutoHyphenated()
setAutoHyphenated
public void setAutoHyphenated(boolean autoHyph)
isWidowControlled
public boolean isWidowControlled()
setWidowControl
public void setWidowControl(boolean widowControl)
getIndentFromRight
public int getIndentFromRight()
setIndentFromRight
public void setIndentFromRight(int dxaRight)
getIndentFromLeft
public int getIndentFromLeft()
setIndentFromLeft
public void setIndentFromLeft(int dxaLeft)
getFirstLineIndent
public int getFirstLineIndent()
setFirstLineIndent
public void setFirstLineIndent(int first)
getLineSpacing
public LineSpacingDescriptor getLineSpacing()
setLineSpacing
public void setLineSpacing(LineSpacingDescriptor lspd)
getSpacingBefore
public int getSpacingBefore()
setSpacingBefore
public void setSpacingBefore(int before)
getSpacingAfter
public int getSpacingAfter()
setSpacingAfter
public void setSpacingAfter(int after)
isKinsoku
public boolean isKinsoku()
setKinsoku
public void setKinsoku(boolean kinsoku)
isWordWrapped
public boolean isWordWrapped()
setWordWrapped
public void setWordWrapped(boolean wrap)
getFontAlignment
public int getFontAlignment()
setFontAlignment
public void setFontAlignment(int align)
isVertical
public boolean isVertical()
setVertical
public void setVertical(boolean vertical)
isBackward
public boolean isBackward()
setBackward
public void setBackward(boolean bward)
getTopBorder
public BorderCode getTopBorder()
setTopBorder
public void setTopBorder(BorderCode top)
getLeftBorder
public BorderCode getLeftBorder()
setLeftBorder
public void setLeftBorder(BorderCode left)
getBottomBorder
public BorderCode getBottomBorder()
setBottomBorder
public void setBottomBorder(BorderCode bottom)
getRightBorder
public BorderCode getRightBorder()
setRightBorder
public void setRightBorder(BorderCode right)
getBarBorder
public BorderCode getBarBorder()
setBarBorder
public void setBarBorder(BorderCode bar)
getShading
public ShadingDescriptor getShading()
setShading
public void setShading(ShadingDescriptor shd)
getDropCap
public DropCapSpecifier getDropCap()
setDropCap
public void setDropCap(DropCapSpecifier dcs)
getIlfo
public int getIlfo()
getIlvl
public int getIlvl()
cloneProperties
public ParagraphProperties cloneProperties()
- clone the ParagraphProperties object associated with this Paragraph so
that you can apply the same properties to another paragraph.
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Overrides:
clone
in class java.lang.Object
- Throws:
java.lang.CloneNotSupportedException
Copyright 2008 The Apache Software Foundation or
its licensors, as applicable.