Package io.keikai.doc.io.schema.docx
Class DOCXSectPr
java.lang.Object
io.keikai.doc.io.schema.docx.DOCXSectPr
- All Implemented Interfaces:
ICTElement
Internal Use Only.
Section Properties Definition.
Represents w:sectPr in xml.
- Author:
- Jamson Chan
-
Constructor Summary
ConstructorsConstructorDescriptionDOCXSectPr(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSectPr sectPr) Create a new SectPr by given CTSectPr. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBodyElements(List<AbstractBodyElement> elements) Adds the body elements to this section.Returns the body elements.org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSectPrgetCT()Returns the CT object of current element.Returns the footer id of default page.Returns the header id of default page.Returns the footer id of even page.Returns the header id of even page.Returns the footer id of first page.Returns the header id of first page.Returns the distance of footer from bottom edge.Returns the gutter margin.Returns the distance of header from top edge.Returns the page bottom margin.Returns the page left margin.Returns the page right margin.Returns the page top margin.Returns the page height.Returns the page width.org.openxmlformats.schemas.wordprocessingml.x2006.main.STSectionMark.EnumgetType()Returns the type of section start.booleanReturns whether to use different first header and footer.voidsetFooterFromBottom(Double footerFromBottom) Sets the distance of footer from bottom edge.voidSets the gutter margin.voidsetHeaderFromTop(Double headerFromTop) Sets the distance of header from top edge.voidsetMarginBottom(Double bottom) Sets the page bottom margin.voidsetMarginLeft(Double left) Sets the page left margin.voidsetMarginRight(Double right) Sets the page right margin.voidsetMarginTop(Double top) Sets the page top margin.voidsetPageHeight(Double height) Sets the page height.voidsetPageWidth(Double width) Sets the page width.voidsetTitlePg(boolean titlePg) Sets whether to use different first header and footer.voidsetType(org.openxmlformats.schemas.wordprocessingml.x2006.main.STSectionMark.Enum type) Sets the type of section start.
-
Constructor Details
-
DOCXSectPr
public DOCXSectPr(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSectPr sectPr) Create a new SectPr by given CTSectPr.- Parameters:
sectPr- the CTSectPr object.
-
-
Method Details
-
getCT
public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTSectPr getCT()Description copied from interface:ICTElementReturns the CT object of current element.- Specified by:
getCTin interfaceICTElement
-
addBodyElements
Adds the body elements to this section.- Parameters:
elements-
-
getBodyElements
Returns the body elements.- Returns:
- the body elements.
-
getPageWidth
Returns the page width.- Returns:
- the page width.
-
setPageWidth
Sets the page width.- Parameters:
width- the page width.
-
getPageHeight
Returns the page height.- Returns:
- the page height.
-
setPageHeight
Sets the page height.- Parameters:
height- the page height.
-
getMarginTop
Returns the page top margin.- Returns:
- the page top margin.
-
setMarginTop
Sets the page top margin.- Parameters:
top- the page top margin.
-
getMarginLeft
Returns the page left margin.- Returns:
- the page left margin.
-
setMarginLeft
Sets the page left margin.- Parameters:
left- the page left margin.
-
getMarginBottom
Returns the page bottom margin.- Returns:
- the page bottom margin.
-
setMarginBottom
Sets the page bottom margin.- Parameters:
bottom- the page bottom margin.
-
getMarginRight
Returns the page right margin.- Returns:
- the page right margin.
-
setMarginRight
Sets the page right margin.- Parameters:
right- the page right margin.
-
getHeaderFromTop
Returns the distance of header from top edge.- Returns:
- the distance of header from top edge.
-
setHeaderFromTop
Sets the distance of header from top edge.- Parameters:
headerFromTop- the distance of header from top edge.
-
getGutter
Returns the gutter margin.- Returns:
- the gutter margin.
-
setGutter
Sets the gutter margin.- Parameters:
gutter- the gutter margin.
-
isTitlePg
public boolean isTitlePg()Returns whether to use different first header and footer.- Returns:
- whether to use different first header and footer.
-
setTitlePg
public void setTitlePg(boolean titlePg) Sets whether to use different first header and footer.- Parameters:
titlePg- whether to use different first header and footer.
-
getType
public org.openxmlformats.schemas.wordprocessingml.x2006.main.STSectionMark.Enum getType()Returns the type of section start.- Returns:
- the type of section start.
-
setType
public void setType(org.openxmlformats.schemas.wordprocessingml.x2006.main.STSectionMark.Enum type) Sets the type of section start.- Parameters:
type- the type of section start.
-
getFirstHeaderId
Returns the header id of first page.- Returns:
- the header id of first page.
-
getDefaultHeaderId
Returns the header id of default page.- Returns:
- the header id of default page.
-
getEvenHeaderId
Returns the header id of even page.- Returns:
- the header id of even page.
-