1*0a1e2f0eSAndrew Rist /**************************************************************
2*0a1e2f0eSAndrew Rist  *
3*0a1e2f0eSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*0a1e2f0eSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*0a1e2f0eSAndrew Rist  * distributed with this work for additional information
6*0a1e2f0eSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*0a1e2f0eSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*0a1e2f0eSAndrew Rist  * "License"); you may not use this file except in compliance
9*0a1e2f0eSAndrew Rist  * with the License.  You may obtain a copy of the License at
10*0a1e2f0eSAndrew Rist  *
11*0a1e2f0eSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*0a1e2f0eSAndrew Rist  *
13*0a1e2f0eSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*0a1e2f0eSAndrew Rist  * software distributed under the License is distributed on an
15*0a1e2f0eSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*0a1e2f0eSAndrew Rist  * KIND, either express or implied.  See the License for the
17*0a1e2f0eSAndrew Rist  * specific language governing permissions and limitations
18*0a1e2f0eSAndrew Rist  * under the License.
19*0a1e2f0eSAndrew Rist  *
20*0a1e2f0eSAndrew Rist  *************************************************************/
21*0a1e2f0eSAndrew Rist 
22cdf0e10cSrcweir #pragma once
23cdf0e10cSrcweir #ifndef __cplusplus
24cdf0e10cSrcweir #error Need C++ to compile
25cdf0e10cSrcweir #endif
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #ifndef _INC_TCHAR
28cdf0e10cSrcweir #	ifdef UNICODE
29cdf0e10cSrcweir #		define _UNICODE
30cdf0e10cSrcweir #	endif
31cdf0e10cSrcweir #	include <tchar.h>
32cdf0e10cSrcweir #endif
33cdf0e10cSrcweir 
34cdf0e10cSrcweir #ifdef UNICODE
35cdf0e10cSrcweir #	define GetArgv( pArgc )			CommandLineToArgvW( GetCommandLine(), pArgc )
36cdf0e10cSrcweir #else
37cdf0e10cSrcweir #	define GetArgv( pArgc )			(*pArgc = __argc, __argv)
38cdf0e10cSrcweir #endif
39cdf0e10cSrcweir 
40cdf0e10cSrcweir #define OFFICE_IMAGE_NAME	_T("soffice")
41cdf0e10cSrcweir 
42cdf0e10cSrcweir extern _TCHAR APPLICATION_SWITCH[];
43