Kaydet (Commit) fe7e723a authored tarafından Jian Fang Zhang's avatar Jian Fang Zhang

#i120832#, the style and color set on table text by user should have higher…

#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
üst 7db8da41
......@@ -2176,9 +2176,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);
}
}
}
}
......
......@@ -4357,11 +4357,6 @@ void DomainMapper::lcl_startCharacterGroup()
{
m_pImpl->PushProperties(CONTEXT_CHARACTER);
DomainMapperTableManager& rTableManager = m_pImpl->getTableManager();
if( rTableManager.getTableStyleName().getLength() )
{
PropertyMapPtr pTopContext = m_pImpl->GetTopContext();
rTableManager.CopyTextProperties(pTopContext, m_pImpl->GetStyleSheetTable());
}
}
/*-- 09.06.2006 09:52:14---------------------------------------------------
......
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