poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ye...@apache.org
Subject svn commit: r1397554 - in /poi/trunk/src: documentation/content/xdocs/status.xml scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java
Date Fri, 12 Oct 2012 13:11:26 GMT
Author: yegor
Date: Fri Oct 12 13:11:26 2012
New Revision: 1397554

URL: http://svn.apache.org/viewvc?rev=1397554&view=rev
Log:
Bugzilla 53943 - added method processSymbol() to allow converting word symbols

Modified:
    poi/trunk/src/documentation/content/xdocs/status.xml
    poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java

Modified: poi/trunk/src/documentation/content/xdocs/status.xml
URL: http://svn.apache.org/viewvc/poi/trunk/src/documentation/content/xdocs/status.xml?rev=1397554&r1=1397553&r2=1397554&view=diff
==============================================================================
--- poi/trunk/src/documentation/content/xdocs/status.xml (original)
+++ poi/trunk/src/documentation/content/xdocs/status.xml Fri Oct 12 13:11:26 2012
@@ -34,6 +34,7 @@
 
     <changes>
         <release version="3.9-beta1" date="2012-??-??">
+          <action dev="poi-developers" type="add">53943 - added method processSymbol()
to allow converting word symbols   </action>
           <action dev="poi-developers" type="fix">53763 - avoid style mess when using
HSSFOptimiser  </action>
           <action dev="poi-developers" type="fix">52972 - preserve leading / trailing
spaces in SXSSF </action>
           <action dev="poi-developers" type="fix">53965 - Fixed XmlValueOutOfRangeExceptio
calling getDataValidations for custom validations with XSSFSheet </action>

Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java?rev=1397554&r1=1397553&r2=1397554&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java
(original)
+++ poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java
Fri Oct 12 13:11:26 2012
@@ -520,6 +520,13 @@ public abstract class AbstractWordConver
                     processOle2( doc, characterRun, block );
                     continue;
                 }
+                if ( characterRun.isSymbol()
+                        && ( wordDocument instanceof HWPFDocument ) )
+                {
+                    HWPFDocument doc = (HWPFDocument) wordDocument;
+                    processSymbol( doc, characterRun, block );
+                    continue;
+                }
             }
 
             if ( text.getBytes()[0] == FIELD_BEGIN_MARK )
@@ -1003,6 +1010,12 @@ public abstract class AbstractWordConver
             return false;
         }
     }
+    
+    protected void processSymbol( HWPFDocument doc, CharacterRun characterRun,
+            Element block )
+    {
+        
+    }
 
     @SuppressWarnings( "unused" )
     protected boolean processOle2( HWPFDocument wordDocument, Element block,



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message