gpt4 book ai didi

org.apache.poi.xwpf.usermodel.XWPFHeaderFooter._getHdrFtr()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-26 07:47:05 27 4
gpt4 key购买 nike

本文整理了Java中org.apache.poi.xwpf.usermodel.XWPFHeaderFooter._getHdrFtr()方法的一些代码示例,展示了XWPFHeaderFooter._getHdrFtr()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XWPFHeaderFooter._getHdrFtr()方法的具体详情如下:
包路径:org.apache.poi.xwpf.usermodel.XWPFHeaderFooter
类名称:XWPFHeaderFooter
方法名:_getHdrFtr

XWPFHeaderFooter._getHdrFtr介绍

暂无

代码示例

代码示例来源:origin: org.apache.poi/poi-ooxml

/**
 * save and commit footer
 */
@Override
protected void commit() throws IOException {
  XmlOptions xmlOptions = new XmlOptions(DEFAULT_XML_OPTIONS);
  xmlOptions.setSaveSyntheticDocumentElement(new QName(CTNumbering.type.getName().getNamespaceURI(), "ftr"));
  PackagePart part = getPackagePart();
  OutputStream out = part.getOutputStream();
  super._getHdrFtr().save(out, xmlOptions);
  out.close();
}

代码示例来源:origin: org.apache.poi/poi-ooxml

/**
 * save and commit footer
 */
@Override
protected void commit() throws IOException {
  XmlOptions xmlOptions = new XmlOptions(DEFAULT_XML_OPTIONS);
  xmlOptions.setSaveSyntheticDocumentElement(new QName(CTNumbering.type.getName().getNamespaceURI(), "hdr"));
  PackagePart part = getPackagePart();
  OutputStream out = part.getOutputStream();
  super._getHdrFtr().save(out, xmlOptions);
  out.close();
}

代码示例来源:origin: org.apache.poi/poi-ooxml

