Examples of insertByIndex()


Examples of com.sun.star.container.XIndexContainer.insertByIndex()

      /* instanciate an IndexContainer that will take
         a list of draw page for the second custom show */
      xObj = xFactory.createInstance();
        xContainer = (XIndexContainer)UnoRuntime.queryInterface( XIndexContainer.class, xObj );
      for ( i = 1; i < 10; i++ )
        xContainer.insertByIndex( xContainer.getCount(), xDrawPages.getByIndex( i ) );
      xNameContainer.insertByName( "LongVersion", xContainer );

      /* which custom show is to use
         can been set in the presentation settings */

 
View Full Code Here

Examples of com.sun.star.container.XIndexContainer.insertByIndex()

    if ( nWidth > 0 )
      xColProps.setPropertyValue( "Width", new Integer( nWidth * 10 ) );

    // insert
    xColumnContainer.insertByIndex( xColumnContainer.getCount(), xNewCol );

    // outta here
    return xColProps;
  }

View Full Code Here

Examples of com.sun.star.report.XGroups.insertByIndex()

           try
           {
               // we need to append by hand
               // TODO: documentation is unclear here, that we have to insert by hand
               int nCount = xGroups.getCount();
               xGroups.insertByIndex(nCount, xGroup);

               final XSection xGroupSection = xGroup.getHeader();
               copyGroupProperties(nCount);
              
               Rectangle aRect = new Rectangle();
View Full Code Here

Examples of com.sun.star.report.XGroups.insertByIndex()

                // Spezial case, there is no Group.
                final XGroups xGroups = getReportDefinition().getGroups();
                final XGroup xGroup = xGroups.createGroup();
                xGroup.setHeaderOn(true);
              
                xGroups.insertByIndex(xGroups.getCount(), xGroup);
                xSection = xGroup.getHeader();
                copyGroupProperties(0);
                aSO = getDesignTemplate().getDetailLabel();
                aSO.setFontToBold();
            }
View Full Code Here

Examples of com.sun.star.report.XGroups.insertByIndex()

            try
            {
                // we need to append by hand
                // TODO: documentation is unclear here, that we have to insert by hand
                int nCount = xGroups.getCount();
                xGroups.insertByIndex(nCount, xGroup);

                final XSection xGroupSection = xGroup.getHeader();
                copyGroupProperties(nCount);

                Rectangle aRect = new Rectangle();
View Full Code Here

Examples of com.sun.star.report.XGroups.insertByIndex()

                // Spezial case, there is no Group.
                final XGroups xGroups = getReportDefinition().getGroups();
                final XGroup xGroup = xGroups.createGroup();
                xGroup.setHeaderOn(true);

                xGroups.insertByIndex(xGroups.getCount(), xGroup);
                xSection = xGroup.getHeader();
                copyGroupProperties(0);
                aSO = getDesignTemplate().getDetailLabel();
                aSO.setFontToBold();
            }
View Full Code Here

Examples of com.sun.star.report.XGroups.insertByIndex()

                xGroup.setHeaderOn(true);

                try
                {
                    int nCount = xGroups.getCount();
                    xGroups.insertByIndex(nCount, xGroup);
                    final XSection xGroupSection = xGroup.getHeader();
                    copyGroupProperties(nCount);

                    Rectangle aRect = new Rectangle();
                    aRect.X = nLeftPageIndent + getLeftGroupIndent(i);
View Full Code Here

Examples of com.sun.star.report.XGroups.insertByIndex()

                    final XGroup xGroup = xGroups.createGroup();
                    xGroup.setExpression(sortFieldName[0]);
                    xGroup.setSortAscending(PropertyNames.ASC.equals(sortFieldName[1]));
                    xGroup.setHeaderOn(false);
                    int nCount = xGroups.getCount();
                    xGroups.insertByIndex(nCount, xGroup);
                }
                catch (java.lang.Exception ex)
                {
                    Logger.getLogger(ReportBuilderLayouter.class.getName()).log(Level.SEVERE, null, ex);
                }
View Full Code Here

Examples of com.sun.star.report.XGroups.insertByIndex()

            {
                // Spezial case, there is no Group.
                xGroup = xGroups.createGroup();
                xGroup.setHeaderOn(true);

                xGroups.insertByIndex(xGroups.getCount(), xGroup);
                copyGroupProperties(0);
                aSO = getDesignTemplate().getDetailLabel();
                aSO.setFontToBold();
            }
            else
View Full Code Here

Examples of com.sun.star.table.XTableRows.insertByIndex()

     * @param start
     * @param count
     */
    public static void insertTableRows(Object table, int start, int count) {
        XTableRows rows = ((XTextTable)UnoRuntime.queryInterface(XTextTable.class,table)).getRows();
        rows.insertByIndex(start, count);
    }
       
    /**
     * returns the row index for this cursor, assuming
     * the cursor points to a single cell.
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.