summaryrefslogtreecommitdiff
path: root/xmerge/source/activesync/XMergeFilter.h
blob: 54128f3251257228b9660bf1681dd70a59fc47f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// XMergeFilter.h: interface for the CXMergeFilter class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_XMERGEFILTER_H__25C39F6B_A1D7_408E_8F58_9CBEE9A666CC__INCLUDED_)
#define AFX_XMERGEFILTER_H__25C39F6B_A1D7_408E_8F58_9CBEE9A666CC__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000





class CXMergeFilter : public ICeFileFilter
{
protected:
    long m_cRef;

private:
    TCHAR* GetXMergeClassPath();
    TCHAR* GetJavaBaseDir();

    TCHAR* m_szJavaBaseDir;
    TCHAR* m_szClasspath;

    BOOL m_bHaveExcel;
    BOOL m_bHaveWord;


public:
    static const LPTSTR m_pszPSWExportCLSID;
    static const LPTSTR m_pszPSWExportExt;
    static const LPTSTR m_pszPSWExportDesc;
    static const LPTSTR m_pszPSWExportShortDesc;

    static const LPTSTR m_pszPSWImportCLSID;
    static const LPTSTR m_pszPSWImportExt;
    static const LPTSTR m_pszPSWImportDesc;
    static const LPTSTR m_pszPSWImportShortDesc;

    static const LPTSTR m_pszPXLExportCLSID;
    static const LPTSTR m_pszPXLExportExt;
    static const LPTSTR m_pszPXLExportDesc;
    static const LPTSTR m_pszPXLExportShortDesc;

    static const LPTSTR m_pszPXLImportCLSID;
    static const LPTSTR m_pszPXLImportExt;
    static const LPTSTR m_pszPXLImportDesc;
    static const LPTSTR m_pszPXLImportShortDesc;

public:
    CXMergeFilter();
    virtual ~CXMergeFilter();


    /********** IUnknown methods **********/
    STDMETHODIMP            QueryInterface(REFIID iid, void **ppvObject);
    STDMETHODIMP_(ULONG)    AddRef();
    STDMETHODIMP_(ULONG)    Release();

    /********** ICeFileFilter methods *********/
    STDMETHODIMP            FilterOptions(HWND hwndParent);
    STDMETHODIMP            FormatMessage(DWORD dwFlags, DWORD dwMessageId, DWORD dwLanguageId,
                                          LPTSTR lpBuffer, DWORD nSize, va_list *Arguments, DWORD *pcb);
    STDMETHODIMP            NextConvertFile(int nConversion, CFF_CONVERTINFO *pci,
                                            CFF_SOURCEFILE *psf, CFF_DESTINATIONFILE *pdf,
                                            volatile BOOL *pbCancel, CF_ERROR *perr);

};

#endif // !defined(AFX_XMERGEFILTER_H__25C39F6B_A1D7_408E_8F58_9CBEE9A666CC__INCLUDED_)