made getHighlightColor() public, so convertor don't need to clone CHP info

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1147454 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sergey Vladimirov 2011-07-16 16:33:13 +00:00
parent ed845ff18f
commit 3bc22e541c
1 changed files with 2 additions and 5 deletions

View File

@ -17,7 +17,6 @@
package org.apache.poi.hwpf.converter;
import org.apache.poi.hwpf.usermodel.BorderCode;
import org.apache.poi.hwpf.usermodel.CharacterProperties;
import org.apache.poi.hwpf.usermodel.CharacterRun;
import org.apache.poi.hwpf.usermodel.Paragraph;
import org.apache.poi.hwpf.usermodel.Picture;
@ -62,11 +61,9 @@ public class WordToFoUtils extends AbstractWordUtils
public static void setCharactersProperties(
final CharacterRun characterRun, final Element inline )
{
final CharacterProperties clonedProperties = characterRun
.cloneProperties();
StringBuilder textDecorations = new StringBuilder();
setBorder( inline, clonedProperties.getBrc(), EMPTY );
setBorder( inline, characterRun.getBorder(), EMPTY );
if ( characterRun.isCapitalized() )
{
@ -75,7 +72,7 @@ public class WordToFoUtils extends AbstractWordUtils
if ( characterRun.isHighlighted() )
{
inline.setAttribute( "background-color",
getColor( clonedProperties.getIcoHighlight() ) );
getColor( characterRun.getHighlightedColor() ) );
}
if ( characterRun.isStrikeThrough() )
{