2008-08-30 08:16:52 +02:00
|
|
|
/*
|
|
|
|
* wordpad (Simplified and Traditional Chinese Resource)
|
|
|
|
*
|
|
|
|
* Copyright 2008 Hongbo Ni <hongbo.at.njstar.com>
|
2010-07-13 14:50:29 +02:00
|
|
|
* Copyright 2010 Cheer Xiao <xiaqqaix.at.gmail.com>
|
2008-08-30 08:16:52 +02:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library 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
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
2009-07-02 00:31:53 +02:00
|
|
|
#include "wordpad.h"
|
|
|
|
|
2008-08-30 08:16:52 +02:00
|
|
|
/* Chinese text is encoded in UTF-8 */
|
|
|
|
#pragma code_page(65001)
|
|
|
|
|
|
|
|
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
|
|
|
|
|
2010-07-21 23:57:50 +02:00
|
|
|
IDD_DATETIME DIALOG 30, 20, 130, 80
|
2008-08-30 08:16:52 +02:00
|
|
|
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
|
|
|
|
CAPTION "日期和时间"
|
2008-12-10 19:29:14 +01:00
|
|
|
FONT 9, "MS Shell Dlg"
|
2008-08-30 08:16:52 +02:00
|
|
|
BEGIN
|
2010-07-13 14:50:29 +02:00
|
|
|
LTEXT "可选格式",-1,3,2,100,15
|
2008-11-15 01:10:57 +01:00
|
|
|
LISTBOX IDC_DATETIME,3,12,80,65,LBS_NOINTEGRALHEIGHT | LBS_NOTIFY
|
2008-08-30 08:16:52 +02:00
|
|
|
PUSHBUTTON "确定(&O)",IDOK,87,12,40,12
|
|
|
|
PUSHBUTTON "取消(&C)",IDCANCEL,87,26,40,12
|
|
|
|
END
|
|
|
|
|
2010-07-21 23:57:50 +02:00
|
|
|
IDD_NEWFILE DIALOG 30, 20, 140, 80
|
2008-08-30 08:16:52 +02:00
|
|
|
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
|
|
|
|
CAPTION "新建"
|
2008-12-10 19:29:14 +01:00
|
|
|
FONT 9, "MS Shell Dlg"
|
2008-08-30 08:16:52 +02:00
|
|
|
BEGIN
|
2009-01-14 11:31:00 +01:00
|
|
|
LTEXT "新文件类型",-1,3,2,100,15
|
2008-08-30 08:16:52 +02:00
|
|
|
LISTBOX IDC_NEWFILE,3,12,90,65,LBS_NOINTEGRALHEIGHT
|
|
|
|
PUSHBUTTON "确定(&O)",IDOK,97,12,40,12
|
|
|
|
PUSHBUTTON "取消(&C)",IDCANCEL,97,26,40,12
|
|
|
|
END
|
|
|
|
|
2010-07-21 23:57:50 +02:00
|
|
|
IDD_PARAFORMAT DIALOG 30, 20, 200, 110
|
2008-08-30 08:16:52 +02:00
|
|
|
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
|
|
|
|
Caption "段落格式"
|
2008-12-10 19:29:14 +01:00
|
|
|
FONT 9, "MS Shell Dlg"
|
2008-08-30 08:16:52 +02:00
|
|
|
BEGIN
|
2009-01-14 11:31:00 +01:00
|
|
|
GROUPBOX "缩进", -1, 10, 10, 120, 68
|
|
|
|
LTEXT "左", -1, 15, 22, 40, 13
|
2008-08-30 08:16:52 +02:00
|
|
|
EDITTEXT IDC_PARA_LEFT, 55, 20, 60, 13
|
2009-01-14 11:31:00 +01:00
|
|
|
LTEXT "右", -1, 15, 40, 40, 13
|
2008-08-30 08:16:52 +02:00
|
|
|
EDITTEXT IDC_PARA_RIGHT, 55, 38, 60, 13
|
2010-07-13 14:50:29 +02:00
|
|
|
LTEXT "首行", -1, 15, 58, 40, 13
|
2008-08-30 08:16:52 +02:00
|
|
|
EDITTEXT IDC_PARA_FIRST, 55, 56, 60, 13
|
2009-01-14 11:31:00 +01:00
|
|
|
LTEXT "对齐", -1, 15, 87, 40, 13
|
2008-08-30 08:16:52 +02:00
|
|
|
COMBOBOX IDC_PARA_ALIGN, 55, 85, 60, 60, CBS_DROPDOWNLIST
|
|
|
|
PUSHBUTTON "确定(&O)", IDOK, 137, 15, 50, 15
|
|
|
|
PUSHBUTTON "取消(&C)", IDCANCEL, 137, 33, 50, 15
|
|
|
|
END
|
|
|
|
|
2010-07-21 23:57:50 +02:00
|
|
|
IDD_TABSTOPS DIALOG 30, 20, 200, 110
|
2008-08-30 08:16:52 +02:00
|
|
|
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
|
2010-07-13 14:50:29 +02:00
|
|
|
Caption "制表位"
|
2008-12-10 19:29:14 +01:00
|
|
|
FONT 9, "MS Shell Dlg"
|
2008-08-30 08:16:52 +02:00
|
|
|
BEGIN
|
2010-07-13 14:50:29 +02:00
|
|
|
GROUPBOX "制表位宽度", -1, 10, 10, 120, 90
|
2009-02-25 21:15:25 +01:00
|
|
|
COMBOBOX IDC_TABSTOPS, 20, 20, 100, 60, CBS_SIMPLE
|
2008-08-30 08:16:52 +02:00
|
|
|
DEFPUSHBUTTON "添加(&A)", ID_TAB_ADD, 20, 80, 45, 15
|
|
|
|
PUSHBUTTON "删除(&R)", ID_TAB_DEL, 72, 80, 45, 15
|
|
|
|
PUSHBUTTON "确定(&O)", IDOK, 137, 15, 50, 15
|
|
|
|
PUSHBUTTON "取消(&C)", IDCANCEL, 137, 33, 50, 15
|
|
|
|
PUSHBUTTON "全部删除(&R)", ID_TAB_EMPTY, 137, 51, 50, 15
|
|
|
|
END
|
|
|
|
|
2010-07-21 23:57:50 +02:00
|
|
|
IDD_FORMATOPTS DIALOG 0, 0, 280, 110
|
2008-08-30 08:16:52 +02:00
|
|
|
STYLE DS_SYSMODAL
|
|
|
|
Caption ""
|
2008-12-10 19:29:14 +01:00
|
|
|
FONT 9, "MS Shell Dlg"
|
2008-08-30 08:16:52 +02:00
|
|
|
BEGIN
|
2009-01-14 11:31:00 +01:00
|
|
|
GROUPBOX "自动换行", -1, 10, 10, 130, 85
|
2010-07-13 14:50:29 +02:00
|
|
|
RADIOBUTTON "不要自动换行", IDC_PAGEFMT_WN, 18, 25, 117, 15
|
|
|
|
RADIOBUTTON "按窗口宽度(&W)", IDC_PAGEFMT_WW, 18, 45, 117, 15
|
2008-10-14 00:48:41 +02:00
|
|
|
RADIOBUTTON "按纸张宽度(&M)", IDC_PAGEFMT_WM, 18, 65, 117, 15
|
2009-01-14 11:31:00 +01:00
|
|
|
GROUPBOX "工具栏", -1, 150, 10, 120, 85
|
2008-08-30 08:16:52 +02:00
|
|
|
CHECKBOX "工具栏(&T)", IDC_PAGEFMT_TB, 160, 20, 80, 15
|
|
|
|
CHECKBOX "格式工具栏(&F)", IDC_PAGEFMT_FB, 160, 38, 80, 15
|
|
|
|
CHECKBOX "标尺(&R)", IDC_PAGEFMT_RU, 160, 56, 80, 15
|
|
|
|
CHECKBOX "状态栏(&S)", IDC_PAGEFMT_SB, 160, 74, 80, 15
|
|
|
|
LTEXT "", IDC_PAGEFMT_ID, 0,0,0,0
|
|
|
|
END
|
|
|
|
|
|
|
|
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_TRADITIONAL
|
|
|
|
|
2010-07-21 23:57:50 +02:00
|
|
|
IDD_DATETIME DIALOG 30, 20, 130, 80
|
2008-08-30 08:16:52 +02:00
|
|
|
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
|
|
|
|
CAPTION "日期和時間"
|
2008-12-10 19:29:14 +01:00
|
|
|
FONT 9, "MS Shell Dlg"
|
2008-08-30 08:16:52 +02:00
|
|
|
BEGIN
|
2009-01-14 11:31:00 +01:00
|
|
|
LTEXT "可用格式",-1,3,2,100,15
|
2008-08-30 08:16:52 +02:00
|
|
|
LISTBOX IDC_DATETIME,3,12,80,65,LBS_NOINTEGRALHEIGHT
|
|
|
|
PUSHBUTTON "確定(&O)",IDOK,87,12,40,12
|
|
|
|
PUSHBUTTON "取消(&C)",IDCANCEL,87,26,40,12
|
|
|
|
END
|
|
|
|
|
2010-07-21 23:57:50 +02:00
|
|
|
IDD_NEWFILE DIALOG 30, 20, 140, 80
|
2008-08-30 08:16:52 +02:00
|
|
|
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
|
|
|
|
CAPTION "新建"
|
2008-12-10 19:29:14 +01:00
|
|
|
FONT 9, "MS Shell Dlg"
|
2008-08-30 08:16:52 +02:00
|
|
|
BEGIN
|
2009-01-14 11:31:00 +01:00
|
|
|
LTEXT "新檔案類型",-1,3,2,100,15
|
2008-08-30 08:16:52 +02:00
|
|
|
LISTBOX IDC_NEWFILE,3,12,90,65,LBS_NOINTEGRALHEIGHT
|
|
|
|
PUSHBUTTON "確定(&O)",IDOK,97,12,40,12
|
|
|
|
PUSHBUTTON "取消(&C)",IDCANCEL,97,26,40,12
|
|
|
|
END
|
|
|
|
|
2010-07-21 23:57:50 +02:00
|
|
|
IDD_PARAFORMAT DIALOG 30, 20, 200, 110
|
2008-08-30 08:16:52 +02:00
|
|
|
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
|
|
|
|
Caption "段落格式"
|
2008-12-10 19:29:14 +01:00
|
|
|
FONT 9, "MS Shell Dlg"
|
2008-08-30 08:16:52 +02:00
|
|
|
BEGIN
|
2009-01-14 11:31:00 +01:00
|
|
|
GROUPBOX "縮進", -1, 10, 10, 120, 68
|
|
|
|
LTEXT "左", -1, 15, 22, 40, 13
|
2008-08-30 08:16:52 +02:00
|
|
|
EDITTEXT IDC_PARA_LEFT, 55, 20, 60, 13
|
2009-01-14 11:31:00 +01:00
|
|
|
LTEXT "右", -1, 15, 40, 40, 13
|
2008-08-30 08:16:52 +02:00
|
|
|
EDITTEXT IDC_PARA_RIGHT, 55, 38, 60, 13
|
2009-01-14 11:31:00 +01:00
|
|
|
LTEXT "第一行", -1, 15, 58, 40, 13
|
2008-08-30 08:16:52 +02:00
|
|
|
EDITTEXT IDC_PARA_FIRST, 55, 56, 60, 13
|
2009-01-14 11:31:00 +01:00
|
|
|
LTEXT "對齊", -1, 15, 87, 40, 13
|
2008-08-30 08:16:52 +02:00
|
|
|
COMBOBOX IDC_PARA_ALIGN, 55, 85, 60, 60, CBS_DROPDOWNLIST
|
|
|
|
PUSHBUTTON "確定(&O)", IDOK, 137, 15, 50, 15
|
|
|
|
PUSHBUTTON "取消(&C)", IDCANCEL, 137, 33, 50, 15
|
|
|
|
END
|
|
|
|
|
2010-07-21 23:57:50 +02:00
|
|
|
IDD_TABSTOPS DIALOG 30, 20, 200, 110
|
2008-08-30 08:16:52 +02:00
|
|
|
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
|
|
|
|
Caption "標籤"
|
2008-12-10 19:29:14 +01:00
|
|
|
FONT 9, "MS Shell Dlg"
|
2008-08-30 08:16:52 +02:00
|
|
|
BEGIN
|
2009-01-14 11:31:00 +01:00
|
|
|
GROUPBOX "標籤停點", -1, 10, 10, 120, 90
|
2009-02-25 21:15:25 +01:00
|
|
|
COMBOBOX IDC_TABSTOPS, 20, 20, 100, 60, CBS_SIMPLE
|
2008-08-30 08:16:52 +02:00
|
|
|
DEFPUSHBUTTON "添加(&A)", ID_TAB_ADD, 20, 80, 45, 15
|
|
|
|
PUSHBUTTON "刪除(&R)", ID_TAB_DEL, 72, 80, 45, 15
|
|
|
|
PUSHBUTTON "確定(&O)", IDOK, 137, 15, 50, 15
|
|
|
|
PUSHBUTTON "取消(&C)", IDCANCEL, 137, 33, 50, 15
|
|
|
|
PUSHBUTTON "全部刪除(&R)", ID_TAB_EMPTY, 137, 51, 50, 15
|
|
|
|
END
|
|
|
|
|
2010-07-21 23:57:50 +02:00
|
|
|
IDD_FORMATOPTS DIALOG 0, 0, 280, 110
|
2008-08-30 08:16:52 +02:00
|
|
|
STYLE DS_SYSMODAL
|
|
|
|
Caption ""
|
2008-12-10 19:29:14 +01:00
|
|
|
FONT 9, "MS Shell Dlg"
|
2008-08-30 08:16:52 +02:00
|
|
|
BEGIN
|
2009-01-14 11:31:00 +01:00
|
|
|
GROUPBOX "自動換行", -1, 10, 10, 130, 85
|
2010-07-13 16:32:22 +02:00
|
|
|
RADIOBUTTON "No line wrapping", IDC_PAGEFMT_WN, 18, 25, 117, 15
|
2008-08-30 08:16:52 +02:00
|
|
|
RADIOBUTTON "按視窗寬度(&W)", IDC_PAGEFMT_WW, 18, 25, 117, 15
|
|
|
|
RADIOBUTTON "按紙張寬度(&M)", IDC_PAGEFMT_WM, 18, 45, 117, 15
|
2009-01-14 11:31:00 +01:00
|
|
|
GROUPBOX "工具欄", -1, 150, 10, 120, 85
|
2008-08-30 08:16:52 +02:00
|
|
|
CHECKBOX "工具欄(&T)", IDC_PAGEFMT_TB, 160, 20, 80, 15
|
|
|
|
CHECKBOX "格式工具欄(&F)", IDC_PAGEFMT_FB, 160, 38, 80, 15
|
|
|
|
CHECKBOX "標尺(&R)", IDC_PAGEFMT_RU, 160, 56, 80, 15
|
|
|
|
CHECKBOX "狀態欄(&S)", IDC_PAGEFMT_SB, 160, 74, 80, 15
|
|
|
|
LTEXT "", IDC_PAGEFMT_ID, 0,0,0,0
|
|
|
|
END
|