Package org.apache.poi.hwpf.usermodel

Examples of org.apache.poi.hwpf.usermodel.TableProperties


  }

  public static TableProperties uncompressTAP(byte[] grpprl,
                                                  int offset)
  {
    TableProperties newProperties = new TableProperties();

    SprmIterator sprmIt = new SprmIterator(grpprl, offset);

    while (sprmIt.hasNext())
    {
View Full Code Here


  }

  public static TableProperties uncompressTAP(byte[] grpprl,
                                                  int offset)
  {
    TableProperties newProperties = new TableProperties();

    SprmIterator sprmIt = new SprmIterator(grpprl, offset);

    while (sprmIt.hasNext())
    {
View Full Code Here

        SprmOperation sprmOperation = new SprmOperation( example, 0 );
        assertEquals( SprmOperation.TYPE_TAP, sprmOperation.getType() );
        assertEquals( (short) 0x08, sprmOperation.getOperation() );

        TableProperties tableProperties = new TableProperties();
        TableSprmUncompressor.unCompressTAPOperation( tableProperties,
                sprmOperation );

        assertEquals( 2, tableProperties.getItcMac() );
        assertEquals( 3, tableProperties.getRgdxaCenter().length );
        assertEquals( (short) 0xff94, tableProperties.getRgdxaCenter()[0] );
        assertEquals( (short) 0x0353, tableProperties.getRgdxaCenter()[1] );
        assertEquals( (short) 0x1360, tableProperties.getRgdxaCenter()[2] );

        assertEquals( 2, tableProperties.getRgtc().length );
        assertEquals( (short) 0x03bf, tableProperties.getRgtc()[0].getWWidth() );
        assertEquals( (short) 0x100d, tableProperties.getRgtc()[1].getWWidth() );
    }
View Full Code Here

  }

  public static TableProperties uncompressTAP(byte[] grpprl,
                                                  int offset)
  {
    TableProperties newProperties = new TableProperties();

    SprmIterator sprmIt = new SprmIterator(grpprl, offset);

    while (sprmIt.hasNext())
    {
View Full Code Here

  }

  public static TableProperties uncompressTAP(byte[] grpprl,
                                                  int offset)
  {
    TableProperties newProperties = new TableProperties();

    SprmIterator sprmIt = new SprmIterator(grpprl, offset);

    while (sprmIt.hasNext())
    {
View Full Code Here

  }

  public static TableProperties uncompressTAP(byte[] grpprl,
                                                  int offset)
  {
    TableProperties newProperties = new TableProperties();

    SprmIterator sprmIt = new SprmIterator(grpprl, offset);

    while (sprmIt.hasNext())
    {
View Full Code Here

  @Deprecated
  public static TableProperties uncompressTAP(byte[] grpprl,
                                                  int offset)
  {
    TableProperties newProperties = new TableProperties();

    SprmIterator sprmIt = new SprmIterator(grpprl, offset);

    while (sprmIt.hasNext())
    {
View Full Code Here

    return newProperties;
  }

    public static TableProperties uncompressTAP( SprmBuffer sprmBuffer )
    {
        TableProperties tableProperties;

        SprmOperation sprmOperation = sprmBuffer.findSprm( (short) 0xd608 );
        if ( sprmOperation != null )
        {
            byte[] grpprl = sprmOperation.getGrpprl();
            int offset = sprmOperation.getGrpprlOffset();
            short itcMac = grpprl[offset];
            tableProperties = new TableProperties( itcMac );
        }
        else
        {
            logger.log( POILogger.WARN,
                    "Some table rows didn't specify number of columns in SPRMs" );
            tableProperties = new TableProperties( (short) 1 );
        }

        for ( SprmIterator iterator = sprmBuffer.iterator(); iterator.hasNext(); )
        {
            SprmOperation sprm = iterator.next();
View Full Code Here

TOP

Related Classes of org.apache.poi.hwpf.usermodel.TableProperties

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.