#include "..\wizedit\resource.h"

#if !defined (WORKSHOP_INVOKED)
#include <windows.h>
#endif

#include <winver.h>
#include "..\wizedit\toolbar.h"
#include "..\wizedit\statbar.h"
#include "..\wizedit\ruler.h"

IDI_APPICON             ICON    DISCARDABLE     "wizedit.ICO"
IDI_CHILDICON           ICON    DISCARDABLE     "child.ico"

IDB_BMP                 BITMAP                  "toolbar.bmp"
IDB_RULER               BITMAP  MOVEABLE PURE   "ruler.bmp"

ABOUTBOX DIALOG DISCARDABLE  22, 17, 167, 73
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "About wizedit"
FONT 8, "System"
BEGIN
    DEFPUSHBUTTON   "OK",IDOK,132,2,32,14,WS_GROUP
    ICON            IDI_APPICON,-1,3,2,18,20
    LTEXT           "CompanyName",IDD_VERFIRST,30,2,100,8
    LTEXT           "FileDescription",101,30,11,100,8
    LTEXT           "FileVersion",102,30,20,137,8
    LTEXT           "LegalCopyright",103,30,29,137,8
    LTEXT           "LegalTrademarks",IDD_VERLAST,30,47,136,27
    CONTROL         "",501,"Static",SS_BLACKRECT,29,43,138,1
END

ABORTDLG DIALOG DISCARDABLE  20, 20, 135, 64
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "WizEdit"
FONT 8, "System"
BEGIN
    DEFPUSHBUTTON   "Cancel",IDCANCEL,52,44,32,14,WS_GROUP
    CTEXT           "Sending",-1,0,8,135,8
    CTEXT           "text",IDC_FILENAME,0,18,135,8
    CTEXT           "to print spooler.",-1,0,28,135,8
END

IDD_PRINTPREVIEW DIALOG DISCARDABLE  0, 0, 324, 58
STYLE WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_CAPTION | WS_SYSMENU | 
    WS_THICKFRAME
CAPTION "Print Preview"
FONT 8, "MS Sans Serif"
BEGIN
    PUSHBUTTON      "&Print...",IDM_FILEPRINT,2,2,44,12,WS_GROUP
    PUSHBUTTON      "&Next Page",IDC_PREVIEW_NEXT,48,2,44,12
    PUSHBUTTON      "Pre&v Page",IDC_PREVIEW_PREV,94,2,44,12
    PUSHBUTTON      "&Two Page",IDC_PREVIEW_NUMPAGE,140,2,44,12
    PUSHBUTTON      "Zoom &In",IDC_PREVIEW_ZOOMIN,186,2,44,12
    PUSHBUTTON      "Zoom &Out",IDC_PREVIEW_ZOOMOUT,232,2,44,12
    PUSHBUTTON      "&Close",IDCANCEL,278,2,44,12
    LTEXT           "",IDC_SEPARATOR,0,16,324,2,WS_DISABLED | NOT WS_GROUP
END


