2006-02-14 13:48:29 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2004 by Krzysztof Foltman
|
|
|
|
*
|
|
|
|
* 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 12:49:52 +00:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2006-02-14 13:48:29 +00:00
|
|
|
*/
|
|
|
|
|
2009-07-01 22:31:53 +00:00
|
|
|
#include "wordpad.h"
|
|
|
|
|
2006-02-16 11:09:21 +00:00
|
|
|
LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT
|
2006-02-14 13:48:29 +00:00
|
|
|
|
2007-11-04 11:34:03 +00:00
|
|
|
IDM_MAINMENU MENU DISCARDABLE
|
2006-02-14 13:48:29 +00:00
|
|
|
BEGIN
|
|
|
|
POPUP "&File"
|
|
|
|
BEGIN
|
2008-05-23 13:03:30 +00:00
|
|
|
MENUITEM "&New...\tCtrl+N", ID_FILE_NEW
|
|
|
|
MENUITEM "&Open...\tCtrl+O", ID_FILE_OPEN
|
2006-07-12 12:08:47 +00:00
|
|
|
MENUITEM "&Save\tCtrl+S", ID_FILE_SAVE
|
2008-05-23 13:03:30 +00:00
|
|
|
MENUITEM "Save &as...", ID_FILE_SAVEAS
|
2006-02-14 13:48:29 +00:00
|
|
|
MENUITEM SEPARATOR
|
2008-05-23 13:03:30 +00:00
|
|
|
MENUITEM "&Print...\tCtrl+P", ID_PRINT
|
|
|
|
MENUITEM "Print previe&w...", ID_PREVIEW
|
|
|
|
MENUITEM "Pag&e setup...", ID_PRINTSETUP
|
2007-08-22 23:36:29 +00:00
|
|
|
MENUITEM SEPARATOR
|
2008-05-23 13:03:30 +00:00
|
|
|
MENUITEM "E&xit", ID_FILE_EXIT
|
2006-02-14 13:48:29 +00:00
|
|
|
END
|
|
|
|
POPUP "&Edit"
|
|
|
|
BEGIN
|
|
|
|
MENUITEM "&Undo\tCtrl+Z", ID_EDIT_UNDO
|
2007-08-26 13:01:44 +00:00
|
|
|
MENUITEM "R&edo\tCtrl+Y", ID_EDIT_REDO
|
2006-02-14 13:48:29 +00:00
|
|
|
MENUITEM SEPARATOR
|
|
|
|
MENUITEM "Cu&t\tCtrl+X", ID_EDIT_CUT
|
|
|
|
MENUITEM "&Copy\tCtrl+C", ID_EDIT_COPY
|
2007-02-25 13:39:58 +00:00
|
|
|
MENUITEM "&Paste\tCtrl+V", ID_EDIT_PASTE
|
|
|
|
MENUITEM "&Clear\tDEL", ID_EDIT_CLEAR
|
|
|
|
MENUITEM "&Select all\tCtrl+A", ID_EDIT_SELECTALL
|
2006-02-14 13:48:29 +00:00
|
|
|
MENUITEM SEPARATOR
|
2008-05-23 13:03:30 +00:00
|
|
|
MENUITEM "&Find...\tCrtl+F", ID_FIND
|
2007-07-18 13:41:33 +00:00
|
|
|
MENUITEM "Find &next\tF3", ID_FIND_NEXT
|
2008-05-23 13:03:30 +00:00
|
|
|
MENUITEM "&Replace...\tCtrl+H", ID_REPLACE
|
2007-07-18 13:41:33 +00:00
|
|
|
MENUITEM SEPARATOR
|
2006-02-14 13:48:29 +00:00
|
|
|
MENUITEM "Read-&only", ID_EDIT_READONLY
|
|
|
|
MENUITEM "&Modified", ID_EDIT_MODIFIED
|
|
|
|
MENUITEM SEPARATOR
|
2007-08-26 13:01:44 +00:00
|
|
|
POPUP "E&xtras"
|
2006-02-14 13:48:29 +00:00
|
|
|
BEGIN
|
|
|
|
MENUITEM "Selection &info", ID_EDIT_SELECTIONINFO
|
|
|
|
MENUITEM "Character &format", ID_EDIT_CHARFORMAT
|
|
|
|
MENUITEM "&Def. char format", ID_EDIT_DEFCHARFORMAT
|
|
|
|
MENUITEM "Paragrap&h format", ID_EDIT_PARAFORMAT
|
|
|
|
MENUITEM "&Get text", ID_EDIT_GETTEXT
|
|
|
|
END
|
|
|
|
END
|
2007-06-06 09:10:47 +00:00
|
|
|
POPUP "&View"
|
|
|
|
BEGIN
|
|
|
|
MENUITEM "&Toolbar", ID_TOGGLE_TOOLBAR
|
2007-06-06 11:28:26 +00:00
|
|
|
MENUITEM "&Formatbar", ID_TOGGLE_FORMATBAR
|
2008-01-13 23:36:23 +00:00
|
|
|
MENUITEM "&Ruler", ID_TOGGLE_RULER
|
2007-06-06 09:21:08 +00:00
|
|
|
MENUITEM "&Statusbar", ID_TOGGLE_STATUSBAR
|
2007-08-23 13:08:41 +00:00
|
|
|
MENUITEM SEPARATOR
|
2008-05-23 13:03:30 +00:00
|
|
|
MENUITEM "&Options...", ID_VIEWPROPERTIES
|
2007-06-06 09:10:47 +00:00
|
|
|
END
|
2007-07-18 13:50:21 +00:00
|
|
|
POPUP "&Insert"
|
|
|
|
BEGIN
|
2008-05-23 13:03:30 +00:00
|
|
|
MENUITEM "&Date and time...", ID_DATETIME
|
2007-07-18 13:50:21 +00:00
|
|
|
END
|
2006-02-14 13:48:29 +00:00
|
|
|
POPUP "F&ormat"
|
|
|
|
BEGIN
|
2008-05-23 13:03:30 +00:00
|
|
|
MENUITEM "&Font...", ID_FONTSETTINGS
|
2007-07-20 16:38:08 +00:00
|
|
|
MENUITEM "&Bullet points" ID_BULLET
|
2008-05-23 13:03:30 +00:00
|
|
|
MENUITEM "&Paragraph..." ID_PARAFORMAT
|
|
|
|
MENUITEM "&Tabs..." ID_TABSTOPS
|
2007-07-20 16:38:08 +00:00
|
|
|
POPUP "Backgroun&d"
|
2006-02-14 13:48:29 +00:00
|
|
|
BEGIN
|
|
|
|
MENUITEM "&System\tCtrl+1", ID_BACK_1
|
|
|
|
MENUITEM "&PostThat yellowish\tCtrl+2", ID_BACK_2
|
|
|
|
END
|
|
|
|
END
|
2007-08-23 13:05:40 +00:00
|
|
|
POPUP "&Help"
|
|
|
|
BEGIN
|
|
|
|
MENUITEM "&About Wine Wordpad" ID_ABOUT
|
|
|
|
END
|
2006-02-14 13:48:29 +00:00
|
|
|
END
|
2007-02-25 13:40:27 +00:00
|
|
|
|
2007-08-23 13:05:23 +00:00
|
|
|
IDM_POPUP MENU DISCARDABLE
|
|
|
|
BEGIN
|
|
|
|
POPUP ""
|
|
|
|
BEGIN
|
|
|
|
MENUITEM "Cu&t", ID_EDIT_CUT
|
|
|
|
MENUITEM "&Copy", ID_EDIT_COPY
|
|
|
|
MENUITEM "&Paste", ID_EDIT_PASTE
|
|
|
|
MENUITEM SEPARATOR
|
|
|
|
MENUITEM "&Bullet points" ID_BULLET
|
2008-05-23 13:03:30 +00:00
|
|
|
MENUITEM "&Paragraph..." ID_PARAFORMAT
|
2007-08-23 13:05:23 +00:00
|
|
|
END
|
|
|
|
END
|
|
|
|
|
2007-07-18 13:50:21 +00:00
|
|
|
IDD_DATETIME DIALOG DISCARDABLE 30, 20, 130, 80
|
|
|
|
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
|
|
|
|
CAPTION "Date and time"
|
|
|
|
FONT 10, "MS Sans Serif"
|
|
|
|
BEGIN
|
2009-01-14 10:31:00 +00:00
|
|
|
LTEXT "Available formats",-1,3,2,100,15
|
2008-11-08 01:33:33 +00:00
|
|
|
LISTBOX IDC_DATETIME,3,12,80,65,LBS_NOINTEGRALHEIGHT | LBS_NOTIFY
|
2007-07-18 13:50:21 +00:00
|
|
|
PUSHBUTTON "&OK",IDOK,87,12,40,12
|
|
|
|
PUSHBUTTON "&Cancel",IDCANCEL,87,26,40,12
|
|
|
|
END
|
|
|
|
|
2007-07-18 20:27:15 +00:00
|
|
|
IDD_NEWFILE DIALOG DISCARDABLE 30, 20, 140, 80
|
|
|
|
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
|
|
|
|
CAPTION "New"
|
|
|
|
FONT 10, "MS Sans Serif"
|
|
|
|
BEGIN
|
2009-01-14 10:31:00 +00:00
|
|
|
LTEXT "New document type",-1,3,2,100,15
|
2007-07-18 20:27:15 +00:00
|
|
|
LISTBOX IDC_NEWFILE,3,12,90,65,LBS_NOINTEGRALHEIGHT
|
|
|
|
PUSHBUTTON "&OK",IDOK,97,12,40,12
|
|
|
|
PUSHBUTTON "&Cancel",IDCANCEL,97,26,40,12
|
|
|
|
END
|
|
|
|
|
2007-08-22 23:15:17 +00:00
|
|
|
IDD_PARAFORMAT DIALOG DISCARDABLE 30, 20, 200, 110
|
|
|
|
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
|
|
|
|
Caption "Paragraph format"
|
|
|
|
FONT 8, "MS Shell Dlg"
|
|
|
|
BEGIN
|
2009-01-14 10:31:00 +00:00
|
|
|
GROUPBOX "Indentation", -1, 10, 10, 120, 68
|
|
|
|
LTEXT "Left", -1, 15, 22, 40, 13
|
2007-08-22 23:15:17 +00:00
|
|
|
EDITTEXT IDC_PARA_LEFT, 55, 20, 60, 13
|
2009-01-14 10:31:00 +00:00
|
|
|
LTEXT "Right", -1, 15, 40, 40, 13
|
2007-08-22 23:15:17 +00:00
|
|
|
EDITTEXT IDC_PARA_RIGHT, 55, 38, 60, 13
|
2009-01-14 10:31:00 +00:00
|
|
|
LTEXT "First line", -1, 15, 58, 40, 13
|
2007-08-22 23:15:17 +00:00
|
|
|
EDITTEXT IDC_PARA_FIRST, 55, 56, 60, 13
|
2009-01-14 10:31:00 +00:00
|
|
|
LTEXT "Alignment", -1, 15, 87, 40, 13
|
2008-06-18 01:20:14 +00:00
|
|
|
COMBOBOX IDC_PARA_ALIGN, 55, 85, 60, 60, CBS_DROPDOWNLIST
|
2007-08-22 23:15:17 +00:00
|
|
|
PUSHBUTTON "&OK", IDOK, 137, 15, 50, 15
|
|
|
|
PUSHBUTTON "&Cancel", IDCANCEL, 137, 33, 50, 15
|
|
|
|
END
|
|
|
|
|
2007-08-22 23:27:50 +00:00
|
|
|
IDD_TABSTOPS DIALOG DISCARDABLE 30, 20, 200, 110
|
|
|
|
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
|
|
|
|
Caption "Tabs"
|
|
|
|
FONT 8, "MS SHell DLg"
|
|
|
|
BEGIN
|
2009-01-14 10:31:00 +00:00
|
|
|
GROUPBOX "Tab stops", -1, 10, 10, 120, 90
|
2009-02-25 20:15:25 +00:00
|
|
|
COMBOBOX IDC_TABSTOPS, 20, 20, 100, 60, CBS_SIMPLE
|
2007-08-22 23:27:50 +00:00
|
|
|
DEFPUSHBUTTON "&Add", ID_TAB_ADD, 20, 80, 45, 15
|
|
|
|
PUSHBUTTON "&Remove", ID_TAB_DEL, 72, 80, 45, 15
|
|
|
|
PUSHBUTTON "&OK", IDOK, 137, 15, 50, 15
|
|
|
|
PUSHBUTTON "&Cancel", IDCANCEL, 137, 33, 50, 15
|
|
|
|
PUSHBUTTON "Remove al&l", ID_TAB_EMPTY, 137, 51, 50, 15
|
|
|
|
END
|
|
|
|
|
2007-08-23 13:08:41 +00:00
|
|
|
IDD_FORMATOPTS DIALOG DISCARDABLE 0, 0, 280, 110
|
|
|
|
STYLE DS_SYSMODAL
|
|
|
|
Caption ""
|
|
|
|
FONT 8, "MS Shell Dlg"
|
|
|
|
BEGIN
|
2009-01-14 10:31:00 +00:00
|
|
|
GROUPBOX "Line wrapping", -1, 10, 10, 130, 85
|
2008-10-13 22:48:41 +00:00
|
|
|
RADIOBUTTON "&No line wrapping", IDC_PAGEFMT_WN, 18, 25, 117, 15
|
|
|
|
RADIOBUTTON "Wrap text by the &window border", IDC_PAGEFMT_WW, 18, 45, 117, 15
|
|
|
|
RADIOBUTTON "Wrap text by the &margin", IDC_PAGEFMT_WM, 18, 65, 117, 15
|
2009-01-14 10:31:00 +00:00
|
|
|
GROUPBOX "Toolbars", -1, 150, 10, 120, 85
|
2007-08-23 13:08:41 +00:00
|
|
|
CHECKBOX "&Toolbar", IDC_PAGEFMT_TB, 160, 20, 80, 15
|
|
|
|
CHECKBOX "&Formatbar", IDC_PAGEFMT_FB, 160, 38, 80, 15
|
2008-01-13 23:36:23 +00:00
|
|
|
CHECKBOX "&Ruler", IDC_PAGEFMT_RU, 160, 56, 80, 15
|
|
|
|
CHECKBOX "&Statusbar", IDC_PAGEFMT_SB, 160, 74, 80, 15
|
2007-08-23 13:08:41 +00:00
|
|
|
LTEXT "", IDC_PAGEFMT_ID, 0,0,0,0
|
|
|
|
END
|
2007-08-22 23:27:50 +00:00
|
|
|
|
2007-02-25 13:40:27 +00:00
|
|
|
STRINGTABLE DISCARDABLE
|
|
|
|
BEGIN
|
2009-07-17 08:17:07 +00:00
|
|
|
STRING_ALL_FILES, "All documents (*.*)"
|
2007-07-18 19:59:24 +00:00
|
|
|
STRING_TEXT_FILES_TXT, "Text documents (*.txt)"
|
|
|
|
STRING_TEXT_FILES_UNICODE_TXT, "Unicode text document (*.txt)"
|
2009-07-17 08:17:07 +00:00
|
|
|
STRING_RICHTEXT_FILES_RTF, "Rich text format (*.rtf)"
|
|
|
|
STRING_NEWFILE_RICHTEXT, "Rich text document"
|
|
|
|
STRING_NEWFILE_TXT, "Text document"
|
|
|
|
STRING_NEWFILE_TXT_UNICODE, "Unicode text document"
|
|
|
|
STRING_PRINTER_FILES_PRN, "Printer files (*.PRN)"
|
2007-02-25 13:40:27 +00:00
|
|
|
END
|
2007-07-08 11:51:19 +00:00
|
|
|
|
2007-08-22 23:15:17 +00:00
|
|
|
STRINGTABLE DISCARDABLE
|
|
|
|
BEGIN
|
|
|
|
STRING_ALIGN_LEFT, "Left"
|
|
|
|
STRING_ALIGN_RIGHT, "Right"
|
|
|
|
STRING_ALIGN_CENTER, "Center"
|
|
|
|
END
|
|
|
|
|
2007-08-23 13:08:41 +00:00
|
|
|
STRINGTABLE DISCARDABLE
|
|
|
|
BEGIN
|
|
|
|
STRING_VIEWPROPS_TITLE, "Options"
|
|
|
|
STRING_VIEWPROPS_TEXT, "Text"
|
|
|
|
STRING_VIEWPROPS_RICHTEXT, "Rich text"
|
|
|
|
END
|
|
|
|
|
2007-08-23 13:09:49 +00:00
|
|
|
STRINGTABLE DISCARDABLE
|
|
|
|
BEGIN
|
|
|
|
STRING_PREVIEW_PRINT, "Print"
|
|
|
|
STRING_PREVIEW_NEXTPAGE, "Next page"
|
|
|
|
STRING_PREVIEW_PREVPAGE, "Previous page"
|
2008-03-27 00:39:05 +00:00
|
|
|
STRING_PREVIEW_TWOPAGES, "Two pages"
|
|
|
|
STRING_PREVIEW_ONEPAGE, "One page"
|
2010-01-29 08:02:41 +00:00
|
|
|
STRING_PREVIEW_ZOOMIN, "Zoom in"
|
|
|
|
STRING_PREVIEW_ZOOMOUT, "Zoom out"
|
2007-08-23 13:09:49 +00:00
|
|
|
STRING_PREVIEW_CLOSE, "Close"
|
2009-07-17 08:17:07 +00:00
|
|
|
STRING_UNITS_CM, "cm"
|
2007-08-22 23:15:17 +00:00
|
|
|
END
|
|
|
|
|
2007-07-08 11:51:19 +00:00
|
|
|
STRINGTABLE DISCARDABLE
|
|
|
|
BEGIN
|
|
|
|
STRING_DEFAULT_FILENAME, "Document"
|
|
|
|
STRING_PROMPT_SAVE_CHANGES, "Save changes to '%s'?"
|
2007-07-18 13:41:33 +00:00
|
|
|
STRING_SEARCH_FINISHED, "Finished searching the document."
|
2007-07-18 13:44:24 +00:00
|
|
|
STRING_LOAD_RICHED_FAILED, "Failed to load the RichEdit library."
|
2007-07-18 19:59:24 +00:00
|
|
|
STRING_SAVE_LOSEFORMATTING, "You have chosen to save in plain text format, " \
|
|
|
|
"which will cause all formatting to be lost. " \
|
|
|
|
"Are you sure that you wish to do this?"
|
2007-08-22 23:15:17 +00:00
|
|
|
STRING_INVALID_NUMBER, "Invalid number format"
|
2007-10-16 13:07:31 +00:00
|
|
|
STRING_OLE_STORAGE_NOT_SUPPORTED, "OLE storage documents are not supported"
|
2008-07-11 18:38:50 +00:00
|
|
|
STRING_WRITE_FAILED, "Could not save the file."
|
|
|
|
STRING_WRITE_ACCESS_DENIED, "You do not have access to save the file."
|
2008-07-17 14:58:07 +00:00
|
|
|
STRING_OPEN_FAILED, "Could not open the file."
|
|
|
|
STRING_OPEN_ACCESS_DENIED, "You do not have access to open the file."
|
2009-02-25 20:15:22 +00:00
|
|
|
STRING_PRINTING_NOT_IMPLEMENTED, "Printing not implemented"
|
|
|
|
STRING_MAX_TAB_STOPS, "Cannot add more than 32 tab stops."
|
2007-07-08 11:51:19 +00:00
|
|
|
END
|
2009-07-08 14:24:08 +00:00
|
|
|
|
|
|
|
LANGUAGE LANG_ENGLISH, SUBLANG_NEUTRAL
|
|
|
|
|
|
|
|
STRINGTABLE DISCARDABLE
|
|
|
|
BEGIN
|
|
|
|
STRING_ALIGN_LEFT, "Left"
|
|
|
|
STRING_ALIGN_RIGHT, "Right"
|
|
|
|
STRING_ALIGN_CENTER, "Centre"
|
|
|
|
END
|