Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions Plugins/src_VCPP/IgnoreAccents/IgnoreAccents.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// IgnoreAccents.cpp

#include "stdafx.h"
#include "resource.h"
#include <initguid.h>
#include "IgnoreAccents.h"
#include "IgnoreAccents_i.c"
#include "WinMergeScript.h"

CComModule _Module;

BEGIN_OBJECT_MAP(ObjectMap)
OBJECT_ENTRY(CLSID_WinMergeScript, CWinMergeScript)
END_OBJECT_MAP()

extern "C"
BOOL WINAPI DllMain(
HINSTANCE hInstance,
DWORD dwReason,
LPVOID)
{
if (dwReason == DLL_PROCESS_ATTACH)
{
_Module.Init(ObjectMap, hInstance, &LIBID_IgnoreAccentsLib);
DisableThreadLibraryCalls(hInstance);
}
else if (dwReason == DLL_PROCESS_DETACH)
{
_Module.Term();
}

return TRUE;
}

STDAPI DllCanUnloadNow(void)
{
return _Module.GetLockCount() == 0 ? S_OK : S_FALSE;
}

STDAPI DllGetClassObject(
REFCLSID rclsid,
REFIID riid,
LPVOID* ppv)
{
return _Module.GetClassObject(rclsid, riid, ppv);
}

STDAPI DllRegisterServer(void)
{
return _Module.RegisterServer(TRUE);
}

STDAPI DllUnregisterServer(void)
{
return _Module.UnregisterServer(TRUE);
}
10 changes: 10 additions & 0 deletions Plugins/src_VCPP/IgnoreAccents/IgnoreAccents.def
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
; SPDX-License-Identifier: GPL-2.0-or-later
; IgnoreAccents.def : Declares the module parameters.

LIBRARY "IgnoreAccents.DLL"

EXPORTS
DllCanUnloadNow PRIVATE
DllGetClassObject PRIVATE
DllRegisterServer PRIVATE
DllUnregisterServer PRIVATE
75 changes: 75 additions & 0 deletions Plugins/src_VCPP/IgnoreAccents/IgnoreAccents.idl
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// IgnoreAccents.idl

import "oaidl.idl";
import "ocidl.idl";

[
object,
uuid(221ACB26-BF4C-42DF-B4CA-2C2574FD0AD3),
dual,
helpstring("IWinMergeScript Interface"),
pointer_default(unique)
]
interface IWinMergeScript : IDispatch
{
[propget, id(1)]
HRESULT PluginEvent([out, retval] BSTR *pVal);

[propget, id(2)]
HRESULT PluginDescription([out, retval] BSTR *pVal);

[propget, id(3)]
HRESULT PluginFileFilters([out, retval] BSTR *pVal);

[propget, id(4)]
HRESULT PluginIsAutomatic([out, retval] VARIANT_BOOL *pVal);

[propget, id(5)]
HRESULT PluginArguments([out, retval] BSTR *pVal);

[propput, id(5)]
HRESULT PluginArguments([in] BSTR val);

[propget, id(6)]
HRESULT PluginExtendedProperties([out, retval] BSTR *pVal);

[id(7)]
HRESULT PrediffFile(
[in] BSTR fileSrc,
[in] BSTR fileDst,
[in, out] VARIANT_BOOL *pbChanged,
[out, retval] VARIANT_BOOL *pbSuccess
);

[id(8)]
HRESULT ShowSettingsDialog(
[out, retval] VARIANT_BOOL *pbHandled
);

[id(9)]
HRESULT PluginOnEvent(
[in] int iEventType,
[in] IDispatch* pDispatch
);
};

[
uuid(8D6C55E3-172B-4A75-A907-D8D68C100004),
version(1.0),
helpstring("IgnoreAccents 1.0 Type Library")
]
library IgnoreAccentsLib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");

[
uuid(A84C1E59-0788-4E1B-BEB7-278201CAAB2F),
helpstring("WinMergeScript Class")
]
coclass WinMergeScript
{
[default] interface IWinMergeScript;
};
};
147 changes: 147 additions & 0 deletions Plugins/src_VCPP/IgnoreAccents/IgnoreAccents.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// Microsoft Visual C++ generated resource script.
//
#include "resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "winres.h"

/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// English (United States) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)

/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_DIALOG1 DIALOGEX 0, 0, 240, 68
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Settings"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
LTEXT "Column Ranges to Ignore:\ne.g.) 3,10-20,32-33\n",IDC_STATIC,6,6,228,18
EDITTEXT IDC_EDIT1,6,30,228,14,ES_AUTOHSCROLL
DEFPUSHBUTTON "OK",IDOK,132,48,50,14
PUSHBUTTON "Cancel",IDCANCEL,186,48,50,14
END


/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//

#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO
BEGIN
IDD_DIALOG1, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 233
TOPMARGIN, 7
BOTTOMMARGIN, 61
END
END
#endif // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// Version
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,1,7
PRODUCTVERSION 1,0,1,7
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
#else
FILEFLAGS 0x0L
#endif
FILEOS 0x4L
FILETYPE 0x2L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904b0"
BEGIN
VALUE "FileDescription", "IgnoreAccents Module"
VALUE "FileVersion", "1.0.1.7"
VALUE "InternalName", "IgnoreAccents"
VALUE "LegalCopyright", "Copyright 2003-2025"
VALUE "OriginalFilename", "IgnoreAccents.DLL"
VALUE "ProductName", "IgnoreAccents Module"
VALUE "ProductVersion", "1.0.1.7"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1200
END
END


#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//

1 TEXTINCLUDE
BEGIN
"resource.h\0"
END

2 TEXTINCLUDE
BEGIN
"#include ""winres.h""\r\n"
"\0"
END

3 TEXTINCLUDE
BEGIN
"1 TYPELIB ""IgnoreAccents.tlb""\r\n"
"\0"
END

#endif // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// String Table
//

STRINGTABLE
BEGIN
IDS_PROJNAME "IgnoreAccents"
END

#endif // English (United States) resources
/////////////////////////////////////////////////////////////////////////////



#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
1 TYPELIB "IgnoreAccents.tlb"

/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED

Loading