1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _XMXCOM_HXX
25 #define _XMXCOM_HXX
26 
27 #include <cppuhelper/weak.hxx>
28 #ifndef __RTL_USTRING_HXX_
29 #include <rtl/ustring.hxx>
30 #endif
31 #include <tools/debug.hxx>
32 #include <tools/stream.hxx>
33 #include <tools/string.hxx>
34 #include <tools/urlobj.hxx>
35 #include <cppuhelper/implbase1.hxx>
36 
37 #include <com/sun/star/uno/Reference.h>
38 #include <com/sun/star/uno/RuntimeException.hpp>
39 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
40 #include <com/sun/star/lang/XComponent.hpp>
41 #include <com/sun/star/registry/XRegistryKey.hpp>
42 #include <com/sun/star/lang/XComponent.hpp>
43 #include <com/sun/star/io/XInputStream.hpp>
44 #include <com/sun/star/io/XXMLExtractor.hpp>
45 
46 // -----------------------------------------------------------------------------
47 
48 #define NMSP_CPPU		::cppu
49 #define NMSP_RTL		::rtl
50 #define NMSP_UNO		::com::sun::star::uno
51 #define NMSP_LANG		::com::sun::star::lang
52 #define NMSP_IO			::com::sun::star::io
53 #define NMSP_REGISTRY   ::com::sun::star::registry
54 
55 
56 #define REF( _def_Obj )						NMSP_UNO::Reference< _def_Obj >
57 #define SEQ( _def_Obj )						NMSP_UNO::Sequence< _def_Obj >
58 #define ANY									NMSP_UNO::Any
59 #define B2UCONST( _def_pChar )				(NMSP_RTL::OUString(RTL_CONSTASCII_USTRINGPARAM(_def_pChar )))
60 
61 #endif // _XMXCOM_HXX
62