xref: /aoo42x/main/xmloff/source/core/xmlictxt.cxx (revision f3b8b509)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 // MARKER(update_precomp.py): autogen include statement, do not remove
25 #include "precompiled_xmloff.hxx"
26 #include <com/sun/star/xml/sax/SAXParseException.hpp>
27 #include <com/sun/star/xml/sax/XExtendedDocumentHandler.hpp>
28 #include <com/sun/star/xml/sax/SAXException.hpp>
29 #include <com/sun/star/xml/sax/XDocumentHandler.hpp>
30 #include <com/sun/star/xml/sax/XAttributeList.hpp>
31 #include <com/sun/star/xml/sax/XLocator.hpp>
32 #include <xmloff/nmspmap.hxx>
33 #include <xmloff/xmlimp.hxx>
34 #include <xmloff/xmlictxt.hxx>
35 #include <tools/debug.hxx>
36 
37 using ::rtl::OUString;
38 using ::rtl::OUStringBuffer;
39 
40 using namespace ::com::sun::star;
41 
42 DBG_NAME(SvXMLImportContext)
43 TYPEINIT0( SvXMLImportContext );
SvXMLImportContext(SvXMLImport & rImp,sal_uInt16 nPrfx,const OUString & rLName)44 SvXMLImportContext::SvXMLImportContext( SvXMLImport& rImp, sal_uInt16 nPrfx,
45 							  const OUString& rLName ) :
46 	mrImport( rImp ),
47 	mnPrefix( nPrfx ),
48 	maLocalName( rLName ),
49 	mpRewindMap( 0 )
50 {
51     DBG_CTOR(SvXMLImportContext,NULL);
52 
53 }
54 
~SvXMLImportContext()55 SvXMLImportContext::~SvXMLImportContext()
56 {
57 
58     DBG_DTOR(SvXMLImportContext,NULL);
59 }
60 
CreateChildContext(sal_uInt16 nPrefix,const OUString & rLocalName,const uno::Reference<xml::sax::XAttributeList> & xAttrList)61 SvXMLImportContext *SvXMLImportContext::CreateChildContext( sal_uInt16 nPrefix,
62 											const OUString& rLocalName,
63 											const uno::Reference< xml::sax::XAttributeList >& xAttrList )
64 {
65 	return mrImport.CreateContext( nPrefix, rLocalName, xAttrList );
66 }
67 
StartElement(const uno::Reference<xml::sax::XAttributeList> &)68 void SvXMLImportContext::StartElement( const uno::Reference< xml::sax::XAttributeList >& )
69 {
70 }
71 
EndElement()72 void SvXMLImportContext::EndElement()
73 {
74 }
75 
Characters(const OUString &)76 void SvXMLImportContext::Characters( const OUString& )
77 {
78 }
79 
onDemandRescueUsefulDataFromTemporary(const SvXMLImportContext &)80 void SvXMLImportContext::onDemandRescueUsefulDataFromTemporary( const SvXMLImportContext& )
81 {
82 }
83 
84