Bugzilla 53943 - added method processSymbol() to allow converting word symbols

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1397554 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yegor Kozlov 2012-10-12 13:11:26 +00:00
parent 6000b0e528
commit a9d303d6ab
2 changed files with 14 additions and 0 deletions

View 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>

View 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,