update dev300-m58
[ooovba.git] / extensions / source / xmlextract / xmxcom.hxx
blob12230e35985031d899248e4af5a5c135a5a2e2d0
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: xmxcom.hxx,v $
10 * $Revision: 1.4 $
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 #ifndef _XMXCOM_HXX
32 #define _XMXCOM_HXX
34 #include <cppuhelper/weak.hxx>
35 #ifndef __RTL_USTRING_HXX_
36 #include <rtl/ustring.hxx>
37 #endif
38 #include <tools/debug.hxx>
39 #include <tools/stream.hxx>
40 #include <tools/string.hxx>
41 #include <tools/urlobj.hxx>
42 #include <cppuhelper/implbase1.hxx>
44 #include <com/sun/star/uno/Reference.h>
45 #include <com/sun/star/uno/RuntimeException.hpp>
46 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
47 #include <com/sun/star/lang/XComponent.hpp>
48 #include <com/sun/star/registry/XRegistryKey.hpp>
49 #include <com/sun/star/lang/XComponent.hpp>
50 #include <com/sun/star/io/XInputStream.hpp>
51 #include <com/sun/star/io/XXMLExtractor.hpp>
53 // -----------------------------------------------------------------------------
55 #define NMSP_CPPU ::cppu
56 #define NMSP_RTL ::rtl
57 #define NMSP_UNO ::com::sun::star::uno
58 #define NMSP_LANG ::com::sun::star::lang
59 #define NMSP_IO ::com::sun::star::io
60 #define NMSP_REGISTRY ::com::sun::star::registry
63 #define REF( _def_Obj ) NMSP_UNO::Reference< _def_Obj >
64 #define SEQ( _def_Obj ) NMSP_UNO::Sequence< _def_Obj >
65 #define ANY NMSP_UNO::Any
66 #define B2UCONST( _def_pChar ) (NMSP_RTL::OUString(RTL_CONSTASCII_USTRINGPARAM(_def_pChar )))
68 #endif // _XMXCOM_HXX