Examples of XMasterPagesSupplier


Examples of com.sun.star.drawing.XMasterPagesSupplier

        log.println( "creating a test environment" );

        // get the MasterPages here
        log.println( "getting MasterPages" );
        XMasterPagesSupplier oMPS = (XMasterPagesSupplier)
            UnoRuntime.queryInterface(XMasterPagesSupplier.class, xDrawDoc);
        XDrawPages oMPn = oMPS.getMasterPages();
        XIndexAccess oMPi = (XIndexAccess)
            UnoRuntime.queryInterface(XIndexAccess.class, oMPn);

        log.println( "getting MasterPage" );
        XInterface oObj = null;
View Full Code Here

Examples of com.sun.star.drawing.XMasterPagesSupplier

    /** get the page count for master pages
  */
  static public int getMasterPageCount( XComponent xComponent )
  {
    XMasterPagesSupplier xMasterPagesSupplier =
      (XMasterPagesSupplier)UnoRuntime.queryInterface(
        XMasterPagesSupplier.class, xComponent );
    XDrawPages xDrawPages = xMasterPagesSupplier.getMasterPages();
    return xDrawPages.getCount();
  }
View Full Code Here

Examples of com.sun.star.drawing.XMasterPagesSupplier

  */
  static public XDrawPage getMasterPageByIndex( XComponent xComponent, int nIndex )
    throws com.sun.star.lang.IndexOutOfBoundsException,
      com.sun.star.lang.WrappedTargetException
  {
    XMasterPagesSupplier xMasterPagesSupplier =
      (XMasterPagesSupplier)UnoRuntime.queryInterface(
        XMasterPagesSupplier.class, xComponent );
    XDrawPages xDrawPages = xMasterPagesSupplier.getMasterPages();
    return (XDrawPage)UnoRuntime.queryInterface(XDrawPage.class, xDrawPages.getByIndex( nIndex ));
  }
View Full Code Here

Examples of com.sun.star.drawing.XMasterPagesSupplier

    /** creates and inserts a new master page into the giving position,
    the method returns the new created page
  */
  static public XDrawPage insertNewMasterPageByIndex( XComponent xComponent, int nIndex )
  {
    XMasterPagesSupplier xMasterPagesSupplier =
      (XMasterPagesSupplier)UnoRuntime.queryInterface(
        XMasterPagesSupplier.class, xComponent );
    XDrawPages xDrawPages = xMasterPagesSupplier.getMasterPages();
    return xDrawPages.insertNewByIndex( nIndex );
  }
View Full Code Here

Examples of com.sun.star.drawing.XMasterPagesSupplier

    /** removes the given page
  */
  static public void removeMasterPage( XComponent xComponent, XDrawPage xDrawPage )
  {
    XMasterPagesSupplier xMasterPagesSupplier =
      (XMasterPagesSupplier)UnoRuntime.queryInterface(
        XMasterPagesSupplier.class, xComponent );
    XDrawPages xDrawPages = xMasterPagesSupplier.getMasterPages();
    xDrawPages.remove( xDrawPage );
  }
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.