Package com.sun.star.presentation

Examples of com.sun.star.presentation.XPresentationPage


   * @return
   * @throws ImpressException
   */
  public XDrawPage findNotesPageByIndex(int index) throws ImpressException {
    XDrawPage page = findPageByIndex(index);
    XPresentationPage xPresentationPage = unoCast(XPresentationPage.class,
        page);
    return xPresentationPage.getNotesPage();

  }
View Full Code Here


        mainText.setString(planBuilder.toString());

      }

      // Shape de notes
      XPresentationPage xPresentationPage = unoCast(
          XPresentationPage.class, planPage);
      XDrawPage planNotesPage = xPresentationPage.getNotesPage();
      XShape notesShape = findShapeByType(planNotesPage, SHAPE_TYPE_NOTES);
      if (notesShape != null) {
        XSimpleText notesText = unoCast(XSimpleText.class, notesShape);
        notesText.setString(bundle.getShortTocNotesText());
      }
View Full Code Here

    /** in impress documents each normal draw page has a corresponding notes page
  */
  static public XDrawPage getNotesPage( XDrawPage xDrawPage )
  {
    XPresentationPage aPresentationPage =
      (XPresentationPage)UnoRuntime.queryInterface(
        XPresentationPage.class, xDrawPage );
    return aPresentationPage.getNotesPage();
  }
View Full Code Here

    /** in impress documents each normal draw page has a corresponding notes page
  */
  static public XDrawPage getNotesPage( XDrawPage xDrawPage )
  {
    XPresentationPage aPresentationPage =
      (XPresentationPage)UnoRuntime.queryInterface(
        XPresentationPage.class, xDrawPage );
    return aPresentationPage.getNotesPage();
  }
View Full Code Here

        XShape shape = (XShape) iter.next();
        xShapes.add(shape);
    }
    logger.debug("Added shapes to be added to the document");
    // add notes
    XPresentationPage xPresPage = (XPresentationPage) UnoRuntime.queryInterface(XPresentationPage.class,
      xDrawPage);
    XDrawPage notesPage = xPresPage.getNotesPage();
    logger.debug("Notes page retrieved: " + notesPage);
    XShapes xShapesNotes = (XShapes) UnoRuntime.queryInterface(XShapes.class, notesPage);
    logger.debug("Shape notes retrieved: " + xShapesNotes);
    int numNoteShapes = xShapesNotes.getCount();
    logger.debug("Number of shape notes: " + numNoteShapes);
View Full Code Here

    try {
      XDrawPagesSupplier dSupplier = (XDrawPagesSupplier) UnoRuntime.queryInterface(XDrawPagesSupplier.class, presentationDocument.getXComponent());
      XDrawPages pages = dSupplier.getDrawPages();

      UnoRuntime.queryInterface(XDrawPage.class, pages.getByIndex(index));
      XPresentationPage page = (XPresentationPage) UnoRuntime.queryInterface(XPresentationPage.class, pages.getByIndex(index));

      XModel xModel = (XModel) UnoRuntime.queryInterface(XModel.class, presentationDocument.getPresentationSupplier());
      XController xController = xModel.getCurrentController();
      XDrawView drawView = (XDrawView) UnoRuntime.queryInterface(XDrawView.class, xController);
      drawView.setCurrentPage(page);
View Full Code Here

   * @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

   */
  @Override
  public IPresentationPage getCurrentPresentationPage()
      throws PresentationException {
    XDrawPage dp = xDrawView.getCurrentPage();
    XPresentationPage xPresentationPage = (XPresentationPage) UnoRuntime
        .queryInterface(XPresentationPage.class, dp);

    return getPresentationPage(xPresentationPage);
  }
View Full Code Here

   * @throws PresentationException
   */
  @Override
  public IPresentationPage getPresentationPage(int page)
      throws PresentationException {
    XPresentationPage xPresentationPage = getXPresentationPage(page);
    return getPresentationPage(xPresentationPage);
  }
View Full Code Here

              presentationDocument.getXComponent());
      XDrawPages pages = dSupplier.getDrawPages();

      // TODO why no assignment?
      UnoRuntime.queryInterface(XDrawPage.class, pages.getByIndex(page));
      XPresentationPage xPresentationPage = (XPresentationPage) UnoRuntime
          .queryInterface(XPresentationPage.class, pages
              .getByIndex(page));
      return xPresentationPage;
    } catch (Throwable throwable) {
      PresentationException textException = new PresentationException(
View Full Code Here

TOP

Related Classes of com.sun.star.presentation.XPresentationPage

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.