update dev300-m57
[ooovba.git] / svtools / inc / svtuno.hxx
blob04688babd64a69b5d5c0a554fb486b531633bd35
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: svtuno.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 _SVTOOLS_SVTUNO_HXX
32 #define _SVTOOLS_SVTUNO_HXX
34 // Macro to define const unicode a'la "..."
35 // It's better then "OUString::createFromAscii(...)" !!!
36 #define DEFINE_CONST_UNICODE(CONSTASCII) UniString(RTL_CONSTASCII_USTRINGPARAM(CONSTASCII))
37 #define DEFINE_CONST_OUSTRING(CONSTASCII) OUString(RTL_CONSTASCII_USTRINGPARAM(CONSTASCII))
39 // defines ---------------------------------------------------------------
40 #define UNOANY ::com::sun::star::uno::Any
41 #define UNOEXCEPTION ::com::sun::star::uno::Exception
42 #define UNOMUTEX ::osl::Mutex
43 #define UNOMUTEXGUARD ::osl::MutexGuard
44 #define UNOOIMPLEMENTATIONID ::cppu::OImplementationId
45 #define UNOOTYPECOLLECTION ::cppu::OTypeCollection
46 #define UNOOUSTRING ::rtl::OUString
47 #define UNOPROPERTYVALUE ::com::sun::star::beans::PropertyValue
48 #define UNOSTRINGPAIR ::com::sun::star::beans::StringPair
49 #define UNOREFERENCE ::com::sun::star::uno::Reference
50 #define UNORUNTIMEEXCEPTION ::com::sun::star::uno::RuntimeException
51 #define UNOINVALIDREGISTRYEXCEPTION ::com::sun::star::registry::InvalidRegistryException
52 #define UNOSEQUENCE ::com::sun::star::uno::Sequence
53 #define UNOTYPE ::com::sun::star::uno::Type
54 #define UNOURL ::com::sun::star::util::URL
55 #define UNOXINTERFACE ::com::sun::star::uno::XInterface
56 #define UNOXMULTISERVICEFACTORY ::com::sun::star::lang::XMultiServiceFactory
57 #define UNOXSINGLESERVICEFACTORY ::com::sun::star::lang::XSingleServiceFactory
58 #define UNOXTYPEPROVIDER ::com::sun::star::lang::XTypeProvider
59 #define UNOILLEGALARGUMENTEXCEPTION ::com::sun::star::lang::IllegalArgumentException
61 // -----------------------------------------------------------------------
63 #endif