/* Miranda IM: the free IM client for Microsoft* Windows* Copyright 2000-12 Miranda IM, 2012-13 Miranda NG project all portions of this codebase are copyrighted to the people listed in contributors.txt. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "m_fontservice.h" // a font identifier structure - used for registering a font, and getting one out again struct FontInternal : public FontIDT { FontSettingsT value; int hLangpack; __inline TCHAR* getName() const { return TranslateTH(hLangpack, name); } __inline bool isHeader() const { if ((flags & FIDF_CLASSMASK) == FIDF_CLASSHEADER) return true; if ((flags & FIDF_CLASSMASK) == 0) if (_tcsstr(name, _T("Incoming nick")) || _tcsstr(name, _T("Outgoing nick")) || _tcsstr(name, _T("Incoming timestamp")) || _tcsstr(name, _T("Outgoing timestamp"))) return true; return false; } }; struct ColourInternal : public ColourIDT { __inline TCHAR* getName() const { return TranslateTH(hLangpack, name); } COLORREF value; int hLangpack; }; struct EffectInternal : public EffectIDT { __inline TCHAR* getName() const { return TranslateTH(hLangpack, name); } int hLangpack; }; ///////////////////////////////////////////////////////////////////////////////////////// // global data & functions typedef struct { char *paramName; TCHAR *groupName; } TreeItem; extern OBJLIST font_id_list; extern OBJLIST colour_id_list; extern OBJLIST effect_id_list; extern int code_page; extern HANDLE hFontReloadEvent, hColourReloadEvent; int CreateFromFontSettings(FontSettingsT *fs, LOGFONT *lf);