Package ag.ion.bion.officelayer.presentation

Examples of ag.ion.bion.officelayer.presentation.IPresentationDocument


    IDocument document = ooDocument.getDocument();

    if (!document.getDocumentType().equals(IDocument.IMPRESS))
      return null;

    IPresentationDocument presentationDocument = (IPresentationDocument) document;

    IPageService pageService = presentationDocument.getPageService();

    List<IArtefactPosition> positions = new ArrayList<IArtefactPosition>();
    for (int i = 0; i <= pageService.getPageCount(); i++) {
      try {
        IPresentationPage page = pageService.getPresentationPage(i);
View Full Code Here


  }

  @Test
  public void testImpress() throws NOAException, OfficeApplicationException,
      PresentationException {
    IPresentationDocument document = (IPresentationDocument) ooApplication
        .constructNewDocument(IDocument.IMPRESS);

    OODocument ooDocument = new OODocument(document, new EclipseFile(
        "tmp file")); //$NON-NLS-1$

    String tag = "<aTag/>"; //$NON-NLS-1$
    ConnectorMaster.getInstance().insertTagsIntoDocument(tag, ooDocument);

    IPresentationPage page = document.getPageService().getPresentationPage(
        0);
    ITextShape shape = (ITextShape) page.getDrawPage().getShapes().get(0);
    String text = shape.getText().getText();
    Assert.assertEquals(tag, text);
  }
View Full Code Here

TOP

Related Classes of ag.ion.bion.officelayer.presentation.IPresentationDocument

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.