fdo#58819 VML export: handle objects anchored in the header / footer

Previously such shapes landed in the middle of section properties.

Change-Id: I7993eaa721e2b53d8adb1cbdee40992bbeb11416
This commit is contained in:
Miklos Vajna
2013-06-13 12:07:33 +02:00
parent 5bf554a891
commit c7e237045d
3 changed files with 9 additions and 0 deletions

View File

@@ -75,6 +75,8 @@ public:
::sax_fastparser::FSHelperPtr
GetFS() { return m_pSerializer; }
void SetFS(::sax_fastparser::FSHelperPtr pSerializer);
/// Export the sdr object as VML.
///
/// Call this when you need to export the object as VML.

View File

@@ -49,6 +49,11 @@ VMLExport::VMLExport( ::sax_fastparser::FSHelperPtr pSerializer, VMLTextExport*
memset( m_pShapeTypeWritten, 0, ESCHER_ShpInst_COUNT * sizeof( bool ) );
}
void VMLExport::SetFS( ::sax_fastparser::FSHelperPtr pSerializer )
{
m_pSerializer = pSerializer;
}
VMLExport::~VMLExport()
{
delete mpOutStrm, mpOutStrm = NULL;

View File

@@ -599,12 +599,14 @@ void DocxExport::WriteHeaderFooter( const SwFmt& rFmt, bool bHeader, const char*
// switch the serializer to redirect the output to word/styles.xml
m_pAttrOutput->SetSerializer( pFS );
m_pVMLExport->SetFS( pFS );
// do the work
WriteHeaderFooterText( rFmt, bHeader );
// switch the serializer back
m_pAttrOutput->SetSerializer( m_pDocumentFS );
m_pVMLExport->SetFS( m_pDocumentFS );
// close the tag
sal_Int32 nReference;