Update ooo320-m1
[ooovba.git] / desktop / source / deployment / registry / sfwk / dp_parceldesc.cxx
blob0653934af91605a2e0f8120440f4de7e73e625e9
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: dp_parceldesc.cxx,v $
10 * $Revision: 1.7.86.1 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_desktop.hxx"
33 #include "dp_misc.h"
34 #include "dp_parceldesc.hxx"
38 using namespace ::com::sun::star;
39 using namespace ::com::sun::star::uno;
41 using ::rtl::OUString;
43 namespace css = ::com::sun::star;
44 namespace dp_registry
46 namespace backend
48 namespace sfwk
52 // XDocumentHandler
53 void SAL_CALL
54 ParcelDescDocHandler::startDocument()
55 throw ( xml::sax::SAXException, RuntimeException )
57 m_bIsParsed = false;
60 void SAL_CALL
61 ParcelDescDocHandler::endDocument()
62 throw ( xml::sax::SAXException, RuntimeException )
64 m_bIsParsed = true;
67 void SAL_CALL
68 ParcelDescDocHandler::characters( const OUString & )
69 throw ( xml::sax::SAXException, RuntimeException )
73 void SAL_CALL
74 ParcelDescDocHandler::ignorableWhitespace( const OUString & )
75 throw ( xml::sax::SAXException, RuntimeException )
79 void SAL_CALL
80 ParcelDescDocHandler::processingInstruction(
81 const OUString &, const OUString & )
82 throw ( xml::sax::SAXException, RuntimeException )
86 void SAL_CALL
87 ParcelDescDocHandler::setDocumentLocator(
88 const Reference< xml::sax::XLocator >& )
89 throw ( xml::sax::SAXException, RuntimeException )
93 void SAL_CALL
94 ParcelDescDocHandler::startElement( const OUString& aName,
95 const Reference< xml::sax::XAttributeList > & xAttribs )
96 throw ( xml::sax::SAXException,
97 RuntimeException )
100 dp_misc::TRACE(OUSTR("ParcelDescDocHandler::startElement() for ") +
101 aName + OUSTR("\n"));
102 if ( !skipIndex )
104 if ( aName.equals( OUString::createFromAscii( "parcel" ) ) )
106 m_sLang = xAttribs->getValueByName( OUString::createFromAscii( "language" ) );
108 ++skipIndex;
110 else
112 dp_misc::TRACE(OUSTR("ParcelDescDocHandler::startElement() skipping for ")
113 + aName + OUSTR("\n"));
118 void SAL_CALL ParcelDescDocHandler::endElement( const OUString & aName )
119 throw ( xml::sax::SAXException, RuntimeException )
121 if ( skipIndex )
123 --skipIndex;
124 dp_misc::TRACE(OUSTR("ParcelDescDocHandler::endElement() skipping for ")
125 + aName + OUSTR("\n"));