Esempio n. 1
0
  /**
   * Construct a SpreadsheetML slide from a package part
   *
   * @param part the package part holding the slide data, the content type must be <code>
   *     application/vnd.openxmlformats-officedocument.slide+xml</code>
   * @param rel the package relationship holding this slide, the relationship type must be
   *     http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide
   */
  XSLFSlide(PackagePart part, PackageRelationship rel) throws IOException, XmlException {
    super(part, rel);

    SldDocument doc = SldDocument.Factory.parse(getPackagePart().getInputStream());
    _slide = doc.getSld();
    setCommonSlideData(_slide.getCSld());
  }
Esempio n. 2
0
 /** @return the information about background appearance of this slide */
 @Override
 public XSLFBackground getBackground() {
   CTBackground bg = _slide.getCSld().getBg();
   if (bg != null) {
     return new XSLFBackground(bg, this);
   } else {
     return getMasterSheet().getBackground();
   }
 }
Esempio n. 3
0
 /** Create a new slide */
 XSLFSlide() {
   super();
   _slide = prototype();
   setCommonSlideData(_slide.getCSld());
 }
Esempio n. 4
0
 public XSLFSlide(CTSlide slide, CTSlideIdListEntry slideId, SlideShow parent) {
   super(parent);
   this.slide = slide;
   this.slideId = slideId;
   this.data = new XSLFCommonSlideData(slide.getCSld());
 }