WizEdit MENU DISCARDABLE
BEGIN
    POPUP "&File"
    BEGIN
        MENUITEM "&New",                        IDM_FILENEW
        MENUITEM "&Open...",                    IDM_FILEOPEN
        MENUITEM "&Save",                       IDM_FILESAVE, GRAYED
        MENUITEM "Save &As...",                 IDM_FILESAVEAS, GRAYED
        MENUITEM "&Close",                      IDM_FILECLOSE, GRAYED
        MENUITEM SEPARATOR
        MENUITEM "&Print...",                   IDM_FILEPRINT, GRAYED
        MENUITEM "P&rint Setup...",             IDM_FILEPRINTSU
        MENUITEM "Print Pre&view...",           IDM_FILEPRINTPREV
        MENUITEM SEPARATOR
        MENUITEM "E&xit",                       IDM_EXIT
    END
    POPUP "&Edit"
    BEGIN
        MENUITEM "&Undo\tAlt+BkSp",             IDM_EDITUNDO, GRAYED
        MENUITEM SEPARATOR
        MENUITEM "Cu&t\tShift+Del",             IDM_EDITCUT, GRAYED
        MENUITEM "&Copy\tCtrl+Ins",             IDM_EDITCOPY, GRAYED
        MENUITEM "&Paste\tShift+Ins",           IDM_EDITPASTE, GRAYED
        MENUITEM "&Delete\tDel",                IDM_EDITCLEAR, GRAYED
    END
    POPUP "&Search"
    BEGIN
        MENUITEM "&Find...",                    IDM_FIND, GRAYED
        MENUITEM "Find &Next\tF3",              IDM_FINDNEXT, GRAYED
        MENUITEM "Find &Previous\tF4",          IDM_FINDPREV, GRAYED
        MENUITEM "&Replace...",                 IDM_REPLACE, GRAYED
    END
    POPUP   "Forma&t"
	{
        MENUITEM "&Font...",                IDM_EDITFONTDIALOG
        MENUITEM SEPARATOR
        MENUITEM "Su&perscript",            IDM_SUPERSCRIPT
        MENUITEM "Su&bscript",              IDM_SUBSCRIPT
        MENUITEM SEPARATOR
        MENUITEM "&Left",                   IDM_ALIGNLEFT
        MENUITEM "Ce&nter",                 IDM_ALIGNCENTER
        MENUITEM "&Right",                  IDM_ALIGNRIGHT
        MENUITEM SEPARATOR
		MENUITEM "&Indent First",			IDM_INDENTFIRST
		MENUITEM "&Outdent First",			IDM_OUTDENTFIRST
    }
    POPUP "&Window"
    BEGIN
        MENUITEM "Tile &Horizontal",            IDM_WINDOWTILEHOR
        MENUITEM "Tile &Vertical"               IDM_WINDOWTILEVER
        MENUITEM "&Cascade",                    IDM_WINDOWCASCADE
        MENUITEM "Arrange &Icons",              IDM_WINDOWICONS
        MENUITEM "Close &All",                  IDM_WINDOWCLOSEALL
    END
    POPUP "&Help"
    BEGIN
        MENUITEM "&About...",                   IDM_ABOUT
    END
END


WizEdit ACCELERATORS MOVEABLE PURE
BEGIN
    VK_F3,          IDM_FINDNEXT,           VIRTKEY 
    VK_F4,          IDM_FINDPREV,           VIRTKEY 
    "Z",            IDM_EDITUNDO,           VIRTKEY, CONTROL
    "X",            IDM_EDITCUT,            VIRTKEY, CONTROL
    "C",            IDM_EDITCOPY,           VIRTKEY, CONTROL
    "V",            IDM_EDITPASTE,          VIRTKEY, CONTROL
    "Q",            IDM_EXIT,               VIRTKEY, CONTROL
END


VS_VERSION_INFO VERSIONINFO
 FILEVERSION 4,0,0,0
 PRODUCTVERSION 4,0,0,0
 FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
 FILEFLAGS 0xbL
#else
 FILEFLAGS 0xaL
#endif
 FILEOS 0x10001L
 FILETYPE 0x1L
 FILESUBTYPE 0x0L
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "040904E4"
        BEGIN
            VALUE "CompanyName", "Info-ZIP\0"
            VALUE "FileDescription", "WizEdit\0"
            VALUE "FileVersion", "Version 1.0.0\0"
            VALUE "InternalName", "WizEdit\0"
            VALUE "LegalCopyright", "Copyright \251 Mike White 1997\0"
            VALUE "LegalTrademarks", "WizEdit\0"
            VALUE "ProductName", "WizEdit\0"
            VALUE "ProductVersion", "Version 1.0.0\0"
        END
    END
    BLOCK "VarFileInfo"
    BEGIN
        VALUE "Translation", 0x409, 1252
    END
END


STRINGTABLE DISCARDABLE 
BEGIN
    IDS_APPNAME             "WizEdit"
    IDS_DESCRIPTION         "Wiz Editor"
    IDS_FILTERSTRING        "All Files(*.*)|*.*|Rich Text File(*.RTF)|*.rtf|"
    IDS_CHILDNAME           "MdiChild"
    IDS_RULERNAME           "Ruler"
