diff options
author | Sun Ying <sunying@apache.org> | 2012-08-16 02:22:49 +0000 |
---|---|---|
committer | Xisco Fauli <anistenis@gmail.com> | 2013-04-07 23:37:39 +0200 |
commit | b619ffdbb3656bc01a603afb26caea8a483bc5ec (patch) | |
tree | 1e713713b388eb8d7256e1b9a4680559db5d2c2e /sd | |
parent | Fix issue #i120568: Hyperlink of Graphihc with Anchor Type "As Character" (diff) | |
download | core-b619ffdbb3656bc01a603afb26caea8a483bc5ec.tar.gz core-b619ffdbb3656bc01a603afb26caea8a483bc5ec.zip |
#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
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/filter/eppt/epptso.cxx | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/sd/source/filter/eppt/epptso.cxx b/sd/source/filter/eppt/epptso.cxx index a67fbdf186f9..05332830c128 100644 --- a/sd/source/filter/eppt/epptso.cxx +++ b/sd/source/filter/eppt/epptso.cxx @@ -3701,15 +3701,27 @@ void PPTWriter::ImplCreateTable( uno::Reference< drawing::XShape >& rXShape, Esc 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 ); mpPptEscherEx->AddAtom( 16, ESCHER_ChildAnchor ); *mpStrm << nLeft - << nTop - << nRight - << nBottom; + << nTop + << nRight + << nBottom; *mpStrm << (sal_uInt32)( ( ESCHER_ClientTextbox << 16 ) | 0xf ) - << (sal_uInt32)aClientTextBox.Tell(); + << (sal_uInt32)aClientTextBox.Tell(); mpStrm->Write( aClientTextBox.GetData(), aClientTextBox.Tell() ); mpPptEscherEx->CloseContainer(); |