Examples of XTextTablesSupplier


Examples of com.sun.star.text.XTextTablesSupplier

                    + uE.getMessage(), uE);
        }

        XMultiServiceFactory msf = (XMultiServiceFactory)
            UnoRuntime.queryInterface(XMultiServiceFactory.class, xTextDoc);
        XTextTablesSupplier oTTSupp = (XTextTablesSupplier)
            UnoRuntime.queryInterface(XTextTablesSupplier.class, msf);
        oObj = oTTSupp.getTextTables();

        if ( oTable != null ) {
            log.println("Creating instance...");
            tEnv = new TestEnvironment(oObj);
        }
View Full Code Here

Examples of com.sun.star.text.XTextTablesSupplier

                    + uE.getMessage(), uE);
        }

        XMultiServiceFactory msf = (XMultiServiceFactory)
            UnoRuntime.queryInterface(XMultiServiceFactory.class, xTextDoc);
        XTextTablesSupplier oTTSupp = (XTextTablesSupplier)
            UnoRuntime.queryInterface(XTextTablesSupplier.class, msf);
        oObj = oTTSupp.getTextTables();

        if ( oTable != null ) {
            log.println("Creating instance...");
            tEnv = new TestEnvironment(oObj);
        }
View Full Code Here

Examples of com.sun.star.text.XTextTablesSupplier

  private XIndexAccess createCollection() {
    XNameAccess oNA = null;

    if ( iDsc instanceof TableDsc ) {
      XTextTablesSupplier oTTS = (XTextTablesSupplier)
          UnoRuntime.queryInterface(
                    XTextTablesSupplier.class, xParent );

      oNA = oTTS.getTextTables();
    }
    if ( iDsc instanceof FrameDsc ) {
      XTextFramesSupplier oTTS = (XTextFramesSupplier)
          UnoRuntime.queryInterface(
                    XTextFramesSupplier.class, xParent );

      oNA = oTTS.getTextFrames();
    }
    if ( iDsc instanceof BookmarkDsc ) {
      XBookmarksSupplier oTTS = (XBookmarksSupplier)
          UnoRuntime.queryInterface(
                    XBookmarksSupplier.class, xParent );

      oNA = oTTS.getBookmarks();
    }

    if ( iDsc instanceof FootnoteDsc ) {
      XFootnotesSupplier oTTS = (XFootnotesSupplier)
          UnoRuntime.queryInterface(
                    XFootnotesSupplier.class, xParent );

      return( oTTS.getFootnotes() );
    }

    if ( iDsc instanceof TextSectionDsc ) {
      XTextSectionsSupplier oTSS = (XTextSectionsSupplier)
          UnoRuntime.queryInterface(
View Full Code Here

Examples of com.sun.star.text.XTextTablesSupplier

                    // Set the name to TableHeader
                    xRefMark.setName ( "TableHeader" );

                    // Get the TextTablesSupplier interface of the document
                    XTextTablesSupplier xTableSupplier = ( XTextTablesSupplier ) UnoRuntime.queryInterface
                                                            ( XTextTablesSupplier.class, mxDoc );

                    // Get an XIndexAccess of TextTables
                    XIndexAccess xTables = ( XIndexAccess ) UnoRuntime.queryInterface ( XIndexAccess.class,
                                                            xTableSupplier.getTextTables() );

                    // We've only inserted one table, so get the first one from index zero
                    XTextTable xTable = ( XTextTable ) UnoRuntime.queryInterface ( XTextTable.class,
                                                            xTables.getByIndex( 0 ) );
View Full Code Here

Examples of com.sun.star.text.XTextTablesSupplier

  private XIndexAccess createCollection() {
    XNameAccess oNA = null;

    if ( iDsc instanceof TableDsc ) {
      XTextTablesSupplier oTTS = (XTextTablesSupplier)
          UnoRuntime.queryInterface(
                    XTextTablesSupplier.class, xParent );

      oNA = oTTS.getTextTables();
    }
    if ( iDsc instanceof FrameDsc ) {
      XTextFramesSupplier oTTS = (XTextFramesSupplier)
          UnoRuntime.queryInterface(
                    XTextFramesSupplier.class, xParent );

      oNA = oTTS.getTextFrames();
    }
    if ( iDsc instanceof BookmarkDsc ) {
      XBookmarksSupplier oTTS = (XBookmarksSupplier)
          UnoRuntime.queryInterface(
                    XBookmarksSupplier.class, xParent );

      oNA = oTTS.getBookmarks();
    }

    if ( iDsc instanceof FootnoteDsc ) {
      XFootnotesSupplier oTTS = (XFootnotesSupplier)
          UnoRuntime.queryInterface(
                    XFootnotesSupplier.class, xParent );

      return( oTTS.getFootnotes() );
    }

    if ( iDsc instanceof TextSectionDsc ) {
      XTextSectionsSupplier oTSS = (XTextSectionsSupplier)
          UnoRuntime.queryInterface(
View Full Code Here

Examples of com.sun.star.text.XTextTablesSupplier

    // Todo: This Routine should be  modified, because I cannot rely on the last Table in the document to be the last in the TextTables sequence
    // to make it really safe you must acquire the Tablenames before the insertion and after the insertion of the new Table. By comparing the
    // two sequences of tablenames you can find out the tablename of the last inserted Table
    public XTextTable getlastTextTable(){
    try{
  XTextTablesSupplier xTextTablesSuppl = (XTextTablesSupplier) UnoRuntime.queryInterface(XTextTablesSupplier.class, xTextDocument);
  XIndexAccess xAllTextTables = (XIndexAccess) UnoRuntime.queryInterface(XIndexAccess.class, xTextTablesSuppl.getTextTables());
  int MaxIndex = xAllTextTables.getCount()-1;
  Object oTable = xAllTextTables.getByIndex(MaxIndex);
  XTextTable xTextTable = (XTextTable) UnoRuntime.queryInterface(XTextTable.class, oTable);
  return xTextTable;
    }
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.