jc.setVal(en);
}
+ /**
+ * @return The raw alignment value, {@link #getAlignment()} is suggested
+ */
+ public int getFontAlignment() {
+ return getAlignment().getValue();
+ }
+ public void setFontAlignment(int align) {
+ ParagraphAlignment pAlign = ParagraphAlignment.valueOf(align);
+ setAlignment(pAlign);
+ }
+
/**
* Returns the text vertical alignment which shall be applied to text in
* this paragraph.
return (indentation != null && indentation.isSetLeft()) ? indentation.getLeft().intValue()
: -1;
}
-
+
/**
* Specifies the indentation which shall be placed between the right text
* margin for this paragraph and the right edge of that paragraph's content
: -1;
}
+ public int getIndentFromLeft() {
+ return getIndentFromLeft();
+ }
+ public void setIndentFromLeft(int dxaLeft) {
+ setIndentationLeft(dxaLeft);
+ }
+
+ public int getIndentFromRight() {
+ return getIndentFromRight();
+ }
+ public void setIndentFromRight(int dxaRight) {
+ setIndentationRight(dxaRight);
+ }
+
+ public int getFirstLineIndent() {
+ return getIndentationFirstLine();
+ }
+ public void setFirstLineIndent(int first) {
+ setIndentationFirstLine(first);
+ }
+
/**
* This element specifies whether a consumer shall break Latin text which
* exceeds the text extents of a line by breaking the word across two lines
*
* @param wrap - boolean
*/
- public void setWordWrap(boolean wrap) {
+ public void setWordWrapped(boolean wrap) {
CTOnOff wordWrap = getCTPPr().isSetWordWrap() ? getCTPPr()
.getWordWrap() : getCTPPr().addNewWordWrap();
if (wrap)
else
wordWrap.unsetVal();
}
+ @Deprecated
+ public void setWordWrap(boolean wrap) {
+ setWordWrapped(wrap);
+ }
/**
* This element specifies whether a consumer shall break Latin text which
*
* @return boolean
*/
- public boolean isWordWrap() {
+ public boolean isWordWrapped() {
CTOnOff wordWrap = getCTPPr().isSetWordWrap() ? getCTPPr()
.getWordWrap() : null;
if (wordWrap != null) {
}
return false;
}
+ public boolean isWordWrap() {
+ return isWordWrapped();
+ }
/**
* This method provides a style to the paragraph
public void setSideBySide(boolean fSideBySide);
*/
+ 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 boolean isLineNotNumbered();
public void setLineNotNumbered(boolean fNoLnn);
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 int getSpacingBefore();
public void setSpacingBefore(int before);
// public LineSpacingDescriptor getLineSpacing();
// public void setLineSpacing(LineSpacingDescriptor lspd);
-/*
- public boolean isWordWrapped();
- public void setWordWrapped(boolean wrap);
-
public int getFontAlignment();
public void setFontAlignment(int align);
+ public boolean isWordWrapped();
+ public void setWordWrapped(boolean wrap);
+
+/*
public boolean isVertical();
public void setVertical(boolean vertical);
public void setBackward(boolean bward);
*/
+ // TODO Make the HWPF and XWPF interface wrappers compatible for these
/*
public BorderCode getTopBorder();
public void setTopBorder(BorderCode top);