diff options
author | Yegor Kozlov <yegor@apache.org> | 2012-10-12 13:11:26 +0000 |
---|---|---|
committer | Yegor Kozlov <yegor@apache.org> | 2012-10-12 13:11:26 +0000 |
commit | 6a374984fecc9da07adc04356b5db0e8d725d5a5 (patch) | |
tree | 29e1b5e45eb7feb95fd62a41255e1824a597ddff /src/scratchpad | |
parent | 9487a47693d19d53d1cb4ae6ef15f1be79c2754a (diff) | |
download | poi-6a374984fecc9da07adc04356b5db0e8d725d5a5.tar.gz poi-6a374984fecc9da07adc04356b5db0e8d725d5a5.zip |
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
Diffstat (limited to 'src/scratchpad')
-rw-r--r-- | src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java b/src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java index 819e681912..64a1900abe 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java @@ -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, |