Package com.sun.star.drawing

Examples of com.sun.star.drawing.XDrawPagesSupplier


          filterDatas[2].Value = new Integer(2000);
          filterDatas[3].Name = "LogicalHeight";
          filterDatas[3].Value = new Integer(2000);
         
         
          XDrawPagesSupplier pagesSupplier = (XDrawPagesSupplier) UnoRuntime
              .queryInterface(XDrawPagesSupplier.class, component);
          //System.out.println(pagesSupplier.toString());       
          XDrawPages pages = pagesSupplier.getDrawPages();
          int nbPages = pages.getCount();
               
         
          for (int i = 0; i < nbPages; i++) {
                     
View Full Code Here


      filterDatas[2].Value = new Integer(2000);
      filterDatas[3].Name = "LogicalHeight";
      filterDatas[3].Value = new Integer(2000);
     
     
      XDrawPagesSupplier pagesSupplier = (XDrawPagesSupplier) UnoRuntime
      .queryInterface(XDrawPagesSupplier.class, document);
      //System.out.println(pagesSupplier.toString());       
      XDrawPages pages = pagesSupplier.getDrawPages();
      int nbPages = pages.getCount();
      String[] slidenames = new String[nbPages];
      Arrays.fill(slidenames,"");
     
      for (int i = 0; i < nbPages; i++) {
View Full Code Here

   *            TODO
   */
  public ImpressDocument(XComponent component) throws ImpressException {
    this.component = component;

    XDrawPagesSupplier xDrawPagesSupplier = unoCast(
        XDrawPagesSupplier.class, component);
    this.componentPages = xDrawPagesSupplier.getDrawPages();
  }
View Full Code Here

        // get the draw page for checking the shapes
        xDrawPage = (XDrawPage)tEnv.getObjRelation("XDocumentAuditing.DrawPage");
        if (xDrawPage == null) { // get from object
            try {
                XDrawPagesSupplier oDPS = (XDrawPagesSupplier)
                    UnoRuntime.queryInterface(XDrawPagesSupplier.class, oObj);
                Object o = oDPS.getDrawPages().getByIndex(1);
                xDrawPage = (XDrawPage)UnoRuntime.queryInterface(XDrawPage.class, o);
            }
            catch(com.sun.star.lang.IndexOutOfBoundsException e) {
            } // ignore exceptions, we'll run into next if statement anyway
            catch(com.sun.star.lang.WrappedTargetException e) {
View Full Code Here

        } catch (com.sun.star.uno.Exception e) {
            e.printStackTrace( log );
            throw new StatusException("Couldn't create document", e);
        }
       
        XDrawPagesSupplier oDPS = (XDrawPagesSupplier)
            UnoRuntime.queryInterface(XDrawPagesSupplier.class, xImpressDoc);
        XDrawPages the_pages = oDPS.getDrawPages();
        XIndexAccess oDPi = (XIndexAccess)
            UnoRuntime.queryInterface(XIndexAccess.class,the_pages);

        XModel aModel = (XModel)
            UnoRuntime.queryInterface(XModel.class, xImpressDoc);
View Full Code Here

            throw new StatusException("Couldn't create document", e);
        }

        // get the drawpage of drawing here
        log.println( "getting Drawpage" );
        XDrawPagesSupplier oDPS = (XDrawPagesSupplier)
            UnoRuntime.queryInterface(XDrawPagesSupplier.class, xDrawDoc);
        XDrawPages the_pages = oDPS.getDrawPages();
        XIndexAccess oDPi = (XIndexAccess)
            UnoRuntime.queryInterface(XIndexAccess.class,the_pages);

        XDrawPage oDrawPage = null;
        try {
View Full Code Here

    */        

    public static XDrawPages getDrawPages ( XComponent aDoc ) {
        XDrawPages oDPn = null;
        try {
            XDrawPagesSupplier oDPS = (XDrawPagesSupplier)
            UnoRuntime.queryInterface(XDrawPagesSupplier.class,aDoc);

            oDPn = oDPS.getDrawPages();
        } catch ( Exception e ) {
            throw new IllegalArgumentException( "Couldn't get drawpages" );
        }
        return oDPn;
    } // finish getDrawPages
View Full Code Here

    protected void useDraw() throws java.lang.Exception {
        try {
            //create new draw document and insert ractangle shape
            XComponent xDrawComponent = newDocComponent("sdraw");
            XDrawPagesSupplier xDrawPagesSupplier =
                (XDrawPagesSupplier)UnoRuntime.queryInterface(
                    XDrawPagesSupplier.class, xDrawComponent);

            Object drawPages = xDrawPagesSupplier.getDrawPages();
            XIndexAccess xIndexedDrawPages = (XIndexAccess)UnoRuntime.queryInterface(
                XIndexAccess.class, drawPages);
            Object drawPage = xIndexedDrawPages.getByIndex(0);
            XDrawPage xDrawPage = (XDrawPage)UnoRuntime.queryInterface(XDrawPage.class, drawPage);
View Full Code Here

        return false;
      }

      xLoad.initNew();
     
      XDrawPagesSupplier xDPSupply = (XDrawPagesSupplier) UnoRuntime.queryInterface( XDrawPagesSupplier.class, oDoc );
      if ( xDPSupply == null )
      {
        m_aTestHelper.Error( "Can not get XDrawPagesSupplier!" );
        return false;
      }

      XDrawPages xDrawPages = xDPSupply.getDrawPages();
      if ( xDrawPages == null )
      {
        m_aTestHelper.Error( "Can not get XDrawPages object!" );
        return false;
      }
View Full Code Here

        try {
            oObj = (XInterface) xMSF.createInstanceWithArguments(
                "com.sun.star.comp.Draw.XMLExporter", new Object[] {arg});


            XDrawPagesSupplier supp = (XDrawPagesSupplier)
                UnoRuntime.queryInterface(XDrawPagesSupplier.class, xDrawDoc);
            XDrawPages set = supp.getDrawPages();

            // This is an XML-export BUG (new slide named "NewSlide2" can not be exported to XML)
            set.insertNewByIndex(1);

            XDrawPage page1 = (XDrawPage)
View Full Code Here

TOP

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

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.