public TocEntry(PropertyResolver propertyResolver, PageDimensions pageDimensions, STTabTlc leader) { this.propertyResolver = propertyResolver; this.writableWidthTwips = pageDimensions.getWritableWidthTwips(); this.leader = leader; }
double writableWidthTwips = page.getWritableWidthTwips(); log.debug("writableWidthTwips: " + writableWidthTwips);
pageDimensions.getWritableWidthTwips(); } catch (RuntimeException e) { throw new TocException("margins or page width not defined in \n" + XmlUtils.marshaltoString(sectPr));
List<SectionWrapper> sections = docx.getPackage().getDocumentModel().getSections(); PageDimensions page = sections.get(sections.size() - 1).getPageDimensions(); double writableWidthTwips = page.getWritableWidthTwips(); long cx = getSizeInfo(attributes, "width", page.getWritableWidthTwips()); long cy = cx > 0 ? getSizeInfo(attributes, "height", page.getWritableHeightTwips()) : -1; long longMaxWidth = getSizeInfo(attributes, "max-width", page.getWritableWidthTwips()); int maxWidth = longMaxWidth > 0 && longMaxWidth <= Integer.MAX_VALUE ? (int) longMaxWidth : -1;
public TocEntry(PropertyResolver propertyResolver, PageDimensions pageDimensions, STTabTlc leader) { this.propertyResolver = propertyResolver; this.writableWidthTwips = pageDimensions.getWritableWidthTwips(); this.leader = leader; }
double writableWidthTwips = page.getWritableWidthTwips(); log.debug("writableWidthTwips: " + writableWidthTwips);
if (reportRegion.isTabulatedRegion()) { mainDocumentPart.addParagraphOfText(""); int writableWidthTwips = wordMLPackage.getDocumentModel().getSections().get(0).getPageDimensions().getWritableWidthTwips(); int cols = reportRegion.getRegionProperties().size(); int cellWidthTwips = new Double(Math.floor((writableWidthTwips / cols))).intValue();
pageDimensions.getWritableWidthTwips(); } catch (RuntimeException e) { throw new TocException("margins or page width not defined in \n" + XmlUtils.marshaltoString(sectPr));