Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 :
20 : #include <com/sun/star/xml/sax/SAXParseException.hpp>
21 : #include <com/sun/star/xml/sax/XExtendedDocumentHandler.hpp>
22 : #include <com/sun/star/xml/sax/SAXException.hpp>
23 : #include <com/sun/star/xml/sax/XDocumentHandler.hpp>
24 : #include <com/sun/star/xml/sax/XAttributeList.hpp>
25 : #include <com/sun/star/xml/sax/XLocator.hpp>
26 : #include <xmloff/nmspmap.hxx>
27 : #include <xmloff/xmlimp.hxx>
28 : #include <xmloff/xmlictxt.hxx>
29 :
30 : using namespace ::com::sun::star;
31 :
32 4156 : TYPEINIT0( SvXMLImportContext );
33 331860 : SvXMLImportContext::SvXMLImportContext( SvXMLImport& rImp, sal_uInt16 nPrfx,
34 : const OUString& rLName ) :
35 : mrImport( rImp ),
36 : mnPrefix( nPrfx ),
37 : maLocalName( rLName ),
38 331860 : mpRewindMap( 0 )
39 : {
40 331860 : }
41 :
42 0 : SvXMLImportContext::SvXMLImportContext( SvXMLImport& rImp ) :
43 : mrImport( rImp ),
44 0 : mpRewindMap( 0 )
45 : {
46 0 : }
47 :
48 346456 : SvXMLImportContext::~SvXMLImportContext()
49 : {
50 346456 : }
51 :
52 2096 : SvXMLImportContext *SvXMLImportContext::CreateChildContext( sal_uInt16 nPrefix,
53 : const OUString& rLocalName,
54 : const uno::Reference< xml::sax::XAttributeList >& xAttrList )
55 : {
56 2096 : return mrImport.CreateContext( nPrefix, rLocalName, xAttrList );
57 : }
58 :
59 236394 : void SvXMLImportContext::StartElement( const uno::Reference< xml::sax::XAttributeList >& )
60 : {
61 236394 : }
62 :
63 158262 : void SvXMLImportContext::EndElement()
64 : {
65 158262 : }
66 :
67 78552 : void SvXMLImportContext::Characters( const OUString& )
68 : {
69 78552 : }
70 :
71 : // ::com::sun::star::xml::sax::XFastContextHandler:
72 0 : void SAL_CALL SvXMLImportContext::startFastElement(sal_Int32, const uno::Reference< xml::sax::XFastAttributeList > &)
73 : throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
74 : {
75 0 : }
76 :
77 0 : void SAL_CALL SvXMLImportContext::startUnknownElement(const OUString &, const OUString &,
78 : const uno::Reference< xml::sax::XFastAttributeList > &)
79 : throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
80 : {
81 0 : }
82 :
83 0 : void SAL_CALL SvXMLImportContext::endFastElement(sal_Int32)
84 : throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
85 : {
86 0 : }
87 :
88 0 : void SAL_CALL SvXMLImportContext::endUnknownElement (const OUString & , const OUString & )
89 : throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
90 : {
91 0 : }
92 :
93 0 : uno::Reference< xml::sax::XFastContextHandler > SAL_CALL SvXMLImportContext::createFastChildContext
94 : (sal_Int32 Element, const uno::Reference< xml::sax::XFastAttributeList > & Attribs)
95 : throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
96 : {
97 0 : return mrImport.CreateFastContext( Element, Attribs );
98 : }
99 :
100 0 : uno::Reference< xml::sax::XFastContextHandler > SAL_CALL SvXMLImportContext::createUnknownChildContext
101 : (const OUString &, const OUString &, const uno::Reference< xml::sax::XFastAttributeList > &)
102 : throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
103 : {
104 0 : return 0;
105 : }
106 :
107 0 : void SAL_CALL SvXMLImportContext::characters(const OUString &)
108 : throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
109 : {
110 0 : }
111 :
112 6 : void SvXMLImportContext::onDemandRescueUsefulDataFromTemporary( const SvXMLImportContext& )
113 : {
114 6 : }
115 :
116 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|