Kaydet (Commit) f2bb9c92 authored tarafından Sun Ying's avatar Sun Ying

#119515# fix the numbering bullet in table cell changed when saved to .ppt file

Reported by: liupingtan 
Patch by: Ying Sun
Review by: Jian Yuan Li
üst eb35d2fe
...@@ -5741,15 +5741,27 @@ void PPTWriter::ImplCreateTable( uno::Reference< drawing::XShape >& rXShape, Esc ...@@ -5741,15 +5741,27 @@ void PPTWriter::ImplCreateTable( uno::Reference< drawing::XShape >& rXShape, Esc
ImplWriteTextStyleAtom( aClientTextBox, EPP_TEXTTYPE_Other, 0, NULL, aExtBu, &aPropOptSp ); ImplWriteTextStyleAtom( aClientTextBox, EPP_TEXTTYPE_Other, 0, NULL, aExtBu, &aPropOptSp );
// need write client data for extend bullet
if ( aExtBu.Tell() )
{
SvMemoryStream* pClientData = new SvMemoryStream( 0x200, 0x200 );
ImplProgTagContainer( pClientData, &aExtBu );
*mpStrm << (sal_uInt32)( ( ESCHER_ClientData << 16 ) | 0xf )
<< (sal_uInt32)pClientData->Tell();
mpStrm->Write( pClientData->GetData(), pClientData->Tell() );
delete pClientData, pClientData = NULL;
}
aPropOptSp.Commit( *mpStrm ); aPropOptSp.Commit( *mpStrm );
mpPptEscherEx->AddAtom( 16, ESCHER_ChildAnchor ); mpPptEscherEx->AddAtom( 16, ESCHER_ChildAnchor );
*mpStrm << nLeft *mpStrm << nLeft
<< nTop << nTop
<< nRight << nRight
<< nBottom; << nBottom;
*mpStrm << (sal_uInt32)( ( ESCHER_ClientTextbox << 16 ) | 0xf ) *mpStrm << (sal_uInt32)( ( ESCHER_ClientTextbox << 16 ) | 0xf )
<< (sal_uInt32)aClientTextBox.Tell(); << (sal_uInt32)aClientTextBox.Tell();
mpStrm->Write( aClientTextBox.GetData(), aClientTextBox.Tell() ); mpStrm->Write( aClientTextBox.GetData(), aClientTextBox.Tell() );
mpPptEscherEx->CloseContainer(); mpPptEscherEx->CloseContainer();
......
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