Lines 3449-3454
Link Here
|
3449 |
} |
3449 |
} |
3450 |
} |
3450 |
} |
3451 |
|
3451 |
|
|
|
3452 |
void SwWW8ImplReader::Read_UnderlineColor(sal_uInt16, const sal_uInt8* pData, short nLen) |
3453 |
{ |
3454 |
if( nLen < 0 ) |
3455 |
{ |
3456 |
//because the UnderlineColor is not a standalone attribute in SW, it belongs to the underline attribute. |
3457 |
//And, the .doc file stores attributes separately, this attribute ends here, the "underline" |
3458 |
//attribute also terminates (if the character next owns underline, that will be a new underline attribute). |
3459 |
//so nothing is left to be done here. |
3460 |
return; |
3461 |
} |
3462 |
else |
3463 |
{ |
3464 |
if ( pAktColl ) //importing style |
3465 |
{ |
3466 |
if( SFX_ITEM_SET == pAktColl->GetItemState( RES_CHRATR_UNDERLINE, sal_False ) ) |
3467 |
{ |
3468 |
const SwAttrSet& aSet = pAktColl->GetAttrSet(); |
3469 |
SvxUnderlineItem *pUnderline |
3470 |
= (SvxUnderlineItem *)(aSet.Get( RES_CHRATR_UNDERLINE, sal_False ).Clone()); |
3471 |
if(pUnderline){ |
3472 |
pUnderline->SetColor( Color( wwUtility::BGRToRGB(SVBT32ToUInt32(pData)) ) ); |
3473 |
pAktColl->SetFmtAttr( *pUnderline ); |
3474 |
delete pUnderline; |
3475 |
} |
3476 |
} |
3477 |
} |
3478 |
else if ( pAktItemSet ) |
3479 |
{ |
3480 |
if ( SFX_ITEM_SET == pAktItemSet->GetItemState( RES_CHRATR_UNDERLINE, sal_False ) ) |
3481 |
{ |
3482 |
SvxUnderlineItem *pUnderline |
3483 |
= (SvxUnderlineItem *)(pAktItemSet->Get( RES_CHRATR_UNDERLINE, sal_False ) .Clone()); |
3484 |
if(pUnderline){ |
3485 |
pUnderline->SetColor( Color( wwUtility::BGRToRGB(SVBT32ToUInt32(pData)) ) ); |
3486 |
pAktItemSet->Put( *pUnderline ); |
3487 |
delete pUnderline; |
3488 |
} |
3489 |
} |
3490 |
} |
3491 |
else |
3492 |
{ |
3493 |
SvxUnderlineItem* pUnderlineAttr = (SvxUnderlineItem*)pCtrlStck->GetOpenStackAttr( *pPaM->GetPoint(), RES_CHRATR_UNDERLINE ); |
3494 |
if( pUnderlineAttr != NULL ) |
3495 |
pUnderlineAttr->SetColor( Color( wwUtility::BGRToRGB(SVBT32ToUInt32( pData )))); |
3496 |
} |
3497 |
} |
3498 |
} |
3452 |
bool SwWW8ImplReader::GetFontParams( sal_uInt16 nFCode, FontFamily& reFamily, |
3499 |
bool SwWW8ImplReader::GetFontParams( sal_uInt16 nFCode, FontFamily& reFamily, |
3453 |
String& rName, FontPitch& rePitch, CharSet& reCharSet ) |
3500 |
String& rName, FontPitch& rePitch, CharSet& reCharSet ) |
3454 |
{ |
3501 |
{ |
Lines 6130-6135
Link Here
|
6130 |
{0x6815, 0}, //undocumented |
6177 |
{0x6815, 0}, //undocumented |
6131 |
{0x6816, 0}, //undocumented |
6178 |
{0x6816, 0}, //undocumented |
6132 |
{0x6870, &SwWW8ImplReader::Read_TxtForeColor}, |
6179 |
{0x6870, &SwWW8ImplReader::Read_TxtForeColor}, |
|
|
6180 |
{0x6877, &SwWW8ImplReader::Read_UnderlineColor}, |
6133 |
{0xC64D, &SwWW8ImplReader::Read_ParaBackColor}, |
6181 |
{0xC64D, &SwWW8ImplReader::Read_ParaBackColor}, |
6134 |
{0x6467, 0}, //undocumented |
6182 |
{0x6467, 0}, //undocumented |
6135 |
{0xF617, 0}, //undocumented |
6183 |
{0xF617, 0}, //undocumented |