Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : :
29 : : #include "dp_misc.h"
30 : : #include "dp_parceldesc.hxx"
31 : :
32 : :
33 : :
34 : : using namespace ::com::sun::star;
35 : : using namespace ::com::sun::star::uno;
36 : :
37 : : using ::rtl::OUString;
38 : :
39 : : namespace dp_registry
40 : : {
41 : : namespace backend
42 : : {
43 : : namespace sfwk
44 : : {
45 : :
46 : :
47 : : // XDocumentHandler
48 : : void SAL_CALL
49 : 0 : ParcelDescDocHandler::startDocument()
50 : : throw ( xml::sax::SAXException, RuntimeException )
51 : : {
52 : 0 : m_bIsParsed = false;
53 : 0 : }
54 : :
55 : : void SAL_CALL
56 : 0 : ParcelDescDocHandler::endDocument()
57 : : throw ( xml::sax::SAXException, RuntimeException )
58 : : {
59 : 0 : m_bIsParsed = true;
60 : 0 : }
61 : :
62 : : void SAL_CALL
63 : 0 : ParcelDescDocHandler::characters( const OUString & )
64 : : throw ( xml::sax::SAXException, RuntimeException )
65 : : {
66 : 0 : }
67 : :
68 : : void SAL_CALL
69 : 0 : ParcelDescDocHandler::ignorableWhitespace( const OUString & )
70 : : throw ( xml::sax::SAXException, RuntimeException )
71 : : {
72 : 0 : }
73 : :
74 : : void SAL_CALL
75 : 0 : ParcelDescDocHandler::processingInstruction(
76 : : const OUString &, const OUString & )
77 : : throw ( xml::sax::SAXException, RuntimeException )
78 : : {
79 : 0 : }
80 : :
81 : : void SAL_CALL
82 : 0 : ParcelDescDocHandler::setDocumentLocator(
83 : : const Reference< xml::sax::XLocator >& )
84 : : throw ( xml::sax::SAXException, RuntimeException )
85 : : {
86 : 0 : }
87 : :
88 : : void SAL_CALL
89 : 0 : ParcelDescDocHandler::startElement( const OUString& aName,
90 : : const Reference< xml::sax::XAttributeList > & xAttribs )
91 : : throw ( xml::sax::SAXException,
92 : : RuntimeException )
93 : : {
94 : :
95 : : dp_misc::TRACE(OUSTR("ParcelDescDocHandler::startElement() for ") +
96 [ # # ][ # # ]: 0 : aName + OUSTR("\n"));
97 [ # # ]: 0 : if ( !skipIndex )
98 : : {
99 [ # # ]: 0 : if ( aName == "parcel" )
100 : : {
101 [ # # ]: 0 : m_sLang = xAttribs->getValueByName( OUString("language" ) );
102 : : }
103 : 0 : ++skipIndex;
104 : : }
105 : : else
106 : : {
107 : : dp_misc::TRACE(OUSTR("ParcelDescDocHandler::startElement() skipping for ")
108 [ # # ][ # # ]: 0 : + aName + OUSTR("\n"));
109 : : }
110 : :
111 : 0 : }
112 : :
113 : 0 : void SAL_CALL ParcelDescDocHandler::endElement( const OUString & aName )
114 : : throw ( xml::sax::SAXException, RuntimeException )
115 : : {
116 [ # # ]: 0 : if ( skipIndex )
117 : : {
118 : 0 : --skipIndex;
119 : : dp_misc::TRACE(OUSTR("ParcelDescDocHandler::endElement() skipping for ")
120 [ # # ][ # # ]: 0 : + aName + OUSTR("\n"));
121 : : }
122 : 0 : }
123 : :
124 : :
125 : : }
126 : : }
127 : : }
128 : :
129 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|