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 // XMergeFilter.h: interface for the CXMergeFilter class.
22 //
23 //////////////////////////////////////////////////////////////////////
24 
25 #if !defined(AFX_XMERGEFILTER_H__25C39F6B_A1D7_408E_8F58_9CBEE9A666CC__INCLUDED_)
26 #define AFX_XMERGEFILTER_H__25C39F6B_A1D7_408E_8F58_9CBEE9A666CC__INCLUDED_
27 
28 #if _MSC_VER > 1000
29 #pragma once
30 #endif // _MSC_VER > 1000
31 
32 
33 
34 
35 
36 class CXMergeFilter : public ICeFileFilter
37 {
38 protected:
39 	long m_cRef;
40 
41 private:
42 	TCHAR* GetXMergeClassPath();
43 	TCHAR* GetJavaBaseDir();
44 
45 	TCHAR* m_szJavaBaseDir;
46 	TCHAR* m_szClasspath;
47 
48 	BOOL m_bHaveExcel;
49 	BOOL m_bHaveWord;
50 
51 
52 public:
53 	static const LPTSTR m_pszPSWExportCLSID;
54 	static const LPTSTR m_pszPSWExportExt;
55 	static const LPTSTR m_pszPSWExportDesc;
56 	static const LPTSTR m_pszPSWExportShortDesc;
57 
58 	static const LPTSTR m_pszPSWImportCLSID;
59 	static const LPTSTR m_pszPSWImportExt;
60 	static const LPTSTR m_pszPSWImportDesc;
61 	static const LPTSTR m_pszPSWImportShortDesc;
62 
63 	static const LPTSTR m_pszPXLExportCLSID;
64 	static const LPTSTR m_pszPXLExportExt;
65 	static const LPTSTR m_pszPXLExportDesc;
66 	static const LPTSTR m_pszPXLExportShortDesc;
67 
68 	static const LPTSTR m_pszPXLImportCLSID;
69 	static const LPTSTR m_pszPXLImportExt;
70 	static const LPTSTR m_pszPXLImportDesc;
71 	static const LPTSTR m_pszPXLImportShortDesc;
72 
73 public:
74 	CXMergeFilter();
75 	virtual ~CXMergeFilter();
76 
77 
78 	/********** IUnknown methods **********/
79 	STDMETHODIMP			QueryInterface(REFIID iid, void **ppvObject);
80 	STDMETHODIMP_(ULONG)	AddRef();
81 	STDMETHODIMP_(ULONG)	Release();
82 
83 	/********** ICeFileFilter methods *********/
84 	STDMETHODIMP			FilterOptions(HWND hwndParent);
85 	STDMETHODIMP			FormatMessage(DWORD dwFlags, DWORD dwMessageId, DWORD dwLanguageId,
86 										  LPTSTR lpBuffer, DWORD nSize, va_list *Arguments, DWORD *pcb);
87 	STDMETHODIMP			NextConvertFile(int nConversion, CFF_CONVERTINFO *pci,
88 											CFF_SOURCEFILE *psf, CFF_DESTINATIONFILE *pdf,
89 											volatile BOOL *pbCancel, CF_ERROR *perr);
90 
91 };
92 
93 #endif // !defined(AFX_XMERGEFILTER_H__25C39F6B_A1D7_408E_8F58_9CBEE9A666CC__INCLUDED_)
94