summaryrefslogtreecommitdiff
path: root/writerperfect/source/common/DocumentHandler.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'writerperfect/source/common/DocumentHandler.cxx')
-rw-r--r--writerperfect/source/common/DocumentHandler.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/writerperfect/source/common/DocumentHandler.cxx b/writerperfect/source/common/DocumentHandler.cxx
index 3ea4d053e4a6..29788200b6de 100644
--- a/writerperfect/source/common/DocumentHandler.cxx
+++ b/writerperfect/source/common/DocumentHandler.cxx
@@ -16,6 +16,7 @@
#include <com/sun/star/xml/sax/XAttributeList.hpp>
#include <xmloff/attrlist.hxx>
+#include <xmloff/xmlimp.hxx>
namespace writerperfect
{
@@ -110,8 +111,10 @@ using com::sun::star::xml::sax::XAttributeList;
using com::sun::star::xml::sax::XDocumentHandler;
DocumentHandler::DocumentHandler(Reference < XDocumentHandler > &xHandler) :
- mxHandler(xHandler)
+ mxHandler( xHandler )
{
+ if (SvXMLImport *pFastHandler = dynamic_cast<SvXMLImport*>(mxHandler.get()))
+ mxHandler.set( new SvXMLLegacyToFastDocHandler( pFastHandler ) );
}
void DocumentHandler::startDocument()