Examples of XDocumentIndexesSupplier


Examples of com.sun.star.text.XDocumentIndexesSupplier

        } catch (com.sun.star.lang.IllegalArgumentException e) {
            e.printStackTrace(log);
            throw new StatusException("Couldn't insert the Index", e);
        }

        XDocumentIndexesSupplier xDocInd = (XDocumentIndexesSupplier)
                UnoRuntime.queryInterface(XDocumentIndexesSupplier.class,xTextDoc);

        oObj = xDocInd.getDocumentIndexes();
        TestEnvironment tEnv = new TestEnvironment(oObj);
        return tEnv;

    } // finish method getTestEnvironment
View Full Code Here

Examples of com.sun.star.text.XDocumentIndexesSupplier

        } catch (com.sun.star.lang.IllegalArgumentException e) {
            e.printStackTrace(log);
            throw new StatusException("Couldn't insert the Index", e);
        }

        XDocumentIndexesSupplier xDocInd = (XDocumentIndexesSupplier)
                UnoRuntime.queryInterface(XDocumentIndexesSupplier.class,xTextDoc);

        oObj = xDocInd.getDocumentIndexes();
        TestEnvironment tEnv = new TestEnvironment(oObj);
        return tEnv;

    } // finish method getTestEnvironment
View Full Code Here

Examples of com.sun.star.text.XDocumentIndexesSupplier

        System.out.println("...done");

        System.out.println("Checking indexes in loaded test document...");

        XDocumentIndexesSupplier xDIS = (XDocumentIndexesSupplier)
            UnoRuntime.queryInterface(XDocumentIndexesSupplier.class, xTextDoc);
        XIndexAccess xIndexesIA = xDIS.getDocumentIndexes();
        XNameAccess xIndexes =
            UnoRuntime.queryInterface(XNameAccess.class, xIndexesIA);

        XMetadatable xIndex1 = (XMetadatable) UnoRuntime.queryInterface(
                XMetadatable.class, xIndexes.getByName("Table of Contents1"));
View Full Code Here

Examples of com.sun.star.text.XDocumentIndexesSupplier

        } catch (com.sun.star.lang.IllegalArgumentException e) {
            e.printStackTrace(log);
            throw new StatusException("Couldn't insert the Index", e);
        }

        XDocumentIndexesSupplier xDocInd = (XDocumentIndexesSupplier)
                UnoRuntime.queryInterface(XDocumentIndexesSupplier.class,xTextDoc);

        oObj = xDocInd.getDocumentIndexes();
        TestEnvironment tEnv = new TestEnvironment(oObj);
        return tEnv;

    } // finish method getTestEnvironment
View Full Code Here

Examples of com.sun.star.text.XDocumentIndexesSupplier

   *
   * @author Andreas Br�ker
   * @date 17.08.2006
   */
  public IDocumentIndex[] getDocumentIndexes() {
    XDocumentIndexesSupplier documentIndexesSupplier = (XDocumentIndexesSupplier)UnoRuntime.queryInterface(XDocumentIndexesSupplier.class, textDocument);
    if(documentIndexesSupplier == null)
      return new IDocumentIndex[0];
   
    XIndexAccess indexAccess = documentIndexesSupplier.getDocumentIndexes();
    List list = new ArrayList();
    for(int i=0, n=indexAccess.getCount(); i<n; i++) {
      try {
        Object object = indexAccess.getByIndex(i);
        XDocumentIndex documentIndex = (XDocumentIndex)UnoRuntime.queryInterface(XDocumentIndex.class, object);
View Full Code Here

Examples of com.sun.star.text.XDocumentIndexesSupplier

   *
   * @author Andreas Br�ker
   * @date 17.08.2006
   */
  public IDocumentIndex[] getDocumentIndexes() {
    XDocumentIndexesSupplier documentIndexesSupplier = (XDocumentIndexesSupplier) UnoRuntime
        .queryInterface(XDocumentIndexesSupplier.class, textDocument);
    if (documentIndexesSupplier == null)
      return new IDocumentIndex[0];

    XIndexAccess indexAccess = documentIndexesSupplier.getDocumentIndexes();
    List list = new ArrayList();
    for (int i = 0, n = indexAccess.getCount(); i < n; i++) {
      try {
        Object object = indexAccess.getByIndex(i);
        XDocumentIndex documentIndex = (XDocumentIndex) UnoRuntime
View Full Code Here

Examples of com.sun.star.text.XDocumentIndexesSupplier

        } catch (com.sun.star.lang.IllegalArgumentException e) {
            e.printStackTrace(log);
            throw new StatusException("Couldn't insert the Index", e);
        }

        XDocumentIndexesSupplier xDocInd = (XDocumentIndexesSupplier)
                UnoRuntime.queryInterface(XDocumentIndexesSupplier.class,xTextDoc);

        oObj = xDocInd.getDocumentIndexes();
        TestEnvironment tEnv = new TestEnvironment(oObj);
        return tEnv;

    } // finish method getTestEnvironment
View Full Code Here

Examples of com.sun.star.text.XDocumentIndexesSupplier

        } catch (com.sun.star.lang.IllegalArgumentException e) {
            e.printStackTrace(log);
            throw new StatusException("Couldn't insert the Index", e);
        }

        XDocumentIndexesSupplier xDocInd = (XDocumentIndexesSupplier)
                UnoRuntime.queryInterface(XDocumentIndexesSupplier.class,xTextDoc);

        oObj = xDocInd.getDocumentIndexes();
        TestEnvironment tEnv = new TestEnvironment(oObj);
        return tEnv;

    } // finish method getTestEnvironment
View Full Code Here

Examples of com.sun.star.text.XDocumentIndexesSupplier

        log.println("...done");

        log.println("Checking indexes in loaded test document...");

        XDocumentIndexesSupplier xDIS = (XDocumentIndexesSupplier)
            UnoRuntime.queryInterface(XDocumentIndexesSupplier.class, xTextDoc);
        XIndexAccess xIndexesIA = xDIS.getDocumentIndexes();
        XNameAccess xIndexes =
            UnoRuntime.queryInterface(XNameAccess.class, xIndexesIA);

        XMetadatable xIndex1 = (XMetadatable) UnoRuntime.queryInterface(
                XMetadatable.class, xIndexes.getByName("Table of Contents1"));
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.