Package org.apache.poi.hssf.record

Examples of org.apache.poi.hssf.record.SupBookRecord


        int extBlockIndex = -1;
        ExternalBookBlock extBlock = null;

        // find ExternalBlock for Add-In functions and remember its index
        for (int i = 0; i < _externalBookBlocks.length; i++) {
            SupBookRecord ebr = _externalBookBlocks[i].getExternalBookRecord();
            if (ebr.isAddInFunctions()) {
                extBlock = _externalBookBlocks[i];
                extBlockIndex = i;
                break;
            }
        }
View Full Code Here


   * @param newUrl The URL replacement
   * @return true if the oldUrl was found and replaced with newUrl. Otherwise false
   */
  public boolean changeExternalReference(String oldUrl, String newUrl) {
    for(ExternalBookBlock ex : _externalBookBlocks) {
      SupBookRecord externalRecord = ex.getExternalBookRecord();
      if (externalRecord.isExternalReferences()
        && externalRecord.getURL().equals(oldUrl)) {
       
        externalRecord.setURL(newUrl);
        return true;
      }
    }
    return false;
  }
View Full Code Here

TOP

Related Classes of org.apache.poi.hssf.record.SupBookRecord

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.