Package org.apache.poi.hwpf.usermodel

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


        String[] ret;

        // Extract using the model code
        try
        {
            Range r = doc.getRange();

            ret = getParagraphText( r );
        }
        catch ( Exception e )
        {
View Full Code Here


        return ret;
    }

    public String[] getFootnoteText()
    {
        Range r = doc.getFootnoteRange();

        return getParagraphText( r );
    }
View Full Code Here

        return getParagraphText( r );
    }

    public String[] getMainTextboxText()
    {
        Range r = doc.getMainTextboxRange();

        return getParagraphText( r );
    }
View Full Code Here

        return getParagraphText( r );
    }

    public String[] getEndnoteText()
    {
        Range r = doc.getEndnoteRange();

        return getParagraphText( r );
    }
View Full Code Here

        return getParagraphText( r );
    }

    public String[] getCommentsText()
    {
        Range r = doc.getCommentsRange();

        return getParagraphText( r );
    }
View Full Code Here

   * @return a list of Picture objects found in current document
   */
  public List<Picture> getAllPictures() {
    ArrayList<Picture> pictures = new ArrayList<Picture>();

    Range range = _document.getOverallRange();
    for (int i = 0; i < range.numCharacterRuns(); i++) {
      CharacterRun run = range.getCharacterRun(i);

        if (run==null) {
            continue;
        }

View Full Code Here

    }

    public Range getOverallRange()
    {
        // Life is easy when we have no footers, headers or unicode!
        return new Range( 0, _fib.getFibBase().getFcMac() - _fib.getFibBase().getFcMin(), this );
    }
View Full Code Here

  {
    return _dop;
  }

  public Range getOverallRange() {
      return new Range(0, _text.length(), this);
  }
View Full Code Here

        for ( SubdocumentType previos : SubdocumentType.ORDERED )
        {
            int length = getFileInformationBlock()
                    .getSubdocumentTextStreamLength( previos );
            if ( subdocument == previos )
                return new Range( startCp, startCp + length, this );
            startCp += length;
        }
        throw new UnsupportedOperationException(
                "Subdocument type not supported: " + subdocument );
    }
View Full Code Here

                list.getLFOData() );
    }

  public void delete(int start, int length)
  {
    Range r = new Range(start, start + length, this);
    r.delete();
  }
View Full Code Here

TOP

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

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.