LibreOffice Module sw (master)  1
Classes | Enumerations | Functions | Variables
xmlimp.cxx File Reference
#include <sal/config.h>
#include <sal/log.hxx>
#include <cassert>
#include <com/sun/star/document/PrinterIndependentLayout.hpp>
#include <com/sun/star/drawing/XDrawPage.hpp>
#include <com/sun/star/drawing/XDrawPageSupplier.hpp>
#include <com/sun/star/frame/Desktop.hpp>
#include <com/sun/star/frame/XSynchronousFrameLoader.hpp>
#include <com/sun/star/io/IOException.hpp>
#include <com/sun/star/lang/WrappedTargetRuntimeException.hpp>
#include <com/sun/star/text/XTextDocument.hpp>
#include <com/sun/star/text/XTextRange.hpp>
#include <o3tl/any.hxx>
#include <o3tl/safeint.hxx>
#include <xmloff/xmlnmspe.hxx>
#include <xmloff/xmltkmap.hxx>
#include <xmloff/xmlictxt.hxx>
#include <xmloff/txtimp.hxx>
#include <xmloff/nmspmap.hxx>
#include <xmloff/XMLTextShapeImportHelper.hxx>
#include <xmloff/XMLFontStylesContext.hxx>
#include <xmloff/ProgressBarHelper.hxx>
#include <doc.hxx>
#include <drawdoc.hxx>
#include <IDocumentSettingAccess.hxx>
#include <IDocumentDeviceAccess.hxx>
#include <IDocumentListsAccess.hxx>
#include <IDocumentStylePoolAccess.hxx>
#include <IDocumentDrawModelAccess.hxx>
#include <unofreg.hxx>
#include <TextCursorHelper.hxx>
#include <unotext.hxx>
#include <unotextrange.hxx>
#include <unocrsr.hxx>
#include <poolfmt.hxx>
#include <ndtxt.hxx>
#include <editsh.hxx>
#include <strings.hrc>
#include <svl/stritem.hxx>
#include "xmlimp.hxx"
#include "xmlimpit.hxx"
#include "xmltexti.hxx"
#include <list.hxx>
#include <swdll.hxx>
#include <xmloff/DocumentSettingsContext.hxx>
#include <docsh.hxx>
#include <editeng/unolingu.hxx>
#include <svx/svdmodel.hxx>
#include <svx/xmlgrhlp.hxx>
#include <svx/xmleohlp.hxx>
#include <sfx2/docfile.hxx>
#include <sfx2/docfilt.hxx>
#include <sfx2/frame.hxx>
#include <sfx2/printer.hxx>
#include <xmloff/xmluconv.hxx>
#include <unotools/saveopt.hxx>
#include <unotools/streamwrap.hxx>
#include <tools/helpers.hxx>
#include <tools/diagnose_ex.h>
#include <vcl/svapp.hxx>
#include <unotxdoc.hxx>
#include <numrule.hxx>
#include <xmloff/xmlmetai.hxx>
#include <xmloff/xformsimport.hxx>
#include <comphelper/servicehelper.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/propertysequence.hxx>
#include <unordered_set>
Include dependency graph for xmlimp.cxx:

Go to the source code of this file.

Classes

class  SwXMLBodyContext_Impl
 
class  SwXMLDocContext_Impl
 
class  SwXMLOfficeDocContext_Impl
 
class  SwXMLDocStylesContext_Impl
 
class  SvTextShapeImportHelper
 

Enumerations

enum  SwXMLDocTokens {
  XML_TOK_DOC_FONTDECLS,
  XML_TOK_DOC_STYLES,
  XML_TOK_DOC_AUTOSTYLES,
  XML_TOK_DOC_MASTERSTYLES,
  XML_TOK_DOC_META,
  XML_TOK_DOC_BODY,
  XML_TOK_DOC_SCRIPT,
  XML_TOK_DOC_SETTINGS,
  XML_TOK_DOC_XFORMS
}
 

Functions

static OTextCursorHelperlcl_xml_GetSwXTextCursor (const Reference< XTextCursor > &rTextCursor)
 
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_Writer_XMLOasisImporter_get_implementation (css::uno::XComponentContext *context, css::uno::Sequence< css::uno::Any > const &)
 
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_Writer_XMLOasisStylesImporter_get_implementation (css::uno::XComponentContext *context, css::uno::Sequence< css::uno::Any > const &)
 
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_Writer_XMLOasisContentImporter_get_implementation (css::uno::XComponentContext *context, css::uno::Sequence< css::uno::Any > const &)
 
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_Writer_XMLOasisMetaImporter_get_implementation (css::uno::XComponentContext *context, css::uno::Sequence< css::uno::Any > const &)
 
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_Writer_XMLOasisSettingsImporter_get_implementation (css::uno::XComponentContext *context, css::uno::Sequence< css::uno::Any > const &)
 
