From 4ba2455da24ecbe9f0c623945e7add2696cdc81b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 21 Feb 2015 19:50:54 +0000 Subject: tabSRMM chats to use the same rtf formatter both for chats & groupchats git-svn-id: http://svn.miranda-ng.org/main/trunk@12235 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/utils.h | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) (limited to 'plugins/TabSRMM/src/utils.h') diff --git a/plugins/TabSRMM/src/utils.h b/plugins/TabSRMM/src/utils.h index f86e54b8b9..4e210597b3 100644 --- a/plugins/TabSRMM/src/utils.h +++ b/plugins/TabSRMM/src/utils.h @@ -38,22 +38,9 @@ struct TRTFColorTable { - TCHAR szName[10]; - COLORREF clr; - int index; - int menuid; -}; - -static TRTFColorTable _rtf_ctable[] = { - _T("red"), RGB(255, 0, 0), 0, ID_FONT_RED, - _T("blue"), RGB(0, 0, 255), 0, ID_FONT_BLUE, - _T("green"), RGB(0, 255, 0), 0, ID_FONT_GREEN, - _T("magenta"), RGB(255, 0, 255), 0, ID_FONT_MAGENTA, - _T("yellow"), RGB(255, 255, 0), 0, ID_FONT_YELLOW, - _T("cyan"), RGB(0, 255, 255), 0, ID_FONT_CYAN, - _T("black"), 0, 0, ID_FONT_BLACK, - _T("white"), RGB(255, 255, 255), 0, ID_FONT_WHITE, - _T(""), 0, 0, 0 + TCHAR szName[10]; + COLORREF clr; + int menuid; }; class Utils { @@ -74,8 +61,6 @@ public: static LPCTSTR DoubleAmpersands(TCHAR *pszText); static void RTF_CTableInit(); static void RTF_ColorAdd(const TCHAR *tszColname, size_t length); - static void CreateColorMap(CMString &Text); - static int RTFColorToIndex(int iCol); static int ReadContainerSettingsFromDB(const MCONTACT hContact, TContainerSettings *cs, const char *szKey = 0); static int WriteContainerSettingsToDB(const MCONTACT hContact, TContainerSettings *cs, const char *szKey = 0); static void SettingsToContainer(TContainerData *pContainer); -- cgit v1.2.3