You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by av...@apache.org on 2005/04/28 16:04:23 UTC

cvs commit: jakarta-poi/src/java/org/apache/poi/hssf/model Workbook.java

avik        2005/04/28 07:04:23

  Modified:    src/java/org/apache/poi/hssf/model Workbook.java
  Log:
  bug 34007 - DBCS cell format, patch by Alexander Litvinov
  
  Revision  Changes    Path
  1.42      +4 -0      jakarta-poi/src/java/org/apache/poi/hssf/model/Workbook.java
  
  Index: Workbook.java
  ===================================================================
  RCS file: /home/cvs/jakarta-poi/src/java/org/apache/poi/hssf/model/Workbook.java,v
  retrieving revision 1.41
  retrieving revision 1.42
  diff -u -r1.41 -r1.42
  --- Workbook.java	19 Sep 2004 02:06:53 -0000	1.41
  +++ Workbook.java	28 Apr 2005 14:04:22 -0000	1.42
  @@ -23,11 +23,13 @@
   import org.apache.poi.hssf.util.SheetReferences;
   import org.apache.poi.util.POILogFactory;
   import org.apache.poi.util.POILogger;
  +import org.apache.poi.util.StringUtil;
   
   import java.util.ArrayList;
   import java.util.Iterator;
   import java.util.List;
   import java.util.Locale;
  +import java.io.UnsupportedEncodingException;
   
   /**
    * Low level model implementation of a Workbook.  Provides creational methods
  @@ -1989,6 +1991,7 @@
           maxformatid = maxformatid >= (short) 0xa4 ? (short) ( maxformatid + 1 ) : (short) 0xa4; //Starting value from M$ empiracle study.
           rec.setIndexCode( maxformatid );
           rec.setFormatStringLength( (byte) format.length() );
  +        rec.setUnicodeFlag(StringUtil.isUnicodeFormat(format));
           rec.setFormatString( format );
   
           int pos = 0;
  @@ -2000,6 +2003,7 @@
           return maxformatid;
       }
   
  +  
   
       /**
        * Returns the first occurance of a record matching a particular sid.
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
Mailing List:    http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/