Kaydet (Commit) 8943478b authored tarafından Jian Fang Zhang's avatar Jian Fang Zhang Kaydeden (comit) Xisco Fauli

Related #i120832#, the style and color set on table text by user...

should have higher priority than that from table style

Found by: Jinlong Wu,wujinlong@gmail.com
Patch by: bjcheny,companycy@gmail.com
Review by: zhangjf

(cherry picked from commit fe7e723a)

Conflicts:
	writerfilter/source/dmapper/DomainMapper.cxx

Change-Id: I3f4c96d49de40b21cc3da9bcb5e588a270434cd8
üst b7df3446
......@@ -2165,9 +2165,15 @@ lcl_ApplyCellProperties(
xCellText->createTextCursor();
xCellCurs->gotoStart( sal_False );
xCellCurs->gotoEnd( sal_True );
const uno::Reference< beans::XPropertySet > xCellTextProps(
xCellCurs, uno::UNO_QUERY);
xCellTextProps->setPropertyValue(rName, rValue);
const uno::Reference< beans::XPropertyState >
xCellTextPropState(xCellCurs, uno::UNO_QUERY);
const beans::PropertyState state = xCellTextPropState->getPropertyState(rName);
if (state == beans::PropertyState_DEFAULT_VALUE)
{
const uno::Reference< beans::XPropertySet >
xCellTextProps(xCellCurs, uno::UNO_QUERY);
xCellTextProps->setPropertyValue(rName, rValue);
}
}
}
}
......
......@@ -1396,8 +1396,8 @@ bool SwWW8ImplReader::SetShadow(SvxShadowItem& rShadow, const short *pSizeArray,
: (pbrc[WW8_RIGHT].aBits2[ 1 ] & 0x20 ) )
&& (pSizeArray && pSizeArray[WW8_RIGHT])
);
if (bRet)
{
//if (bRet)
//{
rShadow.SetColor(Color(COL_BLACK));
short nVal = pSizeArray[WW8_RIGHT];
if (nVal < 0x10)
......@@ -1405,7 +1405,7 @@ bool SwWW8ImplReader::SetShadow(SvxShadowItem& rShadow, const short *pSizeArray,
rShadow.SetWidth(nVal);
rShadow.SetLocation(SVX_SHADOW_BOTTOMRIGHT);
bRet = true;
}
//}
return bRet;
}
......
......@@ -3547,12 +3547,6 @@ void DomainMapper::PopListProperties()
void DomainMapper::lcl_startCharacterGroup()
{
m_pImpl->PushProperties(CONTEXT_CHARACTER);
DomainMapperTableManager& rTableManager = m_pImpl->getTableManager();
if( !rTableManager.getTableStyleName().isEmpty() )
{
PropertyMapPtr pTopContext = m_pImpl->GetTopContext();
rTableManager.CopyTextProperties(pTopContext, m_pImpl->GetStyleSheetTable());
}
}
void DomainMapper::lcl_endCharacterGroup()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment