2010-10-12 15:53:47 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2000-09-18 23:31:44 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 20:40:17 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2000-09-18 23:31:44 +00:00
|
|
|
*
|
2010-02-12 15:01:35 +01:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2000-09-18 23:31:44 +00:00
|
|
|
*
|
2008-04-10 20:40:17 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2000-09-18 23:31:44 +00:00
|
|
|
*
|
2008-04-10 20:40:17 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2000-09-18 23:31:44 +00:00
|
|
|
*
|
2008-04-10 20:40:17 +00:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2000-09-18 23:31:44 +00:00
|
|
|
*
|
2008-04-10 20:40:17 +00:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2000-09-18 23:31:44 +00:00
|
|
|
*
|
2008-04-10 20:40:17 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2000-09-18 23:31:44 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
2006-09-17 09:23:04 +00:00
|
|
|
// MARKER(update_precomp.py): autogen include statement, do not remove
|
|
|
|
#include "precompiled_xmloff.hxx"
|
2000-09-18 23:31:44 +00:00
|
|
|
#include <com/sun/star/xml/sax/SAXParseException.hpp>
|
|
|
|
#include <com/sun/star/xml/sax/XExtendedDocumentHandler.hpp>
|
|
|
|
#include <com/sun/star/xml/sax/SAXException.hpp>
|
|
|
|
#include <com/sun/star/xml/sax/XDocumentHandler.hpp>
|
|
|
|
#include <com/sun/star/xml/sax/XAttributeList.hpp>
|
|
|
|
#include <com/sun/star/xml/sax/XLocator.hpp>
|
2007-06-27 13:57:40 +00:00
|
|
|
#include <xmloff/nmspmap.hxx>
|
|
|
|
#include <xmloff/xmlimp.hxx>
|
|
|
|
#include <xmloff/xmlictxt.hxx>
|
2009-04-23 10:42:05 +00:00
|
|
|
#include <tools/debug.hxx>
|
2000-09-18 23:31:44 +00:00
|
|
|
|
2008-03-12 09:29:49 +00:00
|
|
|
using ::rtl::OUString;
|
|
|
|
using ::rtl::OUStringBuffer;
|
|
|
|
|
2000-09-18 23:31:44 +00:00
|
|
|
using namespace ::com::sun::star;
|
|
|
|
|
2009-04-23 10:42:05 +00:00
|
|
|
DBG_NAME(SvXMLImportContext)
|
2000-09-18 23:31:44 +00:00
|
|
|
TYPEINIT0( SvXMLImportContext );
|
2010-11-10 13:50:33 +08:00
|
|
|
SvXMLImportContext::SvXMLImportContext( SvXMLImport& rImp, sal_uInt16 nPrfx,
|
2000-09-18 23:31:44 +00:00
|
|
|
const OUString& rLName ) :
|
2006-06-19 17:06:52 +00:00
|
|
|
mrImport( rImp ),
|
|
|
|
mnPrefix( nPrfx ),
|
|
|
|
maLocalName( rLName ),
|
|
|
|
mpRewindMap( 0 )
|
2000-09-18 23:31:44 +00:00
|
|
|
{
|
2009-04-23 10:42:05 +00:00
|
|
|
DBG_CTOR(SvXMLImportContext,NULL);
|
|
|
|
|
2000-09-18 23:31:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
SvXMLImportContext::~SvXMLImportContext()
|
|
|
|
{
|
2009-04-23 10:42:05 +00:00
|
|
|
|
|
|
|
DBG_DTOR(SvXMLImportContext,NULL);
|
2000-09-18 23:31:44 +00:00
|
|
|
}
|
|
|
|
|
2010-11-10 13:50:33 +08:00
|
|
|
SvXMLImportContext *SvXMLImportContext::CreateChildContext( sal_uInt16 nPrefix,
|
2000-09-18 23:31:44 +00:00
|
|
|
const OUString& rLocalName,
|
|
|
|
const uno::Reference< xml::sax::XAttributeList >& xAttrList )
|
|
|
|
{
|
2006-06-19 17:06:52 +00:00
|
|
|
return mrImport.CreateContext( nPrefix, rLocalName, xAttrList );
|
2000-09-18 23:31:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void SvXMLImportContext::StartElement( const uno::Reference< xml::sax::XAttributeList >& )
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void SvXMLImportContext::EndElement()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2006-06-19 17:06:52 +00:00
|
|
|
void SvXMLImportContext::Characters( const OUString& )
|
2000-09-18 23:31:44 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2010-10-12 15:53:47 +02:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|