ReactOS 0.4.16-dev-334-g4d9f67c
|
#include <windows.h>
#include <windowsx.h>
#include <commctrl.h>
#include <tchar.h>
#include <vector>
#include <set>
#include <string>
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <cassert>
#include "resource.h"
Go to the source code of this file.
Classes | |
struct | ITEM |
struct | CHARSET_ENTRY |
Macros | |
#define | NAME_COLUMN_WIDTH 250 |
#define | SUB_COLUMN_WIDTH 250 |
#define | MAX_STRING 120 |
#define | _countof(array) (sizeof(array) / sizeof(array[0])) |
Typedefs | |
typedef std::wstring | STRING |
typedef std::set< STRING > | FONTNAMESET |
typedef std::vector< ITEM > | ITEMVECTOR |
typedef struct CHARSET_ENTRY | CHARSET_ENTRY |
Variables | |
HINSTANCE | g_hInstance = NULL |
HWND | g_hMainWnd = NULL |
HICON | g_hIcon = NULL |
HWND | g_hListView = NULL |
BOOL | g_bModified = FALSE |
BOOL | g_bNeedsReboot = FALSE |
INT | g_iItem = 0 |
LPCWSTR | g_pszClassName = L"ReactOS Font Substitutes Editor" |
LPCWSTR | g_pszFileHeader = L"Windows Registry Editor Version 5.00" |
WCHAR | g_szTitle [MAX_STRING] |
WCHAR | g_szNameHead [MAX_STRING] |
WCHAR | g_szSubstituteHead [MAX_STRING] |
INT | g_iSortColumn = 0 |
BOOL | g_bSortAscendant = TRUE |
LPCWSTR | g_pszKey |
FONTNAMESET | g_Names |
ITEMVECTOR | g_Items |
STRING | g_strFontName |
STRING | g_strSubstitute |
BYTE | g_CharSet1 = DEFAULT_CHARSET |
BYTE | g_CharSet2 = DEFAULT_CHARSET |
CHARSET_ENTRY | g_CharSetList [] |
const WCHAR | g_LongestName [] = L"CHINESEBIG5_CHARSET (136)" |
Definition at line 30 of file fontsub.cpp.
#define MAX_STRING 120 |
Definition at line 27 of file fontsub.cpp.
#define NAME_COLUMN_WIDTH 250 |
Definition at line 25 of file fontsub.cpp.
#define SUB_COLUMN_WIDTH 250 |
Definition at line 26 of file fontsub.cpp.
typedef struct CHARSET_ENTRY CHARSET_ENTRY |
typedef std::set<STRING> FONTNAMESET |
Definition at line 67 of file fontsub.cpp.
typedef std::vector<ITEM> ITEMVECTOR |
Definition at line 68 of file fontsub.cpp.
typedef std::wstring STRING |
Definition at line 33 of file fontsub.cpp.
Definition at line 696 of file fontsub.cpp.
Referenced by MainWnd_OnNew().
Definition at line 611 of file fontsub.cpp.
Referenced by AddDlg_DlgProc().
Definition at line 554 of file fontsub.cpp.
Referenced by AddDlg_DlgProc().
Definition at line 1048 of file fontsub.cpp.
Referenced by MainWnd_OnExport().
Definition at line 997 of file fontsub.cpp.
Referenced by MainWnd_OnImport().
Definition at line 310 of file fontsub.cpp.
Referenced by MainWnd_OnCreate(), and MainWnd_OnReload().
Definition at line 256 of file fontsub.cpp.
Referenced by DoLoad().
Definition at line 145 of file fontsub.cpp.
Referenced by DoLoad().
Definition at line 915 of file fontsub.cpp.
Referenced by DoImport().
Definition at line 180 of file fontsub.cpp.
Referenced by DoLoadItems(), and MainWnd_OnNotify().
Definition at line 505 of file fontsub.cpp.
Referenced by LV_OnDblClk().
Definition at line 461 of file fontsub.cpp.
Referenced by EditDlg_DlgProc().
Definition at line 380 of file fontsub.cpp.
Referenced by EditDlg_DlgProc().
Definition at line 1443 of file fontsub.cpp.
Referenced by MainWnd_OnClose(), and PropSheetProc().
|
static |
Definition at line 123 of file fontsub.cpp.
Referenced by DoLoadNames().
Definition at line 1030 of file fontsub.cpp.
Referenced by add_mf_comment(), DECLARE_INTERFACE_(), DoExport(), IntGdiEscape(), NtGdiEscape(), NtGdiExtEscape(), PlayMetaFileRecord(), print_something(), and test_pscript_printer_dc().
Definition at line 165 of file fontsub.cpp.
Referenced by DoSort().
Definition at line 175 of file fontsub.cpp.
Referenced by DoSort().
Definition at line 233 of file fontsub.cpp.
Referenced by DoLoadItems(), and DoParseFile().
Definition at line 328 of file fontsub.cpp.
Referenced by MainWnd_OnCreate().
Definition at line 315 of file fontsub.cpp.
Definition at line 515 of file fontsub.cpp.
Referenced by MainWnd_OnEdit(), and MainWnd_OnNotify().
Definition at line 434 of file fontsub.cpp.
Referenced by EditDlg_OnCommand(), MainWnd_OnDelete(), and MainWnd_OnNotify().
Definition at line 1238 of file fontsub.cpp.
Referenced by MainWnd_OnCommand().
Definition at line 1470 of file fontsub.cpp.
Referenced by WindowProc().
Definition at line 1256 of file fontsub.cpp.
Referenced by WindowProc().
Definition at line 1414 of file fontsub.cpp.
Referenced by WindowProc().
BOOL MainWnd_OnCreate | ( | HWND | hwnd, |
LPCREATESTRUCT | lpCreateStruct | ||
) |
Definition at line 531 of file fontsub.cpp.
Referenced by WindowProc().
Definition at line 1196 of file fontsub.cpp.
Referenced by MainWnd_OnCommand().
Definition at line 1293 of file fontsub.cpp.
Referenced by WindowProc().
void MainWnd_OnDrawItem | ( | HWND | hwnd, |
const DRAWITEMSTRUCT * | lpDrawItem | ||
) |
Definition at line 1303 of file fontsub.cpp.
Referenced by WindowProc().
Definition at line 1155 of file fontsub.cpp.
Referenced by MainWnd_OnCommand().
Definition at line 1123 of file fontsub.cpp.
Referenced by MainWnd_OnCommand().
void MainWnd_OnMeasureItem | ( | HWND | hwnd, |
MEASUREITEMSTRUCT * | lpMeasureItem | ||
) |
Definition at line 1371 of file fontsub.cpp.
Referenced by WindowProc().
Definition at line 706 of file fontsub.cpp.
Referenced by MainWnd_OnCommand().
Definition at line 1384 of file fontsub.cpp.
Referenced by WindowProc().
Definition at line 1201 of file fontsub.cpp.
Referenced by MainWnd_OnCommand().
Definition at line 1186 of file fontsub.cpp.
Referenced by MainWnd_OnCommand().
Definition at line 1298 of file fontsub.cpp.
Referenced by WindowProc().
Definition at line 727 of file fontsub.cpp.
Referenced by MainWnd_OnClose(), and MainWnd_OnCommand().
Definition at line 1112 of file fontsub.cpp.
Referenced by MainWnd_OnExport(), and MainWnd_OnImport().
Definition at line 107 of file fontsub.cpp.
Referenced by AddDlg_OnCommand(), DoLoadItems(), DoParseFile(), and EditDlg_OnCommand().
Definition at line 862 of file fontsub.cpp.
Referenced by Unquote().
Definition at line 795 of file fontsub.cpp.
Referenced by UnescapeChar().
Definition at line 829 of file fontsub.cpp.
Referenced by UnescapeChar().
Definition at line 898 of file fontsub.cpp.
Referenced by DoParseFile().
Definition at line 1519 of file fontsub.cpp.
Referenced by wWinMain().
INT WINAPI wWinMain | ( | HINSTANCE | hInstance, |
HINSTANCE | hPrevInstance, | ||
LPWSTR | lpCmdLine, | ||
INT | nCmdShow | ||
) |
Definition at line 1538 of file fontsub.cpp.
Definition at line 50 of file fontsub.cpp.
Referenced by AddDlg_OnCommand(), DoLoadItems(), DoParseFile(), EditDlg_OnCommand(), LV_OnDelete(), MainWnd_OnClose(), and MainWnd_OnUpdateRegistry().
Definition at line 51 of file fontsub.cpp.
Referenced by DoLoadItems(), MainWnd_OnClose(), and MainWnd_OnUpdateRegistry().
Definition at line 62 of file fontsub.cpp.
Referenced by DoSort(), and MainWnd_OnNotify().
BYTE g_CharSet1 = DEFAULT_CHARSET |
Definition at line 74 of file fontsub.cpp.
Referenced by AddDlg_OnInitDialog(), EditDlg_OnInitDialog(), LV_OnDblClk(), and MainWnd_OnNew().
BYTE g_CharSet2 = DEFAULT_CHARSET |
Definition at line 75 of file fontsub.cpp.
Referenced by AddDlg_OnInitDialog(), EditDlg_OnInitDialog(), LV_OnDblClk(), and MainWnd_OnNew().
CHARSET_ENTRY g_CharSetList[] |
Definition at line 83 of file fontsub.cpp.
Referenced by AddDlg_OnCommand(), AddDlg_OnInitDialog(), EditDlg_OnCommand(), and EditDlg_OnInitDialog().
Definition at line 48 of file fontsub.cpp.
Referenced by wWinMain().
Definition at line 46 of file fontsub.cpp.
Referenced by AddDlg_OnCommand(), AddDlg_OnInitDialog(), EditDlg_OnCommand(), LV_Init(), LV_OnDblClk(), LV_OnDelete(), MainWnd_OnAbout(), MainWnd_OnClose(), MainWnd_OnContextMenu(), MainWnd_OnCreate(), MainWnd_OnExport(), MainWnd_OnImport(), MainWnd_OnNew(), MainWnd_OnOpenRegKey(), and wWinMain().
Definition at line 49 of file fontsub.cpp.
Referenced by AddDlg_OnCommand(), DoLoadItems(), DoParseFile(), DoSort(), EditDlg_OnCommand(), LV_OnDblClk(), LV_OnDelete(), MainWnd_OnActivate(), MainWnd_OnContextMenu(), MainWnd_OnCreate(), MainWnd_OnDelete(), MainWnd_OnDrawItem(), MainWnd_OnEdit(), MainWnd_OnNew(), MainWnd_OnNotify(), and MainWnd_OnSize().
Definition at line 47 of file fontsub.cpp.
Referenced by LV_OnDblClk(), LV_OnDelete(), MainWnd_OnContextMenu(), MainWnd_OnNew(), and wWinMain().
INT g_iItem = 0 |
Definition at line 52 of file fontsub.cpp.
Referenced by EditDlg_OnCommand(), LV_OnDblClk(), and MainWnd_OnNew().
INT g_iSortColumn = 0 |
Definition at line 61 of file fontsub.cpp.
Referenced by DoSort(), and MainWnd_OnNotify().
ITEMVECTOR g_Items |
Definition at line 71 of file fontsub.cpp.
Referenced by AddDlg_OnCommand(), DoExport(), DoLoadItems(), DoParseFile(), DoSort(), EditDlg_OnCommand(), LV_AddItems(), LV_OnDblClk(), LV_OnDelete(), MainWnd_OnDrawItem(), MainWnd_OnNew(), and MainWnd_OnUpdateRegistry().
Definition at line 105 of file fontsub.cpp.
Referenced by AddDlg_OnInitDialog(), and EditDlg_OnInitDialog().
FONTNAMESET g_Names |
Definition at line 70 of file fontsub.cpp.
Referenced by AddDlg_OnInitDialog(), DoLoadNames(), EditDlg_OnInitDialog(), and EnumFontFamExProc().
Definition at line 54 of file fontsub.cpp.
Referenced by wWinMain().
Definition at line 55 of file fontsub.cpp.
Referenced by DoExport(), and DoParseFile().
LPCWSTR g_pszKey |
Definition at line 64 of file fontsub.cpp.
Referenced by DoExport(), DoLoadItems(), DoParseFile(), MainWnd_OnOpenRegKey(), and MainWnd_OnUpdateRegistry().
STRING g_strFontName |
Definition at line 72 of file fontsub.cpp.
Referenced by EditDlg_OnInitDialog(), LV_OnDblClk(), and MainWnd_OnNew().
STRING g_strSubstitute |
Definition at line 73 of file fontsub.cpp.
Referenced by EditDlg_OnInitDialog(), LV_OnDblClk(), and MainWnd_OnNew().
WCHAR g_szNameHead[MAX_STRING] |
Definition at line 58 of file fontsub.cpp.
Referenced by LV_Init(), and wWinMain().
WCHAR g_szSubstituteHead[MAX_STRING] |
Definition at line 59 of file fontsub.cpp.
Referenced by LV_Init(), and wWinMain().
WCHAR g_szTitle[MAX_STRING] |
Definition at line 57 of file fontsub.cpp.
Referenced by LV_OnDelete(), MainWnd_OnAbout(), MainWnd_OnClose(), MainWnd_OnExport(), MainWnd_OnImport(), and wWinMain().