Package org.apache.poi.hslf.usermodel

Examples of org.apache.poi.hslf.usermodel.SlideShow.createSlide()


      String coordenador = "";
     
      // Caso n�o existam itens a serem exibidos,
      // O slide � exibido apenas com a informa��o de que nenhum item foi encontrado.
      if (root.getElementsByTagName("semItens").getLength() > 0) {
        Slide s = ppt.createSlide();
        adicionaTitulo(request, root, s, ppt, caminhoImagens);
        TextBox semItens = adicionaTextBox(s, "Nenhum item foi encontrado para os par�metros deste relat�rio.",
            null, 5, 102, 600, 20, 0);
        formataFonte(semItens, 14, "Arial", true, false, false, Color.blue, TextBox.AlignLeft);
        adicionaRodape(root, s);
View Full Code Here


          // Se a tag item corrente tem o atributo nomeItem != "", cria-se um novo slide
          if (!nd.getNodeValue().equals("")) {           
             // Criando o slide
            s1 = null;
            incrementoParaOutroParecer = 0;
            slides.add(quantidadeSlides, ppt.createSlide());
            s1 = (Slide)slides.get(quantidadeSlides);
            quantidadeSlides++; 
          // Caso contr�rio, continuamos a escrever no mesmo slide
          } else
            s1 = (ppt.getSlides()[ppt.getSlides().length - 1]);           
View Full Code Here

                adicionaRodape(root, s1);
               
                incrementoParaOutroParecer = 0;
               
                // criando o novo slide
                s1 = ppt.createSlide();
                slides.add(quantidadeSlides, s1);
                quantidadeSlides++;
               
                // a partir daqui estamos escrevendo num novo slide               
                adicionaTitulo(request, root, s1, ppt, caminhoImagens);
View Full Code Here

                 
                  // resetando a posicaoYEtapas para ser utlizada no pr�ximo slide
                  posicaoYEtapas = 174;
                 
                  // criando novo slide
                  s1 = ppt.createSlide();
                  slides.add(quantidadeSlides, s1);
                  quantidadeSlides++;
                 
                  // a partir de agora escrevemos em outro slide
                  adicionaTitulo(request, root, s1, ppt, caminhoImagens);
View Full Code Here

                         
                          // resetando a posicaoYEtapas para o outro slide
                          posicaoYEtapas = 174;
                         
                          // criando o novo slide
                          s1 = ppt.createSlide();
                          slides.add(quantidadeSlides, s1);
                          quantidadeSlides++;
                         
                          // a partir de agora estamos escrevendo no novo slide
                          adicionaTitulo(request, root, s1, ppt, caminhoImagens);
View Full Code Here

        //String dirname = System.getProperty("HSLF.testdata.path");
        //String filename = dirname + "/with_textbox.ppt";
        //new SlideShow(new HSLFSlideShow(filename));

        SlideShow ppt = new SlideShow();
        Slide sl = ppt.createSlide();
        RichTextRun rt;

        String val = "Hello, World!";

        // Create a new textbox, and give it lots of properties
View Full Code Here

        Picture pict;

        SlideShow ppt = new SlideShow();

        idx = ppt.addPicture(new File(dirname + "/clock.jpg"), Picture.JPEG);
        slide = ppt.createSlide();
        pict = new Picture(idx);
        slide.addShape(pict);

        idx = ppt.addPicture(new File(dirname + "/painting.png"), Picture.PNG);
        pict = new Picture(idx);
View Full Code Here

public final class CreateHyperlink {

    public static void main(String[] args) throws Exception {
        SlideShow ppt = new SlideShow();

        Slide slide = ppt.createSlide();

        TextBox shape = new TextBox();
        shape.setText("Apache POI");
        Rectangle anchor = new Rectangle(100, 100, 200, 50);
        shape.setAnchor(anchor);
View Full Code Here

            Color.green, new Integer(60),
            Color.gray, new Integer(30),
            Color.red, new Integer(80),
        };

        Slide slide = ppt.createSlide();

        ShapeGroup group = new ShapeGroup();
        //define position of the drawing in the slide
        Rectangle bounds = new java.awt.Rectangle(200, 100, 350, 300);
        group.setAnchor(bounds);
View Full Code Here

        assertTrue(ppt.getSlides().length == 2);
        assertEquals(4, s2._getSheetRefId());
        assertEquals(257, s2._getSheetNumber());
        assertEquals(2, s2.getSlideNumber());

        Slide s3 = ppt.createSlide();
        assertTrue(ppt.getSlides().length == 3);
        assertEquals(5, s3._getSheetRefId());
        assertEquals(258, s3._getSheetNumber());
        assertEquals(3, s3.getSlideNumber());
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.