Package ag.ion.bion.officelayer.presentation

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


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

    try {
      IPresentationPage page = ((IPresentationDocument) document)
          .getPageService().getCurrentPresentationPage();
      IShapeFactory shapeFactory = page.getDrawPage().getShapeFactory();
      ITextShape textShape = shapeFactory
          .createTextShape(2000, 4000, tag);
      textShape.addToPage();
    } catch (PresentationException e) {
      return false;
View Full Code Here


    IPageService pageService = presentationDocument.getPageService();

    List<IArtefactPosition> positions = new ArrayList<IArtefactPosition>();
    for (int i = 0; i <= pageService.getPageCount(); i++) {
      try {
        IPresentationPage page = pageService.getPresentationPage(i);
        IDrawPage drawPage = page.getDrawPage();
        for (IShape shape : drawPage.getShapes()) {
          if (!shape.getType().equals(IShape.TEXT_SHAPE))
            continue;
          ITextShape textShape = (ITextShape) shape;
          String content = textShape.getText().getText();
View Full Code Here

   * @author Sebastian Patschorke
   * @date 07.01.2008
   */
  public void goToPage(int index) throws PresentationException {
    try {
      IPresentationPage presentationPage = getPresentationPage(index);
      XPresentationPage page = presentationPage.getXPresentationPage();
      xDrawView.setCurrentPage(page);
    } catch (Throwable throwable) {
      PresentationException textException = new PresentationException(
          throwable.getMessage());
      textException.initCause(throwable);
View Full Code Here

   * @author Sebastian Patschorke
   * @throws PresentationException
   */
  private IPresentationPage getPresentationPage(
      XPresentationPage xPresentationPage) throws PresentationException {
    IPresentationPage presentationPage = presentationPages
        .get(xPresentationPage);
    if (presentationPage != null)
      return presentationPage;

    presentationPage = new PresentationPage(presentationDocument,
View Full Code Here

      String undoString) {
    IPageService pageService = presentationDocument.getPageService();

    int steps = 0;
    for (int i = 0; i <= pageService.getPageCount(); i++) {
      IPresentationPage page = null;
      try {
        page = pageService.getPresentationPage(i);
      } catch (PresentationException e) {
        continue;
      }
      IDrawPage drawPage = page.getDrawPage();
      for (IShape shape : drawPage.getShapes()) {
        XNamed xNamed = (XNamed) UnoRuntime.queryInterface(
            XNamed.class, shape.getXShape());
        String name = xNamed.getName();
        if (!integrationID.equals(name))
View Full Code Here

        "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.IPresentationPage

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.