#i10000# Bring module to HEAD.
[LibreOffice.git] / oox / inc / oox / core / relationshandler.hxx
blobddb403203bcac942c6090cc71eea1b101146128a
1 /*************************************************************************
3 * OpenOffice.org - a multi-platform office productivity suite
5 * $RCSfile: relationshandler.hxx,v $
7 * $Revision: 1.2 $
9 * last change: $Author: rt $ $Date: 2008-01-17 08:05:44 $
11 * The Contents of this file are made available subject to
12 * the terms of GNU Lesser General Public License Version 2.1.
15 * GNU Lesser General Public License Version 2.1
16 * =============================================
17 * Copyright 2005 by Sun Microsystems, Inc.
18 * 901 San Antonio Road, Palo Alto, CA 94303, USA
20 * This library is free software; you can redistribute it and/or
21 * modify it under the terms of the GNU Lesser General Public
22 * License version 2.1, as published by the Free Software Foundation.
24 * This library is distributed in the hope that it will be useful,
25 * but WITHOUT ANY WARRANTY; without even the implied warranty of
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
27 * Lesser General Public License for more details.
29 * You should have received a copy of the GNU Lesser General Public
30 * License along with this library; if not, write to the Free Software
31 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
32 * MA 02111-1307 USA
34 ************************************************************************/
36 #ifndef OOX_CORE_RELATIONSHANDLER
37 #define OOX_CORE_RELATIONSHANDLER
39 #include "oox/core/fragmenthandler.hxx"
41 namespace oox {
42 namespace core {
44 // ============================================================================
46 class RelationsFragmentHandler : public FragmentHandler
48 public:
49 explicit RelationsFragmentHandler( const XmlFilterRef& rxFilter, const ::rtl::OUString& rFragmentPath, RelationsRef xRelations );
51 virtual ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastContextHandler > SAL_CALL
52 createFastChildContext(
53 sal_Int32 nElement,
54 const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastAttributeList >& rxAttribs )
55 throw (::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException);
57 private:
58 Relations& mrRelations;
61 // ============================================================================
63 } // namespace core
64 } // namespace oox
66 #endif // OOX_CORE_RELATIONSHANDLER