END

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_SYSMENU             "Move, size, or close application window"
    IDS_MDISYSMENU          "Move, size, or close document window"
END

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_SCRESTORE           "Restores the window to normal size"
END

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_SCMOVE              "Changes the position of the window"
END

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_SCSIZE              "Changes the size of the window"
END

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_SCMINIMIZE          "Minimizes the window to an icon"
END

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_SCMAXIMIZE          "Enlarges the window to full size"
END

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_SCCLOSE             "Closes the window"
END

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_SCTASKLIST          "Switches to another application through the Windows Task Manager"
END

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_SCNEXTWINDOW        "Switches to the next document window"
END

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_SCPREVWINDOW        "Switches to the previous document window"
END

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_FILEMENU            "Create, open, save, or print documents"
    IDM_FILENEW             "Creates a new document"
    IDM_FILEOPEN            "Opens an existing document"
    IDM_FILESAVE            "Saves the active document"
    IDM_FILESAVEAS          "Saves the active document under a different name"
    IDM_FILECLOSE           "Closes the active document"
    IDM_FILEPRINT           "Prints the active document"
    IDM_FILEPRINTSU         "Changes the printer selection or configuration"
END

STRINGTABLE DISCARDABLE 
BEGIN
    IDM_FILEPRINTPREV       "Previews the current document"
    IDM_EXIT                "Quits this application"
END

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_EDITMENU            "Undo, delete, copy, and insert"
    IDM_EDITUNDO            "Reverses the last action"
    IDM_EDITCUT             "Cuts the selection and puts it on the clipboard"
    IDM_EDITCOPY            "Copies the selection and puts it on the clipboard"
END

STRINGTABLE DISCARDABLE 
BEGIN
    IDM_EDITPASTE           "Inserts the clipboard contents at the insertion point"
    IDM_EDITCLEAR           "Removes the selection without putting it on the clipboard"
    IDM_EDITBOLD            "Makes the selection bold (toggle)"
    IDM_EDITITALIC          "Makes the selection italic (toggle)"
    IDM_EDITUNDERLINE       "Makes the selection underline (toggle)"
    IDM_EDITINCREASEFONT    "Increase the selection font size by 1 point"
    IDM_EDITDECREASEFONT    "Decrease the selections font size by 1 point"
END

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_SEARCHMENU          "Find or replace text"
    IDM_FIND                "Find text"
    IDM_FINDNEXT            "Find next occurrence of text"
    IDM_FINDPREV            "Find previous occurrence of text"
    IDM_REPLACE             "Replace text"
END

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_WINDOWMENU          "Rearrange windows or activate specified window"
    IDM_WINDOWTILEHOR       "Arranges windows as non-overlapping horizontal tiles"
    IDM_WINDOWTILEVER       "Arranges windows as non-overlapping vertical tiles"
    IDM_WINDOWCASCADE       "Arranges windows as overlapping tiles"
    IDM_WINDOWCLOSEALL      "Closes all open windows"
    IDM_WINDOWICONS         "Arranges minimized window icons"
    IDM_WINDOWCHILD         "Switches to "
END

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_HELPMENU            "Get help"
    IDM_ABOUT               "Displays information about this application"
END

STRINGTABLE DISCARDABLE
BEGIN
    IDS_FORMATMENU          "Format Document"
    IDM_EDITFONTDIALOG      "Changes the appearance of selected characters"
    IDM_SUPERSCRIPT,        "Superscript"
    IDM_SUBSCRIPT,          "Subscript"
    IDM_ALIGNLEFT,          "Align text left"
    IDM_ALIGNCENTER,        "Center text"
    IDM_ALIGNRIGHT,         "Align text right"
    IDM_INDENTFIRST         "Indent first line of paragraph"
    IDM_OUTDENTFIRST        "Outdent first line of paragraph"
END