CTHdrFtr ftr = wrapper._getHdrFtr();
if (paragraphs != null) {
  for (int i = 0; i < paragraphs.length; i++) {

代码示例来源:origin: com.github.livesense/org.liveSense.framework.xdocreport

/**
 * Returns the list of {@link IBodyElement} of the given header/footer. We do that because
 * {@link XWPFHeaderFooter#getBodyElements()} doesn't contains the // <w:sdt><w:sdtContent>
 * <p
 * (see JUnit Docx4j_GettingStarted, DocXperT_Output_4_3, Issue222 which defines page number in the <w:sdt. ...
 * 
 * @param part
 * @return
 */
protected List<IBodyElement> getBodyElements( XWPFHeaderFooter part )
{
  List<IBodyElement> bodyElements = new ArrayList<IBodyElement>();
  XmlTokenSource headerFooter = part._getHdrFtr();
  addBodyElements( headerFooter, part, bodyElements );
  return bodyElements;
}

代码示例来源:origin: fr.opensagres.xdocreport/org.apache.poi.xwpf.converter.core

/**
 * Returns the list of {@link IBodyElement} of the given header/footer. We do that because
 * {@link XWPFHeaderFooter#getBodyElements()} doesn't contains the // <w:sdt><w:sdtContent>
 * <p
 * (see JUnit Docx4j_GettingStarted, DocXperT_Output_4_3, Issue222 which defines page number in the <w:sdt. ...
 * 
 * @param part
 * @return
 */
protected List<IBodyElement> getBodyElements( XWPFHeaderFooter part )
{
  List<IBodyElement> bodyElements = new ArrayList<IBodyElement>();
  XmlTokenSource headerFooter = part._getHdrFtr();
  addBodyElements( headerFooter, part, bodyElements );
  return bodyElements;
}

代码示例来源:origin: fr.opensagres.xdocreport/org.apache.poi.xwpf.converter.core-gae

/**
 * Returns the list of {@link IBodyElement} of the given header/footer. We do that because
 * {@link XWPFHeaderFooter#getBodyElements()} doesn't contains the // <w:sdt><w:sdtContent>
 * <p
 * (see JUnit Docx4j_GettingStarted, DocXperT_Output_4_3, Issue222 which defines page number in the <w:sdt. ...
 * 
 * @param part
 * @return
 */
protected List<IBodyElement> getBodyElements( XWPFHeaderFooter part )
{
  List<IBodyElement> bodyElements = new ArrayList<IBodyElement>();
  XmlTokenSource headerFooter = part._getHdrFtr();
  addBodyElements( headerFooter, part, bodyElements );
  return bodyElements;
}

代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev

/**
 * save and commit footer
 */
@Override
protected void commit() throws IOException {
  XmlOptions xmlOptions = new XmlOptions(DEFAULT_XML_OPTIONS);
  xmlOptions.setSaveSyntheticDocumentElement(new QName(CTNumbering.type.getName().getNamespaceURI(), "ftr"));
  Map<String,String> map = new HashMap<String, String>();
  map.put("http://schemas.openxmlformats.org/markup-compatibility/2006", "ve");
  map.put("urn:schemas-microsoft-com:office:office", "o");
  map.put("http://schemas.openxmlformats.org/officeDocument/2006/relationships", "r");
  map.put("http://schemas.openxmlformats.org/officeDocument/2006/math", "m");
  map.put("urn:schemas-microsoft-com:vml", "v");
  map.put("http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing", "wp");
  map.put("urn:schemas-microsoft-com:office:word", "w10");
  map.put("http://schemas.openxmlformats.org/wordprocessingml/2006/main", "w");
  map.put("http://schemas.microsoft.com/office/word/2006/wordml", "wne");
  xmlOptions.setSaveSuggestedPrefixes(map);
  PackagePart part = getPackagePart();
  OutputStream out = part.getOutputStream();
  super._getHdrFtr().save(out, xmlOptions);
  out.close();
}

代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev

/**
 * save and commit footer
 */
@Override
protected void commit() throws IOException {
  XmlOptions xmlOptions = new XmlOptions(DEFAULT_XML_OPTIONS);
  xmlOptions.setSaveSyntheticDocumentElement(new QName(CTNumbering.type.getName().getNamespaceURI(), "hdr"));
  Map<String,String> map = new HashMap<String, String>();
  map.put("http://schemas.openxmlformats.org/markup-compatibility/2006", "ve");
  map.put("urn:schemas-microsoft-com:office:office", "o");
  map.put("http://schemas.openxmlformats.org/officeDocument/2006/relationships", "r");
  map.put("http://schemas.openxmlformats.org/officeDocument/2006/math", "m");
  map.put("urn:schemas-microsoft-com:vml", "v");
  map.put("http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing", "wp");
  map.put("urn:schemas-microsoft-com:office:word", "w10");
  map.put("http://schemas.openxmlformats.org/wordprocessingml/2006/main", "w");
  map.put("http://schemas.microsoft.com/office/word/2006/wordml", "wne");
  xmlOptions.setSaveSuggestedPrefixes(map);
  PackagePart part = getPackagePart();
  OutputStream out = part.getOutputStream();
  super._getHdrFtr().save(out, xmlOptions);
  out.close();
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

/**
 * save and commit footer
 */
@Override
protected void commit() throws IOException {
  XmlOptions xmlOptions = new XmlOptions(DEFAULT_XML_OPTIONS);
  xmlOptions.setSaveSyntheticDocumentElement(new QName(CTNumbering.type.getName().getNamespaceURI(), "ftr"));
  PackagePart part = getPackagePart();
  OutputStream out = part.getOutputStream();
  super._getHdrFtr().save(out, xmlOptions);
  out.close();
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

/**
 * save and commit footer
 */
@Override
protected void commit() throws IOException {
  XmlOptions xmlOptions = new XmlOptions(DEFAULT_XML_OPTIONS);
  xmlOptions.setSaveSyntheticDocumentElement(new QName(CTNumbering.type.getName().getNamespaceURI(), "hdr"));
  PackagePart part = getPackagePart();
  OutputStream out = part.getOutputStream();
  super._getHdrFtr().save(out, xmlOptions);
  out.close();
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

CTHdrFtr ftr = wrapper._getHdrFtr();
if (paragraphs != null) {
  for (int i = 0; i < paragraphs.length; i++) {

代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev

CTHdrFtr ftr = wrapper._getHdrFtr();
if (paragraphs != null) {
  for (int i = 0 ; i < paragraphs.length ; i++) {

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com