summaryrefslogtreecommitdiff
path: root/sw/source/filter/xml/xmlimp.hxx
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2011-04-22 15:10:19 +0200
committerJan Holesovsky <kendy@suse.cz>2011-04-22 15:10:19 +0200
commita093a28ffe7cae74fb731e84dd3de09102763303 (patch)
tree8ce5586e27a76180d800c09f8b60d5cce3d1c140 /sw/source/filter/xml/xmlimp.hxx
parent8dc7fcfb5e5a8de2411d2bb29f450cabc3690859 (diff)
parent99796d2482c2931a1023b8230a3f6b18d1f48ebf (diff)
Merge commit 'ooo/DEV300_m106' into libreoffice-3-4
Conflicts: sw/source/core/docnode/ndnotxt.cxx sw/source/core/inc/viewimp.hxx sw/source/core/layout/fly.cxx sw/source/core/layout/paintfrm.cxx sw/source/filter/ww8/WW8TableInfo.cxx sw/source/filter/ww8/wrtw8nds.cxx sw/source/filter/ww8/wrtww8.cxx sw/source/filter/ww8/wrtww8.hxx sw/source/filter/ww8/ww8atr.cxx sw/source/filter/xml/xmlitemi.cxx sw/source/filter/xml/xmlmeta.cxx sw/source/ui/app/docsh2.cxx sw/source/ui/dialog/swdlgfact.cxx sw/source/ui/shells/grfsh.cxx
Diffstat (limited to 'sw/source/filter/xml/xmlimp.hxx')
-rw-r--r--sw/source/filter/xml/xmlimp.hxx21
1 files changed, 18 insertions, 3 deletions
diff --git a/sw/source/filter/xml/xmlimp.hxx b/sw/source/filter/xml/xmlimp.hxx
index ff17d5cc849b..ef9bc9320f57 100644
--- a/sw/source/filter/xml/xmlimp.hxx
+++ b/sw/source/filter/xml/xmlimp.hxx
@@ -26,14 +26,18 @@
*
************************************************************************/
-#ifndef _XMLIMP_HXX
-#define _XMLIMP_HXX
+#ifndef SW_XMLIMP_HXX
+#define SW_XMLIMP_HXX
+
+#include <com/sun/star/document/XDocumentProperties.hpp>
#include <sot/storage.hxx>
+
#include <xmloff/xmlictxt.hxx>
-#include "xmlitmap.hxx"
#include <xmloff/xmlimp.hxx>
+#include "xmlitmap.hxx"
+
class SwDoc;
class SwPaM;
class SvXMLUnitConverter;
@@ -180,6 +184,7 @@ public:
inline const SvXMLUnitConverter& GetTwipUnitConverter() const;
inline const SvXMLImportItemMapper& GetTableItemMapper() const;
+ inline SvXMLImportItemMapper& GetTableItemMapper();
SvXMLImportContext *CreateTableItemImportContext( sal_uInt16 nPrefix,
const ::rtl::OUString& rLocalName,
const ::com::sun::star::uno::Reference<
@@ -208,6 +213,11 @@ public:
// initialize XForms
virtual void initXForms();
+
+ // get the document properties, but only if they actually need importing
+ ::com::sun::star::uno::Reference<
+ ::com::sun::star::document::XDocumentProperties>
+ GetDocumentProperties() const;
};
inline const SvXMLUnitConverter& SwXMLImport::GetTwipUnitConverter() const
@@ -220,6 +230,11 @@ inline const SvXMLImportItemMapper& SwXMLImport::GetTableItemMapper() const
return *pTableItemMapper;
}
+inline SvXMLImportItemMapper& SwXMLImport::GetTableItemMapper()
+{
+ return *pTableItemMapper;
+}
+
inline void SwXMLImport::SetProgressValue( sal_Int32 nValue )
{
if ( bShowProgress )