diff options
author | Miklos Vajna <vmiklos@frugalware.org> | 2012-01-25 16:33:25 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@frugalware.org> | 2012-01-25 16:33:25 +0100 |
commit | bb147bbb801b53dba8928340df7e2aa2d4545349 (patch) | |
tree | 5b109c95eb4f1015788ba11e42be0def5c6a9737 | |
parent | 00db55ff835d78885bff83a372e601f64e732c6d (diff) |
fdo#43869 use the old rtf importer for paste
-rw-r--r-- | sw/source/filter/rtf/swparrtf.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sw/source/filter/rtf/swparrtf.cxx b/sw/source/filter/rtf/swparrtf.cxx index 8099617c957e..81abb16d8a0f 100644 --- a/sw/source/filter/rtf/swparrtf.cxx +++ b/sw/source/filter/rtf/swparrtf.cxx @@ -34,6 +34,7 @@ #include <tools/stream.hxx> #include <svl/itemiter.hxx> #include <svtools/rtftoken.h> +#include <svtools/miscopt.hxx> #include <svl/intitem.hxx> #include <editeng/fhgtitem.hxx> #include <editeng/ulspitem.hxx> @@ -161,6 +162,11 @@ sal_uLong SwRTFReader::Read( SwDoc &rDoc, const String& /*rBaseURL*/, SwPaM& /*r extern "C" SAL_DLLPUBLIC_EXPORT Reader* SAL_CALL ImportRTF() { + // Use the old rtf importer by default for paste, till the new one supports + // undo stack and PaM. + SvtMiscOptions aMiscOptions; + if (!aMiscOptions.IsExperimentalMode()) + return new RtfReader(); return new SwRTFReader(); } |