SAL_DLLPUBLIC_EXPORT bool TestImportFODT (SvStream &rStream)
 
SAL_DLLPUBLIC_EXPORT bool TestImportDOCX (SvStream &rStream)
 

Variables

static const SvXMLTokenMapEntry aDocTokenMap []
 

Enumeration Type Documentation

Enumerator
XML_TOK_DOC_FONTDECLS 
XML_TOK_DOC_STYLES 
XML_TOK_DOC_AUTOSTYLES 
XML_TOK_DOC_MASTERSTYLES 
XML_TOK_DOC_META 
XML_TOK_DOC_BODY 
XML_TOK_DOC_SCRIPT 
XML_TOK_DOC_SETTINGS 
XML_TOK_DOC_XFORMS 

Definition at line 107 of file xmlimp.cxx.

Function Documentation

SAL_DLLPUBLIC_EXPORT css::uno::XInterface* com_sun_star_comp_Writer_XMLOasisContentImporter_get_implementation ( css::uno::XComponentContext *  context,
css::uno::Sequence< css::uno::Any > const &   
)

Definition at line 1779 of file xmlimp.cxx.

SAL_DLLPUBLIC_EXPORT css::uno::XInterface* com_sun_star_comp_Writer_XMLOasisImporter_get_implementation ( css::uno::XComponentContext *  context,
css::uno::Sequence< css::uno::Any > const &   
)

Definition at line 1760 of file xmlimp.cxx.

SAL_DLLPUBLIC_EXPORT css::uno::XInterface* com_sun_star_comp_Writer_XMLOasisMetaImporter_get_implementation ( css::uno::XComponentContext *  context,
css::uno::Sequence< css::uno::Any > const &   
)

Definition at line 1788 of file xmlimp.cxx.

SAL_DLLPUBLIC_EXPORT css::uno::XInterface* com_sun_star_comp_Writer_XMLOasisSettingsImporter_get_implementation ( css::uno::XComponentContext *  context,
css::uno::Sequence< css::uno::Any > const &   
)

Definition at line 1797 of file xmlimp.cxx.

SAL_DLLPUBLIC_EXPORT css::uno::XInterface* com_sun_star_comp_Writer_XMLOasisStylesImporter_get_implementation ( css::uno::XComponentContext *  context,
css::uno::Sequence< css::uno::Any > const &   
)

Definition at line 1769 of file xmlimp.cxx.

static OTextCursorHelper* lcl_xml_GetSwXTextCursor ( const Reference< XTextCursor > &  rTextCursor)
static

Definition at line 481 of file xmlimp.cxx.

References OTextCursorHelper::getUnoTunnelId().

Referenced by SwXMLImport::startDocument().

SAL_DLLPUBLIC_EXPORT bool TestImportDOCX ( SvStream rStream)
SAL_DLLPUBLIC_EXPORT bool TestImportFODT ( SvStream rStream)

Variable Documentation

const SvXMLTokenMapEntry aDocTokenMap[]
static
Initial value:
=
{
{ XML_NAMESPACE_OFFICE, XML_FONT_FACE_DECLS, XML_TOK_DOC_FONTDECLS },
{ XML_NAMESPACE_OFFICE, XML_STYLES, XML_TOK_DOC_STYLES },
{ XML_NAMESPACE_OFFICE, XML_AUTOMATIC_STYLES, XML_TOK_DOC_AUTOSTYLES },
{ XML_NAMESPACE_OFFICE, XML_MASTER_STYLES, XML_TOK_DOC_MASTERSTYLES },
{ XML_NAMESPACE_OFFICE, XML_META, XML_TOK_DOC_META },
{ XML_NAMESPACE_OFFICE, XML_BODY, XML_TOK_DOC_BODY },
{ XML_NAMESPACE_OFFICE, XML_SCRIPTS, XML_TOK_DOC_SCRIPT },
{ XML_NAMESPACE_OFFICE, XML_SETTINGS, XML_TOK_DOC_SETTINGS },
{ XML_NAMESPACE_XFORMS, XML_MODEL, XML_TOK_DOC_XFORMS },
}
XML_STYLES
XML_MODEL
XML_BODY
XML_MASTER_STYLES
#define XML_TOKEN_MAP_END
XML_AUTOMATIC_STYLES
XML_SETTINGS
XML_SCRIPTS
XML_META
XML_FONT_FACE_DECLS

Definition at line 120 of file xmlimp.cxx.