1*5fdc4257SSteve Yin /*************************************************************************
2*5fdc4257SSteve Yin  *
3*5fdc4257SSteve Yin  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*5fdc4257SSteve Yin  *
5*5fdc4257SSteve Yin  * Copyright IBM Corporation 2010.
6*5fdc4257SSteve Yin  * Copyright 2000, 2010 Oracle and/or its affiliates.
7*5fdc4257SSteve Yin  *
8*5fdc4257SSteve Yin  * OpenOffice.org - a multi-platform office productivity suite
9*5fdc4257SSteve Yin  *
10*5fdc4257SSteve Yin  * This file is part of OpenOffice.org.
11*5fdc4257SSteve Yin  *
12*5fdc4257SSteve Yin  * OpenOffice.org is free software: you can redistribute it and/or modify
13*5fdc4257SSteve Yin  * it under the terms of the GNU Lesser General Public License version 3
14*5fdc4257SSteve Yin  * only, as published by the Free Software Foundation.
15*5fdc4257SSteve Yin  *
16*5fdc4257SSteve Yin  * OpenOffice.org is distributed in the hope that it will be useful,
17*5fdc4257SSteve Yin  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18*5fdc4257SSteve Yin  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19*5fdc4257SSteve Yin  * GNU Lesser General Public License version 3 for more details
20*5fdc4257SSteve Yin  * (a copy is included in the LICENSE file that accompanied this code).
21*5fdc4257SSteve Yin  *
22*5fdc4257SSteve Yin  * You should have received a copy of the GNU Lesser General Public License
23*5fdc4257SSteve Yin  * version 3 along with OpenOffice.org.  If not, see
24*5fdc4257SSteve Yin  * <http://www.openoffice.org/license.html>
25*5fdc4257SSteve Yin  * for a copy of the LGPLv3 License.
26*5fdc4257SSteve Yin  *
27*5fdc4257SSteve Yin  ************************************************************************/
28*5fdc4257SSteve Yin 
29*5fdc4257SSteve Yin // stdafx.h : include file for standard system include files,
30*5fdc4257SSteve Yin //      or project specific include files that are used frequently,
31*5fdc4257SSteve Yin //      but are changed infrequently
32*5fdc4257SSteve Yin 
33*5fdc4257SSteve Yin #if !defined(AFX_STDAFX_H__5E2F9072_190F_47C7_8003_4D44FD308CB9__INCLUDED_)
34*5fdc4257SSteve Yin #define AFX_STDAFX_H__5E2F9072_190F_47C7_8003_4D44FD308CB9__INCLUDED_
35*5fdc4257SSteve Yin 
36*5fdc4257SSteve Yin #if _MSC_VER > 1000
37*5fdc4257SSteve Yin #pragma once
38*5fdc4257SSteve Yin #endif // _MSC_VER > 1000
39*5fdc4257SSteve Yin 
40*5fdc4257SSteve Yin #define STRICT
41*5fdc4257SSteve Yin #ifndef _WIN32_WINNT
42*5fdc4257SSteve Yin #define _WIN32_WINNT 0x0400
43*5fdc4257SSteve Yin #endif
44*5fdc4257SSteve Yin //#define _ATL_APARTMENT_THREADED
45*5fdc4257SSteve Yin 
46*5fdc4257SSteve Yin #include <atlbase.h>
47*5fdc4257SSteve Yin // You may derive a class from CComModule and use it if you want to override
48*5fdc4257SSteve Yin // something, but do not change the name of _Module
49*5fdc4257SSteve Yin extern CComModule _Module;
50*5fdc4257SSteve Yin #include <atlcom.h>
51*5fdc4257SSteve Yin 
52*5fdc4257SSteve Yin #define ENTER_PROTECTED_BLOCK	\
53*5fdc4257SSteve Yin 	try							\
54*5fdc4257SSteve Yin 	{
55*5fdc4257SSteve Yin 
56*5fdc4257SSteve Yin #define LEAVE_PROTECTED_BLOCK	\
57*5fdc4257SSteve Yin 	}							\
58*5fdc4257SSteve Yin 	catch(...)					\
59*5fdc4257SSteve Yin 	{							\
60*5fdc4257SSteve Yin 		return E_FAIL;			\
61*5fdc4257SSteve Yin 	}
62*5fdc4257SSteve Yin 
63*5fdc4257SSteve Yin #define SAFE_SYSFREESTRING(x) { ::SysFreeString(x); x=NULL; }
64*5fdc4257SSteve Yin 
65*5fdc4257SSteve Yin #include <windows.h>
66*5fdc4257SSteve Yin #undef OPAQUE
67*5fdc4257SSteve Yin #include "CheckEnableAccessible.h"
68*5fdc4257SSteve Yin //{{AFX_INSERT_LOCATION}}
69*5fdc4257SSteve Yin // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
70*5fdc4257SSteve Yin 
71*5fdc4257SSteve Yin #endif // !defined(AFX_STDAFX_H__5E2F9072_190F_47C7_8003_4D44FD308CB9__INCLUDED)
72