diff --git a/reactos/subsys/system/notepad/.cvsignore b/reactos/subsys/system/notepad/.cvsignore new file mode 100644 index 00000000000..5d1905fd074 --- /dev/null +++ b/reactos/subsys/system/notepad/.cvsignore @@ -0,0 +1,7 @@ +*.a +*.exe +*.sym +*.map +*.o +*.coff + diff --git a/reactos/subsys/system/notepad/ChangeLog b/reactos/subsys/system/notepad/ChangeLog new file mode 100644 index 00000000000..cd50462ca74 --- /dev/null +++ b/reactos/subsys/system/notepad/ChangeLog @@ -0,0 +1,56 @@ + *** This file is obsolete. Changes are listed in the main + *** ChangeLog now. Please do not edit. + +Fri Jun 12 23:29:44 1998 Marcel Baur + - Fixed GetDateFormat()->GetTimeFormat() for locale time. + +Mon May 25 14:30:00 1998 Henrik Olsen + * [Da.rc] + - Added Danish language support. + +Fri May 15 23:59:22 1998 Marcel Baur + - Date/Time now uses locale-specific formats + - Language-specific window caption, displays file being edited. + - Started with parsing of command line settings + - Started with DoOpenFile, DoCloseFile, DoSaveFile logics + - Prompt user to save settings when closing a file + -> Introduced a new message box (not yet finished) + - Fixed minor features (missing IDS in main.h, ...) + +Sun Mar 29 20:29:41 1998 Laurent Buffler + * [Fr.rc] + - Added French language support. + +Fri Feb 27 21:03:37 1998 Karl Backstrm + - Fixed some minor features. + +Sat Feb 14 17:42:29 1998 Karl Backstrm + * NEW [language.c] [language.h] + - Takes care of all language related stuff. + - A new [programs] in .winerc is in use. + +Tue Feb 10 23:34:08 1998 Marcel Baur + - Fixed broken language menus + +Fri Feb 06 23.54.35 1998 Karl Backstrm + * [main.c] [main.h] [notepad.rc] + - Fixed language support for menus. + * NEW [dialog.c] [dialog.h] + - Moved all menu and dialog related stuff here. + +Sun Jan 18 23:05:04 1998 Karl Backstrm + * [Sw.rc] + - Added/updated Swedish language support. + +Tue Dec 23 23:35:04 1997 Marcel Baur + - Fixed lots of bugs w/ resources in *.rc + - moved [notepad.c] into [main.c] + - moved [notepad.h] into [main.h] + +Fri Dec 05 20:51:55 1997 Marcel Baur + * [notepad.c] [notepad.h] [notepad.rc] [En.rc] [De.rc] + [license.c] [license.h] [License_En.c] + [README] [TODO] [ChangeLog] + - Originals by Marcel Baur + + diff --git a/reactos/subsys/system/notepad/Cs.rc b/reactos/subsys/system/notepad/Cs.rc new file mode 100644 index 00000000000..19c127b2388 --- /dev/null +++ b/reactos/subsys/system/notepad/Cs.rc @@ -0,0 +1,130 @@ +/* + * Notepad (Czech resources) + * + * Copyright 1997,98 Marcel Baur + * Proofread 1998 by David Lee Lambert + * Copyright 2002 Sylvain Petreolle + * Copyright 2004 David Kredba + * + * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +LANGUAGE LANG_CZECH, SUBLANG_DEFAULT + +MAIN_MENU MENU +{ + POPUP "&Soubor" { + MENUITEM "&Nov...", CMD_NEW + MENUITEM "&Otevt\tCtrl+O", CMD_OPEN + MENUITEM "&Uloit\tCtrl+S", CMD_SAVE + MENUITEM "Uloit j&ako...", CMD_SAVE_AS + MENUITEM SEPARATOR + MENUITEM "&Tisk", CMD_PRINT + MENUITEM "Nas&taven strnky...", CMD_PAGE_SETUP + MENUITEM "Nastaven tisk&rny...", CMD_PRINTER_SETUP + MENUITEM SEPARATOR + MENUITEM "&Konec", CMD_EXIT + } +POPUP "U&pravit" { + MENUITEM "&Zpt\tCtrl+Z", CMD_UNDO + MENUITEM SEPARATOR + MENUITEM "Vyjmou&t\tCtrl+X", CMD_CUT + MENUITEM "&Koprovat\tCtrl+C", CMD_COPY + MENUITEM "&Vloit\tCtrl+V", CMD_PASTE + MENUITEM "&Smazat\tDel", CMD_DELETE + MENUITEM SEPARATOR + MENUITEM "Vybrat v&e\tCtrl+A", CMD_SELECT_ALL + MENUITEM "&as/Datum\tF5", CMD_TIME_DATE + MENUITEM SEPARATOR + MENUITEM "Zalo&mit dlouh dky", CMD_WRAP + MENUITEM "&Psmo...", CMD_FONT + } +POPUP "&Hledn" { + MENUITEM "&Hledej\tCtrl+F", CMD_SEARCH + MENUITEM "&Najdi dal\tF3", CMD_SEARCH_NEXT + } +POPUP "&Npovda" { + MENUITEM "&Obsah", CMD_HELP_CONTENTS + MENUITEM "&Najt...", CMD_HELP_SEARCH + MENUITEM "&Pomoc k npovd", CMD_HELP_ON_HELP + MENUITEM SEPARATOR + POPUP "Inf&o..." { + MENUITEM "&Licence", CMD_LICENSE + MENUITEM "&BEZ ZRUKY", CMD_NO_WARRANTY + MENUITEM "&O Wine", CMD_ABOUT_WINE + } + } +} + +/* Dialog `Page setup' */ + +DIALOG_PAGESETUP DIALOG 0, 0, 225, 95 +STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU +FONT 8, "MS Shell Dlg" +CAPTION "Nastaven strnky" +{ +LTEXT "Z&hlav:", 0x140, 10, 07, 40, 15 +EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP +LTEXT "&Zpat:", 0x142, 10, 24, 40, 15 +EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP + +GROUPBOX "&Okraje:", 0x144, 10, 43,160, 45 +LTEXT "&Lev:", 0x145, 20, 55, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Horn:", 0x148, 20, 73, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "P&rav:", 0x14B, 100, 55, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Doln:", 0x14E,100, 73, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP + +DEFPUSHBUTTON "OK", 0x151, 180, 3, 40, 15, WS_TABSTOP +PUSHBUTTON "Storno", 0x152, 180, 21, 40, 15, WS_TABSTOP +PUSHBUTTON "&Npovda", 0x153, 180, 39, 40, 15, WS_TABSTOP +} + +STRINGTABLE DISCARDABLE +{ +STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */ +STRING_PAGESETUP_FOOTERVALUE, "Strana &s" /* FIXME */ +STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */ +STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */ +STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */ +STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */ + +STRING_NOTEPAD, "Notepad" +STRING_ERROR, "CHYBA" +STRING_WARNING, "VAROVN" +STRING_INFO, "Informace" + +STRING_UNTITLED, "(bez nzvu)" + +STRING_ALL_FILES, "Vechny soubory (*.*)" +STRING_TEXT_FILES_TXT, "Textov soubory (*.txt)" + +STRING_TOOLARGE, "Soubor '%s' je pro notepad pli velk.\n \ +Pouijte jin editor, prosm." +STRING_NOTEXT, "Nebyl zadn dn text. \ +\nPlease type something and try again" +STRING_DOESNOTEXIST, "Soubor '%s'\nneexistuje.\n\n \ +Chcete ho vytvoit ?" +STRING_NOTSAVED, "Soubor '%s'\nbyl zmnn.\n\n \ +Chcete uloit zmny ?" +STRING_NOTFOUND, "'%s' nebyl nalezen." +STRING_OUT_OF_MEMORY, "Nen dost pamti na dokonen tto lohy. \ +\nUzavete jednu i vce aplikac abyste zskali vce \nvoln \ +pamti." + +} diff --git a/reactos/subsys/system/notepad/Da.rc b/reactos/subsys/system/notepad/Da.rc new file mode 100644 index 00000000000..5415e20c12f --- /dev/null +++ b/reactos/subsys/system/notepad/Da.rc @@ -0,0 +1,126 @@ +/* + * Notepad (Danish resources) + * + * Copyright 1998 Henrik Olsen + * Copyright 2002 Sylvain Petreolle + * + * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +LANGUAGE LANG_DANISH, SUBLANG_DEFAULT + +MAIN_MENU MENU +{ + POPUP "&Filef" { + MENUITEM "&Ny...", CMD_NEW + MENUITEM "&bn\tEnter", CMD_OPEN + MENUITEM "&Gem", CMD_SAVE + MENUITEM "Gem so&m...", CMD_SAVE_AS + MENUITEM "&Udskriv", CMD_PRINT + MENUITEM "Side&opstning...", CMD_PAGE_SETUP + MENUITEM "&Indstil printer...", CMD_PRINTER_SETUP + MENUITEM SEPARATOR + MENUITEM "&Afslut", CMD_EXIT + } +POPUP "&Rediger" { + MENUITEM "&Fortryd\tCtrl+Z", CMD_UNDO + MENUITEM SEPARATOR + MENUITEM "&Klip\tCtrl+X", CMD_CUT + MENUITEM "K&opier\tCtrl+C", CMD_COPY + MENUITEM "St &ind\tCtrl+V", CMD_PASTE + MENUITEM "&Slet\tDel", CMD_DELETE + MENUITEM SEPARATOR + MENUITEM "Marker &alt", CMD_SELECT_ALL + MENUITEM "&Dato/tid\tF5", CMD_TIME_DATE + MENUITEM SEPARATOR + MENUITEM "Automatisk &linjeskift", CMD_WRAP + } +POPUP "&Sg" { + MENUITEM "&Sg...", CMD_SEARCH + MENUITEM "&Find nste\tF3", CMD_SEARCH_NEXT + } +POPUP "&Hjlp" { + MENUITEM "&Indhold", CMD_HELP_CONTENTS + MENUITEM "&Sg efter hjlp om...", CMD_HELP_SEARCH + MENUITEM "&Brug af Hjlp", CMD_HELP_ON_HELP + MENUITEM SEPARATOR + POPUP "&Om Notesblok..." { + MENUITEM "&Licens", CMD_LICENSE + MENUITEM "&NO WARRANTY", CMD_NO_WARRANTY + MENUITEM "&Om WINE", CMD_ABOUT_WINE + } + } +} + +/* Dialog `Page setup' */ + +DIALOG_PAGESETUP DIALOG 0, 0, 225, 95 +STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU +FONT 8, "MS Shell Dlg" +CAPTION "Sideopstning" +{ +LTEXT "&Sidehoved:", 0x140, 10, 07, 40, 15 +EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP +LTEXT "Side&fod:", 0x142, 10, 24, 40, 15 +EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP + +GROUPBOX "Margener:", 0x144, 10, 43,160, 45 +LTEXT "&Venstre:", 0x145, 20, 55, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Top:", 0x148, 20, 73, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Hjre:", 0x14B, 100, 55, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Bund:", 0x14E,100, 73, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP + +DEFPUSHBUTTON "OK", 0x151, 180, 3, 40, 15, WS_TABSTOP +PUSHBUTTON "Annuller", 0x152, 180, 21, 40, 15, WS_TABSTOP +PUSHBUTTON "&Hjlp", 0x153, 180, 39, 40, 15, WS_TABSTOP +} + +STRINGTABLE DISCARDABLE +{ +STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */ +STRING_PAGESETUP_FOOTERVALUE, "Page &s" /* FIXME */ +STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */ +STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */ +STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */ +STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */ + +STRING_NOTEPAD, "Notesblok" +STRING_ERROR, "FEJL" +STRING_WARNING, "ADVARSEL" +STRING_INFO, "Information" + +STRING_UNTITLED, "(ikke-navngivet)" + +STRING_ALL_FILES, "Alle filer (*.*)" +STRING_TEXT_FILES_TXT, "Tekst filer (*.txt)" + +STRING_TOOLARGE, "Filen '%s' er for stor til Notesblok. \ +\nBrug en anden editor til at redigere filen." +STRING_NOTEXT, "Du har ikke skrevet noget tekst. \ +\nSkriv noget tekst, og prv s igen" +STRING_DOESNOTEXIST, "File '%s'\ndoes not exist\n\n \ +Do you want to create a new file ?" +STRING_NOTSAVED, "File '%s'\nhas been modified\n\n \ +Would you like to save the changes ?" +STRING_NOTFOUND, "Kan ikke finde '%s'." +STRING_OUT_OF_MEMORY, "Der er ikke nok hukommelse til at udfre \ +denne operation. \nAfslut et eller flere aktive programmer for at frigre \ +hukommelse, og prv s igen." + +} diff --git a/reactos/subsys/system/notepad/De.rc b/reactos/subsys/system/notepad/De.rc new file mode 100644 index 00000000000..5f105394a6a --- /dev/null +++ b/reactos/subsys/system/notepad/De.rc @@ -0,0 +1,131 @@ +/* + * Notepad (German resources) + * + * Copyright 1997,98 Marcel Baur + * Copyright 2002 Sylvain Petreolle + * + * + * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +LANGUAGE LANG_GERMAN, SUBLANG_DEFAULT + +MAIN_MENU MENU +{ + POPUP "&Datei" { + MENUITEM "&Neu...", CMD_NEW + MENUITEM "&ffnen...", CMD_OPEN + MENUITEM "&Speichern", CMD_SAVE + MENUITEM "Speichern &unter...", CMD_SAVE_AS + MENUITEM SEPARATOR + MENUITEM "&Drucken", CMD_PRINT + MENUITEM "Seite ein&richten...", CMD_PAGE_SETUP + MENUITEM "Drucker&einrichtung...", CMD_PRINTER_SETUP + MENUITEM SEPARATOR + MENUITEM "&Beenden", CMD_EXIT + } +POPUP "&Bearbeiten" { + MENUITEM "&Rckgngig\tStrg+Z", CMD_UNDO + MENUITEM SEPARATOR + MENUITEM "&Ausschneiden\tStrg+X", CMD_CUT + MENUITEM "&Kopieren\tStrg+C", CMD_COPY + MENUITEM "&Einfgen\tStrg+V", CMD_PASTE + MENUITEM "&Lschen\tEntf", CMD_DELETE + MENUITEM SEPARATOR + MENUITEM "Alles &markieren", CMD_SELECT_ALL + MENUITEM "&Uhrzeit/Datum\tF5", CMD_TIME_DATE + MENUITEM SEPARATOR + MENUITEM "&Zeilenumbruch", CMD_WRAP + MENUITEM "&Schriftarten...", CMD_FONT + } +POPUP "&Suchen" { + MENUITEM "Suchen...", CMD_SEARCH + MENUITEM "&Weitersuchen\tF3", CMD_SEARCH_NEXT + } +POPUP "&Hilfe" { + MENUITEM "&Inhalt", CMD_HELP_CONTENTS + MENUITEM "&Suchen...", CMD_HELP_SEARCH + MENUITEM "&Hilfe benutzen", CMD_HELP_ON_HELP + MENUITEM SEPARATOR + POPUP "Inf&o..." { + MENUITEM "&Lizenz", CMD_LICENSE + MENUITEM "&KEINE GARANTIE", CMD_NO_WARRANTY + MENUITEM "&ber Wine", CMD_ABOUT_WINE + } + } +} + +/* Dialog `Page setup' */ + +DIALOG_PAGESETUP DIALOG 0, 0, 225, 95 +STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU +FONT 8, "MS Shell Dlg" +CAPTION "Seite einrichten" +{ +LTEXT "&Kopfzeile:", 0x140, 10, 07, 40, 15 +EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP +LTEXT "&Fuzeile:", 0x142, 10, 24, 40, 15 +EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP + +GROUPBOX "Rnder", 0x144, 10, 43,160, 45 +LTEXT "&Links:", 0x145, 20, 55, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Oben:", 0x148, 20, 73, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Rechts:", 0x14B, 100, 55, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Unten:", 0x14E,100, 73, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP + +DEFPUSHBUTTON "OK", 0x151, 180, 3, 40, 15, WS_TABSTOP +PUSHBUTTON "Abbrechen", 0x152, 180, 21, 40, 15, WS_TABSTOP +PUSHBUTTON "&Hilfe", 0x153, 180, 39, 40, 15, WS_TABSTOP +} + +STRINGTABLE DISCARDABLE +{ +STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */ +STRING_PAGESETUP_FOOTERVALUE, "Seite &s" /* FIXME */ +STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */ +STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */ +STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */ +STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */ + +STRING_NOTEPAD, "Editor" +STRING_ERROR, "Fehler" +STRING_WARNING, "Achtung" +STRING_INFO, "Information" + +STRING_UNTITLED, "(unbenannt)" + +STRING_ALL_FILES, "Alle Dateien (*.*)" +STRING_TEXT_FILES_TXT, "Textdateien (*.txt)" + +STRING_TOOLARGE, "Die Datei '%s' ist zu gro fr den Editor\n \ +Benutzen Sie bitte einen anderen Editor, um diese Datei zu bearbeiten." +STRING_NOTEXT, "Sie haben keinen Text eingegeben, der \ +gespeichert\n werden knnte. Geben Sie Text ein, und versuchen Sie es \ +\nerneut." +STRING_DOESNOTEXIST, "Die Datei '%s'\nexistiert nicht.\n\n \ +Mchten Sie eine neue Datei erstellen ?" +STRING_NOTSAVED, "Datei %s\n wurde gendert.\n\n \ +Mchten Sie die nderungen speichern ?" +STRING_NOTFOUND, "'%s' kann nicht gefunden werden." +STRING_OUT_OF_MEMORY, "Nicht gengend Arbeitsspeicher, \ +um diese Funktion \nabzuschlieen. Beenden Sie eine oder mehrere \ +\nAnwendungen, um den verfgbaren Arbeitsspeicher zu \nerhhen." + + +} diff --git a/reactos/subsys/system/notepad/En.rc b/reactos/subsys/system/notepad/En.rc new file mode 100644 index 00000000000..d13210a1ea4 --- /dev/null +++ b/reactos/subsys/system/notepad/En.rc @@ -0,0 +1,129 @@ +/* + * Notepad (English resources) + * + * Copyright 1997,98 Marcel Baur + * Proofread 1998 by David Lee Lambert + * Copyright 2002 Sylvain Petreolle + * + * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT + +MAIN_MENU MENU +{ + POPUP "&File" { + MENUITEM "&New...", CMD_NEW + MENUITEM "&Open\tCtrl+O", CMD_OPEN + MENUITEM "&Save\tCtrl+S", CMD_SAVE + MENUITEM "Save &as...", CMD_SAVE_AS + MENUITEM SEPARATOR + MENUITEM "&Print", CMD_PRINT + MENUITEM "Page Se&tup...", CMD_PAGE_SETUP + MENUITEM "P&rinter Setup...", CMD_PRINTER_SETUP + MENUITEM SEPARATOR + MENUITEM "E&xit", CMD_EXIT + } +POPUP "&Edit" { + MENUITEM "&Undo\tCtrl+Z", CMD_UNDO + MENUITEM SEPARATOR + MENUITEM "Cu&t\tCtrl+X", CMD_CUT + MENUITEM "&Copy\tCtrl+C", CMD_COPY + MENUITEM "&Paste\tCtrl+V", CMD_PASTE + MENUITEM "&Delete\tDel", CMD_DELETE + MENUITEM SEPARATOR + MENUITEM "Select &all\tCtrl+A", CMD_SELECT_ALL + MENUITEM "&Time/Date\tF5", CMD_TIME_DATE + MENUITEM SEPARATOR + MENUITEM "&Wrap long lines", CMD_WRAP + MENUITEM "&Font...", CMD_FONT + } +POPUP "&Search" { + MENUITEM "&Search\tCtrl+F", CMD_SEARCH + MENUITEM "&Search next\tF3", CMD_SEARCH_NEXT + } +POPUP "&Help" { + MENUITEM "&Contents", CMD_HELP_CONTENTS + MENUITEM "&Search...", CMD_HELP_SEARCH + MENUITEM "&Help on help", CMD_HELP_ON_HELP + MENUITEM SEPARATOR + POPUP "Inf&o..." { + MENUITEM "&License", CMD_LICENSE + MENUITEM "&NO WARRANTY", CMD_NO_WARRANTY + MENUITEM "&About Wine", CMD_ABOUT_WINE + } + } +} + +/* Dialog `Page setup' */ + +DIALOG_PAGESETUP DIALOG 0, 0, 225, 95 +STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU +FONT 8, "MS Shell Dlg" +CAPTION "Page Setup" +{ +LTEXT "&Header:", 0x140, 10, 07, 40, 15 +EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP +LTEXT "&Footer:", 0x142, 10, 24, 40, 15 +EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP + +GROUPBOX "&Margins:", 0x144, 10, 43,160, 45 +LTEXT "&Left:", 0x145, 20, 55, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Top:", 0x148, 20, 73, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Right:", 0x14B, 100, 55, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Bottom:", 0x14E,100, 73, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP + +DEFPUSHBUTTON "OK", 0x151, 180, 3, 40, 15, WS_TABSTOP +PUSHBUTTON "Cancel", 0x152, 180, 21, 40, 15, WS_TABSTOP +PUSHBUTTON "&Help", 0x153, 180, 39, 40, 15, WS_TABSTOP +} + +STRINGTABLE DISCARDABLE +{ +STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */ +STRING_PAGESETUP_FOOTERVALUE, "Page &s" /* FIXME */ +STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */ +STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */ +STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */ +STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */ + +STRING_NOTEPAD, "Notepad" +STRING_ERROR, "ERROR" +STRING_WARNING, "WARNING" +STRING_INFO, "Information" + +STRING_UNTITLED, "(untitled)" + +STRING_ALL_FILES, "All files (*.*)" +STRING_TEXT_FILES_TXT, "Text files (*.txt)" + +STRING_TOOLARGE, "File '%s' is too large for notepad.\n \ +Please use a different editor." +STRING_NOTEXT, "You didn't enter any text. \ +\nPlease type something and try again" +STRING_DOESNOTEXIST, "File '%s'\ndoes not exist\n\n \ +Do you want to create a new file ?" +STRING_NOTSAVED, "File '%s'\nhas been modified\n\n \ +Would you like to save the changes ?" +STRING_NOTFOUND, "'%s' can not be found." +STRING_OUT_OF_MEMORY, "Not enough memory to complete this \ +task. \nClose one or more applications to increase the amount of \nfree \ +memory." + +} diff --git a/reactos/subsys/system/notepad/Es.rc b/reactos/subsys/system/notepad/Es.rc new file mode 100644 index 00000000000..45d5e9e9253 --- /dev/null +++ b/reactos/subsys/system/notepad/Es.rc @@ -0,0 +1,131 @@ +/* + * Notepad (Spanish resources) + * + * Copyright 1997,98 Marcel Baur + * Proofread 1998 by David Lee Lambert + * Proofread 1999 by Jose Marcos Lopez + * Copyright 2002 Sylvain Petreolle + * Copyright 2003,2004 Jos Manuel Ferrer Ortiz + * + * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +LANGUAGE LANG_SPANISH, SUBLANG_DEFAULT + +MAIN_MENU MENU +{ + POPUP "&Archivo" { + MENUITEM "&Nuevo...", CMD_NEW + MENUITEM "&Abrir\tCtrl+O", CMD_OPEN + MENUITEM "&Guardar\tCtrl+S", CMD_SAVE + MENUITEM "Guardar &como...", CMD_SAVE_AS + MENUITEM SEPARATOR + MENUITEM "&Imprimir", CMD_PRINT + MENUITEM "Configurar &pgina...", CMD_PAGE_SETUP + MENUITEM "Configuracin &impresora...", CMD_PRINTER_SETUP + MENUITEM SEPARATOR + MENUITEM "&Salir", CMD_EXIT + } +POPUP "&Editar" { + MENUITEM "&Deshacer\tCtrl+Z", CMD_UNDO + MENUITEM SEPARATOR + MENUITEM "Cor&tar\tCtrl+X", CMD_CUT + MENUITEM "&Copiar\tCtrl+C", CMD_COPY + MENUITEM "&Pegar\tCtrl+V", CMD_PASTE + MENUITEM "&Borrar\tDel", CMD_DELETE + MENUITEM SEPARATOR + MENUITEM "Seleccionar t&odo\tCtrl+A", CMD_SELECT_ALL + MENUITEM "&Hora y fecha\tF5", CMD_TIME_DATE + MENUITEM SEPARATOR + MENUITEM "&Ajuste de lnea", CMD_WRAP + MENUITEM "Tipo de &letra...", CMD_FONT + } +POPUP "&Buscar" { + MENUITEM "&Buscar\tCtrl+F", CMD_SEARCH + MENUITEM "Buscar &siguiente\tF3", CMD_SEARCH_NEXT + } +POPUP "A&yuda" { + MENUITEM "&ndice", CMD_HELP_CONTENTS + MENUITEM "&Buscar...", CMD_HELP_SEARCH + MENUITEM "A&yuda sobre la ayuda", CMD_HELP_ON_HELP + MENUITEM SEPARATOR + POPUP "&Informacin..." { + MENUITEM "&Licencia", CMD_LICENSE + MENUITEM "SIN &GARANTA", CMD_NO_WARRANTY + MENUITEM "&Acerca de Wine", CMD_ABOUT_WINE + } + } +} + +/* Dialog `Page setup' */ + +DIALOG_PAGESETUP DIALOG 0, 0, 225, 95 +STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU +FONT 8, "MS Shell Dlg" +CAPTION "Ajuste de pgina" +{ +LTEXT "&Cabecera:", 0x140, 10, 07, 40, 15 +EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP +LTEXT "&Pie:", 0x142, 10, 24, 40, 15 +EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP + +GROUPBOX "&Mrgenes:", 0x144, 10, 43,160, 45 +LTEXT "&Izquierda:", 0x145, 20, 55, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "A&rriba:", 0x148, 20, 73, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Derecha:", 0x14B, 100, 55, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "Aba&jo:", 0x14E,100, 73, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP + +DEFPUSHBUTTON "Aceptar", 0x151, 180, 3, 40, 15, WS_TABSTOP +PUSHBUTTON "Cancelar", 0x152, 180, 21, 40, 15, WS_TABSTOP +PUSHBUTTON "&Ayuda", 0x153, 180, 39, 40, 15, WS_TABSTOP +} + +STRINGTABLE DISCARDABLE +{ +STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */ +STRING_PAGESETUP_FOOTERVALUE, "Pgina &s" /* FIXME */ +STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */ +STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */ +STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */ +STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */ + +STRING_NOTEPAD, "Bloc de notas" +STRING_ERROR, "ERROR" +STRING_WARNING, "ADVERTENCIA" +STRING_INFO, "Informacin" + +STRING_UNTITLED, "(sin ttulo)" + +STRING_ALL_FILES, "Todos los archivos (*.*)" +STRING_TEXT_FILES_TXT, "Documentos de texto (*.txt)" + +STRING_TOOLARGE, "El archivo '%s' es demasiado grande para el \ + bloc de notas.\n Use otro editor." +STRING_NOTEXT, "No escribi nada. \nPor favor escriba algo e \ + intntelo de nuevo" +STRING_DOESNOTEXIST, "El archivo '%s'\nno existe\n\n Desea crear \ + un nuevo archivo?" +STRING_NOTSAVED, "El texto en el archivo '%s' ha cambiado\n\n \ + Desea guardar los cambios?" +STRING_NOTFOUND, "No se encontr '%s'." +STRING_OUT_OF_MEMORY, "No hay suficiente memoria para terminar esta \ + tarea. \nCierre una o ms aplicaciones para \ + aumentar la cantidad \nde memoria libre." + +} diff --git a/reactos/subsys/system/notepad/Fi.rc b/reactos/subsys/system/notepad/Fi.rc new file mode 100644 index 00000000000..ee9ab785c1c --- /dev/null +++ b/reactos/subsys/system/notepad/Fi.rc @@ -0,0 +1,126 @@ +/* + * Notepad (Finnish resources) + * + * Copyright 1999 by Jukka Iivonen + * Copyright 2002 Sylvain Petreolle + * + * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +LANGUAGE LANG_FINNISH, SUBLANG_DEFAULT + +MAIN_MENU MENU +{ + POPUP "&Tiedosto" { + MENUITEM "&Uusi...", CMD_NEW + MENUITEM "&Avaa", CMD_OPEN + MENUITEM "Ta&lleta", CMD_SAVE + MENUITEM "Talleta &nimell...", CMD_SAVE_AS + MENUITEM "T&ulosta", CMD_PRINT + MENUITEM "&Sivun asetukset...", CMD_PAGE_SETUP + MENUITEM "&Kirjoittimen asetukset...", CMD_PRINTER_SETUP + MENUITEM SEPARATOR + MENUITEM "&Poistu", CMD_EXIT + } +POPUP "&Muokkaa" { + MENUITEM "&Palauta\tCtrl+Z", CMD_UNDO + MENUITEM SEPARATOR + MENUITEM "&Leikkaa\tCtrl+X", CMD_CUT + MENUITEM "&Kopioi\tCtrl+C", CMD_COPY + MENUITEM "L&iit\tCtrl+V", CMD_PASTE + MENUITEM "P&oista\tDel", CMD_DELETE + MENUITEM SEPARATOR + MENUITEM "&Valitse kaikki", CMD_SELECT_ALL + MENUITEM "&Aika/Pivmr\tF5", CMD_TIME_DATE + MENUITEM SEPARATOR + MENUITEM "Ka&tkaise pitk rivi", CMD_WRAP + } +POPUP "&Etsi" { + MENUITEM "Etsi...", CMD_SEARCH + MENUITEM "Etsi &seuraava\tF3", CMD_SEARCH_NEXT + } +POPUP "&Apua" { + MENUITEM "&Sislt", CMD_HELP_CONTENTS + MENUITEM "&Etsi...", CMD_HELP_SEARCH + MENUITEM "Apua &Opastuksesta", CMD_HELP_ON_HELP + MENUITEM SEPARATOR + POPUP "Inf&o..." { + MENUITEM "&Lisenssi", CMD_LICENSE + MENUITEM "&EI TAKUUTA", CMD_NO_WARRANTY + MENUITEM "&Tietoja Wine:ista", CMD_ABOUT_WINE + } + } +} + +/* Dialog `Page setup' */ + +DIALOG_PAGESETUP DIALOG 0, 0, 225, 95 +STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU +FONT 8, "MS Shell Dlg" +CAPTION "Sivun asetukset" +{ +LTEXT "&Ylotsikko:", 0x140, 10, 07, 40, 15 +EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP +LTEXT "Alao&tsikko:", 0x142, 10, 24, 40, 15 +EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP + +GROUPBOX "&Marginaali:", 0x144, 10, 43,160, 45 +LTEXT "&Vasen:", 0x145, 20, 55, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "Y&l:", 0x148, 20, 73, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Oikea:", 0x14B, 100, 55, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Ala:", 0x14E,100, 73, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP + +DEFPUSHBUTTON "OK", 0x151, 180, 3, 40, 15, WS_TABSTOP +PUSHBUTTON "Peruuta", 0x152, 180, 21, 40, 15, WS_TABSTOP +PUSHBUTTON "&Apua", 0x153, 180, 39, 40, 15, WS_TABSTOP +} + +STRINGTABLE DISCARDABLE +{ +STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */ +STRING_PAGESETUP_FOOTERVALUE, "Sivu &s" /* FIXME */ +STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */ +STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */ +STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */ +STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */ + +STRING_NOTEPAD, "Notepad" +STRING_ERROR, "VIRHE" +STRING_WARNING, "VAROITUS" +STRING_INFO, "Tiedoitus" + +STRING_UNTITLED, "(otsikoimaton)" + +STRING_ALL_FILES, "Kaikki tiedostot (*.*)" +STRING_TEXT_FILES_TXT, "Teksti tiedostot (*.txt)" + +STRING_TOOLARGE, "Tiedosto '%s' on liian suuri.\n \ +Please use a different editor." +STRING_NOTEXT, "Et syttnyt lainkaan teksti. \ +\nKirjoita jotain ja yrit uudelleen" +STRING_DOESNOTEXIST, "File '%s'\ndoes not exist\n\n \ +Do you want to create a new file ?" +STRING_NOTSAVED, "File '%s'\nhas been modified\n\n \ +Would you like to save the changes ?" +STRING_NOTFOUND, "'%s' ei lydy." +STRING_OUT_OF_MEMORY, "Muistia ei ole riittvsti tmn \ +\ntehtvn tekemiseksi. Sulje jokin sovellus vapauttaaksesi\n \ +muistia." + +} diff --git a/reactos/subsys/system/notepad/Fr.rc b/reactos/subsys/system/notepad/Fr.rc new file mode 100644 index 00000000000..0a6103098f5 --- /dev/null +++ b/reactos/subsys/system/notepad/Fr.rc @@ -0,0 +1,129 @@ +/* + * Notepad (French resources) + * + * Copyright 1997,98 Marcel Baur + * Translation by Laurent Buffler + * Copyright 2002 Sylvain Petreolle + * + * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +LANGUAGE LANG_FRENCH, SUBLANG_NEUTRAL + +MAIN_MENU MENU +{ + POPUP "&Fichier" { + MENUITEM "&Nouveau...", CMD_NEW + MENUITEM "&Ouvrir\tCtrl+O", CMD_OPEN + MENUITEM "&Enregistrer\tCtrl+S", CMD_SAVE + MENUITEM "Enregistrer &sous...", CMD_SAVE_AS + MENUITEM SEPARATOR + MENUITEM "Im&primer", CMD_PRINT + MENUITEM "&Mise en page...", CMD_PAGE_SETUP + MENUITEM "&Configuration de l'imprimante...", CMD_PRINTER_SETUP + MENUITEM SEPARATOR + MENUITEM "&Quitter", CMD_EXIT + } +POPUP "&Edition" { + MENUITEM "&Annuler\tCtrl+Z", CMD_UNDO + MENUITEM SEPARATOR + MENUITEM "Co&uper\tCtrl+X", CMD_CUT + MENUITEM "&Copier\tCtrl+C", CMD_COPY + MENUITEM "C&oller\tCtrl+V", CMD_PASTE + MENUITEM "&Effacer\tDel", CMD_DELETE + MENUITEM SEPARATOR + MENUITEM "Tout &slectionner\tCtrl+A", CMD_SELECT_ALL + MENUITEM "&Heure/Date\tF5", CMD_TIME_DATE + MENUITEM SEPARATOR + MENUITEM "&Retour la ligne", CMD_WRAP + MENUITEM "&Police...", CMD_FONT + } +POPUP "&Rechercher" { + MENUITEM "&Rechercher\tCtrl+F", CMD_SEARCH + MENUITEM "&Suivant\tF3", CMD_SEARCH_NEXT + } +POPUP "&Aide" { + MENUITEM "&Sommaire", CMD_HELP_CONTENTS + MENUITEM "&Rechercher...", CMD_HELP_SEARCH + MENUITEM "&Utiliser l'aide", CMD_HELP_ON_HELP + MENUITEM SEPARATOR + POPUP "Inf&o..." { + MENUITEM "&Licence", CMD_LICENSE + MENUITEM "&AUCUNE GARANTIE", CMD_NO_WARRANTY + MENUITEM "&A propos de Wine", CMD_ABOUT_WINE + } + } +} + +/* Dialog `Page setup' */ + +DIALOG_PAGESETUP DIALOG 0, 0, 225, 95 +STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU +FONT 8, "MS Shell Dlg" +CAPTION "Mise en page" +{ +LTEXT "&En-tte :", 0x140, 10, 07, 40, 15 +EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP +LTEXT "&Pied de page :", 0x142, 10, 24, 40, 15 +EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP + +GROUPBOX "&Marges :", 0x144, 10, 43,160, 45 +LTEXT "&Gauche :", 0x145, 20, 55, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Haut :", 0x148, 20, 73, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Droite :", 0x14B, 100, 55, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Bas :", 0x14E,100, 73, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP + +DEFPUSHBUTTON "OK", 0x151, 180, 3, 40, 15, WS_TABSTOP +PUSHBUTTON "Annuler", 0x152, 180, 21, 40, 15, WS_TABSTOP +PUSHBUTTON "&Aide", 0x153, 180, 39, 40, 15, WS_TABSTOP +} + +STRINGTABLE DISCARDABLE +{ +STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */ +STRING_PAGESETUP_FOOTERVALUE, "Page &s" /* FIXME */ +STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */ +STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */ +STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */ +STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */ + +STRING_NOTEPAD, "Bloc-notes" +STRING_ERROR, "ERREUR" +STRING_WARNING, "ATTENTION" +STRING_INFO, "Information" + +STRING_UNTITLED, "(sans-titre)" + +STRING_ALL_FILES, "Tous fichiers (*.*)" +STRING_TEXT_FILES_TXT, "Fichiers texte (*.txt)" + +STRING_TOOLARGE, "Le fichier '%s' est trop grand pour le bloc-notes.\n \ +Veuillez utiliser un autre diteur." +STRING_NOTEXT, "Vous n'avez pas entr de texte. \ +Veuillez taper quelque chose et recommencer" +STRING_DOESNOTEXIST, "Le fichier '%s'\nn'existe pas.\n\n \ +Voulez-vous crer un nouveau fichier ?" +STRING_NOTSAVED, "Le fichier '%s'\na t modifi\n\n \ +Voulez-vous enregistrer vos modifications ?" +STRING_NOTFOUND, "'%s' non trouv." +STRING_OUT_OF_MEMORY, "Pas assez de mmoire pour complter cette \ +tche. \nFermez une ou plusieurs applications pour librer\n\ +de la mmoire." + +} diff --git a/reactos/subsys/system/notepad/Hu.rc b/reactos/subsys/system/notepad/Hu.rc new file mode 100644 index 00000000000..c8d388bed1c --- /dev/null +++ b/reactos/subsys/system/notepad/Hu.rc @@ -0,0 +1,128 @@ +/* + * Notepad (Hungarian resources) + * + * Copyright 1997,98 Marcel Baur + * Proofread 1998 by David Lee Lambert + * Copyright 2002 Sylvain Petreolle + * Copyright 2002 Zoly Nagy + * + * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +MAIN_MENU MENU LANGUAGE LANG_HUNGARIAN, SUBLANG_DEFAULT +{ + POPUP "&Fjl" { + MENUITEM "&j", CMD_NEW + MENUITEM "Meg&nyits...", CMD_OPEN + MENUITEM "&Ments", CMD_SAVE + MENUITEM "Ments m&sknt...", CMD_SAVE_AS + MENUITEM SEPARATOR + MENUITEM "&Oldalbellts...", CMD_PAGE_SETUP + MENUITEM "Nyom&tats...", CMD_PRINT + MENUITEM "Nyomtat &bellts...", CMD_PRINTER_SETUP + MENUITEM SEPARATOR + MENUITEM "&Kilps", CMD_EXIT + } +POPUP "S&zerkeszts" { + MENUITEM "&Visszavons\tCtrl+Z", CMD_UNDO + MENUITEM SEPARATOR + MENUITEM "Kiv&gs\tCtrl+X", CMD_CUT + MENUITEM "&Msols\tCtrl+C", CMD_COPY + MENUITEM "&Beilleszts\tCtrl+V", CMD_PASTE + MENUITEM "Tr&ls\tDel", CMD_DELETE + MENUITEM SEPARATOR + MENUITEM "&Az sszes kijellse", CMD_SELECT_ALL + MENUITEM "&Id/dtum\tF5", CMD_TIME_DATE + MENUITEM SEPARATOR + MENUITEM "&Hossz sorok trdelse", CMD_WRAP + } +POPUP "&Keress" { + MENUITEM "&Keress...", CMD_SEARCH + MENUITEM "Kve&tkez keresse\tF3", CMD_SEARCH_NEXT + } +POPUP "&Sg" { + MENUITEM "&Tmakrk", CMD_HELP_CONTENTS + MENUITEM "&Keress...", CMD_HELP_SEARCH + MENUITEM "&Hasznlat", CMD_HELP_ON_HELP + MENUITEM SEPARATOR + POPUP "Inf&ormci..." { + MENUITEM "&Licenc", CMD_LICENSE + MENUITEM "&SEMMI GARANCIA", CMD_NO_WARRANTY + MENUITEM "&Wine nvjegy", CMD_ABOUT_WINE + } + } +} + +/* Dialog `Page setup' */ + +DIALOG_PAGESETUP DIALOG 0, 0, 225, 95 +LANGUAGE LANG_HUNGARIAN, SUBLANG_DEFAULT +STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU +FONT 8, "MS Shell Dlg" +CAPTION "Oldalbellts" +{ +LTEXT "&Fejlc:", 0x140, 10, 07, 40, 15 +EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP +LTEXT "&Lblc:", 0x142, 10, 24, 40, 15 +EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP + +GROUPBOX "&Margk:", 0x144, 10, 43,160, 45 +LTEXT "&Bal:", 0x145, 20, 55, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Fels:", 0x148, 20, 73, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Jobb:", 0x14B, 100, 55, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Als:", 0x14E,100, 73, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP + +DEFPUSHBUTTON "OK", 0x151, 180, 3, 40, 15, WS_TABSTOP +PUSHBUTTON "Mgse", 0x152, 180, 21, 40, 15, WS_TABSTOP +PUSHBUTTON "&Sg", 0x153, 180, 39, 40, 15, WS_TABSTOP +} + +STRINGTABLE DISCARDABLE LANGUAGE LANG_HUNGARIAN, SUBLANG_DEFAULT +{ +STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */ +STRING_PAGESETUP_FOOTERVALUE, "Oldalszm: &s." /* FIXME */ +STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */ +STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */ +STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */ +STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */ + +STRING_NOTEPAD, "Jegyzettmb" +STRING_ERROR, "HIBA" +STRING_WARNING, "FIGYELMEZTETS" +STRING_INFO, "Informci" + +STRING_UNTITLED, "(nvtelen)" + +STRING_ALL_FILES, "Minden fjl (*.*)" +STRING_TEXT_FILES_TXT, "Szvegfjlok (*.txt)" + +STRING_TOOLARGE, "'%s' fjl tl nagy mret.\n \ +Krem hasznljon msik szvegszerkeszt programot." +STRING_NOTEXT, "A szveg nem tartalmaz karaktert! \ +\nKrem gpeljen be nhny karaktert s prblja jra!" +STRING_DOESNOTEXIST, "A megadott '%s'\nfjl nem ltezik!\n\n \ +Kvn ltrehozni j fjlt?" +STRING_NOTSAVED, "'%s' fjl\nmdosult\n\n \ +Szeretn menteni a vltozsokat?" +STRING_NOTFOUND, "'%s' nem tallhat!" +STRING_OUT_OF_MEMORY, "Nincs elegend szabad memria!\ +\nZrjon be nhny alkalmazst, ezzel nvelve a szabad memria mrett\ +!" + +} diff --git a/reactos/subsys/system/notepad/It.rc b/reactos/subsys/system/notepad/It.rc new file mode 100644 index 00000000000..cea4b824f5f --- /dev/null +++ b/reactos/subsys/system/notepad/It.rc @@ -0,0 +1,130 @@ +/* + * Notepad (Italian resources) + * + * Copyright 1997,98 Marcel Baur + * Proofread 1998 by David Lee Lambert + * Copyright 2002 Sylvain Petreolle + * Copyright 2003 Marcelo Duarte + * Copyright 2003-2004 Ivan Leo Puoti + * + * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +LANGUAGE LANG_ITALIAN, SUBLANG_DEFAULT + +MAIN_MENU MENU +{ + POPUP "&File" { + MENUITEM "&Nuovo", CMD_NEW + MENUITEM "&Apri...\tCtrl+O", CMD_OPEN + MENUITEM "&Salva\tCtrl+S", CMD_SAVE + MENUITEM "Salva &con nome...", CMD_SAVE_AS + MENUITEM SEPARATOR + MENUITEM "&Stampa", CMD_PRINT + MENUITEM "&Imposta pagina...", CMD_PAGE_SETUP + MENUITEM "&Configurazione stampante...", CMD_PRINTER_SETUP + MENUITEM SEPARATOR + MENUITEM "E&sci", CMD_EXIT + } +POPUP "&Modifica" { + MENUITEM "&Anulla\tCtrl+Z", CMD_UNDO + MENUITEM SEPARATOR + MENUITEM "&Taglia\tCtrl+X", CMD_CUT + MENUITEM "&Copia\tCtrl+C", CMD_COPY + MENUITEM "&Incolla\tCtrl+V", CMD_PASTE + MENUITEM "&Elimina\tDel", CMD_DELETE + MENUITEM SEPARATOR + MENUITEM "Seleziona &tutto\tCtrl+A", CMD_SELECT_ALL + MENUITEM "&Ora/Data\tF5", CMD_TIME_DATE + MENUITEM SEPARATOR + MENUITEM "&A campo automatico", CMD_WRAP + MENUITEM "&Imposta carattere...", CMD_FONT + } +POPUP "&Trova" { + MENUITEM "&Trova\tCtrl+F", CMD_SEARCH + MENUITEM "&Trova successivo\tF3", CMD_SEARCH_NEXT + } +POPUP "&Aiuto" { + MENUITEM "&Contenuti", CMD_HELP_CONTENTS + MENUITEM "&Trova...", CMD_HELP_SEARCH + MENUITEM "&Aiuto sulla Guida", CMD_HELP_ON_HELP + MENUITEM SEPARATOR + POPUP "Inf&o..." { + MENUITEM "&Licenza", CMD_LICENSE + MENUITEM "&Garanzia", CMD_NO_WARRANTY + MENUITEM "&Informazioni sul Blocco Note", CMD_ABOUT_WINE + } + } +} + +/* Dialog `Page setup' */ + +DIALOG_PAGESETUP DIALOG 0, 0, 225, 95 +STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU +FONT 8, "MS Shell Dlg" +CAPTION "Setup di pagina" +{ +LTEXT "&Note a inizio pagina:", 0x140, 10, 07, 40, 15 +EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP +LTEXT "&Note a pi di pagina:", 0x142, 10, 24, 40, 15 +EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP + +GROUPBOX "&Margini:", 0x144, 10, 43,160, 45 +LTEXT "&Sinistro:", 0x145, 20, 55, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Superiore:", 0x148, 20, 73, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Destro:", 0x14B, 100, 55, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Inferiore:", 0x14E,100, 73, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP + +DEFPUSHBUTTON "OK", 0x151, 180, 3, 40, 15, WS_TABSTOP +PUSHBUTTON "Cancella", 0x152, 180, 21, 40, 15, WS_TABSTOP +PUSHBUTTON "&Aiuto", 0x153, 180, 39, 40, 15, WS_TABSTOP +} + +STRINGTABLE DISCARDABLE +{ +STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */ +STRING_PAGESETUP_FOOTERVALUE, "Page &s" /* FIXME */ +STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */ +STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */ +STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */ +STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */ + +STRING_NOTEPAD, "Blocco note" +STRING_ERROR, "ERRORE" +STRING_WARNING, "ATTENZIONE" +STRING_INFO, "Info" + +STRING_UNTITLED, "(senza nome)" + +STRING_ALL_FILES, "Tutti i file (*.*)" +STRING_TEXT_FILES_TXT, "File di testo (*.txt)" + +STRING_TOOLARGE, "Il file '%s' troppo grande per il blocco note.\n \ +Per favore usare un altro editor." +STRING_NOTEXT, "Non stato inserito alcun testo. \ +\nPer favore digitare qualcosa e riprovare" +STRING_DOESNOTEXIST, "Il file '%s'\nnon esiste\n\n \ +Creare un nuovo file ?" +STRING_NOTSAVED, "Il file '%s'\ne' stato modificato\n\n \ +Salvare le modifiche ?" +STRING_NOTFOUND, "'%s' non stato trovato." +STRING_OUT_OF_MEMORY, "Memoria insufficente per completare questa operazione \ +task. \nChiudere una o pi applicazioni per aumentare la quantita'\n di memoria libera." + +} diff --git a/reactos/subsys/system/notepad/Ja.rc b/reactos/subsys/system/notepad/Ja.rc new file mode 100644 index 00000000000..36c4a8170e1 --- /dev/null +++ b/reactos/subsys/system/notepad/Ja.rc @@ -0,0 +1,129 @@ +/* + * Notepad (Japanese resources) + * + * Copyright 1997,98 Marcel Baur + * Proofread 1998 by David Lee Lambert + * Copyright 2002 Sylvain Petreolle + * + * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +LANGUAGE LANG_JAPANESE, SUBLANG_DEFAULT + +MAIN_MENU MENU +{ + POPUP "t@C(&F)" { + MENUITEM "VK쐬(&N)...", CMD_NEW + MENUITEM "J(&O)\tCtrl+O", CMD_OPEN + MENUITEM "ۑ(&S)\tCtrl+S", CMD_SAVE + MENUITEM "Otĕۑ(&a)...", CMD_SAVE_AS + MENUITEM SEPARATOR + MENUITEM "(&P)", CMD_PRINT + MENUITEM "y[Wݒ(&t)...", CMD_PAGE_SETUP + MENUITEM "v^̐ݒ(&r)...", CMD_PRINTER_SETUP + MENUITEM SEPARATOR + MENUITEM "I(&x)", CMD_EXIT + } +POPUP "ҏW(&E)" { + MENUITEM "AhD(&U)\tCtrl+Z", CMD_UNDO + MENUITEM SEPARATOR + MENUITEM "؂(&t)\tCtrl+X", CMD_CUT + MENUITEM "Rs[(&C)\tCtrl+C", CMD_COPY + MENUITEM "y[Xg(&P)\tCtrl+V", CMD_PASTE + MENUITEM "폜(&D)\tDel", CMD_DELETE + MENUITEM SEPARATOR + MENUITEM "SđI(&a)\tCtrl+A", CMD_SELECT_ALL + MENUITEM "tƎ(&T)\tF5", CMD_TIME_DATE + MENUITEM SEPARATOR + MENUITEM "s܂Ԃ(&W)", CMD_WRAP + MENUITEM "tHg(&F)...", CMD_FONT + } +POPUP "(&S)" { + MENUITEM "(&S)\tCtrl+F", CMD_SEARCH + MENUITEM "̌(&S)\tF3", CMD_SEARCH_NEXT + } +POPUP "wv(&H)" { + MENUITEM "ڎ(&C)", CMD_HELP_CONTENTS + MENUITEM "(&S)...", CMD_HELP_SEARCH + MENUITEM "wv̎g(&H)", CMD_HELP_ON_HELP + MENUITEM SEPARATOR + POPUP "(&o)..." { + MENUITEM "CZX(&L)", CMD_LICENSE + MENUITEM "ۏ(&N)", CMD_NO_WARRANTY + MENUITEM "Wineɂ‚(&A)", CMD_ABOUT_WINE + } + } +} + +/* Dialog `Page setup' */ + +DIALOG_PAGESETUP DIALOG 0, 0, 225, 95 +STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU +FONT 9, "MS UI Gothic" +CAPTION "y[Wݒ" +{ +LTEXT "wb_(&H):", 0x140, 10, 07, 40, 15 +EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP +LTEXT "tb^(&F):", 0x142, 10, 24, 40, 15 +EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP + +GROUPBOX "}[W(&M):", 0x144, 10, 43,160, 45 +LTEXT "(&L):", 0x145, 20, 55, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "(&T):", 0x148, 20, 73, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "E(&R):", 0x14B, 100, 55, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "(&B):", 0x14E,100, 73, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP + +DEFPUSHBUTTON "OK", 0x151, 180, 3, 40, 15, WS_TABSTOP +PUSHBUTTON "LZ", 0x152, 180, 21, 40, 15, WS_TABSTOP +PUSHBUTTON "wv(&H)", 0x153, 180, 39, 40, 15, WS_TABSTOP +} + +STRINGTABLE DISCARDABLE +{ +STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */ +STRING_PAGESETUP_FOOTERVALUE, "&s y[W" /* FIXME */ +STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */ +STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */ +STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */ +STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */ + +STRING_NOTEPAD, "" +STRING_ERROR, "G[" +STRING_WARNING, "x" +STRING_INFO, "" + +STRING_UNTITLED, "()" + +STRING_ALL_FILES, "SẴt@C (*.*)" +STRING_TEXT_FILES_TXT, "eLXgt@C (*.txt)" + +STRING_TOOLARGE, "t@C '%s' ̃TCY͑傫邽߁Ał͕ҏWł܂B\n \ +ʂ̃GfB^gpĉB" +STRING_NOTEXT, "͂Ă܂B\ +\n͂ĂsĉB" +STRING_DOESNOTEXIST, "t@C '%s'\n݂͑܂\n\n \ +Vt@C쐬܂ ?" +STRING_NOTSAVED, "t@C '%s'\n͕ύXĂ܂\n\n \ +ύXۑ܂ ?" +STRING_NOTFOUND, "'%s' ͌‚܂ł" +STRING_OUT_OF_MEMORY, "̑s邽߂̃\ +܂B \n̋󂫂𑝂₷߂ɂ‚̃AvP[V\nI\ +B" + +} diff --git a/reactos/subsys/system/notepad/License_En.c b/reactos/subsys/system/notepad/License_En.c new file mode 100644 index 00000000000..f8ffe140436 --- /dev/null +++ b/reactos/subsys/system/notepad/License_En.c @@ -0,0 +1,28 @@ +#include +#include "license.h" + +static const CHAR LicenseCaption_En[] = "LICENSE"; +static const CHAR License_En[] = +"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.\n" + +"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.\n" + +"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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA"; + +static const CHAR NoWarrantyCaption_En[] = "NO WARRANTY"; +static const CHAR NoWarranty_En[] = +"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."; + +LICENSE WineLicense_En = {License_En, LicenseCaption_En, + NoWarranty_En, NoWarrantyCaption_En}; diff --git a/reactos/subsys/system/notepad/Makefile b/reactos/subsys/system/notepad/Makefile new file mode 100644 index 00000000000..a587ff25bfa --- /dev/null +++ b/reactos/subsys/system/notepad/Makefile @@ -0,0 +1,29 @@ +PATH_TO_TOP = ../../.. + +TARGET_TYPE = program + +TARGET_APPTYPE = windows + +TARGET_NAME = notepad + +TARGET_INSTALLDIR = system32 + +TARGET_CFLAGS = -D__USE_W32API -D_WIN32_IE=0x0501 + +TARGET_RCFLAGS = -D__USE_W32API -D_WIN32_IE=0x0501 + +TARGET_SDKLIBS = \ + kernel32.a \ + user32.a \ + gdi32.a \ + comdlg32.a + +TARGET_OBJECTS = \ + License_En.o \ + dialog.o \ + license.o \ + main.o + +include $(PATH_TO_TOP)/rules.mak + +include $(TOOLS_PATH)/helper.mk diff --git a/reactos/subsys/system/notepad/Makefile.in b/reactos/subsys/system/notepad/Makefile.in new file mode 100644 index 00000000000..de0505f881a --- /dev/null +++ b/reactos/subsys/system/notepad/Makefile.in @@ -0,0 +1,21 @@ +TOPSRCDIR = @top_srcdir@ +TOPOBJDIR = ../.. +SRCDIR = @srcdir@ +VPATH = @srcdir@ +MODULE = notepad.exe +APPMODE = -mwindows +IMPORTS = comdlg32 shell32 user32 gdi32 msvcrt advapi32 kernel32 +EXTRAINCL = -I$(TOPSRCDIR)/include/msvcrt +EXTRADEFS = -DNO_LIBWINE_PORT + +C_SRCS = \ + License_En.c \ + dialog.c \ + license.c \ + main.c + +RC_SRCS = rsrc.rc + +@MAKE_PROG_RULES@ + +### Dependencies: diff --git a/reactos/subsys/system/notepad/Nl.rc b/reactos/subsys/system/notepad/Nl.rc new file mode 100644 index 00000000000..28a8aa1c417 --- /dev/null +++ b/reactos/subsys/system/notepad/Nl.rc @@ -0,0 +1,126 @@ +/* + * Notepad (Dutch resources) + * + * Copyright 2003 Hans Leidekker + * + * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +LANGUAGE LANG_DUTCH, SUBLANG_DEFAULT + +MAIN_MENU MENU +{ + POPUP "&Bestand" { + MENUITEM "&Nieuw...", CMD_NEW + MENUITEM "&Openen\tCtrl+O", CMD_OPEN + MENUITEM "O&pslaan\tCtrl+p", CMD_SAVE + MENUITEM "Ops&laan als...", CMD_SAVE_AS + MENUITEM SEPARATOR + MENUITEM "&Afdrukken", CMD_PRINT + MENUITEM "Pagina-in&stelling...", CMD_PAGE_SETUP + MENUITEM "Printerinstellingen...", CMD_PRINTER_SETUP + MENUITEM SEPARATOR + MENUITEM "&Afsluiten", CMD_EXIT + } +POPUP "Be&werken" { + MENUITEM "&Ongedaan maken\tCtrl+Z", CMD_UNDO + MENUITEM SEPARATOR + MENUITEM "K&nippen\tCtrl+X", CMD_CUT + MENUITEM "&Kopiëren\tCtrl+C", CMD_COPY + MENUITEM "&Plakken\tCtrl+V", CMD_PASTE + MENUITEM "&Verwijderen\tDel", CMD_DELETE + MENUITEM SEPARATOR + MENUITEM "&Alles selecteren\tCtrl+A", CMD_SELECT_ALL + MENUITEM "Tijd/&datum\tF5", CMD_TIME_DATE + MENUITEM SEPARATOR + MENUITEM "A&utomatische terugloop", CMD_WRAP + MENUITEM "&Lettertype instellen...", CMD_FONT + } +POPUP "&Zoeken" { + MENUITEM "&Zoeken\tCtrl+Z", CMD_SEARCH + MENUITEM "&Volgende zoeken\tF3", CMD_SEARCH_NEXT + } +POPUP "&Help" { + MENUITEM "&Help-onderwerpen", CMD_HELP_CONTENTS + MENUITEM "&Zoeken...", CMD_HELP_SEARCH + MENUITEM "&Hulp bij Help", CMD_HELP_ON_HELP + MENUITEM SEPARATOR + POPUP "Inf&o..." { + MENUITEM "&Licentie", CMD_LICENSE + MENUITEM "&GEEN GARANTIE", CMD_NO_WARRANTY + MENUITEM "&Over Wine", CMD_ABOUT_WINE + } + } +} + +/* Dialog `Page setup' */ + +DIALOG_PAGESETUP DIALOG 0, 0, 225, 95 +STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU +FONT 8, "MS Shell Dlg" +CAPTION "Pagina-instelling" +{ +LTEXT "&Koptekst:", 0x140, 10, 07, 40, 15 +EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP +LTEXT "&Voettekst:", 0x142, 10, 24, 40, 15 +EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP + +GROUPBOX "&Marges:", 0x144, 10, 43,160, 45 +LTEXT "Li&nks:", 0x145, 20, 55, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Boven:", 0x148, 20, 73, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Rechts:", 0x14B, 100, 55, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Onder:", 0x14E,100, 73, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP + +DEFPUSHBUTTON "OK", 0x151, 180, 3, 40, 15, WS_TABSTOP +PUSHBUTTON "Annuleren", 0x152, 180, 21, 40, 15, WS_TABSTOP +PUSHBUTTON "&Help", 0x153, 180, 39, 40, 15, WS_TABSTOP +} + +STRINGTABLE DISCARDABLE +{ +STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */ +STRING_PAGESETUP_FOOTERVALUE, "Pagina &s" /* FIXME */ +STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */ +STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */ +STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */ +STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */ + +STRING_NOTEPAD, "Kladblok" +STRING_ERROR, "FOUT" +STRING_WARNING, "WAARSCHUWING" +STRING_INFO, "Informatie" + +STRING_UNTITLED, "(naamloos)" + +STRING_ALL_FILES, "Alle bestanden (*.*)" +STRING_TEXT_FILES_TXT, "Tekstbestanden (*.txt)" + +STRING_TOOLARGE, "Het bestand '%s' is te groot voor Kladblok.\n \ +Gebruik een andere editor." +STRING_NOTEXT, "U heeft geen tekst ingevoerd. \ +\nType uw tekst en probeer het nogmaals" +STRING_DOESNOTEXIST, "Het bestand '%s'\nbestaat niet\n\n \ +Wilt u een nieuw bestand maken?" +STRING_NOTSAVED, "Het bestand '%s'\nis gewijzigd\n\n \ +Wilt u de wijzigingen opslaan?" +STRING_NOTFOUND, "'%s' kan niet worden gevonden." +STRING_OUT_OF_MEMORY, "Onvoldoende geheugen. \ +\nSluit een of meer applicaties om de hoeveelheid \nbeschikbaar geheugen te vergroten." + +} diff --git a/reactos/subsys/system/notepad/Pl.rc b/reactos/subsys/system/notepad/Pl.rc new file mode 100644 index 00000000000..a634dd189b5 --- /dev/null +++ b/reactos/subsys/system/notepad/Pl.rc @@ -0,0 +1,129 @@ +/* + * Notepad (Polish resources) + * + * Copyright 1997,98 Marcel Baur + * Proofread 1998 by David Lee Lambert + * Copyright 2002 Sylvain Petreolle + * Copyright 2004 Jacek Caban + * + * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +LANGUAGE LANG_POLISH, SUBLANG_DEFAULT + +MAIN_MENU MENU +{ + POPUP "&Plik" { + MENUITEM "&Nowy...", CMD_NEW + MENUITEM "&Otwrz\tCtrl+O", CMD_OPEN + MENUITEM "&Zapisz\tCtrl+S", CMD_SAVE + MENUITEM "Z&apisz jako...", CMD_SAVE_AS + MENUITEM SEPARATOR + MENUITEM "&Drukuj", CMD_PRINT + MENUITEM "&Ustawienia strony...", CMD_PAGE_SETUP + MENUITEM "Ustawienia &drukarki...", CMD_PRINTER_SETUP + MENUITEM SEPARATOR + MENUITEM "Zako&cz", CMD_EXIT + } +POPUP "&Edycja" { + MENUITEM "&Cofnij\tCtrl+Z", CMD_UNDO + MENUITEM SEPARATOR + MENUITEM "&Wytnij\tCtrl+X", CMD_CUT + MENUITEM "&Kopiuj\tCtrl+C", CMD_COPY + MENUITEM "Wkl&ej\tCtrl+V", CMD_PASTE + MENUITEM "&Usu\tDel", CMD_DELETE + MENUITEM SEPARATOR + MENUITEM "Zaznacz w&szystko\tCtrl+A", CMD_SELECT_ALL + MENUITEM "Godzina/&Data\tF5", CMD_TIME_DATE + MENUITEM SEPARATOR + MENUITEM "&Zawijanie wierszy", CMD_WRAP + MENUITEM "Czci&onka...", CMD_FONT + } +POPUP "&Znajd" { + MENUITEM "&Znajd\tCtrl+F", CMD_SEARCH + MENUITEM "Z&najd nastpny\tF3", CMD_SEARCH_NEXT + } +POPUP "Pomo&c" { + MENUITEM "&Tematy pomocy", CMD_HELP_CONTENTS + MENUITEM "&Szukaj...", CMD_HELP_SEARCH + MENUITEM "&Pomoc", CMD_HELP_ON_HELP + MENUITEM SEPARATOR + POPUP "In&fo..." { + MENUITEM "&Licencja", CMD_LICENSE + MENUITEM "&BEZ GWARANCJI", CMD_NO_WARRANTY + MENUITEM "&O Wine...", CMD_ABOUT_WINE + } + } +} + +/* Dialog `Page setup' */ + +DIALOG_PAGESETUP DIALOG 0, 0, 225, 95 +STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU +FONT 8, "MS Shell Dlg" +CAPTION "Ustawienia strony" +{ +LTEXT "&Nagwek:", 0x140, 10, 07, 40, 15 +EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP +LTEXT "&Stopka:", 0x142, 10, 24, 40, 15 +EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP + +GROUPBOX "&Marginesy:", 0x144, 10, 43,160, 45 +LTEXT "&Lewy:", 0x145, 20, 55, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Grny:", 0x148, 20, 73, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "P&rawy:", 0x14B, 100, 55, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Dolny:", 0x14E,100, 73, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP + +DEFPUSHBUTTON "OK", 0x151, 180, 3, 40, 15, WS_TABSTOP +PUSHBUTTON "Anuluj", 0x152, 180, 21, 40, 15, WS_TABSTOP +PUSHBUTTON "&Pomoc", 0x153, 180, 39, 40, 15, WS_TABSTOP +} + +STRINGTABLE DISCARDABLE +{ +STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */ +STRING_PAGESETUP_FOOTERVALUE, "Strona &s" /* FIXME */ +STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */ +STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */ +STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */ +STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */ + +STRING_NOTEPAD, "Notatnik" +STRING_ERROR, "BD" +STRING_WARNING, "OSTRZEENIE" +STRING_INFO, "Informacja" + +STRING_UNTITLED, "(bez tytuu)" + +STRING_ALL_FILES, "Wszystkie piki (*.*)" +STRING_TEXT_FILES_TXT, "Pliki tekstowe (*.txt)" + +STRING_TOOLARGE, "Plik '%s' jest za duy dla notatnika.\n \ +Prosz uy innego edytora." +STRING_NOTEXT, "Nie wprowadzie adnego tekstu. \ +\nProsz co wpisa i sprbowa ponownie." +STRING_DOESNOTEXIST, "Plik '%s' nie istnieje\n\n \ +Czy chcesz utworzy nowy plik ?" +STRING_NOTSAVED, "Plik '%s'\nzosta zmodyfikowany\n\n \ +Czy chcesz zachowa zmiany ?" +STRING_NOTFOUND, "Nie mona odnale '%s'." +STRING_OUT_OF_MEMORY, "Za mao pamici do wykonania tego zadania.\n \ +Zamknij jedn lub wicej aplikacji aby zwikszy ilo wolnej pamici." + +} diff --git a/reactos/subsys/system/notepad/Pt.rc b/reactos/subsys/system/notepad/Pt.rc new file mode 100644 index 00000000000..111e8756cc7 --- /dev/null +++ b/reactos/subsys/system/notepad/Pt.rc @@ -0,0 +1,129 @@ +/* + * Notepad + * Portuguese Language Support + * + * Copyright 1999 Marcel Baur + * Copyright 2002 Sylvain Petreolle + * Copyright 2003 Marcelo Duarte + * + * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +LANGUAGE LANG_PORTUGUESE, SUBLANG_DEFAULT + +MAIN_MENU MENU +{ + POPUP "&Arquivo" { + MENUITEM "&Novo...", CMD_NEW + MENUITEM "A&brir", CMD_OPEN + MENUITEM "&Salvar", CMD_SAVE + MENUITEM "Salvar &como...", CMD_SAVE_AS + MENUITEM SEPARATOR + MENUITEM "&Imprimir", CMD_PRINT + MENUITEM "C&onfigurar pgina...", CMD_PAGE_SETUP + MENUITEM "Configurar i&mpressora...", CMD_PRINTER_SETUP + MENUITEM SEPARATOR + MENUITEM "Sai&r", CMD_EXIT + } +POPUP "&Editar" { + MENUITEM "&Desfazer\tCtrl+Z", CMD_UNDO + MENUITEM SEPARATOR + MENUITEM "&Recortar\tCtrl+X", CMD_CUT + MENUITEM "&Copiar\tCtrl+C", CMD_COPY + MENUITEM "C&olar\tCtrl+V", CMD_PASTE + MENUITEM "E&xcluir\tDel", CMD_DELETE + MENUITEM SEPARATOR + MENUITEM "Selecionar &tudo", CMD_SELECT_ALL + MENUITEM "&Data/Hora\tF5", CMD_TIME_DATE + MENUITEM SEPARATOR + MENUITEM "&Quebrar automtica de linha", CMD_WRAP + MENUITEM "&Fonte...", CMD_FONT + } +POPUP "&Pesquisa" { + MENUITEM "&Localizar...", CMD_SEARCH + MENUITEM "Localizar &prxima\tF3", CMD_SEARCH_NEXT + } +POPUP "&Ajuda" { + MENUITEM "&Contedo", CMD_HELP_CONTENTS + MENUITEM "&Procurar...", CMD_HELP_SEARCH + MENUITEM "&Ajuda na ajuda", CMD_HELP_ON_HELP + MENUITEM SEPARATOR + POPUP "&Informaes..." { + MENUITEM "&Licena", CMD_LICENSE + MENUITEM "&SEM GARANTIA", CMD_NO_WARRANTY + MENUITEM "&Sobre o Wine", CMD_ABOUT_WINE + } + } +} + +/* Dialog `Page setup' */ + +DIALOG_PAGESETUP DIALOG 0, 0, 225, 95 +STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU +FONT 8, "MS Shell Dlg" +CAPTION "Configurar pgina" +{ +LTEXT "&Cabealho:", 0x140, 10, 07, 40, 15 +EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP +LTEXT "&Rodap:", 0x142, 10, 24, 40, 15 +EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP + +GROUPBOX "&Margens:", 0x144, 10, 43,160, 45 +LTEXT "&Esquerda:", 0x145, 20, 55, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Superior:", 0x148, 20, 73, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Direita:", 0x14B, 100, 55, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Inferior:", 0x14E,100, 73, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP + +DEFPUSHBUTTON "OK", 0x151, 180, 3, 40, 15, WS_TABSTOP +PUSHBUTTON "Cancelar", 0x152, 180, 21, 40, 15, WS_TABSTOP +PUSHBUTTON "&Ajuda", 0x153, 180, 39, 40, 15, WS_TABSTOP +} + +STRINGTABLE DISCARDABLE +{ +STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */ +STRING_PAGESETUP_FOOTERVALUE, "Pgina &s" /* FIXME */ +STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */ +STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */ +STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */ +STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */ + +STRING_NOTEPAD, "Notepad" +STRING_ERROR, "ERRO" +STRING_WARNING, "AVISO" +STRING_INFO, "Informao" + +STRING_UNTITLED, "(sem nome)" + +STRING_ALL_FILES, "Todos os arquivos (*.*)" +STRING_TEXT_FILES_TXT, "Arquivos texto (*.txt)" + +STRING_TOOLARGE, "Arquivo '%s' muito longo para o notepad.\n \ +Por favor use um editor diferente." +STRING_NOTEXT, "Voc no digitou nenhum texto. \ +\nPor favor digite alguma coisa e tente novamente" +STRING_DOESNOTEXIST, "Arquivo '%s'\nno existe\n\n \ +Voc deseja criar um novo arquivo?" +STRING_NOTSAVED, "Arquivo '%s'\nfoi modificado\n\n \ +Gostaria de salvar as alteraes?" +STRING_NOTFOUND, "'%s' no pode ser encontrado." +STRING_OUT_OF_MEMORY, "No h memria suficiente para completar essa \ +tarefa. \nFeche uma ou mais aplicaes para aumentar a quantidade de memria livre." + +} diff --git a/reactos/subsys/system/notepad/Ru.rc b/reactos/subsys/system/notepad/Ru.rc new file mode 100644 index 00000000000..cbce8d1ba33 --- /dev/null +++ b/reactos/subsys/system/notepad/Ru.rc @@ -0,0 +1,124 @@ +/* + * Notepad (Russian resources) + * + * Copyright 2003 Igor Stepin + * + * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +MAIN_MENU MENU LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT +{ + POPUP "&" { + MENUITEM "&", CMD_NEW + MENUITEM "&...", CMD_OPEN + MENUITEM "&", CMD_SAVE + MENUITEM " &...", CMD_SAVE_AS + MENUITEM SEPARATOR + MENUITEM "& ...", CMD_PAGE_SETUP + MENUITEM "& ...", CMD_PRINTER_SETUP + MENUITEM "&", CMD_PRINT + MENUITEM SEPARATOR + MENUITEM "&", CMD_EXIT + } +POPUP "&" { + MENUITEM "&\tCtrl+Z", CMD_UNDO + MENUITEM SEPARATOR + MENUITEM "&\tCtrl+X", CMD_CUT + MENUITEM "&\tCtrl+C", CMD_COPY + MENUITEM "&\tCtrl+V", CMD_PASTE + MENUITEM "&\tDel", CMD_DELETE + MENUITEM SEPARATOR + MENUITEM " &", CMD_SELECT_ALL + MENUITEM "& \tF5", CMD_TIME_DATE + MENUITEM SEPARATOR + MENUITEM "& ", CMD_WRAP + } +POPUP "&" { + MENUITEM "&", CMD_SEARCH + MENUITEM " &\tF3", CMD_SEARCH_NEXT + } +POPUP "&" { + MENUITEM "&", CMD_HELP_CONTENTS + MENUITEM "&...", CMD_HELP_SEARCH + MENUITEM "& ", CMD_HELP_ON_HELP + MENUITEM SEPARATOR + POPUP "&..." { + MENUITEM "&", CMD_LICENSE + MENUITEM "& ", CMD_NO_WARRANTY + MENUITEM "&O Wine", CMD_ABOUT_WINE + } + } +} + +/* Dialog `Page setup' */ + +DIALOG_PAGESETUP DIALOG 0, 0, 225, 95 +LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT +STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU +FONT 8, "MS Shell Dlg" +CAPTION " " +{ +LTEXT "& :", 0x140, 10, 07, 40, 15 +EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP +LTEXT "& :", 0x142, 10, 24, 40, 15 +EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP + +GROUPBOX " ():", 0x144, 10, 43,160, 45 +LTEXT "&:", 0x145, 20, 55, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&:", 0x148, 20, 73, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&:", 0x14B, 100, 55, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&:", 0x14E,100, 73, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP + +DEFPUSHBUTTON "OK", 0x151, 180, 3, 40, 15, WS_TABSTOP +PUSHBUTTON "", 0x152, 180, 21, 40, 15, WS_TABSTOP +PUSHBUTTON "&", 0x153, 180, 39, 40, 15, WS_TABSTOP +} + +STRINGTABLE DISCARDABLE LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT +{ +STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */ +STRING_PAGESETUP_FOOTERVALUE, " &s" /* FIXME */ +STRING_PAGESETUP_LEFTVALUE, "20 " /* FIXME */ +STRING_PAGESETUP_RIGHTVALUE, "20 " /* FIXME */ +STRING_PAGESETUP_TOPVALUE, "25 " /* FIXME */ +STRING_PAGESETUP_BOTTOMVALUE, "25 " /* FIXME */ + +STRING_NOTEPAD, "" +STRING_ERROR, "" +STRING_WARNING, "" +STRING_INFO, "" + +STRING_UNTITLED, "( )" + +STRING_ALL_FILES, " (*.*)" +STRING_TEXT_FILES_TXT, " (*.txt)" + +STRING_TOOLARGE, " '%s' .\n \ + ." +STRING_NOTEXT, " . \ +\n - ." +STRING_DOESNOTEXIST, " '%s'\n \n\n \ + ?" +STRING_NOTSAVED, " '%s'\n \n\n \ + ?" +STRING_NOTFOUND, "'%s' ." +STRING_OUT_OF_MEMORY, " \ +\n ." + +} diff --git a/reactos/subsys/system/notepad/Si.rc b/reactos/subsys/system/notepad/Si.rc new file mode 100644 index 00000000000..f97187731ff --- /dev/null +++ b/reactos/subsys/system/notepad/Si.rc @@ -0,0 +1,125 @@ +/* + * Notepad (Slovenian resources) + * + * Copyright 2002-2003 Rok Mandeljc + * + * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +LANGUAGE LANG_SLOVENIAN, SUBLANG_DEFAULT + +MAIN_MENU MENU +{ + POPUP "&Datoteka" { + MENUITEM "&Nova", CMD_NEW + MENUITEM "&Odpri ...", CMD_OPEN + MENUITEM "&Shrani", CMD_SAVE + MENUITEM "Shrani &kot ...", CMD_SAVE_AS + MENUITEM SEPARATOR + MENUITEM "Na&tisni", CMD_PRINT + MENUITEM "P&riprava strani ...", CMD_PAGE_SETUP + MENUITEM "&Tiskalnik ...", CMD_PRINTER_SETUP + MENUITEM SEPARATOR + MENUITEM "Iz&hod", CMD_EXIT + } +POPUP "&Urejanje" { + MENUITEM "&Razveljavi\tCtrl+Z", CMD_UNDO + MENUITEM SEPARATOR + MENUITEM "&Izrei\tCtrl+X", CMD_CUT + MENUITEM "&Kopiraj\tCtrl+C", CMD_COPY + MENUITEM "&Prilepi\tCtrl+V", CMD_PASTE + MENUITEM "Izbri&i\tDel", CMD_DELETE + MENUITEM SEPARATOR + MENUITEM "Izberi &vse", CMD_SELECT_ALL + MENUITEM "as/&Datum\tF5", CMD_TIME_DATE + MENUITEM SEPARATOR + MENUITEM "Pr&elom vrstice", CMD_WRAP + } +POPUP "&Iskanje" { + MENUITEM "&Najdi ...", CMD_SEARCH + MENUITEM "Na&daljuj iskanje\tF3", CMD_SEARCH_NEXT + } +POPUP "&Pomo" { + MENUITEM "&Teme pomoi", CMD_HELP_CONTENTS + MENUITEM "&Najdi ...", CMD_HELP_SEARCH + MENUITEM "&O pomoi", CMD_HELP_ON_HELP + MENUITEM SEPARATOR + POPUP "Inf&ormacije ..." { + MENUITEM "&Licenna pogodba", CMD_LICENSE + MENUITEM "&BREZ GARANCIJE", CMD_NO_WARRANTY + MENUITEM "&O Wine", CMD_ABOUT_WINE + } + } +} + +/* Dialog `Page setup' */ + +DIALOG_PAGESETUP DIALOG 0, 0, 225, 95 +STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU +FONT 8, "MS Shell Dlg" +CAPTION "Page Setup" +{ +LTEXT "&Glava:", 0x140, 10, 07, 40, 15 +EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP +LTEXT "&Noga:", 0x142, 10, 24, 40, 15 +EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP + +GROUPBOX "Robovi", 0x144, 10, 43,160, 45 +LTEXT "&Levo:", 0x145, 20, 55, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Desno:", 0x148, 20, 73, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Zgoraj:", 0x14B, 100, 55, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Spodaj:", 0x14E,100, 73, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP + +DEFPUSHBUTTON "V redu", 0x151, 180, 3, 40, 15, WS_TABSTOP +PUSHBUTTON "Preklii", 0x152, 180, 21, 40, 15, WS_TABSTOP +PUSHBUTTON "&Pomo", 0x153, 180, 39, 40, 15, WS_TABSTOP +} + +STRINGTABLE DISCARDABLE +{ +STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */ +STRING_PAGESETUP_FOOTERVALUE, "Stran &s" /* FIXME */ +STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */ +STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */ +STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */ +STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */ + +STRING_NOTEPAD, "Belenica" +STRING_ERROR, "NAPAKA" +STRING_WARNING, "OPOZORILO" +STRING_INFO, "Informacija" + +STRING_UNTITLED, "Neimenovana" + +STRING_ALL_FILES, "Vse datoteke (*.*)" +STRING_TEXT_FILES_TXT, "Datoteke z besedilom (*.txt)" + +STRING_TOOLARGE, "Datoteka '%s' je prevelika za Belenico.\n \ +Uporabite drug urejevalnik." +STRING_NOTEXT, "Niste vnesli besedila. \ +\nVnesite besedilo in poskusite znova." +STRING_DOESNOTEXIST, "Datoteka '%s' ne obstaja.\n\n \ +Ali elite ustvariti novo datoteko?" +STRING_NOTSAVED, "Vsebina datoteke '%s'je bila spremenjena.\n\n \ +Ali elite shraniti spremembe?" +STRING_NOTFOUND, "Ni mogoe najti '%s'." +STRING_OUT_OF_MEMORY, "Na voljo ni dovolj pomnilnika, da bi bilo mogoe dokonati to \ +operacijo. \ne ga elite sprostiti, konajte enega ali ve programov in poskusite znova. " + +} diff --git a/reactos/subsys/system/notepad/Sk.rc b/reactos/subsys/system/notepad/Sk.rc new file mode 100644 index 00000000000..f54bdbc9a1b --- /dev/null +++ b/reactos/subsys/system/notepad/Sk.rc @@ -0,0 +1,127 @@ +/* + * Notepad (Slovak resources) + * + * Copyright 1997,98 Marcel Baur + * Proofread 1998 by David Lee Lambert + * Copyright 2002 Sylvain Petreolle + * + * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +LANGUAGE LANG_SLOVAK, SUBLANG_DEFAULT + +MAIN_MENU MENU +{ + POPUP "&File" { + MENUITEM "&New...", CMD_NEW + MENUITEM "&Open", CMD_OPEN + MENUITEM "&Save", CMD_SAVE + MENUITEM "Save &as...", CMD_SAVE_AS + MENUITEM "&Print", CMD_PRINT + MENUITEM "Page Se&tup...", CMD_PAGE_SETUP + MENUITEM "P&rinter Setup...", CMD_PRINTER_SETUP + MENUITEM SEPARATOR + MENUITEM "&Exit", CMD_EXIT + } +POPUP "&Edit" { + MENUITEM "&Undo\tCtrl+Z", CMD_UNDO + MENUITEM SEPARATOR + MENUITEM "Cu&t\tCtrl+X", CMD_CUT + MENUITEM "&Copy\tCtrl+C", CMD_COPY + MENUITEM "&Paste\tCtrl+V", CMD_PASTE + MENUITEM "&Delete\tDel", CMD_DELETE + MENUITEM SEPARATOR + MENUITEM "Select &all", CMD_SELECT_ALL + MENUITEM "&Time/Date\tF5", CMD_TIME_DATE + MENUITEM SEPARATOR + MENUITEM "&Wrap long lines", CMD_WRAP + } +POPUP "&Search" { + MENUITEM "&Search", CMD_SEARCH + MENUITEM "&Search next\tF3", CMD_SEARCH_NEXT + } +POPUP "&Help" { + MENUITEM "&Contents", CMD_HELP_CONTENTS + MENUITEM "&Search...", CMD_HELP_SEARCH + MENUITEM "&Help on help", CMD_HELP_ON_HELP + MENUITEM SEPARATOR + POPUP "Inf&o..." { + MENUITEM "&License", CMD_LICENSE + MENUITEM "&NO WARRANTY", CMD_NO_WARRANTY + MENUITEM "&About Wine", CMD_ABOUT_WINE + } + } +} + +/* Dialog `Page setup' */ + +DIALOG_PAGESETUP DIALOG 0, 0, 225, 95 +STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU +FONT 8, "MS Shell Dlg" +CAPTION "Page Setup" +{ +LTEXT "&Header:", 0x140, 10, 07, 40, 15 +EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP +LTEXT "&Footer:", 0x142, 10, 24, 40, 15 +EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP + +GROUPBOX "&Margins:", 0x144, 10, 43,160, 45 +LTEXT "&Left:", 0x145, 20, 55, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Top:", 0x148, 20, 73, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Right:", 0x14B, 100, 55, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Bottom:", 0x14E,100, 73, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP + +DEFPUSHBUTTON "OK", 0x151, 180, 3, 40, 15, WS_TABSTOP +PUSHBUTTON "Cancel", 0x152, 180, 21, 40, 15, WS_TABSTOP +PUSHBUTTON "&Help", 0x153, 180, 39, 40, 15, WS_TABSTOP +} + +STRINGTABLE DISCARDABLE +{ +STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */ +STRING_PAGESETUP_FOOTERVALUE, "Page &s" /* FIXME */ +STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */ +STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */ +STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */ +STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */ + +STRING_NOTEPAD, "Notepad" +STRING_ERROR, "ERROR" +STRING_WARNING, "WARNING" +STRING_INFO, "Information" + +STRING_UNTITLED, "(untitled)" + +STRING_ALL_FILES, "All files (*.*)" +STRING_TEXT_FILES_TXT, "Text files (*.txt)" + +STRING_TOOLARGE, "File '%s' is too large for notepad.\n \ +Please use a different editor." +STRING_NOTEXT, "You didn't enter any text. \ +\nPlease type something and try again" +STRING_DOESNOTEXIST, "File '%s'\ndoes not exist\n\n \ +Do you want to create a new file ?" +STRING_NOTSAVED, "File '%s'\nhas been modified\n\n \ +Would you like to save the changes ?" +STRING_NOTFOUND, "'%s' can not be found." +STRING_OUT_OF_MEMORY, "Not enough memory to complete this \ +task. \nClose one or more applications to increase the amount of \nfree \ +memory." + +} diff --git a/reactos/subsys/system/notepad/Sw.rc b/reactos/subsys/system/notepad/Sw.rc new file mode 100644 index 00000000000..c582eebc77d --- /dev/null +++ b/reactos/subsys/system/notepad/Sw.rc @@ -0,0 +1,127 @@ +/* + * Notepad (Swedish resources) + * + * Copyright 1997,98 Marcel Baur + * Proofread 1998 by David Lee Lambert + * Copyright 2002 Sylvain Petreolle + * + * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +LANGUAGE LANG_SWEDISH, SUBLANG_DEFAULT + +MAIN_MENU MENU +{ + POPUP "&Arkiv" { + MENUITEM "&Ny...", CMD_NEW + MENUITEM "&ppna", CMD_OPEN + MENUITEM "&Spara", CMD_SAVE + MENUITEM "Spara &som...", CMD_SAVE_AS + MENUITEM "&Skriv ut", CMD_PRINT + MENUITEM "Sid La&yout...", CMD_PAGE_SETUP + MENUITEM "Skrivar &instllningar...", CMD_PRINTER_SETUP + MENUITEM SEPARATOR + MENUITEM "&Avsluta", CMD_EXIT + } +POPUP "&Redigera" { + MENUITEM "&Undo\tCtrl+Z", CMD_UNDO + MENUITEM SEPARATOR + MENUITEM "Klippa\tCtrl+X", CMD_CUT + MENUITEM "&Kopiera\tCtrl+C", CMD_COPY + MENUITEM "&Klistra in\tCtrl+V", CMD_PASTE + MENUITEM "&Ta bort\tDel", CMD_DELETE + MENUITEM SEPARATOR + MENUITEM "Markera &allt", CMD_SELECT_ALL + MENUITEM "&Tid/Datum\tF5", CMD_TIME_DATE + MENUITEM SEPARATOR + MENUITEM "&Dela lnga meningar", CMD_WRAP + } +POPUP "&Sk" { + MENUITEM "Sk...", CMD_SEARCH + MENUITEM "&Sk nsta\tF3", CMD_SEARCH_NEXT + } +POPUP "&Hjlp" { + MENUITEM "&Innehll", CMD_HELP_CONTENTS + MENUITEM "&Sk...", CMD_HELP_SEARCH + MENUITEM "Anvndningen &av hjlp", CMD_HELP_ON_HELP + MENUITEM SEPARATOR + POPUP "Inf&ormation..." { + MENUITEM "&Licens", CMD_LICENSE + MENUITEM "&INGEN GARANTI", CMD_NO_WARRANTY + MENUITEM "&Om Wine", CMD_ABOUT_WINE + } + } +} + +/* Dialog `Page setup' */ + +DIALOG_PAGESETUP DIALOG 0, 0, 225, 95 +STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU +FONT 8, "MS Shell Dlg" +CAPTION "Sid Layout" +{ +LTEXT "&Huvudnot:", 0x140, 10, 07, 40, 15 +EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP +LTEXT "&Fotnot:", 0x142, 10, 24, 40, 15 +EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP + +GROUPBOX "Kanter:", 0x144, 10, 43,160, 45 +LTEXT "&Vnster:", 0x145, 20, 55, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&ver:", 0x148, 20, 73, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Hger:", 0x14B, 100, 55, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Under:", 0x14E,100, 73, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP + +DEFPUSHBUTTON "OK", 0x151, 180, 3, 40, 15, WS_TABSTOP +PUSHBUTTON "Avbryt", 0x152, 180, 21, 40, 15, WS_TABSTOP +PUSHBUTTON "&Hjlp", 0x153, 180, 39, 40, 15, WS_TABSTOP +} + +STRINGTABLE DISCARDABLE +{ +STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */ +STRING_PAGESETUP_FOOTERVALUE, "Page &s" /* FIXME */ +STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */ +STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */ +STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */ +STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */ + +STRING_NOTEPAD, "Anteckningar" +STRING_ERROR, "FEL" +STRING_WARNING, "WARNING" +STRING_INFO, "Information" + +STRING_UNTITLED, "(untitled)" + +STRING_ALL_FILES, "Alla filer (*.*)" +STRING_TEXT_FILES_TXT, "Text filer (*.txt)" + +STRING_TOOLARGE, "Filen '%s' r fr stor fr notepad.\n \ +Anvnd en annan editor." +STRING_NOTEXT, "Du skrev inte in ngon text. \ +\nSkriv ngot och frsk sedan igen" +STRING_DOESNOTEXIST, "File '%s'\ndoes not exist\n\n \ +Do you want to create a new file ?" +STRING_NOTSAVED, "File '%s'\nhas been modified\n\n \ +Would you like to save the changes ?" +STRING_NOTFOUND, "'%s' hittades inte." +STRING_OUT_OF_MEMORY, "Inte tillrkligt med minne fr att slutfra \ +den hr uppgiften. \nAvsluta ett eller flera program fr att ka mngden \nfritt \ +minne." + +} diff --git a/reactos/subsys/system/notepad/Th.rc b/reactos/subsys/system/notepad/Th.rc new file mode 100644 index 00000000000..415d934bfc4 --- /dev/null +++ b/reactos/subsys/system/notepad/Th.rc @@ -0,0 +1,121 @@ +/* + * Notepad (Thai Resources) + * + * Copyright 2003 Jon Griffiths + * + * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +LANGUAGE LANG_THAI, SUBLANG_DEFAULT + +MAIN_MENU MENU +{ + POPUP "" { + MENUITEM "ҧ...", CMD_NEW + MENUITEM "Դ...\tCtrl+O", CMD_OPEN + MENUITEM "ѹס\tCtrl+S", CMD_SAVE + MENUITEM "ѹס...", CMD_SAVE_AS + MENUITEM SEPARATOR + MENUITEM "", CMD_PRINT + MENUITEM "Ѻ˹...", CMD_PAGE_SETUP + MENUITEM "Ѻͧ...", CMD_PRINTER_SETUP + MENUITEM SEPARATOR + MENUITEM "͡", CMD_EXIT + } + POPUP "" { + MENUITEM "¡׹\tCtrl+Z", CMD_UNDO + MENUITEM SEPARATOR + MENUITEM "Ѵ\tCtrl+X", CMD_CUT + MENUITEM "Ѵ͡\tCtrl+C", CMD_COPY + MENUITEM "ҧ\tCtrl+V", CMD_PASTE + MENUITEM "ź\tDel", CMD_DELETE + MENUITEM SEPARATOR + MENUITEM "͡\tCtrl+A", CMD_SELECT_ALL + MENUITEM "ѹ/\tF5", CMD_TIME_DATE + MENUITEM SEPARATOR + MENUITEM "ͺ÷Ѵ", CMD_WRAP + MENUITEM "ٻẺѡ...", CMD_FONT + } + POPUP "ѹ" { + MENUITEM "\tCtrl+F", CMD_SEARCH + MENUITEM "ҵ\tF3", CMD_SEARCH_NEXT + } + POPUP "" { + MENUITEM "", CMD_HELP_CONTENTS + MENUITEM "...", CMD_HELP_SEARCH + MENUITEM "ǡѺ", CMD_HELP_ON_HELP + MENUITEM SEPARATOR + POPUP "´..." { + MENUITEM "͹حҵ", CMD_LICENSE + MENUITEM " WARRANTY", CMD_NO_WARRANTY + MENUITEM "ǡѺ Wine... ", CMD_ABOUT_WINE + } + } +} + +/* Dialog `Page setup' */ + +DIALOG_PAGESETUP DIALOG 0, 0, 225, 95 +STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU +FONT 8, "MS Shell Dlg" +CAPTION "Ѻ˹" +{ +LTEXT ":", 0x140, 10, 07, 40, 15 +EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP +LTEXT "&Footer:", 0x142, 10, 24, 40, 15 +EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP + +GROUPBOX "ͺд:", 0x144, 10, 43,160, 45 +LTEXT ":", 0x145, 20, 55, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT ":", 0x148, 20, 73, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT ":", 0x14B, 100, 55, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "ҧ:", 0x14E,100, 73, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP + +DEFPUSHBUTTON "ŧ", 0x151, 180, 3, 40, 15, WS_TABSTOP +PUSHBUTTON "¡ԡ", 0x152, 180, 21, 40, 15, WS_TABSTOP +PUSHBUTTON "", 0x153, 180, 39, 40, 15, WS_TABSTOP +} + +STRINGTABLE DISCARDABLE +{ +STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */ +STRING_PAGESETUP_FOOTERVALUE, "˹ &s" /* FIXME */ +STRING_PAGESETUP_LEFTVALUE, "20 ." /* FIXME */ +STRING_PAGESETUP_RIGHTVALUE, "20 ." /* FIXME */ +STRING_PAGESETUP_TOPVALUE, "25 ." /* FIXME */ +STRING_PAGESETUP_BOTTOMVALUE, "25 ." /* FIXME */ + +STRING_NOTEPAD, "Notepad" +STRING_ERROR, "Դ" +STRING_WARNING, "ҵ͹" +STRING_INFO, "´" + +STRING_UNTITLED, "˹" + +STRING_ALL_FILES, "ء (*.*)" +STRING_TEXT_FILES_TXT, " (*.txt)" + +STRING_TOOLARGE, " '%s' ˭Թ" +STRING_NOTEXT, "س¹\nسͧ" +STRING_DOESNOTEXIST, "辺 '%s' ͧԴ\nسͧҧ ?" +STRING_NOTSAVED, "ա¹ŧѺ͡\n\n'%s'\n\nسͧúѹ֡ѹ ?" +STRING_NOTFOUND, "辺ͤ '%s' ͧä" +STRING_OUT_OF_MEMORY, "\nسͧ" + +} diff --git a/reactos/subsys/system/notepad/Wa.rc b/reactos/subsys/system/notepad/Wa.rc new file mode 100644 index 00000000000..440d6b8213f --- /dev/null +++ b/reactos/subsys/system/notepad/Wa.rc @@ -0,0 +1,130 @@ +/* + * Notepad (Walon resources) + * + * Copyright 1997,98 Marcel Baur + * Proofread 1998 by David Lee Lambert + * Copyright 2002 Sylvain Petreolle + * + * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#ifdef LANG_WALON + +LANGUAGE LANG_WALON, SUBLANG_DEFAULT + +MAIN_MENU MENU +{ + POPUP "&Fitch" { + MENUITEM "&Novea...", CMD_NEW + MENUITEM "&Drov", CMD_OPEN + MENUITEM "&Schaper", CMD_SAVE + MENUITEM "Schaper t r&lomer...", CMD_SAVE_AS + MENUITEM "&Rexhe", CMD_PRINT + MENUITEM "Arrandjmint del &Pdje...", CMD_PAGE_SETUP + MENUITEM "&Apontiaedje del scrirece...", CMD_PRINTER_SETUP + MENUITEM SEPARATOR + MENUITEM "Mouss &Fo", CMD_EXIT + } +POPUP "&Candj" { + MENUITEM "&Disf\tCtrl+Z", CMD_UNDO + MENUITEM SEPARATOR + MENUITEM "C&per\tCtrl+X", CMD_CUT + MENUITEM "&Copy\tCtrl+C", CMD_COPY + MENUITEM "C&laper\tCtrl+V", CMD_PASTE + MENUITEM "&Rafacer\tDel", CMD_DELETE + MENUITEM SEPARATOR + MENUITEM "&Tchwezi totafwait", CMD_SELECT_ALL + MENUITEM "&Eure/Date\tF5", CMD_TIME_DATE + MENUITEM SEPARATOR + MENUITEM "Cper les ro&yes", CMD_WRAP + } +POPUP "C&wer" { + MENUITEM "Cwer...", CMD_SEARCH + MENUITEM "&Shvant\tF3", CMD_SEARCH_NEXT + } +POPUP "&Aide" { + MENUITEM "&dvins", CMD_HELP_CONTENTS + MENUITEM "C&wer...", CMD_HELP_SEARCH + MENUITEM "&Aide so l' Aide", CMD_HELP_ON_HELP + MENUITEM SEPARATOR + POPUP "&Informcion..." { + MENUITEM "&Licinse", CMD_LICENSE + MENUITEM "&NOLE WARANTEYE", CMD_NO_WARRANTY + MENUITEM " &dfait di Wine", CMD_ABOUT_WINE + } + } +} + +/* Dialog `Page setup' */ + +DIALOG_PAGESETUP DIALOG 0, 0, 225, 95 +STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU +FONT 8, "MS Shell Dlg" +CAPTION "Arindjmint del Pdje" +{ +LTEXT "&Tite:", 0x140, 10, 07, 40, 15 +EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP +LTEXT "&Pnote:", 0x142, 10, 24, 40, 15 +EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP + +GROUPBOX "&Mardjes:", 0x144, 10, 43,160, 45 +LTEXT "&Hintche:", 0x145, 20, 55, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Copete:", 0x148, 20, 73, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Droete:", 0x14B, 100, 55, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "&Bas:", 0x14E,100, 73, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP + +DEFPUSHBUTTON "I Va", 0x151, 180, 3, 40, 15, WS_TABSTOP +PUSHBUTTON "Rinonc", 0x152, 180, 21, 40, 15, WS_TABSTOP +PUSHBUTTON "&Aide", 0x153, 180, 39, 40, 15, WS_TABSTOP +} + +STRINGTABLE DISCARDABLE +{ +STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */ +STRING_PAGESETUP_FOOTERVALUE, "Pdje &s" /* FIXME */ +STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */ +STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */ +STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */ +STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */ + +STRING_NOTEPAD, "Notepad" +STRING_ERROR, "AROKE" +STRING_WARNING, "ADVERTIXHMINT" +STRING_INFO, "Informcion" + +STRING_UNTITLED, "(sin tite)" + +STRING_ALL_FILES, "Tos les fitchs (*.*)" +STRING_TEXT_FILES_TXT, "Fitchs tekse (*.txt)" + +STRING_TOOLARGE, "Li fitch '%s' est trop gros pol notepad.\n \ +Eployoz on te aspougneu di tekse." +STRING_NOTEXT, "Vos n' avoz rn sicrt. \ +\nTapez ene sacwe t rasayez" +STRING_DOESNOTEXIST, "File '%s'\ndoes not exist\n\n \ +Do you want to create a new file ?" +STRING_NOTSAVED, "Li fitch '%s'\na candj\n\n \ +El voloz schaper ?" +STRING_NOTFOUND, "'%s' pout nn esse trov." +STRING_OUT_OF_MEMORY, "Li memwere est plinne. \n\ +Cloyoz on programe ou pus po monter li memwere libe." + +} + +#endif /* LANG_WALON */ diff --git a/reactos/subsys/system/notepad/Zh.rc b/reactos/subsys/system/notepad/Zh.rc new file mode 100644 index 00000000000..5ceb2c05fac --- /dev/null +++ b/reactos/subsys/system/notepad/Zh.rc @@ -0,0 +1,123 @@ +/* + * Notepad (Simplified Chinese resources) + * + * Copyright 2002 liuspider + * + * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +MAIN_MENU MENU LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED +{ + POPUP "ļ&F" { + MENUITEM "½&N...", CMD_NEW + MENUITEM "򿪣&O", CMD_OPEN + MENUITEM "棨&S", CMD_SAVE + MENUITEM "Ϊ(&A)...", CMD_SAVE_AS + MENUITEM "ӡ&P", CMD_PRINT + MENUITEM "ҳã&T...", CMD_PAGE_SETUP + MENUITEM "ӡã&R...", CMD_PRINTER_SETUP + MENUITEM SEPARATOR + MENUITEM "˳&E", CMD_EXIT + } +POPUP "༭&E" { + MENUITEM "&U\tCtrl+Z", CMD_UNDO + MENUITEM SEPARATOR + MENUITEM "У&T\tCtrl+X", CMD_CUT + MENUITEM "ƣ&C\tCtrl+C", CMD_COPY + MENUITEM "ճ&P\tCtrl+V", CMD_PASTE + MENUITEM "ɾ&D\tDel", CMD_DELETE + MENUITEM SEPARATOR + MENUITEM "ȫѡ&A", CMD_SELECT_ALL + MENUITEM "ڡʱ䣨&T\tF5", CMD_TIME_DATE + MENUITEM SEPARATOR + MENUITEM "ԶУ&W", CMD_WRAP + } +POPUP "&S" { + MENUITEM "&S", CMD_SEARCH + MENUITEM "һ&S\tF3", CMD_SEARCH_NEXT + } +POPUP "&H" { + MENUITEM "ݣ&C", CMD_HELP_CONTENTS + MENUITEM "&S...", CMD_HELP_SEARCH + MENUITEM "ʹð&H", CMD_HELP_ON_HELP + MENUITEM SEPARATOR + POPUP "Ϣ&O..." { + MENUITEM "ûЭ飨&L", CMD_LICENSE + MENUITEM "޹أ&N", CMD_NO_WARRANTY + MENUITEM " Wine&A", CMD_ABOUT_WINE + } + } +} + +/* Dialog `Page setup' */ + +DIALOG_PAGESETUP DIALOG 0, 0, 225, 95 +LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED +STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU +FONT 10, "MS Shell Dlg" +CAPTION "ҳ" +{ +LTEXT "ҳü&H:", 0x140, 10, 07, 40, 15 +EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP +LTEXT "ע&F:", 0x142, 10, 24, 40, 15 +EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP + +GROUPBOX "Եհף&M", 0x144, 10, 43,160, 45 +LTEXT "&L", 0x145, 20, 55, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "ϣ&T", 0x148, 20, 73, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "ң&R", 0x14B, 100, 55, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP +LTEXT "£&B", 0x14E,100, 73, 30, 10, WS_CHILD +EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP + +DEFPUSHBUTTON "ȷ", 0x151, 180, 3, 40, 15, WS_TABSTOP +PUSHBUTTON "ȡ", 0x152, 180, 21, 40, 15, WS_TABSTOP +PUSHBUTTON "&", 0x153, 180, 39, 40, 15, WS_TABSTOP +} + +STRINGTABLE DISCARDABLE LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED +{ +STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */ +STRING_PAGESETUP_FOOTERVALUE, "Page &s" /* FIXME */ +STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */ +STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */ +STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */ +STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */ + +STRING_NOTEPAD, "±" +STRING_ERROR, "" +STRING_WARNING, "" +STRING_INFO, "Ϣ" + +STRING_UNTITLED, "δ" + +STRING_ALL_FILES, "ļ (*.*)" +STRING_TEXT_FILES_TXT, "ıļ (*.txt)" + +STRING_TOOLARGE, "±ܴ '%s' ôļ\n \ +ʹñı༭" +STRING_NOTEXT, "ûκı \ +\nһЩ" +STRING_DOESNOTEXIST, "ļ '%s'\n\n\n \ +½һļ" +STRING_NOTSAVED, "ļ '%s'\nѸ\n\n \ +Ƿ񱣴ģ" +STRING_NOTFOUND, "Ҳļ '%s'" +STRING_OUT_OF_MEMORY, "û㹻ڴɴ \ +\nرһЩʩڴԡ" + +} diff --git a/reactos/subsys/system/notepad/dialog.c b/reactos/subsys/system/notepad/dialog.c new file mode 100644 index 00000000000..9c352d44b17 --- /dev/null +++ b/reactos/subsys/system/notepad/dialog.c @@ -0,0 +1,720 @@ +/* + * Notepad (dialog.c) + * + * Copyright 1998,99 Marcel Baur + * Copyright 2002 Sylvain Petreolle + * Copyright 2002 Andriy Palamarchuk + * + * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#define UNICODE + +#include +#include +#include +#include + +#include "main.h" +#include "license.h" +#include "dialog.h" + +static const WCHAR helpfileW[] = { 'n','o','t','e','p','a','d','.','h','l','p',0 }; + +static INT_PTR WINAPI DIALOG_PAGESETUP_DlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam); + +VOID ShowLastError(void) +{ + DWORD error = GetLastError(); + if (error != NO_ERROR) + { + LPWSTR lpMsgBuf; + WCHAR szTitle[MAX_STRING_LEN]; + + LoadString(Globals.hInstance, STRING_ERROR, szTitle, SIZEOF(szTitle)); + FormatMessage( + FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM, + NULL, error, 0, + (LPTSTR) &lpMsgBuf, 0, NULL); + MessageBox(NULL, lpMsgBuf, szTitle, MB_OK | MB_ICONERROR); + LocalFree(lpMsgBuf); + } +} + +/** + * Sets the caption of the main window according to Globals.szFileTitle: + * Notepad - (untitled) if no file is open + * Notepad - [filename] if a file is given + */ +static void UpdateWindowCaption(void) +{ + WCHAR szCaption[MAX_STRING_LEN]; + WCHAR szUntitled[MAX_STRING_LEN]; + + LoadString(Globals.hInstance, STRING_NOTEPAD, szCaption, SIZEOF(szCaption)); + + if (Globals.szFileTitle[0] != '\0') { + static const WCHAR bracket_lW[] = { ' ','-',' ','[',0 }; + static const WCHAR bracket_rW[] = { ']',0 }; + lstrcat(szCaption, bracket_lW); + lstrcat(szCaption, Globals.szFileTitle); + lstrcat(szCaption, bracket_rW); + } + else + { + static const WCHAR hyphenW[] = { ' ','-',' ',0 }; + LoadString(Globals.hInstance, STRING_UNTITLED, szUntitled, SIZEOF(szUntitled)); + lstrcat(szCaption, hyphenW); + lstrcat(szCaption, szUntitled); + } + + SetWindowText(Globals.hMainWnd, szCaption); +} + +static void AlertFileNotFound(LPCWSTR szFileName) +{ + WCHAR szMessage[MAX_STRING_LEN]; + WCHAR szResource[MAX_STRING_LEN]; + + /* Load and format szMessage */ + LoadString(Globals.hInstance, STRING_NOTFOUND, szResource, SIZEOF(szResource)); + wsprintf(szMessage, szResource, szFileName); + + /* Load szCaption */ + LoadString(Globals.hInstance, STRING_ERROR, szResource, SIZEOF(szResource)); + + /* Display Modal Dialog */ + MessageBox(Globals.hMainWnd, szMessage, szResource, MB_ICONEXCLAMATION); +} + +static int AlertFileNotSaved(LPCWSTR szFileName) +{ + WCHAR szMessage[MAX_STRING_LEN]; + WCHAR szResource[MAX_STRING_LEN]; + WCHAR szUntitled[MAX_STRING_LEN]; + + LoadString(Globals.hInstance, STRING_UNTITLED, szUntitled, SIZEOF(szUntitled)); + + /* Load and format Message */ + LoadString(Globals.hInstance, STRING_NOTSAVED, szResource, SIZEOF(szResource)); + wsprintf(szMessage, szResource, szFileName[0] ? szFileName : szUntitled); + + /* Load Caption */ + LoadString(Globals.hInstance, STRING_ERROR, szResource, SIZEOF(szResource)); + + /* Display modal */ + return MessageBox(Globals.hMainWnd, szMessage, szResource, MB_ICONEXCLAMATION|MB_YESNOCANCEL); +} + +/** + * Returns: + * TRUE - if file exists + * FALSE - if file does not exist + */ +BOOL FileExists(LPCWSTR szFilename) +{ + WIN32_FIND_DATA entry; + HANDLE hFile; + + hFile = FindFirstFile(szFilename, &entry); + FindClose(hFile); + + return (hFile != INVALID_HANDLE_VALUE); +} + + +static VOID DoSaveFile(VOID) +{ + HANDLE hFile; + DWORD dwNumWrite; + LPSTR pTemp; + DWORD size; + + hFile = CreateFile(Globals.szFileName, GENERIC_WRITE, FILE_SHARE_WRITE, + NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); + if(hFile == INVALID_HANDLE_VALUE) + { + ShowLastError(); + return; + } + + size = GetWindowTextLengthA(Globals.hEdit) + 1; + pTemp = HeapAlloc(GetProcessHeap(), 0, size); + if (!pTemp) + { + CloseHandle(hFile); + ShowLastError(); + return; + } + size = GetWindowTextA(Globals.hEdit, pTemp, size); + + if (!WriteFile(hFile, pTemp, size, &dwNumWrite, NULL)) + ShowLastError(); + else + SendMessage(Globals.hEdit, EM_SETMODIFY, FALSE, 0); + + CloseHandle(hFile); + HeapFree(GetProcessHeap(), 0, pTemp); +} + +/** + * Returns: + * TRUE - User agreed to close (both save/don't save) + * FALSE - User cancelled close by selecting "Cancel" + */ +BOOL DoCloseFile(void) +{ + int nResult; + static const WCHAR empty_strW[] = { 0 }; + + if (SendMessage(Globals.hEdit, EM_GETMODIFY, 0, 0)) + { + /* prompt user to save changes */ + nResult = AlertFileNotSaved(Globals.szFileName); + switch (nResult) { + case IDYES: DIALOG_FileSave(); + break; + + case IDNO: break; + + case IDCANCEL: return(FALSE); + break; + + default: return(FALSE); + break; + } /* switch */ + } /* if */ + + SetFileName(empty_strW); + + UpdateWindowCaption(); + return(TRUE); +} + + +void DoOpenFile(LPCWSTR szFileName) +{ + HANDLE hFile; + LPSTR pTemp; + DWORD size; + DWORD dwNumRead; + + /* Close any files and prompt to save changes */ + if (!DoCloseFile()) + return; + + hFile = CreateFile(szFileName, GENERIC_READ, FILE_SHARE_READ, NULL, + OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); + if(hFile == INVALID_HANDLE_VALUE) + { + ShowLastError(); + return; + } + + size = GetFileSize(hFile, NULL); + if (size == INVALID_FILE_SIZE) + { + CloseHandle(hFile); + ShowLastError(); + return; + } + size++; + + pTemp = HeapAlloc(GetProcessHeap(), 0, size); + if (!pTemp) + { + CloseHandle(hFile); + ShowLastError(); + return; + } + + if (!ReadFile(hFile, pTemp, size, &dwNumRead, NULL)) + { + CloseHandle(hFile); + HeapFree(GetProcessHeap(), 0, pTemp); + ShowLastError(); + return; + } + + CloseHandle(hFile); + pTemp[dwNumRead] = 0; + + if (IsTextUnicode(pTemp, dwNumRead, NULL)) + { + LPWSTR p = (LPWSTR)pTemp; + /* We need to strip BOM Unicode character, SetWindowTextW won't do it for us. */ + if (*p == 0xFEFF || *p == 0xFFFE) p++; + SetWindowTextW(Globals.hEdit, p); + } + else + SetWindowTextA(Globals.hEdit, pTemp); + + HeapFree(GetProcessHeap(), 0, pTemp); + + SendMessage(Globals.hEdit, EM_SETMODIFY, FALSE, 0); + SendMessage(Globals.hEdit, EM_EMPTYUNDOBUFFER, 0, 0); + SetFocus(Globals.hEdit); + + SetFileName(szFileName); + UpdateWindowCaption(); +} + +VOID DIALOG_FileNew(VOID) +{ + static const WCHAR empty_strW[] = { 0 }; + + /* Close any files and promt to save changes */ + if (DoCloseFile()) { + SetWindowText(Globals.hEdit, empty_strW); + SendMessage(Globals.hEdit, EM_EMPTYUNDOBUFFER, 0, 0); + SetFocus(Globals.hEdit); + } +} + +VOID DIALOG_FileOpen(VOID) +{ + OPENFILENAME openfilename; + WCHAR szPath[MAX_PATH]; + WCHAR szDir[MAX_PATH]; + static const WCHAR szDefaultExt[] = { 't','x','t',0 }; + static const WCHAR txt_files[] = { '*','.','t','x','t',0 }; + + ZeroMemory(&openfilename, sizeof(openfilename)); + + GetCurrentDirectory(SIZEOF(szDir), szDir); + lstrcpy(szPath, txt_files); + + openfilename.lStructSize = sizeof(openfilename); + openfilename.hwndOwner = Globals.hMainWnd; + openfilename.hInstance = Globals.hInstance; + openfilename.lpstrFilter = Globals.szFilter; + openfilename.lpstrFile = szPath; + openfilename.nMaxFile = SIZEOF(szPath); + openfilename.lpstrInitialDir = szDir; + openfilename.Flags = OFN_FILEMUSTEXIST | OFN_PATHMUSTEXIST | + OFN_HIDEREADONLY; + openfilename.lpstrDefExt = szDefaultExt; + + + if (GetOpenFileName(&openfilename)) { + if (FileExists(openfilename.lpstrFile)) + DoOpenFile(openfilename.lpstrFile); + else + AlertFileNotFound(openfilename.lpstrFile); + } +} + + +VOID DIALOG_FileSave(VOID) +{ + if (Globals.szFileName[0] == '\0') + DIALOG_FileSaveAs(); + else + DoSaveFile(); +} + +VOID DIALOG_FileSaveAs(VOID) +{ + OPENFILENAME saveas; + WCHAR szPath[MAX_PATH]; + WCHAR szDir[MAX_PATH]; + static const WCHAR szDefaultExt[] = { 't','x','t',0 }; + static const WCHAR txt_files[] = { '*','.','t','x','t',0 }; + + ZeroMemory(&saveas, sizeof(saveas)); + + GetCurrentDirectory(SIZEOF(szDir), szDir); + lstrcpy(szPath, txt_files); + + saveas.lStructSize = sizeof(OPENFILENAME); + saveas.hwndOwner = Globals.hMainWnd; + saveas.hInstance = Globals.hInstance; + saveas.lpstrFilter = Globals.szFilter; + saveas.lpstrFile = szPath; + saveas.nMaxFile = SIZEOF(szPath); + saveas.lpstrInitialDir = szDir; + saveas.Flags = OFN_PATHMUSTEXIST | OFN_OVERWRITEPROMPT | + OFN_HIDEREADONLY; + saveas.lpstrDefExt = szDefaultExt; + + if (GetSaveFileName(&saveas)) { + SetFileName(szPath); + UpdateWindowCaption(); + DoSaveFile(); + } +} + +VOID DIALOG_FilePrint(VOID) +{ + DOCINFO di; + PRINTDLG printer; + SIZE szMetric; + int cWidthPels, cHeightPels, border; + int xLeft, yTop, pagecount, dopage, copycount; + unsigned int i; + LOGFONT hdrFont; + HFONT font, old_font=0; + DWORD size; + LPWSTR pTemp; + static const WCHAR times_new_romanW[] = { 'T','i','m','e','s',' ','N','e','w',' ','R','o','m','a','n',0 }; + + /* Get a small font and print some header info on each page */ + hdrFont.lfHeight = 100; + hdrFont.lfWidth = 0; + hdrFont.lfEscapement = 0; + hdrFont.lfOrientation = 0; + hdrFont.lfWeight = FW_BOLD; + hdrFont.lfItalic = 0; + hdrFont.lfUnderline = 0; + hdrFont.lfStrikeOut = 0; + hdrFont.lfCharSet = ANSI_CHARSET; + hdrFont.lfOutPrecision = OUT_DEFAULT_PRECIS; + hdrFont.lfClipPrecision = CLIP_DEFAULT_PRECIS; + hdrFont.lfQuality = PROOF_QUALITY; + hdrFont.lfPitchAndFamily = VARIABLE_PITCH | FF_ROMAN; + lstrcpy(hdrFont.lfFaceName, times_new_romanW); + + font = CreateFontIndirect(&hdrFont); + + /* Get Current Settings */ + ZeroMemory(&printer, sizeof(printer)); + printer.lStructSize = sizeof(printer); + printer.hwndOwner = Globals.hMainWnd; + printer.hInstance = Globals.hInstance; + + /* Set some default flags */ + printer.Flags = PD_RETURNDC; + printer.nFromPage = 0; + printer.nMinPage = 1; + /* we really need to calculate number of pages to set nMaxPage and nToPage */ + printer.nToPage = 0; + printer.nMaxPage = -1; + + /* Let commdlg manage copy settings */ + printer.nCopies = (WORD)PD_USEDEVMODECOPIES; + + if (!PrintDlg(&printer)) return; + + assert(printer.hDC != 0); + + /* initialize DOCINFO */ + di.cbSize = sizeof(DOCINFO); + di.lpszDocName = Globals.szFileTitle; + di.lpszOutput = NULL; + di.lpszDatatype = NULL; + di.fwType = 0; + + if (StartDoc(printer.hDC, &di) <= 0) return; + + /* Get the page dimensions in pixels. */ + cWidthPels = GetDeviceCaps(printer.hDC, HORZRES); + cHeightPels = GetDeviceCaps(printer.hDC, VERTRES); + + /* Get the file text */ + size = GetWindowTextLength(Globals.hEdit) + 1; + pTemp = HeapAlloc(GetProcessHeap(), 0, size * sizeof(WCHAR)); + if (!pTemp) + { + ShowLastError(); + return; + } + size = GetWindowText(Globals.hEdit, pTemp, size); + + border = 150; + for (copycount=1; copycount <= printer.nCopies; copycount++) { + i = 0; + pagecount = 1; + do { + static const WCHAR letterM[] = { 'M',0 }; + + if (pagecount >= printer.nFromPage && + /* ((printer.Flags & PD_PAGENUMS) == 0 || pagecount <= printer.nToPage))*/ + pagecount <= printer.nToPage) + dopage = 1; + else + dopage = 0; + + old_font = SelectObject(printer.hDC, font); + GetTextExtentPoint32(printer.hDC, letterM, 1, &szMetric); + + if (dopage) { + if (StartPage(printer.hDC) <= 0) { + static const WCHAR failedW[] = { 'S','t','a','r','t','P','a','g','e',' ','f','a','i','l','e','d',0 }; + static const WCHAR errorW[] = { 'P','r','i','n','t',' ','E','r','r','o','r',0 }; + MessageBox(Globals.hMainWnd, failedW, errorW, MB_ICONEXCLAMATION); + return; + } + /* Write a rectangle and header at the top of each page */ + Rectangle(printer.hDC, border, border, cWidthPels-border, border+szMetric.cy*2); + /* I don't know what's up with this TextOut command. This comes out + kind of mangled. + */ + TextOut(printer.hDC, border*2, border+szMetric.cy/2, Globals.szFileTitle, lstrlen(Globals.szFileTitle)); + } + + /* The starting point for the main text */ + xLeft = border*2; + yTop = border+szMetric.cy*4; + + SelectObject(printer.hDC, old_font); + GetTextExtentPoint32(printer.hDC, letterM, 1, &szMetric); + + /* Since outputting strings is giving me problems, output the main + text one character at a time. + */ + do { + if (pTemp[i] == '\n') { + xLeft = border*2; + yTop += szMetric.cy; + } + else if (pTemp[i] != '\r') { + if (dopage) + TextOut(printer.hDC, xLeft, yTop, &pTemp[i], 1); + xLeft += szMetric.cx; + } + } while (i++ + * + * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +VOID DIALOG_FileNew(VOID); +VOID DIALOG_FileOpen(VOID); +VOID DIALOG_FileSave(VOID); +VOID DIALOG_FileSaveAs(VOID); +VOID DIALOG_FilePrint(VOID); +VOID DIALOG_FilePageSetup(VOID); +VOID DIALOG_FilePrinterSetup(VOID); +VOID DIALOG_FileExit(VOID); + +VOID DIALOG_EditUndo(VOID); +VOID DIALOG_EditCut(VOID); +VOID DIALOG_EditCopy(VOID); +VOID DIALOG_EditPaste(VOID); +VOID DIALOG_EditDelete(VOID); +VOID DIALOG_EditSelectAll(VOID); +VOID DIALOG_EditTimeDate(VOID); +VOID DIALOG_EditWrap(VOID); + +VOID DIALOG_Search(VOID); +VOID DIALOG_SearchNext(VOID); + +VOID DIALOG_SelectFont(VOID); + +VOID DIALOG_HelpContents(VOID); +VOID DIALOG_HelpSearch(VOID); +VOID DIALOG_HelpHelp(VOID); +VOID DIALOG_HelpLicense(VOID); +VOID DIALOG_HelpNoWarranty(VOID); +VOID DIALOG_HelpAboutWine(VOID); + +VOID DIALOG_TimeDate(VOID); + +/* utility functions */ +VOID ShowLastError(); +BOOL FileExists(LPCWSTR szFilename); +BOOL DoCloseFile(void); +void DoOpenFile(LPCWSTR szFileName); diff --git a/reactos/subsys/system/notepad/license.c b/reactos/subsys/system/notepad/license.c new file mode 100644 index 00000000000..1fcef2336e6 --- /dev/null +++ b/reactos/subsys/system/notepad/license.c @@ -0,0 +1,40 @@ +/* + * Notepad (license.h) + * + * Copyright 1997,98 Marcel Baur + * + * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#include +#include "license.h" + +VOID WineLicense(HWND Wnd) +{ + /* FIXME: should load strings from resources */ + LICENSE *License = &WineLicense_En; + MessageBox(Wnd, License->License, License->LicenseCaption, + MB_ICONINFORMATION | MB_OK); +} + + +VOID WineWarranty(HWND Wnd) +{ + /* FIXME: should load strings from resources */ + LICENSE *License = &WineLicense_En; + MessageBox(Wnd, License->Warranty, License->WarrantyCaption, + MB_ICONEXCLAMATION | MB_OK); +} + diff --git a/reactos/subsys/system/notepad/license.h b/reactos/subsys/system/notepad/license.h new file mode 100644 index 00000000000..418bb66f5c7 --- /dev/null +++ b/reactos/subsys/system/notepad/license.h @@ -0,0 +1,52 @@ +/* + * Notepad (license.h) + * + * Copyright 1997,98 Marcel Baur + * + * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +VOID WineLicense(HWND hWnd); +VOID WineWarranty(HWND hWnd); + +typedef struct +{ + LPCSTR License, LicenseCaption; + LPCSTR Warranty, WarrantyCaption; +} LICENSE; + +/* +extern LICENSE WineLicense_Ca; +extern LICENSE WineLicense_Cz; +extern LICENSE WineLicense_Da; +extern LICENSE WineLicense_De; +*/ + +extern LICENSE WineLicense_En; + +/* +extern LICENSE WineLicense_Eo; +extern LICENSE WineLicense_Es; +extern LICENSE WineLicense_Fi; +extern LICENSE WineLicense_Fr; +extern LICENSE WineLicense_Hu; +extern LICENSE WineLicense_It; +extern LICENSE WineLicense_Ko; +extern LICENSE WineLicense_No; +extern LICENSE WineLicense_Pl; +extern LICENSE WineLicense_Po; +extern LICENSE WineLicense_Sw; +extern LICENSE WineLicense_Va; +*/ diff --git a/reactos/subsys/system/notepad/main.c b/reactos/subsys/system/notepad/main.c new file mode 100644 index 00000000000..327432d476f --- /dev/null +++ b/reactos/subsys/system/notepad/main.c @@ -0,0 +1,361 @@ +/* + * Notepad + * + * Copyright 2000 Mike McCormack + * Copyright 1997,98 Marcel Baur + * Copyright 2002 Sylvain Petreolle + * Copyright 2002 Andriy Palamarchuk + * + * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + +#define UNICODE + +#include +#include + +#include "main.h" +#include "dialog.h" +#include "notepad_res.h" + +NOTEPAD_GLOBALS Globals; +static ATOM aFINDMSGSTRING; + +/*********************************************************************** + * + * SetFileName + * + * Sets Global File Name. + */ +VOID SetFileName(LPCWSTR szFileName) +{ + lstrcpy(Globals.szFileName, szFileName); + Globals.szFileTitle[0] = 0; + GetFileTitle(szFileName, Globals.szFileTitle, sizeof(Globals.szFileTitle)); +} + +/*********************************************************************** + * + * NOTEPAD_MenuCommand + * + * All handling of main menu events + */ +static int NOTEPAD_MenuCommand(WPARAM wParam) +{ + switch (wParam) + { + case CMD_NEW: DIALOG_FileNew(); break; + case CMD_OPEN: DIALOG_FileOpen(); break; + case CMD_SAVE: DIALOG_FileSave(); break; + case CMD_SAVE_AS: DIALOG_FileSaveAs(); break; + case CMD_PRINT: DIALOG_FilePrint(); break; + case CMD_PAGE_SETUP: DIALOG_FilePageSetup(); break; + case CMD_PRINTER_SETUP: DIALOG_FilePrinterSetup();break; + case CMD_EXIT: DIALOG_FileExit(); break; + + case CMD_UNDO: DIALOG_EditUndo(); break; + case CMD_CUT: DIALOG_EditCut(); break; + case CMD_COPY: DIALOG_EditCopy(); break; + case CMD_PASTE: DIALOG_EditPaste(); break; + case CMD_DELETE: DIALOG_EditDelete(); break; + case CMD_SELECT_ALL: DIALOG_EditSelectAll(); break; + case CMD_TIME_DATE: DIALOG_EditTimeDate();break; + + case CMD_SEARCH: DIALOG_Search(); break; + case CMD_SEARCH_NEXT: DIALOG_SearchNext(); break; + + case CMD_WRAP: DIALOG_EditWrap(); break; + case CMD_FONT: DIALOG_SelectFont(); break; + + case CMD_HELP_CONTENTS: DIALOG_HelpContents(); break; + case CMD_HELP_SEARCH: DIALOG_HelpSearch(); break; + case CMD_HELP_ON_HELP: DIALOG_HelpHelp(); break; + case CMD_LICENSE: DIALOG_HelpLicense(); break; + case CMD_NO_WARRANTY: DIALOG_HelpNoWarranty(); break; + case CMD_ABOUT_WINE: DIALOG_HelpAboutWine(); break; + + default: + break; + } + return 0; +} + +/*********************************************************************** + * Data Initialization + */ +static VOID NOTEPAD_InitData(VOID) +{ + LPWSTR p = Globals.szFilter; + static const WCHAR txt_files[] = { '*','.','t','x','t',0 }; + static const WCHAR all_files[] = { '*','.','*',0 }; + + LoadString(Globals.hInstance, STRING_TEXT_FILES_TXT, p, MAX_STRING_LEN); + p += lstrlen(p) + 1; + lstrcpy(p, txt_files); + p += lstrlen(p) + 1; + LoadString(Globals.hInstance, STRING_ALL_FILES, p, MAX_STRING_LEN); + p += lstrlen(p) + 1; + lstrcpy(p, all_files); + p += lstrlen(p) + 1; + *p = '\0'; +} + +/*********************************************************************** + * + * NOTEPAD_WndProc + */ +static LRESULT WINAPI NOTEPAD_WndProc(HWND hWnd, UINT msg, WPARAM wParam, + LPARAM lParam) +{ + switch (msg) { + + case WM_CREATE: + { + static const WCHAR editW[] = { 'e','d','i','t',0 }; + RECT rc; + GetClientRect(hWnd, &rc); + Globals.hEdit = CreateWindowEx(WS_EX_CLIENTEDGE, editW, NULL, + WS_CHILD | WS_VISIBLE | WS_BORDER | WS_VSCROLL | WS_HSCROLL | + ES_AUTOVSCROLL | ES_MULTILINE, + 0, 0, rc.right, rc.bottom, hWnd, + NULL, Globals.hInstance, NULL); + break; + } + + case WM_COMMAND: + NOTEPAD_MenuCommand(LOWORD(wParam)); + break; + + case WM_DESTROYCLIPBOARD: + /*MessageBox(Globals.hMainWnd, "Empty clipboard", "Debug", MB_ICONEXCLAMATION);*/ + break; + + case WM_CLOSE: + if (DoCloseFile()) { + DestroyWindow(hWnd); + } + break; + + case WM_QUERYENDSESSION: + if (DoCloseFile()) { + return 1; + } + break; + + case WM_DESTROY: + PostQuitMessage(0); + break; + + case WM_SIZE: + SetWindowPos(Globals.hEdit, NULL, 0, 0, LOWORD(lParam), HIWORD(lParam), + SWP_NOOWNERZORDER | SWP_NOZORDER); + break; + + case WM_SETFOCUS: + SetFocus(Globals.hEdit); + break; + + case WM_DROPFILES: + { + WCHAR szFileName[MAX_PATH]; + HANDLE hDrop = (HANDLE) wParam; + + DragQueryFile(hDrop, 0, szFileName, SIZEOF(szFileName)); + DragFinish(hDrop); + DoOpenFile(szFileName); + break; + } + + default: + return DefWindowProc(hWnd, msg, wParam, lParam); + } + return 0; +} + +static int AlertFileDoesNotExist(LPCWSTR szFileName) +{ + int nResult; + WCHAR szMessage[MAX_STRING_LEN]; + WCHAR szResource[MAX_STRING_LEN]; + + LoadString(Globals.hInstance, STRING_DOESNOTEXIST, szResource, SIZEOF(szResource)); + wsprintf(szMessage, szResource, szFileName); + + LoadString(Globals.hInstance, STRING_ERROR, szResource, SIZEOF(szResource)); + + nResult = MessageBox(Globals.hMainWnd, szMessage, szResource, + MB_ICONEXCLAMATION | MB_YESNO); + + return(nResult); +} + +static void HandleCommandLine(LPWSTR cmdline) +{ + WCHAR delimiter; + int opt_print=0; + + /* skip white space */ + while (*cmdline == ' ') cmdline++; + + /* skip executable name */ + delimiter = (*cmdline == '"' ? '"' : ' '); + + do + { + cmdline++; + } + while (*cmdline && *cmdline != delimiter); + if (*cmdline == delimiter) cmdline++; + + while (*cmdline == ' ' || *cmdline == '-' || *cmdline == '/') + { + WCHAR option; + + if (*cmdline++ == ' ') continue; + + option = *cmdline; + if (option) cmdline++; + while (*cmdline == ' ') cmdline++; + + switch(option) + { + case 'p': + case 'P': + opt_print=1; + break; + } + } + + if (*cmdline) + { + /* file name is passed in the command line */ + LPCWSTR file_name; + BOOL file_exists; + WCHAR buf[MAX_PATH]; + + if (cmdline[0] == '"') + { + cmdline++; + cmdline[lstrlen(cmdline) - 1] = 0; + } + + if (FileExists(cmdline)) + { + file_exists = TRUE; + file_name = cmdline; + } + else + { + static const WCHAR txtW[] = { '.','t','x','t',0 }; + + /* try to find file with ".txt" extension */ + if (!lstrcmp(txtW, cmdline + lstrlen(cmdline) - lstrlen(txtW))) + { + file_exists = FALSE; + file_name = cmdline; + } + else + { + lstrcpyn(buf, cmdline, MAX_PATH - lstrlen(txtW) - 1); + lstrcat(buf, txtW); + file_name = buf; + file_exists = FileExists(buf); + } + } + + if (file_exists) + { + DoOpenFile(file_name); + InvalidateRect(Globals.hMainWnd, NULL, FALSE); + if (opt_print) + DIALOG_FilePrint(); + } + else + { + switch (AlertFileDoesNotExist(file_name)) { + case IDYES: + DoOpenFile(file_name); + break; + + case IDNO: + break; + } + } + } +} + +/*********************************************************************** + * + * WinMain + */ +int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE prev, LPSTR cmdline, int show) +{ + MSG msg; + HACCEL hAccel; + WNDCLASSEX class; + static const WCHAR className[] = {'N','P','C','l','a','s','s',0}; + static const WCHAR winName[] = {'N','o','t','e','p','a','d',0}; + + aFINDMSGSTRING = RegisterWindowMessage(FINDMSGSTRING); + + ZeroMemory(&Globals, sizeof(Globals)); + Globals.hInstance = hInstance; + + ZeroMemory(&class, sizeof(class)); + class.cbSize = sizeof(class); + class.lpfnWndProc = NOTEPAD_WndProc; + class.hInstance = Globals.hInstance; + class.hIcon = LoadIcon(0, IDI_APPLICATION); + class.hCursor = LoadCursor(0, IDC_ARROW); + class.hbrBackground = (HBRUSH)(COLOR_WINDOW); + class.lpszMenuName = MAKEINTRESOURCE(MAIN_MENU); + class.lpszClassName = className; + + if (!RegisterClassEx(&class)) return FALSE; + + /* Setup windows */ + + Globals.hMainWnd = + CreateWindow(className, winName, WS_OVERLAPPEDWINDOW, + CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, + NULL, NULL, Globals.hInstance, NULL); + if (!Globals.hMainWnd) + { + ShowLastError(); + ExitProcess(1); + } + + NOTEPAD_InitData(); + DIALOG_FileNew(); + + ShowWindow(Globals.hMainWnd, show); + UpdateWindow(Globals.hMainWnd); + DragAcceptFiles(Globals.hMainWnd, TRUE); + + HandleCommandLine(GetCommandLine()); + + hAccel = LoadAccelerators( hInstance, MAKEINTRESOURCE(ID_ACCEL) ); + + while (GetMessage(&msg, 0, 0, 0)) + { + if (!TranslateAccelerator(Globals.hMainWnd, hAccel, &msg) && !IsDialogMessage(Globals.hFindReplaceDlg, &msg)) + { + TranslateMessage(&msg); + DispatchMessage(&msg); + } + } + return msg.wParam; +} diff --git a/reactos/subsys/system/notepad/main.h b/reactos/subsys/system/notepad/main.h new file mode 100644 index 00000000000..06517d0966d --- /dev/null +++ b/reactos/subsys/system/notepad/main.h @@ -0,0 +1,53 @@ +/* + * Notepad (notepad.h) + * + * Copyright 1997,98 Marcel Baur + * Copyright 2002 Sylvain Petreolle + * + * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#define SIZEOF(a) sizeof(a)/sizeof((a)[0]) + +#include "notepad_res.h" + +#define MAX_STRING_LEN 255 + +typedef struct +{ + HANDLE hInstance; + HWND hMainWnd; + HWND hFindReplaceDlg; + HWND hEdit; + HFONT hFont; /* Font used by the edit control */ + LOGFONT lfFont; + BOOL bWrapLongLines; + WCHAR szFindText[MAX_PATH]; + WCHAR szFileName[MAX_PATH]; + WCHAR szFileTitle[MAX_PATH]; + WCHAR szFilter[2 * MAX_STRING_LEN + 100]; + WCHAR szMarginTop[MAX_PATH]; + WCHAR szMarginBottom[MAX_PATH]; + WCHAR szMarginLeft[MAX_PATH]; + WCHAR szMarginRight[MAX_PATH]; + WCHAR szHeader[MAX_PATH]; + WCHAR szFooter[MAX_PATH]; + + FINDREPLACE find; +} NOTEPAD_GLOBALS; + +extern NOTEPAD_GLOBALS Globals; + +VOID SetFileName(LPCWSTR szFileName); diff --git a/reactos/subsys/system/notepad/notepad.rc b/reactos/subsys/system/notepad/notepad.rc new file mode 100644 index 00000000000..8f2c5f1e085 --- /dev/null +++ b/reactos/subsys/system/notepad/notepad.rc @@ -0,0 +1 @@ +#include "rsrc.rc" diff --git a/reactos/subsys/system/notepad/notepad_res.h b/reactos/subsys/system/notepad/notepad_res.h new file mode 100644 index 00000000000..e9ad744f00c --- /dev/null +++ b/reactos/subsys/system/notepad/notepad_res.h @@ -0,0 +1,78 @@ +/* + * Constants, used in resources. + * + * Copyright 2002 Sylvain Petreolle + * Copyright 2002 Andriy Palamarchuk + * + * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#define MAIN_MENU 0x201 +#define DIALOG_PAGESETUP 0x202 +#define ID_ACCEL 0x203 + +/* Commands */ +#define CMD_NEW 0x100 +#define CMD_OPEN 0x101 +#define CMD_SAVE 0x102 +#define CMD_SAVE_AS 0x103 +#define CMD_PRINT 0x104 +#define CMD_PAGE_SETUP 0x105 +#define CMD_PRINTER_SETUP 0x106 +#define CMD_EXIT 0x108 + +#define CMD_UNDO 0x110 +#define CMD_CUT 0x111 +#define CMD_COPY 0x112 +#define CMD_PASTE 0x113 +#define CMD_DELETE 0x114 +#define CMD_SELECT_ALL 0x116 +#define CMD_TIME_DATE 0x117 + +#define CMD_SEARCH 0x120 +#define CMD_SEARCH_NEXT 0x121 + +#define CMD_WRAP 0x119 +#define CMD_FONT 0x140 + +#define CMD_HELP_CONTENTS 0x130 +#define CMD_HELP_SEARCH 0x131 +#define CMD_HELP_ON_HELP 0x132 +#define CMD_LICENSE 0x135 +#define CMD_NO_WARRANTY 0x136 +#define CMD_ABOUT_WINE 0x137 + +/* Strings */ +#define STRING_PAGESETUP_HEADERVALUE 0x160 +#define STRING_PAGESETUP_FOOTERVALUE 0x161 +#define STRING_PAGESETUP_LEFTVALUE 0x162 +#define STRING_PAGESETUP_RIGHTVALUE 0x163 +#define STRING_PAGESETUP_TOPVALUE 0x164 +#define STRING_PAGESETUP_BOTTOMVALUE 0x165 + +#define STRING_NOTEPAD 0x170 +#define STRING_ERROR 0x171 +#define STRING_WARNING 0x172 +#define STRING_INFO 0x173 +#define STRING_UNTITLED 0x174 +#define STRING_ALL_FILES 0x175 +#define STRING_TEXT_FILES_TXT 0x176 +#define STRING_TOOLARGE 0x177 +#define STRING_NOTEXT 0x178 +#define STRING_DOESNOTEXIST 0x179 +#define STRING_NOTSAVED 0x17A + +#define STRING_NOTFOUND 0x17B +#define STRING_OUT_OF_MEMORY 0x17C diff --git a/reactos/subsys/system/notepad/rsrc.rc b/reactos/subsys/system/notepad/rsrc.rc new file mode 100644 index 00000000000..ee2a55f333f --- /dev/null +++ b/reactos/subsys/system/notepad/rsrc.rc @@ -0,0 +1,61 @@ +/* + * Copyright 1997,98 Marcel Baur + * Copyright 2002 Sylvain Petreolle + * + * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#include "windef.h" +#include "winbase.h" +#include "winuser.h" +#include "main.h" +#include "winnls.h" +#include "commctrl.h" +#include "notepad_res.h" + +ID_ACCEL ACCELERATORS +{ + "^A", CMD_SELECT_ALL + "^C", CMD_COPY + "^F", CMD_SEARCH + "^O", CMD_OPEN + "^S", CMD_SAVE + "^V", CMD_PASTE + "^X", CMD_CUT + "^Z", CMD_UNDO + VK_F3, CMD_SEARCH_NEXT, VIRTKEY + VK_F5, CMD_TIME_DATE, VIRTKEY +} + +#include "Cs.rc" +#include "Da.rc" +#include "De.rc" +#include "En.rc" +#include "Es.rc" +#include "Fi.rc" +#include "Fr.rc" +#include "Hu.rc" +#include "It.rc" +#include "Ja.rc" +#include "Nl.rc" +#include "Pl.rc" +#include "Pt.rc" +#include "Ru.rc" +#include "Si.rc" +#include "Sk.rc" +#include "Sw.rc" +#include "Th.rc" +#include "Wa.rc" +#include "Zh.rc"