]> source.dussan.org Git - poi.git/commitdiff
Bugzilla 53943 - added method processSymbol() to allow converting word symbols
authorYegor Kozlov <yegor@apache.org>
Fri, 12 Oct 2012 13:11:26 +0000 (13:11 +0000)
committerYegor Kozlov <yegor@apache.org>
Fri, 12 Oct 2012 13:11:26 +0000 (13:11 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1397554 13f79535-47bb-0310-9956-ffa450edef68

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

index a953da8f684cb142d6179937dfc6bad1ea9edb5b..3cfd2c194e12a27e5f2418c5e3c959b624db54f9 100644 (file)
@@ -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>
index 819e68191234336f4c52729964caf017812ba99c..64a1900abe52da517fcf7f57bbfacb9a3b98568e 100644 (file)
@@ -520,6 +520,13 @@ public abstract class AbstractWordConverter
                     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 AbstractWordConverter
             return false;
         }
     }
+    
+    protected void processSymbol( HWPFDocument doc, CharacterRun characterRun,
+            Element block )
+    {
+        
+    }
 
     @SuppressWarnings( "unused" )
     protected boolean processOle2( HWPFDocument wordDocument, Element block,