|
|
|
@ -322,9 +322,9 @@ void KWordTextHandler::writeFormat( QDomElement& parentElement, const wvWare::Wo
|
|
|
|
|
format.setAttribute( "pos", pos );
|
|
|
|
|
format.setAttribute( "len", len );
|
|
|
|
|
|
|
|
|
|
if ( !refChp || refChp->ico != chp->ico )
|
|
|
|
|
if ( !refChp || refChp->cv != chp->cv )
|
|
|
|
|
{
|
|
|
|
|
QColor color = Conversion::color( chp->ico, -1 );
|
|
|
|
|
QColor color = Conversion::color( chp->cv, -1 );
|
|
|
|
|
QDomElement colorElem( mainDocument().createElement( "COLOR" ) );
|
|
|
|
|
colorElem.setAttribute( "red", color.red() );
|
|
|
|
|
colorElem.setAttribute( "blue", color.blue() );
|
|
|
|
@ -436,11 +436,11 @@ void KWordTextHandler::writeFormat( QDomElement& parentElement, const wvWare::Wo
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// background color is known as "highlight" in msword
|
|
|
|
|
if ( !refChp || refChp->fHighlight != chp->fHighlight || refChp->icoHighlight != chp->icoHighlight ) {
|
|
|
|
|
if ( !refChp || refChp->fHighlight != chp->fHighlight || refChp->cvHighlight != chp->cvHighlight ) {
|
|
|
|
|
QDomElement bgcolElem( mainDocument().createElement( "TEXTBACKGROUNDCOLOR" ) );
|
|
|
|
|
if ( chp->fHighlight )
|
|
|
|
|
{
|
|
|
|
|
QColor color = Conversion::color( chp->icoHighlight, -1 );
|
|
|
|
|
QColor color = Conversion::color( chp->cvHighlight, -1 );
|
|
|
|
|
bgcolElem.setAttribute( "red", color.red() );
|
|
|
|
|
bgcolElem.setAttribute( "blue", color.blue() );
|
|
|
|
|
bgcolElem.setAttribute( "green", color.green() );
|
|
|
|
|