34 added files
reactos/subsys/system/notepad
diff -N .cvsignore
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ .cvsignore 15 Dec 2004 05:07:53 -0000 1.1
@@ -0,0 +1,7 @@
+*.a
+*.exe
+*.sym
+*.map
+*.o
+*.coff
+
reactos/subsys/system/notepad
diff -N ChangeLog
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ ChangeLog 15 Dec 2004 05:07:53 -0000 1.1
@@ -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 <mbaur@g26.ethz.ch>
+ - Fixed GetDateFormat()->GetTimeFormat() for locale time.
+
+Mon May 25 14:30:00 1998 Henrik Olsen <henrik@iaeste.dk>
+ * [Da.rc]
+ - Added Danish language support.
+
+Fri May 15 23:59:22 1998 Marcel Baur <mbaur@g26.ethz.ch>
+ - 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 <laurent@bluewin.ch>
+ * [Fr.rc]
+ - Added French language support.
+
+Fri Feb 27 21:03:37 1998 Karl Backstr�m <karl_b@geocities.com>
+ - Fixed some minor features.
+
+Sat Feb 14 17:42:29 1998 Karl Backstr�m <karl_b@geocities.com>
+ * 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 <mbaur@g26.ethz.ch>
+ - Fixed broken language menus
+
+Fri Feb 06 23.54.35 1998 Karl Backstr�m <karl_b@geocities.com>
+ * [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 Backstr�m <karl_b@geocities.com>
+ * [Sw.rc]
+ - Added/updated Swedish language support.
+
+Tue Dec 23 23:35:04 1997 Marcel Baur <mbaur@g26.ethz.ch>
+ - 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 <mbaur@g26.ethz.ch>
+ * [notepad.c] [notepad.h] [notepad.rc] [En.rc] [De.rc]
+ [license.c] [license.h] [License_En.c]
+ [README] [TODO] [ChangeLog]
+ - Originals by Marcel Baur
+
+
reactos/subsys/system/notepad
diff -N Cs.rc
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ Cs.rc 15 Dec 2004 05:07:53 -0000 1.1
@@ -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 "&Otev��t\tCtrl+O", CMD_OPEN
+ MENUITEM "&Ulo�it\tCtrl+S", CMD_SAVE
+ MENUITEM "Ulo�it j&ako...", CMD_SAVE_AS
+ MENUITEM SEPARATOR
+ MENUITEM "&Tisk", CMD_PRINT
+ MENUITEM "Nas&taven� str�nky...", CMD_PAGE_SETUP
+ MENUITEM "Nastaven� tisk�&rny...", CMD_PRINTER_SETUP
+ MENUITEM SEPARATOR
+ MENUITEM "&Konec", CMD_EXIT
+ }
+POPUP "U&pravit" {
+ MENUITEM "&Zp�t\tCtrl+Z", CMD_UNDO
+ MENUITEM SEPARATOR
+ MENUITEM "Vyjmou&t\tCtrl+X", CMD_CUT
+ MENUITEM "&Kop�rovat\tCtrl+C", CMD_COPY
+ MENUITEM "&Vlo�it\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 "&P�smo...", CMD_FONT
+ }
+POPUP "&Hled�n�" {
+ MENUITEM "&Hledej\tCtrl+F", CMD_SEARCH
+ MENUITEM "&Najdi dal��\tF3", CMD_SEARCH_NEXT
+ }
+POPUP "&N�pov�da" {
+ MENUITEM "&Obsah", CMD_HELP_CONTENTS
+ MENUITEM "&Naj�t...", CMD_HELP_SEARCH
+ MENUITEM "&Pomoc k n�pov�d�", CMD_HELP_ON_HELP
+ MENUITEM SEPARATOR
+ POPUP "Inf&o..." {
+ MENUITEM "&Licence", CMD_LICENSE
+ MENUITEM "&BEZ Z�RUKY", 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� str�nky"
+{
+LTEXT "Z�&hlav�:", 0x140, 10, 07, 40, 15
+EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP
+LTEXT "&Z�pat�:", 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 "&N�pov�da", 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, "VAROV�N�"
+STRING_INFO, "Informace"
+
+STRING_UNTITLED, "(bez n�zvu)"
+
+STRING_ALL_FILES, "V�echny soubory (*.*)"
+STRING_TEXT_FILES_TXT, "Textov� soubory (*.txt)"
+
+STRING_TOOLARGE, "Soubor '%s' je pro notepad p��li� velk�.\n \
+Pou�ijte jin� editor, pros�m."
+STRING_NOTEXT, "Nebyl zad�n ��dn� text. \
+\nPlease type something and try again"
+STRING_DOESNOTEXIST, "Soubor '%s'\nneexistuje.\n\n \
+Chcete ho vytvo�it ?"
+STRING_NOTSAVED, "Soubor '%s'\nbyl zm�n�n.\n\n \
+Chcete ulo�it zm�ny ?"
+STRING_NOTFOUND, "'%s' nebyl nalezen."
+STRING_OUT_OF_MEMORY, "Nen� dost pam�ti na dokon�en� t�to �lohy. \
+\nUzav�ete jednu �i v�ce aplikac� abyste z�skali v�ce \nvoln� \
+pam�ti."
+
+}
reactos/subsys/system/notepad
diff -N Da.rc
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ Da.rc 15 Dec 2004 05:07:53 -0000 1.1
@@ -0,0 +1,126 @@
+/*
+ * Notepad (Danish resources)
+ *
+ * Copyright 1998 Henrik Olsen <henrik@iaeste.dk>
+ * Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
+ *
+ * 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&ops�tning...", 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 "S�t &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 "&S�g" {
+ MENUITEM "&S�g...", CMD_SEARCH
+ MENUITEM "&Find n�ste\tF3", CMD_SEARCH_NEXT
+ }
+POPUP "&Hj�lp" {
+ MENUITEM "&Indhold", CMD_HELP_CONTENTS
+ MENUITEM "&S�g efter hj�lp om...", CMD_HELP_SEARCH
+ MENUITEM "&Brug af Hj�lp", 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 "Sideops�tning"
+{
+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 "&H�jre:", 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 "&Hj�lp", 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 pr�v 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 udf�re \
+denne operation. \nAfslut et eller flere aktive programmer for at frig�re \
+hukommelse, og pr�v s� igen."
+
+}
reactos/subsys/system/notepad
diff -N De.rc
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ De.rc 15 Dec 2004 05:07:53 -0000 1.1
@@ -0,0 +1,131 @@
+/*
+ * Notepad (German resources)
+ *
+ * Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
+ * Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
+ *
+ *
+ * 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 "&R�ckg�ngig\tStrg+Z", CMD_UNDO
+ MENUITEM SEPARATOR
+ MENUITEM "&Ausschneiden\tStrg+X", CMD_CUT
+ MENUITEM "&Kopieren\tStrg+C", CMD_COPY
+ MENUITEM "&Einf�gen\tStrg+V", CMD_PASTE
+ MENUITEM "&L�schen\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 "&Fu�zeile:", 0x142, 10, 24, 40, 15
+EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP
+
+GROUPBOX "R�nder", 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� f�r 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 k�nnte. Geben Sie Text ein, und versuchen Sie es \
+\nerneut."
+STRING_DOESNOTEXIST, "Die Datei '%s'\nexistiert nicht.\n\n \
+M�chten Sie eine neue Datei erstellen ?"
+STRING_NOTSAVED, "Datei %s\n wurde ge�ndert.\n\n \
+M�chten Sie die �nderungen speichern ?"
+STRING_NOTFOUND, "'%s' kann nicht gefunden werden."
+STRING_OUT_OF_MEMORY, "Nicht gen�gend Arbeitsspeicher, \
+um diese Funktion \nabzuschlie�en. Beenden Sie eine oder mehrere \
+\nAnwendungen, um den verf�gbaren Arbeitsspeicher zu \nerh�hen."
+
+
+}
reactos/subsys/system/notepad
diff -N dialog.c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ dialog.c 15 Dec 2004 05:07:53 -0000 1.1
@@ -0,0 +1,720 @@
+/*
+ * Notepad (dialog.c)
+ *
+ * Copyright 1998,99 Marcel Baur <mbaur@g26.ethz.ch>
+ * Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
+ * 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 <assert.h>
+#include <stdio.h>
+#include <windows.h>
+#include <commdlg.h>
+
+#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++<size && yTop<(cHeightPels-border*2));
+
+ if (dopage)
+ EndPage(printer.hDC);
+ pagecount++;
+ } while (i<size);
+ }
+
+ EndDoc(printer.hDC);
+ DeleteDC(printer.hDC);
+ HeapFree(GetProcessHeap(), 0, pTemp);
+}
+
+VOID DIALOG_FilePrinterSetup(VOID)
+{
+ PRINTDLG printer;
+
+ ZeroMemory(&printer, sizeof(printer));
+ printer.lStructSize = sizeof(printer);
+ printer.hwndOwner = Globals.hMainWnd;
+ printer.hInstance = Globals.hInstance;
+ printer.Flags = PD_PRINTSETUP;
+ printer.nCopies = 1;
+
+ PrintDlg(&printer);
+}
+
+VOID DIALOG_FileExit(VOID)
+{
+ PostMessage(Globals.hMainWnd, WM_CLOSE, 0, 0l);
+}
+
+VOID DIALOG_EditUndo(VOID)
+{
+ SendMessage(Globals.hEdit, EM_UNDO, 0, 0);
+}
+
+VOID DIALOG_EditCut(VOID)
+{
+ SendMessage(Globals.hEdit, WM_CUT, 0, 0);
+}
+
+VOID DIALOG_EditCopy(VOID)
+{
+ SendMessage(Globals.hEdit, WM_COPY, 0, 0);
+}
+
+VOID DIALOG_EditPaste(VOID)
+{
+ SendMessage(Globals.hEdit, WM_PASTE, 0, 0);
+}
+
+VOID DIALOG_EditDelete(VOID)
+{
+ SendMessage(Globals.hEdit, WM_CLEAR, 0, 0);
+}
+
+VOID DIALOG_EditSelectAll(VOID)
+{
+ SendMessage(Globals.hEdit, EM_SETSEL, 0, (LPARAM)-1);
+}
+
+VOID DIALOG_EditTimeDate(VOID)
+{
+ SYSTEMTIME st;
+ WCHAR szDate[MAX_STRING_LEN];
+ static const WCHAR spaceW[] = { ' ',0 };
+
+ GetLocalTime(&st);
+
+ GetTimeFormat(LOCALE_USER_DEFAULT, 0, &st, NULL, szDate, MAX_STRING_LEN);
+ SendMessage(Globals.hEdit, EM_REPLACESEL, TRUE, (LPARAM)szDate);
+
+ SendMessage(Globals.hEdit, EM_REPLACESEL, TRUE, (LPARAM)spaceW);
+
+ GetDateFormat(LOCALE_USER_DEFAULT, DATE_LONGDATE, &st, NULL, szDate, MAX_STRING_LEN);
+ SendMessage(Globals.hEdit, EM_REPLACESEL, TRUE, (LPARAM)szDate);
+}
+
+VOID DIALOG_EditWrap(VOID)
+{
+ Globals.bWrapLongLines = !Globals.bWrapLongLines;
+ CheckMenuItem(GetMenu(Globals.hMainWnd), CMD_WRAP,
+ MF_BYCOMMAND | (Globals.bWrapLongLines ? MF_CHECKED : MF_UNCHECKED));
+}
+
+VOID DIALOG_SelectFont(VOID)
+{
+ CHOOSEFONT cf;
+ LOGFONT lf=Globals.lfFont;
+
+ ZeroMemory( &cf, sizeof(cf) );
+ cf.lStructSize=sizeof(cf);
+ cf.hwndOwner=Globals.hMainWnd;
+ cf.lpLogFont=&lf;
+ cf.Flags=CF_SCREENFONTS;
+
+ if( ChooseFont(&cf) )
+ {
+ HFONT currfont=Globals.hFont;
+
+ Globals.hFont=CreateFontIndirect( &lf );
+ Globals.lfFont=lf;
+ SendMessage( Globals.hEdit, WM_SETFONT, (WPARAM)Globals.hFont, (LPARAM)TRUE );
+ if( currfont!=NULL )
+ DeleteObject( currfont );
+ }
+}
+
+VOID DIALOG_Search(VOID)
+{
+ ZeroMemory(&Globals.find, sizeof(Globals.find));
+ Globals.find.lStructSize = sizeof(Globals.find);
+ Globals.find.hwndOwner = Globals.hMainWnd;
+ Globals.find.hInstance = Globals.hInstance;
+ Globals.find.lpstrFindWhat = Globals.szFindText;
+ Globals.find.wFindWhatLen = SIZEOF(Globals.szFindText);
+ Globals.find.Flags = FR_DOWN;
+
+ /* We only need to create the modal FindReplace dialog which will */
+ /* notify us of incoming events using hMainWnd Window Messages */
+
+ Globals.hFindReplaceDlg = FindText(&Globals.find);
+ assert(Globals.hFindReplaceDlg !=0);
+}
+
+VOID DIALOG_SearchNext(VOID)
+{
+ /* FIXME: Search Next */
+ DIALOG_Search();
+}
+
+VOID DIALOG_HelpContents(VOID)
+{
+ WinHelp(Globals.hMainWnd, helpfileW, HELP_INDEX, 0);
+}
+
+VOID DIALOG_HelpSearch(VOID)
+{
+ /* Search Help */
+}
+
+VOID DIALOG_HelpHelp(VOID)
+{
+ WinHelp(Globals.hMainWnd, helpfileW, HELP_HELPONHELP, 0);
+}
+
+VOID DIALOG_HelpLicense(VOID)
+{
+ WineLicense(Globals.hMainWnd);
+}
+
+VOID DIALOG_HelpNoWarranty(VOID)
+{
+ WineWarranty(Globals.hMainWnd);
+}
+
+VOID DIALOG_HelpAboutWine(VOID)
+{
+ static const WCHAR notepadW[] = { 'N','o','t','e','p','a','d','\n',0 };
+ WCHAR szNotepad[MAX_STRING_LEN];
+
+ LoadString(Globals.hInstance, STRING_NOTEPAD, szNotepad, SIZEOF(szNotepad));
+ ShellAbout(Globals.hMainWnd, szNotepad, notepadW, 0);
+}
+
+
+/***********************************************************************
+ *
+ * DIALOG_FilePageSetup
+ */
+VOID DIALOG_FilePageSetup(void)
+{
+ DialogBox(Globals.hInstance, MAKEINTRESOURCE(DIALOG_PAGESETUP),
+ Globals.hMainWnd, DIALOG_PAGESETUP_DlgProc);
+}
+
+
+/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
+ *
+ * DIALOG_PAGESETUP_DlgProc
+ */
+
+static INT_PTR WINAPI DIALOG_PAGESETUP_DlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam)
+{
+
+ switch (msg)
+ {
+ case WM_COMMAND:
+ switch (wParam)
+ {
+ case IDOK:
+ /* save user input and close dialog */
+ GetDlgItemText(hDlg, 0x141, Globals.szHeader, SIZEOF(Globals.szHeader));
+ GetDlgItemText(hDlg, 0x143, Globals.szFooter, SIZEOF(Globals.szFooter));
+ GetDlgItemText(hDlg, 0x14A, Globals.szMarginTop, SIZEOF(Globals.szMarginTop));
+ GetDlgItemText(hDlg, 0x150, Globals.szMarginBottom, SIZEOF(Globals.szMarginBottom));
+ GetDlgItemText(hDlg, 0x147, Globals.szMarginLeft, SIZEOF(Globals.szMarginLeft));
+ GetDlgItemText(hDlg, 0x14D, Globals.szMarginRight, SIZEOF(Globals.szMarginRight));
+ EndDialog(hDlg, IDOK);
+ return TRUE;
+
+ case IDCANCEL:
+ /* discard user input and close dialog */
+ EndDialog(hDlg, IDCANCEL);
+ return TRUE;
+
+ case IDHELP:
+ {
+ /* FIXME: Bring this to work */
+ static const WCHAR sorryW[] = { 'S','o','r','r','y',',',' ','n','o',' ','h','e','l','p',' ','a','v','a','i','l','a','b','l','e',0 };
+ static const WCHAR helpW[] = { 'H','e','l','p',0 };
+ MessageBox(Globals.hMainWnd, sorryW, helpW, MB_ICONEXCLAMATION);
+ return TRUE;
+ }
+
+ default:
+ break;
+ }
+ break;
+
+ case WM_INITDIALOG:
+ /* fetch last user input prior to display dialog */
+ SetDlgItemText(hDlg, 0x141, Globals.szHeader);
+ SetDlgItemText(hDlg, 0x143, Globals.szFooter);
+ SetDlgItemText(hDlg, 0x14A, Globals.szMarginTop);
+ SetDlgItemText(hDlg, 0x150, Globals.szMarginBottom);
+ SetDlgItemText(hDlg, 0x147, Globals.szMarginLeft);
+ SetDlgItemText(hDlg, 0x14D, Globals.szMarginRight);
+ break;
+ }
+
+ return FALSE;
+}
reactos/subsys/system/notepad
diff -N dialog.h
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ dialog.h 15 Dec 2004 05:07:53 -0000 1.1
@@ -0,0 +1,57 @@
+/*
+ * Notepad (dialog.h)
+ *
+ * Copyright 1998 Marcel Baur <mbaur@g26.ethz.ch>
+ *
+ * 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);
reactos/subsys/system/notepad
diff -N En.rc
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ En.rc 15 Dec 2004 05:07:53 -0000 1.1
@@ -0,0 +1,129 @@
+/*
+ * Notepad (English resources)
+ *
+ * Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
+ * Proofread 1998 by David Lee Lambert <lamber45@egr.msu.edu>
+ * Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
+ *
+ * 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."
+
+}
reactos/subsys/system/notepad
diff -N Es.rc
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ Es.rc 15 Dec 2004 05:07:53 -0000 1.1
@@ -0,0 +1,131 @@
+/*
+ * Notepad (Spanish resources)
+ *
+ * Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
+ * Proofread 1998 by David Lee Lambert <lamber45@egr.msu.edu>
+ * Proofread 1999 by Jose Marcos Lopez <jose.lopez@upcnet.upc.es>
+ * Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
+ * 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 &p�gina...", CMD_PAGE_SETUP
+ MENUITEM "Configuraci�n &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 l�nea", 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 "&Informaci�n..." {
+ MENUITEM "&Licencia", CMD_LICENSE
+ MENUITEM "SIN &GARANT�A", 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 p�gina"
+{
+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 "&M�rgenes:", 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, "P�gina &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, "Informaci�n"
+
+STRING_UNTITLED, "(sin t�tulo)"
+
+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 \
+ int�ntelo 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 m�s aplicaciones para \
+ aumentar la cantidad \nde memoria libre."
+
+}
reactos/subsys/system/notepad
diff -N Fi.rc
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ Fi.rc 15 Dec 2004 05:07:53 -0000 1.1
@@ -0,0 +1,126 @@
+/*
+ * Notepad (Finnish resources)
+ *
+ * Copyright 1999 by Jukka Iivonen <iivonen@iki.fi>
+ * Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
+ *
+ * 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/P�iv�m��r�\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 "&Sis�lt�", 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 "&Yl�otsikko:", 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 sy�tt�nyt 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 l�ydy."
+STRING_OUT_OF_MEMORY, "Muistia ei ole riitt�v�sti t�m�n \
+\nteht�v�n tekemiseksi. Sulje jokin sovellus vapauttaaksesi\n \
+muistia."
+
+}
reactos/subsys/system/notepad
diff -N Fr.rc
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ Fr.rc 15 Dec 2004 05:07:53 -0000 1.1
@@ -0,0 +1,129 @@
+/*
+ * Notepad (French resources)
+ *
+ * Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
+ * Translation by Laurent Buffler <laurent@bluewin.ch>
+ * Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
+ *
+ * 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 &s�lectionner\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-t�te :", 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 cr�er 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 m�moire pour compl�ter cette \
+t�che. \nFermez une ou plusieurs applications pour lib�rer\n\
+de la m�moire."
+
+}
reactos/subsys/system/notepad
diff -N Hu.rc
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ Hu.rc 15 Dec 2004 05:07:53 -0000 1.1
@@ -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 "&F�jl" {
+ MENUITEM "�&j", CMD_NEW
+ MENUITEM "Meg&nyit�s...", CMD_OPEN
+ MENUITEM "&Ment�s", CMD_SAVE
+ MENUITEM "Ment�s m�&sk�nt...", CMD_SAVE_AS
+ MENUITEM SEPARATOR
+ MENUITEM "&Oldalbe�ll�t�s...", CMD_PAGE_SETUP
+ MENUITEM "Nyom&tat�s...", CMD_PRINT
+ MENUITEM "Nyomtat� &be�ll�t�s...", CMD_PRINTER_SETUP
+ MENUITEM SEPARATOR
+ MENUITEM "&Kil�p�s", CMD_EXIT
+ }
+POPUP "S&zerkeszt�s" {
+ MENUITEM "&Visszavon�s\tCtrl+Z", CMD_UNDO
+ MENUITEM SEPARATOR
+ MENUITEM "Kiv�&g�s\tCtrl+X", CMD_CUT
+ MENUITEM "&M�sol�s\tCtrl+C", CMD_COPY
+ MENUITEM "&Beilleszt�s\tCtrl+V", CMD_PASTE
+ MENUITEM "T�r&l�s\tDel", CMD_DELETE
+ MENUITEM SEPARATOR
+ MENUITEM "&Az �sszes kijel�l�se", CMD_SELECT_ALL
+ MENUITEM "&Id�/d�tum\tF5", CMD_TIME_DATE
+ MENUITEM SEPARATOR
+ MENUITEM "&Hossz� sorok t�rdel�se", CMD_WRAP
+ }
+POPUP "&Keres�s" {
+ MENUITEM "&Keres�s...", CMD_SEARCH
+ MENUITEM "K�ve&tkez� keres�se\tF3", CMD_SEARCH_NEXT
+ }
+POPUP "&S�g�" {
+ MENUITEM "&T�mak�r�k", CMD_HELP_CONTENTS
+ MENUITEM "&Keres�s...", CMD_HELP_SEARCH
+ MENUITEM "&Haszn�lat", CMD_HELP_ON_HELP
+ MENUITEM SEPARATOR
+ POPUP "Inf&orm�ci�..." {
+ MENUITEM "&Licenc", CMD_LICENSE
+ MENUITEM "&SEMMI GARANCIA", CMD_NO_WARRANTY
+ MENUITEM "&Wine n�vjegy", 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 "Oldalbe�ll�t�s"
+{
+LTEXT "&Fejl�c:", 0x140, 10, 07, 40, 15
+EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP
+LTEXT "&L�bl�c:", 0x142, 10, 24, 40, 15
+EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP
+
+GROUPBOX "&Marg�k:", 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 "M�gse", 0x152, 180, 21, 40, 15, WS_TABSTOP
+PUSHBUTTON "&S�g�", 0x153, 180, 39, 40, 15, WS_TABSTOP
+}
+
+STRINGTABLE DISCARDABLE LANGUAGE LANG_HUNGARIAN, SUBLANG_DEFAULT
+{
+STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */
+STRING_PAGESETUP_FOOTERVALUE, "Oldalsz�m: &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, "Jegyzett�mb"
+STRING_ERROR, "HIBA"
+STRING_WARNING, "FIGYELMEZTET�S"
+STRING_INFO, "Inform�ci�"
+
+STRING_UNTITLED, "(n�vtelen)"
+
+STRING_ALL_FILES, "Minden f�jl (*.*)"
+STRING_TEXT_FILES_TXT, "Sz�vegf�jlok (*.txt)"
+
+STRING_TOOLARGE, "'%s' f�jl t�l nagy m�ret�.\n \
+K�rem haszn�ljon m�sik sz�vegszerkeszt� programot."
+STRING_NOTEXT, "A sz�veg nem tartalmaz karaktert! \
+\nK�rem g�peljen be n�h�ny karaktert �s pr�b�lja �jra!"
+STRING_DOESNOTEXIST, "A megadott '%s'\nf�jl nem l�tezik!\n\n \
+K�v�n l�trehozni �j f�jlt?"
+STRING_NOTSAVED, "'%s' f�jl\nm�dosult\n\n \
+Szeretn� menteni a v�ltoz�sokat?"
+STRING_NOTFOUND, "'%s' nem tal�lhat�!"
+STRING_OUT_OF_MEMORY, "Nincs elegend� szabad mem�ria!\
+\nZ�rjon be n�h�ny alkalmaz�st, ezzel n�velve a szabad mem�ria m�ret�t\
+!"
+
+}
reactos/subsys/system/notepad
diff -N It.rc
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ It.rc 15 Dec 2004 05:07:53 -0000 1.1
@@ -0,0 +1,130 @@
+/*
+ * Notepad (Italian resources)
+ *
+ * Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
+ * Proofread 1998 by David Lee Lambert <lamber45@egr.msu.edu>
+ * Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
+ * 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."
+
+}
reactos/subsys/system/notepad
diff -N Ja.rc
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ Ja.rc 15 Dec 2004 05:07:53 -0000 1.1
@@ -0,0 +1,129 @@
+/*
+ * Notepad (Japanese resources)
+ *
+ * Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
+ * Proofread 1998 by David Lee Lambert <lamber45@egr.msu.edu>
+ * Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
+ *
+ * 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 "�V�K����(&N)...", CMD_NEW
+ MENUITEM "�J��(&O)\tCtrl+O", CMD_OPEN
+ MENUITEM "����(&S)\tCtrl+S", CMD_SAVE
+ MENUITEM "���O���t��������(&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 "�A���h�D(&U)\tCtrl+Z", CMD_UNDO
+ MENUITEM SEPARATOR
+ MENUITEM "��������(&t)\tCtrl+X", CMD_CUT
+ MENUITEM "�R�s�[(&C)\tCtrl+C", CMD_COPY
+ MENUITEM "�y�[�X�g(&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 "�t�H���g(&F)...", CMD_FONT
+ }
+POPUP "����(&S)" {
+ MENUITEM "����(&S)\tCtrl+F", CMD_SEARCH
+ MENUITEM "��������������(&S)\tF3", CMD_SEARCH_NEXT
+ }
+POPUP "�w���v(&H)" {
+ MENUITEM "����(&C)", CMD_HELP_CONTENTS
+ MENUITEM "����(&S)...", CMD_HELP_SEARCH
+ MENUITEM "�w���v���g����(&H)", CMD_HELP_ON_HELP
+ MENUITEM SEPARATOR
+ POPUP "����(&o)..." {
+ MENUITEM "���C�Z���X(&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 "�w�b�_(&H):", 0x140, 10, 07, 40, 15
+EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP
+LTEXT "�t�b�^(&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 "�L�����Z��", 0x152, 180, 21, 40, 15, WS_TABSTOP
+PUSHBUTTON "�w���v(&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, "�e�L�X�g�t�@�C�� (*.txt)"
+
+STRING_TOOLARGE, "�t�@�C�� '%s' ���T�C�Y�����������������A�������������W�����������B\n \
+�����G�f�B�^���g�p�����������B"
+STRING_NOTEXT, "�����������������������B\
+\n�������������������s�����������B"
+STRING_DOESNOTEXIST, "�t�@�C�� '%s'\n��������������\n\n \
+�V�����t�@�C���������������� ?"
+STRING_NOTSAVED, "�t�@�C�� '%s'\n�����X������������\n\n \
+���X�������������� ?"
+STRING_NOTFOUND, "'%s' ����������������������"
+STRING_OUT_OF_MEMORY, "�������������s������������������\
+�����������B \n�������������������������������������A�v���P�[�V������\n�I������\
+�������B"
+
+}
reactos/subsys/system/notepad
diff -N license.c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ license.c 15 Dec 2004 05:07:53 -0000 1.1
@@ -0,0 +1,40 @@
+/*
+ * Notepad (license.h)
+ *
+ * Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
+ *
+ * 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 <windows.h>
+#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);
+}
+
reactos/subsys/system/notepad
diff -N license.h
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ license.h 15 Dec 2004 05:07:53 -0000 1.1
@@ -0,0 +1,52 @@
+/*
+ * Notepad (license.h)
+ *
+ * Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
+ *
+ * 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;
+*/
reactos/subsys/system/notepad
diff -N License_En.c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ License_En.c 15 Dec 2004 05:07:53 -0000 1.1
@@ -0,0 +1,28 @@
+#include <windows.h>
+#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};
reactos/subsys/system/notepad
diff -N main.c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ main.c 15 Dec 2004 05:07:53 -0000 1.1
@@ -0,0 +1,361 @@
+/*
+ * Notepad
+ *
+ * Copyright 2000 Mike McCormack <Mike_McCormack@looksmart.com.au>
+ * Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
+ * Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
+ * 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 <windows.h>
+#include <stdio.h>
+
+#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;
+}
reactos/subsys/system/notepad
diff -N main.h
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ main.h 15 Dec 2004 05:07:53 -0000 1.1
@@ -0,0 +1,53 @@
+/*
+ * Notepad (notepad.h)
+ *
+ * Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
+ * Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
+ *
+ * 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);
reactos/subsys/system/notepad
diff -N Makefile
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ Makefile 15 Dec 2004 05:07:53 -0000 1.1
@@ -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
reactos/subsys/system/notepad
diff -N Makefile.in
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ Makefile.in 15 Dec 2004 05:07:53 -0000 1.1
@@ -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:
reactos/subsys/system/notepad
diff -N Nl.rc
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ Nl.rc 15 Dec 2004 05:07:53 -0000 1.1
@@ -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."
+
+}
reactos/subsys/system/notepad
diff -N notepad.rc
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ notepad.rc 15 Dec 2004 05:07:53 -0000 1.1
@@ -0,0 +1 @@
+#include "rsrc.rc"
reactos/subsys/system/notepad
diff -N notepad_res.h
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ notepad_res.h 15 Dec 2004 05:07:53 -0000 1.1
@@ -0,0 +1,78 @@
+/*
+ * Constants, used in resources.
+ *
+ * Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
+ * 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
reactos/subsys/system/notepad
diff -N Pl.rc
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ Pl.rc 15 Dec 2004 05:07:53 -0000 1.1
@@ -0,0 +1,129 @@
+/*
+ * Notepad (Polish resources)
+ *
+ * Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
+ * Proofread 1998 by David Lee Lambert <lamber45@egr.msu.edu>
+ * Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
+ * Copyright 2004 Jacek Caban <jack@itma.pwr.wroc.pl>
+ *
+ * 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 "&Otw�rz\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� nast�pny\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 "&Nag��wek:", 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 "&G�rny:", 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, "B��D"
+STRING_WARNING, "OSTRZE�ENIE"
+STRING_INFO, "Informacja"
+
+STRING_UNTITLED, "(bez tytu�u)"
+
+STRING_ALL_FILES, "Wszystkie piki (*.*)"
+STRING_TEXT_FILES_TXT, "Pliki tekstowe (*.txt)"
+
+STRING_TOOLARGE, "Plik '%s' jest za du�y dla notatnika.\n \
+Prosz� u�y� innego edytora."
+STRING_NOTEXT, "Nie wprowadzi�e� �adnego tekstu. \
+\nProsz� co� wpisa� i spr�bowa� 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 mo�na odnale�� '%s'."
+STRING_OUT_OF_MEMORY, "Za ma�o pami�ci do wykonania tego zadania.\n \
+Zamknij jedn� lub wi�cej aplikacji aby zwi�kszy� ilo�� wolnej pami�ci."
+
+}
reactos/subsys/system/notepad
diff -N Pt.rc
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ Pt.rc 15 Dec 2004 05:07:53 -0000 1.1
@@ -0,0 +1,129 @@
+/*
+ * Notepad
+ * Portuguese Language Support
+ *
+ * Copyright 1999 Marcel Baur <alves@correionet.com.br>
+ * Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
+ * 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 p�gina...", 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 autom�tica de linha", CMD_WRAP
+ MENUITEM "&Fonte...", CMD_FONT
+ }
+POPUP "&Pesquisa" {
+ MENUITEM "&Localizar...", CMD_SEARCH
+ MENUITEM "Localizar &pr�xima\tF3", CMD_SEARCH_NEXT
+ }
+POPUP "&Ajuda" {
+ MENUITEM "&Conte�do", CMD_HELP_CONTENTS
+ MENUITEM "&Procurar...", CMD_HELP_SEARCH
+ MENUITEM "&Ajuda na ajuda", CMD_HELP_ON_HELP
+ MENUITEM SEPARATOR
+ POPUP "&Informa��es..." {
+ MENUITEM "&Licen�a", 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 p�gina"
+{
+LTEXT "&Cabe�alho:", 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, "P�gina &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, "Informa��o"
+
+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� n�o digitou nenhum texto. \
+\nPor favor digite alguma coisa e tente novamente"
+STRING_DOESNOTEXIST, "Arquivo '%s'\nn�o existe\n\n \
+Voc� deseja criar um novo arquivo?"
+STRING_NOTSAVED, "Arquivo '%s'\nfoi modificado\n\n \
+Gostaria de salvar as altera��es?"
+STRING_NOTFOUND, "'%s' n�o pode ser encontrado."
+STRING_OUT_OF_MEMORY, "N�o h� mem�ria suficiente para completar essa \
+tarefa. \nFeche uma ou mais aplica��es para aumentar a quantidade de mem�ria livre."
+
+}
reactos/subsys/system/notepad
diff -N rsrc.rc
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ rsrc.rc 15 Dec 2004 05:07:53 -0000 1.1
@@ -0,0 +1,61 @@
+/*
+ * Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
+ * Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
+ *
+ * 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"
reactos/subsys/system/notepad
diff -N Ru.rc
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ Ru.rc 15 Dec 2004 05:07:53 -0000 1.1
@@ -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�������� ���� ��� ��������� ���������� � ��������� �������."
+
+}
reactos/subsys/system/notepad
diff -N Si.rc
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ Si.rc 15 Dec 2004 05:07:53 -0000 1.1
@@ -0,0 +1,125 @@
+/*
+ * Notepad (Slovenian resources)
+ *
+ * Copyright 2002-2003 Rok Mandeljc <rok.mandeljc@gimb.org>
+ *
+ * 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 "&Izre�i\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 pomo�i", CMD_HELP_CONTENTS
+ MENUITEM "&Najdi ...", CMD_HELP_SEARCH
+ MENUITEM "&O pomo�i", CMD_HELP_ON_HELP
+ MENUITEM SEPARATOR
+ POPUP "Inf&ormacije ..." {
+ MENUITEM "&Licen�na 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 "Prekli�i", 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, "Bele�nica"
+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 Bele�nico.\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 mogo�e najti '%s'."
+STRING_OUT_OF_MEMORY, "Na voljo ni dovolj pomnilnika, da bi bilo mogo�e dokon�ati to \
+operacijo. \n�e ga �elite sprostiti, kon�ajte enega ali ve� programov in poskusite znova. "
+
+}
reactos/subsys/system/notepad
diff -N Sk.rc
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ Sk.rc 15 Dec 2004 05:07:53 -0000 1.1
@@ -0,0 +1,127 @@
+/*
+ * Notepad (Slovak resources)
+ *
+ * Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
+ * Proofread 1998 by David Lee Lambert <lamber45@egr.msu.edu>
+ * Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
+ *
+ * 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."
+
+}
reactos/subsys/system/notepad
diff -N Sw.rc
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ Sw.rc 15 Dec 2004 05:07:53 -0000 1.1
@@ -0,0 +1,127 @@
+/*
+ * Notepad (Swedish resources)
+ *
+ * Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
+ * Proofread 1998 by David Lee Lambert <lamber45@egr.msu.edu>
+ * Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
+ *
+ * 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 &inst�llningar...", 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 l�nga meningar", CMD_WRAP
+ }
+POPUP "&S�k" {
+ MENUITEM "S�k...", CMD_SEARCH
+ MENUITEM "&S�k n�sta\tF3", CMD_SEARCH_NEXT
+ }
+POPUP "&Hj�lp" {
+ MENUITEM "&Inneh�ll", CMD_HELP_CONTENTS
+ MENUITEM "&S�k...", CMD_HELP_SEARCH
+ MENUITEM "Anv�ndningen &av hj�lp", 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 "&V�nster:", 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 "&H�ger:", 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 "&Hj�lp", 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 f�r stor f�r notepad.\n \
+Anv�nd en annan editor."
+STRING_NOTEXT, "Du skrev inte in n�gon text. \
+\nSkriv n�got och f�rs�k 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 tillr�kligt med minne f�r att slutf�ra \
+den h�r uppgiften. \nAvsluta ett eller flera program f�r att �ka m�ngden \nfritt \
+minne."
+
+}
reactos/subsys/system/notepad
diff -N Th.rc
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ Th.rc 15 Dec 2004 05:07:53 -0000 1.1
@@ -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������������"
+
+}
reactos/subsys/system/notepad
diff -N Wa.rc
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ Wa.rc 15 Dec 2004 05:07:53 -0000 1.1
@@ -0,0 +1,130 @@
+/*
+ * Notepad (Walon resources)
+ *
+ * Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
+ * Proofread 1998 by David Lee Lambert <lamber45@egr.msu.edu>
+ * Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
+ *
+ * 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 &P�dje...", 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 "C�per les ro&yes", CMD_WRAP
+ }
+POPUP "C&wer�" {
+ MENUITEM "Cwer�...", CMD_SEARCH
+ MENUITEM "&Sh�vant\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 "&Inform�cion..." {
+ 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 P�dje"
+{
+LTEXT "&Tite:", 0x140, 10, 07, 40, 15
+EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP
+LTEXT "&P�note:", 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, "P�dje &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, "Inform�cion"
+
+STRING_UNTITLED, "(sin tite)"
+
+STRING_ALL_FILES, "Tos les fitch�s (*.*)"
+STRING_TEXT_FILES_TXT, "Fitch�s tekse (*.txt)"
+
+STRING_TOOLARGE, "Li fitch� '%s' est trop gros pol notepad.\n \
+Eployoz on �te aspougneu di tekse."
+STRING_NOTEXT, "Vos n' avoz r�n sicr�t. \
+\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 n�n esse trov�."
+STRING_OUT_OF_MEMORY, "Li memwere est plinne. \n\
+Cloyoz on programe ou pus po monter li memwere libe."
+
+}
+
+#endif /* LANG_WALON */
reactos/subsys/system/notepad
diff -N Zh.rc
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ Zh.rc 15 Dec 2004 05:07:53 -0000 1.1
@@ -0,0 +1,123 @@
+/*
+ * Notepad (Simplified Chinese resources)
+ *
+ * Copyright 2002 liuspider <liuspider@yahoo.com>
+ *
+ * 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������������������������������"
+
+}
CVSspam 0.2.8