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 "dp_misc.h"
21 : #include "dp_parceldesc.hxx"
22 :
23 :
24 :
25 : using namespace ::com::sun::star;
26 : using namespace ::com::sun::star::uno;
27 :
28 : using ::rtl::OUString;
29 :
30 : namespace dp_registry
31 : {
32 : namespace backend
33 : {
34 : namespace sfwk
35 : {
36 :
37 :
38 : // XDocumentHandler
39 : void SAL_CALL
40 0 : ParcelDescDocHandler::startDocument()
41 : throw ( xml::sax::SAXException, RuntimeException )
42 : {
43 0 : m_bIsParsed = false;
44 0 : }
45 :
46 : void SAL_CALL
47 0 : ParcelDescDocHandler::endDocument()
48 : throw ( xml::sax::SAXException, RuntimeException )
49 : {
50 0 : m_bIsParsed = true;
51 0 : }
52 :
53 : void SAL_CALL
54 0 : ParcelDescDocHandler::characters( const OUString & )
55 : throw ( xml::sax::SAXException, RuntimeException )
56 : {
57 0 : }
58 :
59 : void SAL_CALL
60 0 : ParcelDescDocHandler::ignorableWhitespace( const OUString & )
61 : throw ( xml::sax::SAXException, RuntimeException )
62 : {
63 0 : }
64 :
65 : void SAL_CALL
66 0 : ParcelDescDocHandler::processingInstruction(
67 : const OUString &, const OUString & )
68 : throw ( xml::sax::SAXException, RuntimeException )
69 : {
70 0 : }
71 :
72 : void SAL_CALL
73 0 : ParcelDescDocHandler::setDocumentLocator(
74 : const Reference< xml::sax::XLocator >& )
75 : throw ( xml::sax::SAXException, RuntimeException )
76 : {
77 0 : }
78 :
79 : void SAL_CALL
80 0 : ParcelDescDocHandler::startElement( const OUString& aName,
81 : const Reference< xml::sax::XAttributeList > & xAttribs )
82 : throw ( xml::sax::SAXException,
83 : RuntimeException )
84 : {
85 :
86 : dp_misc::TRACE(OUSTR("ParcelDescDocHandler::startElement() for ") +
87 0 : aName + OUSTR("\n"));
88 0 : if ( !skipIndex )
89 : {
90 0 : if ( aName == "parcel" )
91 : {
92 0 : m_sLang = xAttribs->getValueByName( OUString("language" ) );
93 : }
94 0 : ++skipIndex;
95 : }
96 : else
97 : {
98 : dp_misc::TRACE(OUSTR("ParcelDescDocHandler::startElement() skipping for ")
99 0 : + aName + OUSTR("\n"));
100 : }
101 :
102 0 : }
103 :
104 0 : void SAL_CALL ParcelDescDocHandler::endElement( const OUString & aName )
105 : throw ( xml::sax::SAXException, RuntimeException )
106 : {
107 0 : if ( skipIndex )
108 : {
109 0 : --skipIndex;
110 : dp_misc::TRACE(OUSTR("ParcelDescDocHandler::endElement() skipping for ")
111 0 : + aName + OUSTR("\n"));
112 : }
113 0 : }
114 :
115 :
116 : }
117 : }
118 : }
119 :
120 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|