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 oMP = oMPS.getMasterPages();
        log.println( "insert MasterPages" );
        oMP.insertNewByIndex(1);
        oMP.insertNewByIndex(2);
        XInterface oObj = oMP;
View Full Code Here

Examples of com.sun.star.drawing.XMasterPagesSupplier

        oShapes.add(SOF.createShape
            (xDrawDoc, 5000, 3500, 7500, 5000, "Rectangle"));

        //get the XMasterPagesSupplier
        log.println("get XMasterPagesSupplier");
        XMasterPagesSupplier oMPS = (XMasterPagesSupplier)
            UnoRuntime.queryInterface(XMasterPagesSupplier.class, xDrawDoc);
        XDrawPages oGroup = oMPS.getMasterPages();

        log.println( "creating a new environment for drawpage object" );
        TestEnvironment tEnv = new TestEnvironment( oObj );

        XControlShape aShape = FormTools.createControlShape(
View Full Code Here

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

   * @return page maitresse
   * @throws ImpressException
   */
  private XDrawPage findMasterPage(String style) throws ImpressException {
    try {
      XMasterPagesSupplier xMasterPageSupplier = unoCast(
          XMasterPagesSupplier.class, component);
      XDrawPages xMasterPages = xMasterPageSupplier.getMasterPages();
      for (int i = 0; i < xMasterPages.getCount(); i++) {
        XDrawPage xMasterPage = unoCast(XDrawPage.class, xMasterPages
            .getByIndex(i));
        XPropertySet masterSet = unoCast(XPropertySet.class,
            xMasterPage);
View Full Code Here

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

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

        // get the MasterPages here
        log.println( "getting MasterPages" );
        XMasterPagesSupplier oMPS = (XMasterPagesSupplier)
            UnoRuntime.queryInterface( XMasterPagesSupplier.class, xDrawDoc);
        XDrawPages oMP = oMPS.getMasterPages();
        log.println( "insert MasterPages" );
        oMP.insertNewByIndex(1);
        oMP.insertNewByIndex(2);
        XInterface oObj = oMP;
View Full Code Here

Examples of com.sun.star.drawing.XMasterPagesSupplier

        oShapes.add(SOF.createShape
            (xDrawDoc, 5000, 3500, 7500, 5000, "Rectangle"));

        //get the XMasterPagesSupplier
        log.println("get XMasterPagesSupplier");
        XMasterPagesSupplier oMPS = (XMasterPagesSupplier)
            UnoRuntime.queryInterface(XMasterPagesSupplier.class, xDrawDoc);
        XDrawPages oGroup = oMPS.getMasterPages();

        log.println( "creating a new environment for drawpage object" );
        TestEnvironment tEnv = new TestEnvironment( oObj );

        XControlShape aShape = FormTools.createControlShape(
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
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.