diff options
author | Miklos Vajna <vmiklos@frugalware.org> | 2012-01-03 12:43:19 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@frugalware.org> | 2012-01-03 12:43:37 +0100 |
commit | 867eed75e6f3e742ac383b65659cc7e98fa1c83c (patch) | |
tree | 0881a9b51ff84a02eba38ececb2b6b217201cf90 /sw | |
parent | 199d220580fda3c4a4ad94a74eca374301377619 (diff) |
Related: fdo#37161 update layout (if present) before DOCX export
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/docxexportfilter.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sw/source/filter/ww8/docxexportfilter.cxx b/sw/source/filter/ww8/docxexportfilter.cxx index 38faf1c41020..a780c5c3457f 100644 --- a/sw/source/filter/ww8/docxexportfilter.cxx +++ b/sw/source/filter/ww8/docxexportfilter.cxx @@ -32,6 +32,7 @@ #include "docxexport.hxx" #include <docsh.hxx> +#include <editsh.hxx> #include <pam.hxx> #include <unotxdoc.hxx> @@ -62,6 +63,12 @@ bool DocxExportFilter::exportDocument() if ( !pDoc ) return false; + // update layout (if present), for SwWriteTable + ViewShell* pViewShell = NULL; + pDoc->GetEditShell(&pViewShell); + if (pViewShell != NULL) + pViewShell->CalcLayout(); + // get SwPaM* // FIXME so far we get SwPaM for the entire document; probably we should // be able to output just the selection as well - though no idea how to |