Package org.openxmlformats.schemas.wordprocessingml.x2006.main

Examples of org.openxmlformats.schemas.wordprocessingml.x2006.main.CTOnOff


     * @param split - if true, don't allow rows to be split. If false, allow
     *        rows to be split.
     */
    public void setCantSplitRow(boolean split) {
  CTTrPr trpr = getTrPr();
  CTOnOff onoff = trpr.addNewCantSplit();
  onoff.setVal(split ? STOnOff.ON : STOnOff.OFF);
    }
View Full Code Here


     */
    public boolean isCantSplitRow() {
  boolean isCant = false;
  CTTrPr trpr = getTrPr();
  if (trpr.sizeOfCantSplitArray() > 0) {
      CTOnOff onoff = trpr.getCantSplitList().get(0);
      isCant = onoff.getVal().equals(STOnOff.ON);
  }
  return isCant;
    }
View Full Code Here

     * @param repeat - if TRUE, repeat header row at the top of each page of table;
     *                 if FALSE, don't repeat header row.
     */
    public void setRepeatHeader(boolean repeat) {
  CTTrPr trpr = getTrPr();
  CTOnOff onoff = trpr.addNewTblHeader();
  onoff.setVal(repeat ? STOnOff.ON : STOnOff.OFF);
    }
View Full Code Here

     */
    public boolean isRepeatHeader() {
  boolean repeat = false;
  CTTrPr trpr = getTrPr();
  if (trpr.sizeOfTblHeaderArray() > 0) {
      CTOnOff rpt = trpr.getTblHeaderList().get(0);
      repeat = rpt.getVal().equals(STOnOff.ON);
  }
  return repeat;
    }
View Full Code Here

     * @param pageBreak -
     *                  boolean value
     */
    public void setPageBreak(boolean pageBreak) {
        CTPPr ppr = getCTPPr();
        CTOnOff ct_pageBreak = ppr.isSetPageBreakBefore() ? ppr
                .getPageBreakBefore() : ppr.addNewPageBreakBefore();
        if (pageBreak)
            ct_pageBreak.setVal(STOnOff.TRUE);
        else
            ct_pageBreak.setVal(STOnOff.FALSE);
    }
View Full Code Here

     *
     * @return boolean - if page break is set
     */
    public boolean isPageBreak() {
        CTPPr ppr = getCTPPr();
        CTOnOff ct_pageBreak = ppr.isSetPageBreakBefore() ? ppr
                .getPageBreakBefore() : null;
        if (ct_pageBreak != null
                && ct_pageBreak.getVal().intValue() == STOnOff.INT_TRUE) {
            return true;
        }
        return false;
    }
View Full Code Here

     * line (breaking on the word level).
     *
     * @param wrap - boolean
     */
    public void setWordWrap(boolean wrap) {
        CTOnOff wordWrap = getCTPPr().isSetWordWrap() ? getCTPPr()
                .getWordWrap() : getCTPPr().addNewWordWrap();
        if (wrap)
            wordWrap.setVal(STOnOff.TRUE);
        else
            wordWrap.unsetVal();
    }
View Full Code Here

     * line (breaking on the word level).
     *
     * @return boolean
     */
    public boolean isWordWrap() {
        CTOnOff wordWrap = getCTPPr().isSetWordWrap() ? getCTPPr()
                .getWordWrap() : null;
        if (wordWrap != null) {
            return (wordWrap.getVal() == STOnOff.ON
                    || wordWrap.getVal() == STOnOff.TRUE || wordWrap.getVal() == STOnOff.X_1) ? true
                    : false;
        }
        return false;
    }
View Full Code Here

     * @param pageBreak -
     *                  boolean value
     */
    public void setPageBreak(boolean pageBreak) {
        CTPPr ppr = getCTPPr();
        CTOnOff ct_pageBreak = ppr.isSetPageBreakBefore() ? ppr
                .getPageBreakBefore() : ppr.addNewPageBreakBefore();
        if (pageBreak)
            ct_pageBreak.setVal(STOnOff.TRUE);
        else
            ct_pageBreak.setVal(STOnOff.FALSE);
    }
View Full Code Here

     *
     * @return boolean - if page break is set
     */
    public boolean isPageBreak() {
        CTPPr ppr = getCTPPr();
        CTOnOff ct_pageBreak = ppr.isSetPageBreakBefore() ? ppr
                .getPageBreakBefore() : null;
        if (ct_pageBreak != null
                && ct_pageBreak.getVal().intValue() == STOnOff.INT_TRUE) {
            return true;
        }
        return false;
    }
View Full Code Here

TOP

Related Classes of org.openxmlformats.schemas.wordprocessingml.x2006.main.CTOnOff

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.