org.apache.poi.xslf.usermodel.XSLFSlide.getSpTree()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(184)

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

XSLFSlide.getSpTree介绍

暂无

代码示例

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

  1. /**
  2. * Copy placeholders from this layout to the destination slide
  3. *
  4. * @param slide destination slide
  5. */
  6. @SuppressWarnings("WeakerAccess")
  7. public void copyLayout(XSLFSlide slide) {
  8. for (XSLFShape sh : getShapes()) {
  9. if (sh instanceof XSLFTextShape) {
  10. XSLFTextShape tsh = (XSLFTextShape) sh;
  11. Placeholder ph = tsh.getTextType();
  12. if (ph == null) continue;
  13. switch (ph) {
  14. // these are special and not copied by default
  15. case DATETIME:
  16. case SLIDE_NUMBER:
  17. case FOOTER:
  18. break;
  19. default:
  20. slide.getSpTree().addNewSp().set(tsh.getXmlObject().copy());
  21. }
  22. }
  23. }
  24. }

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

  1. /**
  2. * Copy placeholders from this layout to the destination slide
  3. *
  4. * @param slide destination slide
  5. */
  6. public void copyLayout(XSLFSlide slide) {
  7. for (XSLFShape sh : getShapes()) {
  8. if (sh instanceof XSLFTextShape) {
  9. XSLFTextShape tsh = (XSLFTextShape) sh;
  10. Placeholder ph = tsh.getTextType();
  11. if (ph == null) continue;
  12. switch (ph) {
  13. // these are special and not copied by default
  14. case DATETIME:
  15. case SLIDE_NUMBER:
  16. case FOOTER:
  17. break;
  18. default:
  19. slide.getSpTree().addNewSp().set(tsh.getXmlObject().copy());
  20. }
  21. }
  22. }
  23. }

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

  1. /**
  2. * Copy placeholders from this layout to the destination slide
  3. *
  4. * @param slide destination slide
  5. */
  6. @SuppressWarnings("WeakerAccess")
  7. public void copyLayout(XSLFSlide slide) {
  8. for (XSLFShape sh : getShapes()) {
  9. if (sh instanceof XSLFTextShape) {
  10. XSLFTextShape tsh = (XSLFTextShape) sh;
  11. Placeholder ph = tsh.getTextType();
  12. if (ph == null) continue;
  13. switch (ph) {
  14. // these are special and not copied by default
  15. case DATETIME:
  16. case SLIDE_NUMBER:
  17. case FOOTER:
  18. break;
  19. default:
  20. slide.getSpTree().addNewSp().set(tsh.getXmlObject().copy());
  21. }
  22. }
  23. }
  24. }

相关文章