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:
@@ -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.
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user