Package com.sun.star.drawing

Examples of com.sun.star.drawing.XDrawPage


        XDrawPagesSupplier oDPS = (XDrawPagesSupplier)
            UnoRuntime.queryInterface(XDrawPagesSupplier.class, xDrawDoc);
        XDrawPages oDPn = oDPS.getDrawPages();
        XIndexAccess oDPi = (XIndexAccess)
            UnoRuntime.queryInterface(XIndexAccess.class, oDPn);
        XDrawPage oDP = null;
        try {
            oDP = (XDrawPage) AnyConverter.toObject(
                        new Type(XDrawPage.class),oDPi.getByIndex(0));
        } catch (com.sun.star.lang.WrappedTargetException e) {
            log.println("Could not get draw pages while filling draw document with content.");
View Full Code Here


     * @param nr the index of the DrawPage
     * @return the XDrawpage with index nr of the document
    */            

    public static XDrawPage getDrawPage ( XComponent aDoc, int nr ) {
        XDrawPage oDP = null;
        try {
            oDP = (XDrawPage) AnyConverter.toObject(
                new Type(XDrawPage.class),getDrawPages( aDoc ).getByIndex( nr ));
        } catch ( Exception e ) {
            throw new IllegalArgumentException( "Couldn't get drawpage" );
View Full Code Here

        return WriterDoc;
    } // finish createTextDoc

    public static XDrawPage getDrawPage(XTextDocument aDoc) {
        XDrawPage oDP = null;

        try {
            XDrawPageSupplier oDPS = (XDrawPageSupplier) UnoRuntime.queryInterface(
                                             XDrawPageSupplier.class, aDoc);
            oDP = (XDrawPage) oDPS.getDrawPage();
View Full Code Here

  public static XControlShape insertControlShape( XComponent oDoc, int height,
                                        int width, int x, int y, String kind ) {

        XControlShape aShape = createControlShape(oDoc,height,width,x,y,kind);
        XDrawPage oDP = DrawTools.getDrawPage(oDoc,0);
        DrawTools.getShapes(oDP).add(aShape);
        return aShape;
    }
View Full Code Here

      xDrawDoc = Helper.createDocument( xOfficeContext,
        "private:factory/simpress", "_blank", 0, pPropValues );


      XDrawPage   xPage;
      XShapes     xShapes;
      XPropertySet xShapePropSet;

      // create pages, so that three are available
        while ( PageHelper.getDrawPageCount( xDrawDoc ) < 3 )
View Full Code Here

      xDrawDoc = Helper.createDocument( xOfficeContext,
        "private:factory/sdraw", "_blank", 0, pPropValues );


      // create two rectangles
      XDrawPage xPage = PageHelper.getDrawPageByIndex( xDrawDoc, 0 );
      XShapes xShapes = (XShapes)
          UnoRuntime.queryInterface( XShapes.class, xPage );

      XShape xRect1 = ShapeHelper.createShape( xDrawDoc,
        new Point( 1000, 1000 ), new Size( 5000, 5000 ),
View Full Code Here

      String aNameArray[] = { "Introduction", "page one", "page two", "page three", "page four",
                  "page five", "page six", "page seven", "page eight", "page nine" };
      int i;
      for ( i = 0; i < 10; i++ )
      {     
        XDrawPage xDrawPage = (XDrawPage)UnoRuntime.queryInterface(
          XDrawPage.class, xDrawPages.getByIndex( i ));
        XNamed xPageName = (XNamed)UnoRuntime.queryInterface(
          XNamed.class, xDrawPage );       
        xPageName.setName( aNameArray[ i ] );
       
View Full Code Here

      pPropValues[ 0 ].Value = new Boolean( true );

      xDrawDoc = Helper.createDocument( xOfficeContext,
        "private:factory/sdraw", "_blank", 0, pPropValues );

      XDrawPage xPage = PageHelper.getDrawPageByIndex( xDrawDoc, 0 );     
      XShapes xShapes = (XShapes)
          UnoRuntime.queryInterface( XShapes.class, xPage );


      XShape     xRectangle;
View Full Code Here

      xDrawDoc = Helper.createDocument( xOfficeContext,
        "private:factory/sdraw", "_blank", 0, pPropValues );

      // create two rectangles
      XDrawPage xPage = PageHelper.getDrawPageByIndex( xDrawDoc, 0 );
      XShapes xShapes = (XShapes)
          UnoRuntime.queryInterface( XShapes.class, xPage );

      XShape xShape1 = ShapeHelper.createShape( xDrawDoc,
        new Point( 1000, 1000 ), new Size( 5000, 5000 ),
View Full Code Here

      xDrawDoc = Helper.createDocument( xOfficeContext,
        "private:factory/sdraw", "_blank", 0, pPropValues );


      XDrawPage xPage = PageHelper.getDrawPageByIndex( xDrawDoc, 0 );
      XShapes xShapes = (XShapes)
          UnoRuntime.queryInterface( XShapes.class, xPage );

      // create two rectangles
      XShape xShape1 = ShapeHelper.createShape( xDrawDoc,
View Full Code Here

TOP

Related Classes of com.sun.star.drawing.XDrawPage

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.