Package org.odftoolkit.simple.presentation

Examples of org.odftoolkit.simple.presentation.Slide


        navigation.nextSelection();
        count++;
      }
      Assert.assertEquals(3, count);

      Slide slide = document.getSlideByIndex(0);
      navigation = new TextNavigation("RANDOM COLORED TEXTBOX", slide.getOdfElement());
      count = 0;
      while (navigation.hasNext()) {
        navigation.nextSelection();
        count++;
      }
View Full Code Here


      return null;
    }
    NodeList slideNodes = contentRoot.getElementsByTagNameNS(OdfDocumentNamespace.DRAW.getUri(), "page");
    for (int i = 0; i < slideNodes.getLength(); i++) {
      DrawPageElement slideElement = (DrawPageElement) slideNodes.item(i);
      Slide slide = Slide.getInstance(slideElement);
      String slideName = slide.getSlideName();
      if (slideName.equals(name)) {
        return slide;
      }
    }
    return null;
View Full Code Here

    } catch (Exception e) {
      Logger.getLogger(PresentationDocument.class.getName()).log(Level.SEVERE, null, e);
      success = false;
      return success;
    }
    Slide slide = getSlideByName(name);
    DrawPageElement slideElement = slide.getOdfElement();
    // remove all the content of the current page
    // 1. the reference of the path that contained in this slide is 1, then
    // remove its
    success &= deleteLinkedRef(slideElement);
    // 2.the reference of the style is 1, then remove it
View Full Code Here

    int slideCount = slideList.getLength();
    if ((destIndex < 0) || (destIndex > slideCount)) {
      throw new IndexOutOfBoundsException(
          "the specified Index is out of slide count when call copyForeignSlide method.");
    }
    Slide sourceSlide = srcDoc.getSlideByIndex(srcIndex);
    DrawPageElement sourceSlideElement = sourceSlide.getOdfElement();
    // clone the sourceSlideEle, and make a modification on this clone node.
    DrawPageElement sourceCloneSlideElement = (DrawPageElement) sourceSlideElement.cloneNode(true);

    // copy all the referred xlink:href here
    copyLinkedRefInBatch(sourceCloneSlideElement, srcDoc);
View Full Code Here

TOP

Related Classes of org.odftoolkit.simple.presentation.Slide

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.