/** Check if the page number format has a decoration (eg. dash). * * @param wordName word page number format * @return decoration type (one of the DECORATION_xxx constants). */ public static int getFoPageNumberDecoration(String wordName) { int ret = DECORATION_NONE; if ((wordName != null) && (wordName.length() > 0)) { if ("ArabicDash".equals(wordName) || NumberFormat.NUMBER_IN_DASH.value().equals(wordName)) { ret = DECORATION_DASH; } } return ret; }
public PageNumberInformation(SectPr sectPr) { CTPageNumber pageNumber = (sectPr != null ? sectPr.getPgNumType() : null); NumberFormat numberFormat = null; if (pageNumber != null) { if (pageNumber.getFmt() != null) { defaultNumberFormat = pageNumber.getFmt().value(); } if (pageNumber.getStart() != null) { pageStart = pageNumber.getStart().intValue(); } } }
/** Check if the page number format has a decoration (eg. dash). * * @param wordName word page number format * @return decoration type (one of the DECORATION_xxx constants). */ public static int getFoPageNumberDecoration(String wordName) { int ret = DECORATION_NONE; if ((wordName != null) && (wordName.length() > 0)) { if ("ArabicDash".equals(wordName) || NumberFormat.NUMBER_IN_DASH.value().equals(wordName)) { ret = DECORATION_DASH; } } return ret; }
public PageNumberInformation(SectPr sectPr) { CTPageNumber pageNumber = (sectPr != null ? sectPr.getPgNumType() : null); NumberFormat numberFormat = null; if (pageNumber != null) { if (pageNumber.getFmt() != null) { defaultNumberFormat = pageNumber.getFmt().value(); } if (pageNumber.getStart() != null) { pageStart = pageNumber.getStart().intValue(); } } }