summaryrefslogtreecommitdiff
path: root/plugins/Msg_Export/src
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-02-08 09:52:37 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-02-08 09:52:37 +0000
commit406c1bbcb1859d7f57e84c3c637b2b064dea7c67 (patch)
treeb3a885ebde4526b6dc5765d731b149f2affe4bc7 /plugins/Msg_Export/src
parent4bf15fc0daea6914bced34c097b163160cce0557 (diff)
project and code cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@3471 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Msg_Export/src')
-rwxr-xr-xplugins/Msg_Export/src/FileViewer.cpp25
-rwxr-xr-xplugins/Msg_Export/src/FileViewer.h2
-rwxr-xr-xplugins/Msg_Export/src/Glob.h27
-rw-r--r--plugins/Msg_Export/src/Version.h14
-rwxr-xr-xplugins/Msg_Export/src/main.cpp221
-rwxr-xr-xplugins/Msg_Export/src/options.cpp26
-rwxr-xr-xplugins/Msg_Export/src/utils.cpp9
-rwxr-xr-xplugins/Msg_Export/src/utils.h33
8 files changed, 121 insertions, 236 deletions
diff --git a/plugins/Msg_Export/src/FileViewer.cpp b/plugins/Msg_Export/src/FileViewer.cpp
index 065a4b5f32..c2f05bf8b4 100755
--- a/plugins/Msg_Export/src/FileViewer.cpp
+++ b/plugins/Msg_Export/src/FileViewer.cpp
@@ -16,32 +16,7 @@
//along with this program; if not, write to the Free Software
//Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
-#include <windows.h>
-#include <Richedit.h>
-
-#include <iostream>
-#include <fstream>
-
-using namespace std;
-
-
-#include "Utils.h"
#include "Glob.h"
-#include "FileViewer.h"
-
-#include "resource.h"
-
-#include <stdio.h>
-#include <basetsd.h>
-
-//#include <map>
-
-#define szFileViewDB "FileV_"
-
-#define WM_RELOAD_FILE (WM_USER+10)
-
-using namespace std;
static UINT UM_FIND_CMD = RegisterWindowMessage( FINDMSGSTRING );
diff --git a/plugins/Msg_Export/src/FileViewer.h b/plugins/Msg_Export/src/FileViewer.h
index 6da79c9620..737674d61a 100755
--- a/plugins/Msg_Export/src/FileViewer.h
+++ b/plugins/Msg_Export/src/FileViewer.h
@@ -19,8 +19,6 @@
#ifndef MSG_EXP_FILE_VIEWER
#define MSG_EXP_FILE_VIEWER
-#include <windows.h>
-
void Initilize();
void Uninitilize();
diff --git a/plugins/Msg_Export/src/Glob.h b/plugins/Msg_Export/src/Glob.h
index 2fba4e868d..6825f827f7 100755
--- a/plugins/Msg_Export/src/Glob.h
+++ b/plugins/Msg_Export/src/Glob.h
@@ -19,10 +19,37 @@
#ifndef MSG_EXP_GLOB_H
#define MSG_EXP_GLOB_H
+#define _CRT_SECURE_NO_WARNINGS
+
#include <windows.h>
+#include <Richedit.h>
+using namespace std;
+#include <Shlobj.h>
+#include <list>
+#include <string>
+#include <map>
+
+#include <newpluginapi.h>
+#include <m_database.h>
+#include <m_clist.h>
+#include <m_langpack.h>
+#include <m_options.h>
+#include <m_history.h>
+#include <m_userinfo.h>
+#include <m_protosvc.h>
+#include <m_icq.h>
+
+#include "utils.h"
+#include "options.h"
+#include "FileViewer.h"
+#include "resource.h"
+#include "version.h"
#define MODULE "Msg_Export"
#define MSG_BOX_TITEL TranslateT("Miranda NG (Message Export Plugin)")
+#define MS_SHOW_EXPORT_HISTORY "History/ShowExportHistory"
+#define szFileViewDB "FileV_"
+#define WM_RELOAD_FILE (WM_USER+10)
extern HINSTANCE hInstance;
diff --git a/plugins/Msg_Export/src/Version.h b/plugins/Msg_Export/src/Version.h
new file mode 100644
index 0000000000..5d52a0e747
--- /dev/null
+++ b/plugins/Msg_Export/src/Version.h
@@ -0,0 +1,14 @@
+#define __MAJOR_VERSION 3
+#define __MINOR_VERSION 1
+#define __RELEASE_NUM 0
+#define __BUILD_NUM 3
+
+#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
+
+#define __PLUGIN_NAME "Message export"
+#define __FILENAME "Msg_Export.dll"
+#define __DESCRIPTION "Exports every message, URL or File you receive to a text file."
+#define __AUTHOR "Kennet Nielsen, mod by ring0"
+#define __AUTHOREMAIL "Kennet_N@ofir.dk"
+#define __AUTHORWEB "http://miranda-ng.org/"
+#define __COPYRIGHT "© 2002 Kennet Nielsen, © 2012-2013 Miranda NG Team"
diff --git a/plugins/Msg_Export/src/main.cpp b/plugins/Msg_Export/src/main.cpp
index 15b43dab30..48aa0b9afe 100755
--- a/plugins/Msg_Export/src/main.cpp
+++ b/plugins/Msg_Export/src/main.cpp
@@ -16,21 +16,8 @@
//along with this program; if not, write to the Free Software
//Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-#include <windows.h>
-#include <Shellapi.h>
-
-//#include "../Miranda-IM/resource.h"
-
-#include "utils.h"
-#include "options.h"
-#include "FileViewer.h"
#include "Glob.h"
-#include "resource.h"
-
-
-#define MS_SHOW_EXPORT_HISTORY "History/ShowExportHistory"
-
HINSTANCE hInstance = NULL;
int hLangpack = 0;
@@ -53,16 +40,16 @@ HANDLE hInternalWindowList = NULL;
PLUGININFOEX pluginInfo = {
sizeof(PLUGININFOEX),
- "Message export (mod by ring0)",
- PLUGIN_MAKE_VERSION(3,1,0,3),
- "Exports every message, URL or File you receive to a text file.\r\n"
- "Messages are exported to one file per user, users may be set to use the same file.",
- "Kennet Nielsen, mod by ring0",
- "Kennet_N@ofir.dk",
- "© 2002 Kennet Nielsen",
- "http://sourceforge.net/projects/msg-export/",
+ __PLUGIN_NAME,
+ PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM),
+ __DESCRIPTION,
+ __AUTHOR,
+ __AUTHOREMAIL,
+ __COPYRIGHT,
+ __AUTHORWEB,
UNICODE_AWARE,
- { 0x46102b07, 0xc215, 0x4162, { 0x9c, 0x83, 0xd3, 0x77, 0x88, 0x1d, 0xa7, 0xcc } } // {46102B07-C215-4162-9C83-D377881DA7CC}
+ // {46102B07-C215-4162-9C83-D377881DA7CC}
+ {0x46102b07, 0xc215, 0x4162, {0x9c, 0x83, 0xd3, 0x77, 0x88, 0x1d, 0xa7, 0xcc}}
};
@@ -80,14 +67,14 @@ PLUGININFOEX pluginInfo = {
// Developer : KN
/////////////////////////////////////////////////////////////////////
-static INT_PTR ShowExportHistory(WPARAM wParam,LPARAM /*lParam*/)
+static INT_PTR ShowExportHistory(WPARAM wParam, LPARAM /*lParam*/)
{
- if( bUseInternalViewer() )
+ if (bUseInternalViewer())
{
- bShowFileViewer( (HANDLE)wParam );
+ bShowFileViewer((HANDLE)wParam);
return 0;
}
- bOpenExternaly( (HANDLE)wParam );
+ bOpenExternaly((HANDLE)wParam);
return 0;
}
@@ -105,41 +92,41 @@ static INT_PTR ShowExportHistory(WPARAM wParam,LPARAM /*lParam*/)
// Developer : KN
/////////////////////////////////////////////////////////////////////
-int nSystemShutdown(WPARAM /*wparam*/,LPARAM /*lparam*/)
+int nSystemShutdown(WPARAM /*wparam*/, LPARAM /*lparam*/)
{
- WindowList_Broadcast(hInternalWindowList,WM_CLOSE,0,0);
+ WindowList_Broadcast(hInternalWindowList, WM_CLOSE, 0, 0);
- if( hEventOptionsInitialize )
+ if (hEventOptionsInitialize)
{
UnhookEvent(hEventOptionsInitialize);
hEventOptionsInitialize = 0;
}
- if( hDBEventAdded )
+ if (hDBEventAdded)
{
UnhookEvent(hDBEventAdded);
hDBEventAdded = 0;
}
- if( hDBContactDeleted )
+ if (hDBContactDeleted)
{
UnhookEvent(hDBContactDeleted);
hDBContactDeleted = 0;
}
- if( hServiceFunc )
+ if (hServiceFunc)
{
- DestroyServiceFunction( hServiceFunc );
+ DestroyServiceFunction(hServiceFunc);
hServiceFunc = 0;
}
- if( hEventSystemInit )
+ if (hEventSystemInit)
{
UnhookEvent(hEventSystemInit);
hEventSystemInit = 0;
}
- if( hEventSystemShutdown )
+ if (hEventSystemShutdown)
{
UnhookEvent(hEventSystemShutdown); // here we unhook the fun we are in, might not bee good
hEventSystemShutdown = 0;
@@ -161,7 +148,7 @@ int nSystemShutdown(WPARAM /*wparam*/,LPARAM /*lparam*/)
// Developer : KN
/////////////////////////////////////////////////////////////////////
-int MainInit(WPARAM /*wparam*/,LPARAM /*lparam*/)
+int MainInit(WPARAM /*wparam*/, LPARAM /*lparam*/)
{
Initilize();
@@ -169,68 +156,38 @@ int MainInit(WPARAM /*wparam*/,LPARAM /*lparam*/)
bReadMirandaDirAndPath();
UpdateFileToColWidth();
- hDBEventAdded = HookEvent( ME_DB_EVENT_ADDED , nExportEvent );
- if( !hDBEventAdded )
- MessageBox(NULL, _T("Failed to HookEvent ME_DB_EVENT_ADDED"), MSG_BOX_TITEL, MB_OK );
-
-
- hDBContactDeleted = HookEvent(ME_DB_CONTACT_DELETED , nContactDeleted );
- if( !hDBContactDeleted )
- MessageBox(NULL, _T("Failed to HookEvent ME_DB_CONTACT_DELETED"), MSG_BOX_TITEL, MB_OK );
-
-
- hEventOptionsInitialize = HookEvent(ME_OPT_INITIALISE, OptionsInitialize );
- if( !hEventOptionsInitialize )
- MessageBox(NULL, _T("Failed to HookEvent ME_OPT_INITIALISE"), MSG_BOX_TITEL, MB_OK );
+ hDBEventAdded = HookEvent(ME_DB_EVENT_ADDED, nExportEvent);
+ if ( !hDBEventAdded)
+ MessageBox(NULL, TranslateT("Failed to HookEvent ME_DB_EVENT_ADDED"), MSG_BOX_TITEL, MB_OK);
+ hDBContactDeleted = HookEvent(ME_DB_CONTACT_DELETED, nContactDeleted);
+ if ( !hDBContactDeleted)
+ MessageBox(NULL, TranslateT("Failed to HookEvent ME_DB_CONTACT_DELETED"), MSG_BOX_TITEL, MB_OK);
+ hEventOptionsInitialize = HookEvent(ME_OPT_INITIALISE, OptionsInitialize);
+ if ( !hEventOptionsInitialize)
+ MessageBox(NULL, TranslateT("Failed to HookEvent ME_OPT_INITIALISE"), MSG_BOX_TITEL, MB_OK);
- if( !bReplaceHistory )
+ if ( !bReplaceHistory)
{
CLISTMENUITEM mi = { sizeof(mi) };
- mi.flags=0;
- mi.pszContactOwner=NULL; //all contacts
- mi.hIcon=LoadIcon(hInstance,MAKEINTRESOURCE(IDI_EXPORT_MESSAGE));
+ mi.flags = 0;
+ mi.pszContactOwner = NULL; //all contacts
+ mi.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_EXPORT_MESSAGE));
mi.position = 1000090100;
- mi.pszName=LPGEN("Open E&xported History");
- mi.pszService=MS_SHOW_EXPORT_HISTORY;
- hOpenHistoryMenuItem = Menu_AddContactMenuItem(&mi);
+ mi.pszName = LPGEN("Open E&xported History");
+ mi.pszService = MS_SHOW_EXPORT_HISTORY;
+ hOpenHistoryMenuItem = Menu_AddContactMenuItem(&mi);
- if( !hOpenHistoryMenuItem )
- MessageBox(NULL, _T("Failed to add menu item Open Exported History\nCallService(MS_CLIST_ADDCONTACTMENUITEM,...)"), MSG_BOX_TITEL, MB_OK );
+ if ( !hOpenHistoryMenuItem)
+ MessageBox(NULL, TranslateT("Failed to add menu item Open Exported History\nCallService(MS_CLIST_ADDCONTACTMENUITEM,...)"), MSG_BOX_TITEL, MB_OK);
}
+ hEventSystemShutdown = HookEvent(ME_SYSTEM_SHUTDOWN, nSystemShutdown);
+ if ( !hEventSystemShutdown)
+ MessageBox(NULL, TranslateT("Failed to HookEvent ME_SYSTEM_SHUTDOWN"), MSG_BOX_TITEL, MB_OK);
- hEventSystemShutdown = HookEvent( ME_SYSTEM_SHUTDOWN , nSystemShutdown );
-
- if( !hEventSystemShutdown )
- MessageBox(NULL, _T("Failed to HookEvent ME_SYSTEM_SHUTDOWN"), MSG_BOX_TITEL, MB_OK );
-
-
-/*
- _TCHAR szBuf[ 10000 ];
- for( int n = 0 ; n < 1000 ; n++ )
- {
- for( int y = 0 ; y < n ; y++ )
- {
- szBuf[ y ] = '0' + y%10;//((n + y) % 8 ) ? ('0' + ((n + y) % 10)) : ' ' ;
- }
- szBuf[ y ] = 0;
-
- HANDLE hFile = CreateFile( "C:\\test.txt" , GENERIC_WRITE , FILE_SHARE_READ , 0 ,OPEN_ALWAYS , FILE_ATTRIBUTE_NORMAL , NULL );
- SetFilePointer( hFile , 0 , 0 , FILE_END );
-
- bWriteNewLine( hFile , 10 );
- bWriteNewLine( hFile , 0 );
- bWriteNewLine( hFile , 120 );
-
- DWORD dwBytesWritten;
- WriteFile( hFile , "\r\n\r\n" , 4 , &dwBytesWritten , NULL );
-
- CloseHandle( hFile );
- //}*/
-
return 0;
}
@@ -251,18 +208,13 @@ int MainInit(WPARAM /*wparam*/,LPARAM /*lparam*/)
// Developer : KN
/////////////////////////////////////////////////////////////////////
-BOOL WINAPI DllMain(HINSTANCE hinst,DWORD /*fdwReason*/,LPVOID /*lpvReserved*/)
+BOOL WINAPI DllMain(HINSTANCE hinst, DWORD /*fdwReason*/, LPVOID /*lpvReserved*/)
{
- hInstance=hinst;
+ hInstance = hinst;
return 1;
}
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
/////////////////////////////////////////////////////////////////////
// Member Function : MirandaPluginInfo
// Type : Global
@@ -276,17 +228,11 @@ extern "C" {
// Developer : KN
/////////////////////////////////////////////////////////////////////
-__declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD /*mirandaVersion*/)
+extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
return &pluginInfo;
}
-static const MUUID interfaces[] = { MIID_HISTORYEXPORT, MIID_LAST};
-extern "C" __declspec(dllexport) const MUUID * MirandaPluginInterfaces(void)
-{
- return interfaces;
-}
-
/////////////////////////////////////////////////////////////////////
// Member Function : Load
// Type : Global
@@ -300,72 +246,59 @@ extern "C" __declspec(dllexport) const MUUID * MirandaPluginInterfaces(void)
// Developer : KN
/////////////////////////////////////////////////////////////////////
-int __declspec(dllexport)Load()
+extern "C" __declspec(dllexport) int Load()
{
mir_getLP(&pluginInfo);
- hEventSystemInit = HookEvent(ME_SYSTEM_MODULESLOADED,MainInit);
+ hEventSystemInit = HookEvent(ME_SYSTEM_MODULESLOADED, MainInit);
- if( !hEventSystemInit )
+ if ( !hEventSystemInit)
{
- MessageBox(NULL, _T("Failed to HookEvent ME_SYSTEM_MODULESLOADED"), MSG_BOX_TITEL, MB_OK);
+ MessageBox(NULL, TranslateT("Failed to HookEvent ME_SYSTEM_MODULESLOADED"), MSG_BOX_TITEL, MB_OK);
return 0;
}
- nMaxLineWidth = db_get_w( NULL , MODULE , "MaxLineWidth" , nMaxLineWidth );
- if( nMaxLineWidth < 5 )
+ nMaxLineWidth = db_get_w(NULL, MODULE, "MaxLineWidth", nMaxLineWidth);
+ if(nMaxLineWidth < 5)
nMaxLineWidth = 5;
- sExportDir = _DBGetString( NULL , MODULE , "ExportDir" , _T("%dbpath%\\MsgExport\\") );
- sDefaultFile = _DBGetString( NULL , MODULE , "DefaultFile" , _T("%nick%.txt") );
+ sExportDir = _DBGetString(NULL, MODULE, "ExportDir", _T("%dbpath%\\MsgExport\\"));
+ sDefaultFile = _DBGetString(NULL, MODULE, "DefaultFile", _T("%nick%.txt"));
- sTimeFormat = _DBGetString( NULL , MODULE , "TimeFormat" , _T("d s") );
+ sTimeFormat = _DBGetString(NULL, MODULE, "TimeFormat", _T("d s"));
- sFileViewerPrg = _DBGetString( NULL , MODULE , "FileViewerPrg" , _T("") );
- bUseInternalViewer( db_get_b( NULL , MODULE , "UseInternalViewer" , bUseInternalViewer() ) != 0 );
+ sFileViewerPrg = _DBGetString(NULL, MODULE, "FileViewerPrg", _T(""));
+ bUseInternalViewer(db_get_b(NULL, MODULE, "UseInternalViewer", bUseInternalViewer()) != 0);
- bReplaceHistory = db_get_b( NULL , MODULE , "ReplaceHistory" , bReplaceHistory ) != 0;
- bAppendNewLine = db_get_b( NULL , MODULE , "AppendNewLine" , bAppendNewLine ) != 0;
- bUseUtf8InNewFiles = db_get_b( NULL , MODULE , "UseUtf8InNewFiles" , bUseUtf8InNewFiles ) != 0;
- bUseLessAndGreaterInExport = db_get_b( NULL , MODULE , "UseLessAndGreaterInExport" , bUseLessAndGreaterInExport ) != 0;
+ bReplaceHistory = db_get_b(NULL, MODULE, "ReplaceHistory", bReplaceHistory) != 0;
+ bAppendNewLine = db_get_b(NULL, MODULE, "AppendNewLine", bAppendNewLine) != 0;
+ bUseUtf8InNewFiles = db_get_b(NULL, MODULE, "UseUtf8InNewFiles", bUseUtf8InNewFiles) != 0;
+ bUseLessAndGreaterInExport = db_get_b(NULL, MODULE, "UseLessAndGreaterInExport", bUseLessAndGreaterInExport) != 0;
- enRenameAction = (ENDialogAction)db_get_b( NULL , MODULE , "RenameAction" , enRenameAction );
- enDeleteAction = (ENDialogAction)db_get_b( NULL , MODULE , "DeleteAction" , enDeleteAction );;
+ enRenameAction = (ENDialogAction)db_get_b(NULL, MODULE, "RenameAction", enRenameAction);
+ enDeleteAction = (ENDialogAction)db_get_b(NULL, MODULE, "DeleteAction", enDeleteAction);
// Plugin sweeper support
db_set_ts(NULL, "Uninstall", "Message Export", _T(MODULE));
- if( bReplaceHistory )
+ if (bReplaceHistory)
{
- hServiceFunc = CreateServiceFunction(MS_HISTORY_SHOWCONTACTHISTORY,ShowExportHistory); //this need new code
-/* if( hServiceFunc )
- {
- int *disableDefaultModule=(int*)CallService(MS_PLUGINS_GETDISABLEDEFAULTARRAY,0,0);
- if( disableDefaultModule )
- {
- disableDefaultModule[DEFMOD_UIHISTORY] = TRUE;
- }
- else
- {
- DestroyServiceFunction( hServiceFunc );
- hServiceFunc = 0;
- }
- }*/
-
- if( !hServiceFunc )
+ hServiceFunc = CreateServiceFunction(MS_HISTORY_SHOWCONTACTHISTORY, ShowExportHistory); //this need new code
+
+ if ( !hServiceFunc)
MessageBox(NULL, TranslateT("Failed to replace Miranda History.\r\nThis is most likely due to changes in Miranda."), MSG_BOX_TITEL, MB_OK);
}
- if( !hServiceFunc )
+ if ( !hServiceFunc)
{
hServiceFunc = CreateServiceFunction(MS_SHOW_EXPORT_HISTORY, ShowExportHistory);
}
- if( !hServiceFunc )
+ if ( !hServiceFunc)
{
- MessageBox(NULL, _T("Failed to CreateServiceFunction MS_SHOW_EXPORT_HISTORY"), MSG_BOX_TITEL, MB_OK);
+ MessageBox(NULL, TranslateT("Failed to CreateServiceFunction MS_SHOW_EXPORT_HISTORY"), MSG_BOX_TITEL, MB_OK);
}
- hInternalWindowList = (HANDLE) CallService(MS_UTILS_ALLOCWINDOWLIST,0,0);
+ hInternalWindowList = (HANDLE)CallService(MS_UTILS_ALLOCWINDOWLIST, 0, 0);
return 0;
}
@@ -383,13 +316,9 @@ int __declspec(dllexport)Load()
// Developer : KN
/////////////////////////////////////////////////////////////////////
-__declspec(dllexport)int Unload(void)
+extern "C" __declspec(dllexport) int Unload(void)
{
Uninitilize();
- bUseInternalViewer( false );
+ bUseInternalViewer(false);
return 0;
-}
-
-#ifdef __cplusplus
-}
-#endif
+} \ No newline at end of file
diff --git a/plugins/Msg_Export/src/options.cpp b/plugins/Msg_Export/src/options.cpp
index 0e015acaab..be86c3c82e 100755
--- a/plugins/Msg_Export/src/options.cpp
+++ b/plugins/Msg_Export/src/options.cpp
@@ -16,21 +16,7 @@
//along with this program; if not, write to the Free Software
//Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
-#include <windows.h>
-#include <commctrl.h>
-#include "Shlobj.h"
-
-
-#include "Utils.h"
#include "Glob.h"
-#include "FileViewer.h"
-
-#include "resource.h"
-
-#include <stdio.h>
-#include <list>
-//#include <algorithm>
#define STRINGIZE(x) #x
#define EVAL_STRINGIZE(x) STRINGIZE(x)
@@ -56,8 +42,6 @@
You need to change this in the file <list> function sort() and sort(_Pr3 _Pr)
*/
-using namespace std;
-
// width in pixels of the UIN column in the List Ctrl
const int nUINColWitdh = 80;
@@ -565,7 +549,7 @@ void AutoFindeFileNames(HWND hwndDlg)
size_t nLen = _tcslen( szSubCur );
if( _tcsncicmp( szSubCur , szSearch , nLen ) == 0 )
{
- if( nLen < nShortestMatch )
+ if( nLen < (size_t)nShortestMatch )
{
nShortestMatch = nLen;
nStortestIndex = nSubCur;
@@ -703,17 +687,17 @@ static INT_PTR CALLBACK DlgProcMsgExportOpts(HWND hwndDlg, UINT msg, WPARAM wPar
LVCOLUMN cCol = { 0 };
cCol.mask = LVCF_TEXT | LVCF_WIDTH;
cCol.cx = nColumnWidth;
- cCol.pszText = LPGENT("File");
+ cCol.pszText = TranslateT("File");
ListView_InsertColumn( hMapUser , 0 , &cCol );
- cCol.pszText = LPGENT("Nick");
+ cCol.pszText = TranslateT("Nick");
ListView_InsertColumn( hMapUser , 1 , &cCol );
cCol.cx = nProtoColWitdh;
- cCol.pszText = LPGENT("Proto");
+ cCol.pszText = TranslateT("Proto");
ListView_InsertColumn( hMapUser , 2 , &cCol );
cCol.cx = nUINColWitdh;
cCol.mask |= LVCF_FMT;
cCol.fmt = LVCFMT_RIGHT;
- cCol.pszText = LPGENT("UIN");
+ cCol.pszText = TranslateT("UIN");
ListView_InsertColumn( hMapUser , 3 , &cCol );
diff --git a/plugins/Msg_Export/src/utils.cpp b/plugins/Msg_Export/src/utils.cpp
index cad4fd01a5..265682ee8d 100755
--- a/plugins/Msg_Export/src/utils.cpp
+++ b/plugins/Msg_Export/src/utils.cpp
@@ -16,16 +16,7 @@
//along with this program; if not, write to the Free Software
//Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
-
-#include <stdio.h>
-
#include "Glob.h"
-#include "Utils.h"
-#include "FileViewer.h"
-
-#include <m_protosvc.h>
-#include <m_icq.h>
// Default error string used upon errors
const _TCHAR *pszNickError = LPGENT("No_Nick");
diff --git a/plugins/Msg_Export/src/utils.h b/plugins/Msg_Export/src/utils.h
index 1e254c7843..37b16b23e5 100755
--- a/plugins/Msg_Export/src/utils.h
+++ b/plugins/Msg_Export/src/utils.h
@@ -20,41 +20,8 @@
#ifndef MSG_EXP_UTILS_H
#define MSG_EXP_UTILS_H
-#include <windows.h>
-
-#if defined ( _MSC_VER ) // A Microsoft C Compiler
- #ifdef _DEBUG // The _ASSERT macro contains a constant expression
- #pragma warning( disable : 4786 )
- #endif
-#endif // defined ( _MSC_VER )
-
-#pragma warning (push, 3 )
-
-#include "stdio.h"
-
-#include <newpluginapi.h>
-#include <m_database.h>
-#include <m_clist.h>
-#include <m_skin.h>
-#include <m_langpack.h>
-#include <m_options.h>
-#include <m_system.h>
-#include <m_history.h>
-#include <m_userinfo.h>
-#include <m_utils.h>
-#include <m_protocols.h>
-
#define EVENTTYPE_STATUSCHANGE 25368
-#include <list>
-#include <string>
-#include <map>
-
-#pragma warning (pop)
-
-using namespace std;
-
-
#define tstring wstring
#define _DBGetString _DBGetStringW