[prev in list] [next in list] [prev in thread] [next in thread] 

List:       poi-dev
Subject:    cvs commit: jakarta-poi/src/java/org/apache/poi/hssf/model Workbook.java
From:       avik () apache ! org
Date:       2005-04-28 14:04:23
Message-ID: 20050428140423.25703.qmail () minotaur ! apache ! org
[Download RAW message or body]

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/


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic