Package io.keikai.doc.io.schema.docx
Class DOCXSettings
- java.lang.Object
-
- io.keikai.doc.io.schema.docx.DOCXSettings
-
- All Implemented Interfaces:
ICTElement,IXWPFElement
public class DOCXSettings extends java.lang.Object implements IXWPFElement
Internal Use Only.Document Settings Definition.
Represents the xml file at
word/settings.xml.- Author:
- Jamson Chan
-
-
Constructor Summary
Constructors Constructor Description DOCXSettings(org.apache.poi.xwpf.usermodel.XWPFSettings xwpfSettings, DOCXDocument parent)Create a new Document Settings.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSettingsgetCT()Returns the CT object of current element.DOCXDocumentgetParent()Returns the parent element of current element.org.apache.poi.xwpf.usermodel.XWPFSettingsgetXWPF()Returns the XWPF object of current element.booleanisEvenAndOddHeaders()Returns whether shows different header and footer of even and odd pages in this document.booleanisGutterAtTop()Returns whether the gutter is at top of this document, if false, the gutter is at left.voidsetEvenAndOddHeaders(boolean value)Sets whether shows different header and footer of even and odd pages in this document.voidsetGutterAtTop(boolean value)Sets whether the gutter is at top of this document, if false, the gutter is at left.
-
-
-
Constructor Detail
-
DOCXSettings
public DOCXSettings(org.apache.poi.xwpf.usermodel.XWPFSettings xwpfSettings, DOCXDocument parent)Create a new Document Settings.- Parameters:
xwpfSettings- theXWPFSettingsobject.parent- theDOCXDocument.
-
-
Method Detail
-
getCT
public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSettings getCT()
Description copied from interface:ICTElementReturns the CT object of current element.- Specified by:
getCTin interfaceICTElement
-
getXWPF
public org.apache.poi.xwpf.usermodel.XWPFSettings getXWPF()
Description copied from interface:IXWPFElementReturns the XWPF object of current element.- Specified by:
getXWPFin interfaceIXWPFElement
-
getParent
public DOCXDocument getParent()
Description copied from interface:IXWPFElementReturns the parent element of current element.- Specified by:
getParentin interfaceIXWPFElement
-
isEvenAndOddHeaders
public boolean isEvenAndOddHeaders()
Returns whether shows different header and footer of even and odd pages in this document.- Returns:
- whether shows different header and footer of even and odd pages in this document.
-
setEvenAndOddHeaders
public void setEvenAndOddHeaders(boolean value)
Sets whether shows different header and footer of even and odd pages in this document.- Parameters:
value- whether shows different header and footer of even and odd pages in this document.
-
isGutterAtTop
public boolean isGutterAtTop()
Returns whether the gutter is at top of this document, if false, the gutter is at left.- Returns:
- whether the gutter is at top of this document.
-
setGutterAtTop
public void setGutterAtTop(boolean value)
Sets whether the gutter is at top of this document, if false, the gutter is at left.- Parameters:
value- whether the gutter is at top of this document.
-
-