Examples of newDrawPageElement()


Examples of org.odftoolkit.odfdom.dom.element.office.OfficePresentationElement.newDrawPageElement()

  @Test
  public void testNotCompressImages() throws Exception {
    //create test presentation
    OdfPresentationDocument odp = OdfPresentationDocument.newPresentationDocument();
    OfficePresentationElement officePresentation = odp.getContentRoot();
    DrawPageElement page = officePresentation.newDrawPageElement(null);
    DrawFrameElement frame = page.newDrawFrameElement();
    OdfDrawImage image = (OdfDrawImage) frame.newDrawImageElement();
    image.newImage(ResourceUtilities.getURI(IMAGE_TEST_FILE));
    odp.save(ResourceUtilities.newTestOutputFile(IMAGE_PRESENTATION));
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.office.OfficePresentationElement.newDrawPageElement()

    String masterPageStyleName = "Default";
    String masterName = refStyleSlide.getDrawMasterPageNameAttribute();
    if (masterName != null) {
      masterPageStyleName = masterName;
    }
    DrawPageElement newSlideElement = contentRoot.newDrawPageElement(masterPageStyleName);
    newSlideElement.setDrawNameAttribute(name);
    String drawStyleName = refStyleSlide.getDrawStyleNameAttribute();
    if (drawStyleName != null) {
      newSlideElement.setDrawStyleNameAttribute(drawStyleName);
    }
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.office.OfficePresentationElement.newDrawPageElement()

  @Test
  public void testNotCompressImages() throws Exception {
    // create test presentation
    OdfPresentationDocument odp = OdfPresentationDocument.newPresentationDocument();
    OfficePresentationElement officePresentation = odp.getContentRoot();
    DrawPageElement page = officePresentation.newDrawPageElement(null);
    DrawFrameElement frame = page.newDrawFrameElement();
    OdfDrawImage image = (OdfDrawImage) frame.newDrawImageElement();
    image.newImage(ResourceUtilities.getURI(IMAGE_TEST_FILE));
    odp.save(ResourceUtilities.newTestOutputFile(IMAGE_PRESENTATION));
   
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.office.OfficePresentationElement.newDrawPageElement()

    String masterPageStyleName = "Default";
    String masterName = refStyleSlide.getDrawMasterPageNameAttribute();
    if (masterName != null) {
      masterPageStyleName = masterName;
    }
    DrawPageElement newSlideElement = contentRoot.newDrawPageElement(masterPageStyleName);
    newSlideElement.setDrawNameAttribute(name);
    String drawStyleName = refStyleSlide.getDrawStyleNameAttribute();
    if (drawStyleName != null) {
      newSlideElement.setDrawStyleNameAttribute(drawStyleName);
    }
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.office.OfficePresentationElement.newDrawPageElement()

    String masterPageStyleName = "Default";
    String masterName = refStyleSlide.getDrawMasterPageNameAttribute();
    if (masterName != null) {
      masterPageStyleName = masterName;
    }
    DrawPageElement newSlideElement = contentRoot.newDrawPageElement(masterPageStyleName);
    newSlideElement.setDrawNameAttribute(name);
    String drawStyleName = refStyleSlide.getDrawStyleNameAttribute();
    if (drawStyleName != null) {
      newSlideElement.setDrawStyleNameAttribute(drawStyleName);
    }
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.office.OfficePresentationElement.newDrawPageElement()

    try {
      OdfPresentationDocument odfdoc = (OdfPresentationDocument) OdfDocument.loadDocument(ResourceUtilities.getAbsolutePath("presentation.odp"));
      OfficePresentationElement presentation = odfdoc.getContentRoot();
      Assert.assertNotNull(presentation);

      DrawPageElement page = presentation.newDrawPageElement("NewPage");

      OdfFileDom contentDom = odfdoc.getContentDom();
      XPath xpath = contentDom.getXPath();
      DrawPageElement presentationTest = (DrawPageElement) xpath.evaluate("//draw:page[last()]", contentDom, XPathConstants.NODE);
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.element.office.OfficePresentationElement.newDrawPageElement()

    try {
      OdfPresentationDocument odfdoc = OdfPresentationDocument.newPresentationDocument();
      OfficePresentationElement presentation = odfdoc.getContentRoot();
      Assert.assertNotNull(presentation);

      DrawPageElement page = presentation.newDrawPageElement("NewPage");

      AnimAnimateElement anim = page.newAnimAnimateElement("new");
      OdfFileDom contentDom = odfdoc.getContentDom();
      XPath xpath = contentDom.getXPath();
      AnimAnimateElement animTest = (AnimAnimateElement) xpath.evaluate("//anim:animate[last()]", contentDom, XPathConstants.NODE);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.