diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2011-03-07 16:51:11 +0100 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2011-03-07 16:51:11 +0100 |
commit | 4c83e80e4d1d7f4f659ed93936fbfd32db2f565c (patch) | |
tree | 1f3af3c3bb09b06302caf9c03881b7fcf52ae54f /sw/source/filter | |
parent | 3982b1eaa999fd7dbb7c011dfb49c380ae6899ba (diff) | |
parent | 7359e482bd5446a9097a3272729f0bd6317c4a0e (diff) |
CWS-TOOLING: integrate CWS os150
Diffstat (limited to 'sw/source/filter')
-rwxr-xr-x[-rw-r--r--] | sw/source/filter/ww8/rtfexport.cxx | 9 | ||||
-rwxr-xr-x[-rw-r--r--] | sw/source/filter/ww8/rtfexport.hxx | 2 | ||||
-rwxr-xr-x[-rw-r--r--] | sw/source/filter/ww8/wrtw8nds.cxx | 2 |
3 files changed, 11 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/rtfexport.cxx b/sw/source/filter/ww8/rtfexport.cxx index 357a7aff1e57..434b4b67c333 100644..100755 --- a/sw/source/filter/ww8/rtfexport.cxx +++ b/sw/source/filter/ww8/rtfexport.cxx @@ -118,6 +118,11 @@ RtfSdrExport& RtfExport::SdrExporter() const return *m_pSdrExport; } +bool RtfExport::HackIsWW8OrHigher() const +{ + return true; +} + bool RtfExport::CollapseScriptsforWordOk( sal_uInt16 nScript, sal_uInt16 nWhich ) { // FIXME is this actually true for rtf? - this is copied from DOCX @@ -480,6 +485,10 @@ void RtfExport::WritePageDescTable() } Strm() << '}' << sNewLine; bOutPageDescs = sal_False; + + // reset table infos, otherwise the depth of the cells will be incorrect, + // in case the page style (header or footer) had tables + mpTableInfo = ww8::WW8TableInfo::Pointer_t(new ww8::WW8TableInfo()); } void RtfExport::ExportDocument_Impl() diff --git a/sw/source/filter/ww8/rtfexport.hxx b/sw/source/filter/ww8/rtfexport.hxx index e73cd9b822c5..a6f018cddb7e 100644..100755 --- a/sw/source/filter/ww8/rtfexport.hxx +++ b/sw/source/filter/ww8/rtfexport.hxx @@ -82,7 +82,7 @@ public: virtual RtfSdrExport& SdrExporter() const; /// Hack, unfortunately necessary at some places for now. - virtual bool HackIsWW8OrHigher() const { return false; } + virtual bool HackIsWW8OrHigher() const; /// Guess the script (asian/western). virtual bool CollapseScriptsforWordOk( sal_uInt16 nScript, sal_uInt16 nWhich ); diff --git a/sw/source/filter/ww8/wrtw8nds.cxx b/sw/source/filter/ww8/wrtw8nds.cxx index f253f743623c..14762beefd46 100644..100755 --- a/sw/source/filter/ww8/wrtw8nds.cxx +++ b/sw/source/filter/ww8/wrtw8nds.cxx @@ -576,7 +576,7 @@ void SwAttrIter::OutAttr( xub_StrLen nSwPos ) characters. */ if ( !m_rExport.HackIsWW8OrHigher() ) - aFont.GetCharSet() = GetCharSet(); + aFont.SetCharSet( GetCharSet() ); if ( rParentFont != aFont ) m_rExport.AttrOutput().OutputItem( aFont ); |