2006-02-17 11:37:51 +01:00
|
|
|
|
/*
|
|
|
|
|
* Copyright 2006 by Phil Krylov
|
|
|
|
|
*
|
|
|
|
|
* 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
|
2006-05-18 14:49:52 +02:00
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2006-02-17 11:37:51 +01:00
|
|
|
|
*/
|
|
|
|
|
|
2009-07-02 00:31:53 +02:00
|
|
|
|
#include "wordpad.h"
|
|
|
|
|
|
2009-07-23 11:29:45 +02:00
|
|
|
|
/* UTF-8 */
|
|
|
|
|
#pragma code_page(65001)
|
|
|
|
|
|
2006-02-17 11:37:51 +01:00
|
|
|
|
LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
|
|
|
|
|
|
2007-11-04 12:34:03 +01:00
|
|
|
|
IDM_MAINMENU MENU DISCARDABLE
|
2006-02-17 11:37:51 +01:00
|
|
|
|
BEGIN
|
2009-07-23 11:29:45 +02:00
|
|
|
|
POPUP "&Файл"
|
2006-02-17 11:37:51 +01:00
|
|
|
|
BEGIN
|
2009-07-23 11:29:45 +02:00
|
|
|
|
MENUITEM "Созд&ать...\tCtrl+N",ID_FILE_NEW
|
|
|
|
|
MENUITEM "&Открыть...\tCtrl+O",ID_FILE_OPEN
|
|
|
|
|
MENUITEM "&Сохранить\tCtrl+S", ID_FILE_SAVE
|
|
|
|
|
MENUITEM "Сохранить &как...", ID_FILE_SAVEAS
|
2006-02-17 11:37:51 +01:00
|
|
|
|
MENUITEM SEPARATOR
|
2009-07-23 11:29:45 +02:00
|
|
|
|
MENUITEM "&Печать...\tCtrl+P", ID_PRINT
|
|
|
|
|
MENUITEM "Пред&варительный просмотр...", ID_PREVIEW
|
|
|
|
|
MENUITEM "&Макет страницы...", ID_PRINTSETUP
|
2007-08-23 01:36:29 +02:00
|
|
|
|
MENUITEM SEPARATOR
|
2009-07-23 11:29:45 +02:00
|
|
|
|
MENUITEM "В&ыход", ID_FILE_EXIT
|
2006-02-17 11:37:51 +01:00
|
|
|
|
END
|
2009-07-23 11:29:45 +02:00
|
|
|
|
POPUP "&Правка"
|
2006-02-17 11:37:51 +01:00
|
|
|
|
BEGIN
|
2009-07-23 11:29:45 +02:00
|
|
|
|
MENUITEM "&Отменить\tCtrl+Z", ID_EDIT_UNDO
|
|
|
|
|
MENUITEM "&Повторить\tCtrl+Y", ID_EDIT_REDO
|
2006-02-17 11:37:51 +01:00
|
|
|
|
MENUITEM SEPARATOR
|
2009-07-23 11:29:45 +02:00
|
|
|
|
MENUITEM "&Вырезать\tCtrl+X", ID_EDIT_CUT
|
|
|
|
|
MENUITEM "&Копировать\tCtrl+C", ID_EDIT_COPY
|
|
|
|
|
MENUITEM "&Вставить\tCtrl+V", ID_EDIT_PASTE
|
|
|
|
|
MENUITEM "&Удалить\tDEL", ID_EDIT_CLEAR
|
|
|
|
|
MENUITEM "Выделить в&се\tCtrl+A", ID_EDIT_SELECTALL
|
2006-02-17 11:37:51 +01:00
|
|
|
|
MENUITEM SEPARATOR
|
2009-07-23 11:29:45 +02:00
|
|
|
|
MENUITEM "&Найти...\tCrtl+F", ID_FIND
|
|
|
|
|
MENUITEM "На&йти далее\tF3", ID_FIND_NEXT
|
|
|
|
|
MENUITEM "&Заменить...\tCtrl+H", ID_REPLACE
|
2007-07-18 15:41:33 +02:00
|
|
|
|
MENUITEM SEPARATOR
|
2009-07-23 11:29:45 +02:00
|
|
|
|
MENUITEM "&Только для чтения", ID_EDIT_READONLY
|
|
|
|
|
MENUITEM "&Изменен", ID_EDIT_MODIFIED
|
2006-02-17 11:37:51 +01:00
|
|
|
|
MENUITEM SEPARATOR
|
2009-07-23 11:29:45 +02:00
|
|
|
|
POPUP "&Дополнительно"
|
2006-02-17 11:37:51 +01:00
|
|
|
|
BEGIN
|
2009-07-23 11:29:45 +02:00
|
|
|
|
MENUITEM "&Информация о выделении", ID_EDIT_SELECTIONINFO
|
|
|
|
|
MENUITEM "&Формат символов", ID_EDIT_CHARFORMAT
|
|
|
|
|
MENUITEM "Формат символов &по умолчанию", ID_EDIT_DEFCHARFORMAT
|
|
|
|
|
MENUITEM "Формат &абзаца", ID_EDIT_PARAFORMAT
|
|
|
|
|
MENUITEM "П&олучить текст", ID_EDIT_GETTEXT
|
2006-02-17 11:37:51 +01:00
|
|
|
|
END
|
|
|
|
|
END
|
2009-07-23 11:29:45 +02:00
|
|
|
|
POPUP "&Вид"
|
2007-06-06 11:10:47 +02:00
|
|
|
|
BEGIN
|
2009-07-23 11:29:45 +02:00
|
|
|
|
MENUITEM "Панель &инструментов", ID_TOGGLE_TOOLBAR
|
|
|
|
|
MENUITEM "П&анель форматирования", ID_TOGGLE_FORMATBAR
|
|
|
|
|
MENUITEM "&Линейка", ID_TOGGLE_RULER
|
|
|
|
|
MENUITEM "&Строка состояния", ID_TOGGLE_STATUSBAR
|
2007-08-23 15:08:41 +02:00
|
|
|
|
MENUITEM SEPARATOR
|
2009-07-23 11:29:45 +02:00
|
|
|
|
MENUITEM "&Параметры...", ID_VIEWPROPERTIES
|
2007-06-06 11:10:47 +02:00
|
|
|
|
END
|
2009-07-23 11:29:45 +02:00
|
|
|
|
POPUP "Вст&авка"
|
2007-07-18 15:50:21 +02:00
|
|
|
|
BEGIN
|
2009-07-23 11:29:45 +02:00
|
|
|
|
MENUITEM "&Дата и время...", ID_DATETIME
|
2007-07-18 15:50:21 +02:00
|
|
|
|
END
|
2009-07-23 11:29:45 +02:00
|
|
|
|
POPUP "Фор&мат"
|
2006-02-17 11:37:51 +01:00
|
|
|
|
BEGIN
|
2009-07-23 11:29:45 +02:00
|
|
|
|
MENUITEM "&Шрифт...", ID_FONTSETTINGS
|
|
|
|
|
MENUITEM "&Маркер" ID_BULLET
|
|
|
|
|
MENUITEM "&Абзац..." ID_PARAFORMAT
|
|
|
|
|
MENUITEM "&Табуляция..." ID_TABSTOPS
|
|
|
|
|
POPUP "&Фон"
|
2006-02-17 11:37:51 +01:00
|
|
|
|
BEGIN
|
2009-07-23 11:29:45 +02:00
|
|
|
|
MENUITEM "&Системный\tCtrl+1", ID_BACK_1
|
|
|
|
|
MENUITEM "&Желтоватый PostThat\tCtrl+2", ID_BACK_2
|
2006-02-17 11:37:51 +01:00
|
|
|
|
END
|
|
|
|
|
END
|
2009-07-23 11:29:45 +02:00
|
|
|
|
POPUP "&Справка"
|
2007-08-23 15:05:40 +02:00
|
|
|
|
BEGIN
|
2009-07-23 11:29:45 +02:00
|
|
|
|
MENUITEM "&О Wine Wordpad" ID_ABOUT
|
2007-08-23 15:05:40 +02:00
|
|
|
|
END
|
2006-02-17 11:37:51 +01:00
|
|
|
|
END
|
2007-07-08 13:51:19 +02:00
|
|
|
|
|
2007-08-23 15:05:23 +02:00
|
|
|
|
IDM_POPUP MENU DISCARDABLE
|
|
|
|
|
BEGIN
|
|
|
|
|
POPUP ""
|
|
|
|
|
BEGIN
|
2009-07-23 11:29:45 +02:00
|
|
|
|
MENUITEM "&Вырезать\tCtrl+X", ID_EDIT_CUT
|
|
|
|
|
MENUITEM "&Копировать\tCtrl+C", ID_EDIT_COPY
|
|
|
|
|
MENUITEM "Вст&авить", ID_EDIT_PASTE
|
2007-08-23 15:05:23 +02:00
|
|
|
|
MENUITEM SEPARATOR
|
2009-07-23 11:29:45 +02:00
|
|
|
|
MENUITEM "&Маркер" ID_BULLET
|
|
|
|
|
MENUITEM "&Абзац..." ID_PARAFORMAT
|
2007-08-23 15:05:23 +02:00
|
|
|
|
END
|
|
|
|
|
END
|
|
|
|
|
|
2007-07-18 15:50:21 +02:00
|
|
|
|
IDD_DATETIME DIALOG DISCARDABLE 30, 20, 130, 80
|
|
|
|
|
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
|
2009-07-23 11:29:45 +02:00
|
|
|
|
CAPTION "Дата и время"
|
2007-07-18 15:50:21 +02:00
|
|
|
|
FONT 10, "MS Sans Serif"
|
|
|
|
|
BEGIN
|
2009-07-23 11:29:45 +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
|
2009-07-23 11:29:45 +02:00
|
|
|
|
PUSHBUTTON "&ОК",IDOK,87,12,40,12
|
|
|
|
|
PUSHBUTTON "О&тмена",IDCANCEL,87,26,40,12
|
2007-07-18 15:50:21 +02:00
|
|
|
|
END
|
|
|
|
|
|
2007-07-18 22:27:15 +02:00
|
|
|
|
IDD_NEWFILE DIALOG DISCARDABLE 30, 20, 140, 80
|
|
|
|
|
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
|
2009-07-23 11:29:45 +02:00
|
|
|
|
CAPTION "Новый документ"
|
2007-07-18 22:27:15 +02:00
|
|
|
|
FONT 10, "MS Sans Serif"
|
|
|
|
|
BEGIN
|
2009-07-23 11:29:45 +02:00
|
|
|
|
LTEXT "Тип создаваемого документа",-1,3,2,100,15
|
2007-07-18 22:27:15 +02:00
|
|
|
|
LISTBOX IDC_NEWFILE,3,12,90,65,LBS_NOINTEGRALHEIGHT
|
2009-07-23 11:29:45 +02:00
|
|
|
|
PUSHBUTTON "&ОК",IDOK,97,12,40,12
|
|
|
|
|
PUSHBUTTON "О&тмена",IDCANCEL,97,26,40,12
|
2007-07-18 22:27:15 +02:00
|
|
|
|
END
|
|
|
|
|
|
2007-08-23 01:15:17 +02:00
|
|
|
|
IDD_PARAFORMAT DIALOG DISCARDABLE 30, 20, 200, 110
|
|
|
|
|
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
|
2009-07-23 11:29:45 +02:00
|
|
|
|
Caption "Абзац"
|
2007-08-23 01:15:17 +02:00
|
|
|
|
FONT 8, "MS Shell Dlg"
|
|
|
|
|
BEGIN
|
2009-07-23 11:29:45 +02:00
|
|
|
|
GROUPBOX "Отступ", -1, 10, 10, 120, 68
|
|
|
|
|
LTEXT "Слева", -1, 15, 22, 40, 13
|
2007-08-23 01:15:17 +02:00
|
|
|
|
EDITTEXT IDC_PARA_LEFT, 55, 20, 60, 13
|
2009-07-23 11:29:45 +02:00
|
|
|
|
LTEXT "Справа", -1, 15, 40, 40, 13
|
2007-08-23 01:15:17 +02:00
|
|
|
|
EDITTEXT IDC_PARA_RIGHT, 55, 38, 60, 13
|
2009-07-23 11:29:45 +02:00
|
|
|
|
LTEXT "Первая строка", -1, 15, 58, 40, 13
|
2007-08-23 01:15:17 +02:00
|
|
|
|
EDITTEXT IDC_PARA_FIRST, 55, 56, 60, 13
|
2009-07-23 11:29:45 +02:00
|
|
|
|
LTEXT "Выравнивание", -1, 15, 87, 40, 13
|
2008-06-18 03:20:14 +02:00
|
|
|
|
COMBOBOX IDC_PARA_ALIGN, 55, 85, 60, 60, CBS_DROPDOWNLIST
|
2009-07-23 11:29:45 +02:00
|
|
|
|
PUSHBUTTON "&ОК", IDOK, 137, 15, 50, 15
|
|
|
|
|
PUSHBUTTON "О&тмена", IDCANCEL, 137, 33, 50, 15
|
2007-08-23 01:15:17 +02:00
|
|
|
|
END
|
|
|
|
|
|
2007-08-23 01:27:50 +02:00
|
|
|
|
IDD_TABSTOPS DIALOG DISCARDABLE 30, 20, 200, 110
|
|
|
|
|
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
|
2009-07-23 11:29:45 +02:00
|
|
|
|
Caption "Табуляция"
|
2007-08-23 01:27:50 +02:00
|
|
|
|
FONT 8, "MS SHell DLg"
|
|
|
|
|
BEGIN
|
2009-07-23 11:29:45 +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
|
2009-07-23 11:29:45 +02:00
|
|
|
|
DEFPUSHBUTTON "&Установить", ID_TAB_ADD, 20, 80, 45, 15
|
|
|
|
|
PUSHBUTTON "О&чистить", ID_TAB_DEL, 72, 80, 45, 15
|
|
|
|
|
PUSHBUTTON "&ОК", IDOK, 137, 15, 50, 15
|
|
|
|
|
PUSHBUTTON "О&тмена", IDCANCEL, 137, 33, 50, 15
|
|
|
|
|
PUSHBUTTON "Очистить &все", ID_TAB_EMPTY, 137, 51, 50, 15
|
2007-08-23 01:27:50 +02:00
|
|
|
|
END
|
|
|
|
|
|
2007-08-23 15:08:41 +02:00
|
|
|
|
IDD_FORMATOPTS DIALOG DISCARDABLE 0, 0, 280, 110
|
|
|
|
|
STYLE DS_SYSMODAL
|
|
|
|
|
Caption ""
|
|
|
|
|
FONT 8, "MS Shell Dlg"
|
|
|
|
|
BEGIN
|
2009-07-23 11:29:45 +02:00
|
|
|
|
GROUPBOX "Перенос по словам", -1, 10, 10, 130, 85
|
2008-10-14 00:48:41 +02:00
|
|
|
|
RADIOBUTTON "No line wrapping", IDC_PAGEFMT_WN, 18, 25, 117, 15
|
2009-07-23 11:29:45 +02:00
|
|
|
|
RADIOBUTTON "В границах &окна", IDC_PAGEFMT_WW, 18, 45, 117, 15
|
|
|
|
|
RADIOBUTTON "В границах &полей", IDC_PAGEFMT_WM, 18, 65, 117, 15
|
|
|
|
|
GROUPBOX "Панели", -1, 150, 10, 120, 85
|
|
|
|
|
CHECKBOX "&Инструментов", IDC_PAGEFMT_TB, 160, 20, 80, 15
|
|
|
|
|
CHECKBOX "&Форматирования", IDC_PAGEFMT_FB, 160, 38, 80, 15
|
|
|
|
|
CHECKBOX "&Линейка", IDC_PAGEFMT_RU, 160, 56, 80, 15
|
|
|
|
|
CHECKBOX "&Строка состояния", IDC_PAGEFMT_SB, 160, 74, 80, 15
|
2007-08-23 15:08:41 +02:00
|
|
|
|
LTEXT "", IDC_PAGEFMT_ID, 0,0,0,0
|
|
|
|
|
END
|
|
|
|
|
|
2007-07-18 15:50:21 +02:00
|
|
|
|
STRINGTABLE DISCARDABLE
|
|
|
|
|
BEGIN
|
2009-07-23 11:29:45 +02:00
|
|
|
|
STRING_RICHTEXT_FILES_RTF, "Файлы RTF (*.rtf)"
|
|
|
|
|
STRING_TEXT_FILES_TXT, "Текстовые документы (*.txt)"
|
|
|
|
|
STRING_TEXT_FILES_UNICODE_TXT, "Документы Unicode (*.txt)"
|
|
|
|
|
STRING_ALL_FILES, "Все документы (*.*)"
|
2007-07-18 15:50:21 +02:00
|
|
|
|
END
|
|
|
|
|
|
2007-08-23 01:15:17 +02:00
|
|
|
|
STRINGTABLE DISCARDABLE
|
|
|
|
|
BEGIN
|
2009-07-23 11:29:45 +02:00
|
|
|
|
STRING_ALIGN_LEFT, "По левому краю"
|
|
|
|
|
STRING_ALIGN_RIGHT, "По правому краю"
|
|
|
|
|
STRING_ALIGN_CENTER, "По центру"
|
2007-08-23 01:15:17 +02:00
|
|
|
|
END
|
|
|
|
|
|
2007-07-18 22:27:15 +02:00
|
|
|
|
STRINGTABLE DISCARDABLE
|
|
|
|
|
BEGIN
|
2009-07-23 11:29:45 +02:00
|
|
|
|
STRING_NEWFILE_RICHTEXT, "Файл RTF"
|
|
|
|
|
STRING_NEWFILE_TXT, "Текстовый документ"
|
|
|
|
|
STRING_NEWFILE_TXT_UNICODE, "Документ в формате Unicode"
|
2007-07-18 22:27:15 +02:00
|
|
|
|
END
|
|
|
|
|
|
2007-08-23 01:15:17 +02:00
|
|
|
|
STRINGTABLE DISCARDABLE
|
|
|
|
|
BEGIN
|
2009-07-23 11:29:45 +02:00
|
|
|
|
STRING_PRINTER_FILES_PRN, "Файлы принтера (*.PRN)"
|
2007-08-23 01:36:29 +02:00
|
|
|
|
END
|
|
|
|
|
|
2007-08-23 15:08:41 +02:00
|
|
|
|
STRINGTABLE DISCARDABLE
|
|
|
|
|
BEGIN
|
2009-07-23 11:29:45 +02:00
|
|
|
|
STRING_VIEWPROPS_TITLE, "Настройки"
|
|
|
|
|
STRING_VIEWPROPS_TEXT, "Текст"
|
|
|
|
|
STRING_VIEWPROPS_RICHTEXT, "Файл RTF"
|
2007-08-23 15:08:41 +02:00
|
|
|
|
END
|
|
|
|
|
|
2007-08-23 15:09:49 +02:00
|
|
|
|
STRINGTABLE DISCARDABLE
|
|
|
|
|
BEGIN
|
2009-07-23 11:29:45 +02:00
|
|
|
|
STRING_PREVIEW_PRINT, "Печать"
|
|
|
|
|
STRING_PREVIEW_NEXTPAGE, "Следующая страница"
|
|
|
|
|
STRING_PREVIEW_PREVPAGE, "Предыдущая страница"
|
2009-10-19 16:41:42 +02:00
|
|
|
|
STRING_PREVIEW_TWOPAGES, "Две страницы"
|
|
|
|
|
STRING_PREVIEW_ONEPAGE, "Одна страница"
|
2009-07-23 11:29:45 +02:00
|
|
|
|
STRING_PREVIEW_CLOSE, "Закрыть"
|
2007-08-23 15:09:49 +02:00
|
|
|
|
END
|
|
|
|
|
|
2007-08-23 01:36:29 +02:00
|
|
|
|
STRINGTABLE DISCARDABLE
|
|
|
|
|
BEGIN
|
2009-07-23 11:29:45 +02:00
|
|
|
|
STRING_UNITS_CM, "см"
|
2007-08-23 01:15:17 +02:00
|
|
|
|
END
|
|
|
|
|
|
2007-07-08 13:51:19 +02:00
|
|
|
|
STRINGTABLE DISCARDABLE
|
|
|
|
|
BEGIN
|
2009-10-19 16:41:42 +02:00
|
|
|
|
STRING_DEFAULT_FILENAME, "Документ"
|
2009-07-23 11:29:45 +02:00
|
|
|
|
STRING_PROMPT_SAVE_CHANGES, "Сохранить изменения в '%s'?"
|
|
|
|
|
STRING_SEARCH_FINISHED, "Поиск в документе завершен."
|
|
|
|
|
STRING_LOAD_RICHED_FAILED, "Ошибка загрузки библиотеки RichEdit."
|
|
|
|
|
STRING_SAVE_LOSEFORMATTING, "Сохранение документа в виде неформатированного текста, " \
|
|
|
|
|
"приведет к потере форматирования. Подтверждаете выполнение" \
|
|
|
|
|
"этой операции?"
|
|
|
|
|
STRING_INVALID_NUMBER, "Неправильный числовой формат"
|
|
|
|
|
STRING_OLE_STORAGE_NOT_SUPPORTED, "OLE storage документы не поддерживаются"
|
2009-10-19 16:41:42 +02:00
|
|
|
|
STRING_WRITE_FAILED, "Невозможно сохранить файл."
|
|
|
|
|
STRING_WRITE_ACCESS_DENIED, "Недостаточно прав для сохранения файла."
|
|
|
|
|
STRING_OPEN_FAILED, "Невозможно открыть файл."
|
|
|
|
|
STRING_OPEN_ACCESS_DENIED, "Недостаточно прав для открытия файла."
|
2009-07-23 11:29:45 +02:00
|
|
|
|
STRING_PRINTING_NOT_IMPLEMENTED, "Печать не поддерживается"
|
2009-10-19 16:41:42 +02:00
|
|
|
|
STRING_MAX_TAB_STOPS, "Нельзя добавить более 32 позиций табуляции."
|
2007-07-08 13:51:19 +02:00
|
|
|
|
END
|