1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
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"
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
;
54 ParcelDescDocHandler::startDocument()
55 throw ( xml::sax::SAXException
, RuntimeException
)
61 ParcelDescDocHandler::endDocument()
62 throw ( xml::sax::SAXException
, RuntimeException
)
68 ParcelDescDocHandler::characters( const OUString
& )
69 throw ( xml::sax::SAXException
, RuntimeException
)
74 ParcelDescDocHandler::ignorableWhitespace( const OUString
& )
75 throw ( xml::sax::SAXException
, RuntimeException
)
80 ParcelDescDocHandler::processingInstruction(
81 const OUString
&, const OUString
& )
82 throw ( xml::sax::SAXException
, RuntimeException
)
87 ParcelDescDocHandler::setDocumentLocator(
88 const Reference
< xml::sax::XLocator
>& )
89 throw ( xml::sax::SAXException
, RuntimeException
)
94 ParcelDescDocHandler::startElement( const OUString
& aName
,
95 const Reference
< xml::sax::XAttributeList
> & xAttribs
)
96 throw ( xml::sax::SAXException
,
100 dp_misc::TRACE(OUSTR("ParcelDescDocHandler::startElement() for ") +
101 aName
+ OUSTR("\n"));
104 if ( aName
.equals( OUString::createFromAscii( "parcel" ) ) )
106 m_sLang
= xAttribs
->getValueByName( OUString::createFromAscii( "language" ) );
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
)
124 dp_misc::TRACE(OUSTR("ParcelDescDocHandler::endElement() skipping for ")
125 + aName
+ OUSTR("\n"));