home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / od124os2.exe / od12osp1.exe / src / pagepart / iodpage.rc < prev    next >
Text File  |  1997-04-02  |  9KB  |  261 lines

  1. //====START_GENERATED_PROLOG======================================
  2. //
  3. //
  4. //   COMPONENT_NAME: odpagepart
  5. //
  6. //   CLASSES: none
  7. //
  8. //   ORIGINS: 82,27
  9. //
  10. //
  11. //   (C) COPYRIGHT International Business Machines Corp. 1995,1996
  12. //   All Rights Reserved
  13. //   Licensed Materials - Property of IBM
  14. //   US Government Users Restricted Rights - Use, duplication or
  15. //   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  16. //       
  17. //   IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  18. //   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  19. //   PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  20. //   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  21. //   USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  22. //   OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  23. //   OR PERFORMANCE OF THIS SOFTWARE.
  24. //
  25. //====END_GENERATED_PROLOG========================================
  26. //
  27. //   @(#) 1.6 com/src/samples/pagepart/iodpage.rc, odpagepart, od96os2, odos29712d 11/8/96 19:32:54 [3/21/97 17:49:01]
  28.  
  29. #ifdef _PLATFORM_OS2_
  30. #include <os2.h>
  31. #endif
  32.  
  33. #ifdef _PLATFORM_WIN32_
  34. #include <winuser.h>
  35. #endif
  36.  
  37. #include <ODRes.h>
  38. #include "IODPgRes.h"
  39.  
  40. #ifdef _PLATFORM_WIN32_
  41. PAGEICON ICON IODPage.ico
  42.  
  43. PageMenuID MENUEX
  44. BEGIN
  45.    MENUITEM "&Insert Page...", MenuInsertPage
  46.    MENUITEM "Insert Page at &End", MenuInsertPageLast
  47.    MENUITEM "&Remove Page...", MenuRemovePage
  48.    MENUITEM "&Go To Page...", MenuGoToPage
  49.    MENUITEM SEPARATOR
  50. #if 0   
  51.    POPUP  "Page Number Position", MenuPageNumberPosition
  52.    BEGIN
  53.       MENUITEM "Top Left", MenuPageNumberTopLeft
  54.       MENUITEM "Top Center", MenuPageNumberTopCenter
  55.       MENUITEM "Top Right", MenuPageNumberTopRight
  56.       MENUITEM "Bottom Left", MenuPageNumberBottomLeft
  57.       MENUITEM "Bottom Center", MenuPageNumberBottomCenter
  58.       MENUITEM "Bottom Right", MenuPageNumberBottomRight
  59.       MENUITEM "None", MenuPageNumberNone
  60.    END
  61.    POPUP    "Ruler Units", MenuRulerUnits
  62.    BEGIN
  63.       MENUITEM "Inches", MenuRulerInches
  64.       MENUITEM "Centimeters", MenuRulerCentimeters
  65.    END
  66.    POPUP    "Margin Line Type", MenuMarginLineType
  67.    BEGIN
  68.       MENUITEM "Dotted", MenuMarginDots
  69.       MENUITEM "Dashed", MenuMarginDash
  70.       MENUITEM "Dash-Dot", MenuMarginDashDot
  71.       MENUITEM "Dash-Double-Dot", MenuMarginDashDoubleDot
  72.       MENUITEM "Solid", MenuMarginSolid
  73.    END
  74.    POPUP    "Grid Line Type", MenuGridLineType
  75.    BEGIN
  76.       MENUITEM "Dotted", MenuGridDots
  77.       MENUITEM "Dashed", MenuGridDash
  78.       MENUITEM "Dash-Dot", MenuGridDashDot
  79.       MENUITEM "Dash-Double-Dot", MenuGridDashDoubleDot
  80.       MENUITEM "Solid", MenuGridSolid
  81.    END
  82.    MENUITEM SEPARATOR
  83. #endif   
  84.    MENUITEM "&Header...", MenuHeader
  85.    MENUITEM "&Footer...", MenuFooter
  86. END
  87.  
  88. ColorMenuID MENUEX
  89. BEGIN
  90.    MENUITEM "&Background Color...", MenuBackgroundColor
  91.    MENUITEM "&Page Color...", MenuPageColor
  92.    MENUITEM "&Text Color...", MenuTextColor
  93.    MENUITEM "&Ruler Color...", MenuRulersColor
  94.    MENUITEM "&Margin Color...", MenuMarginsColor
  95.    MENUITEM "&Grid Color...", MenuGridColor
  96. END
  97.  
  98. ChoosePageDlgValue DIALOG  30, 25, 150, 90
  99. STYLE WS_VISIBLE
  100. CAPTION "Choose Page..."
  101. BEGIN
  102.     CTEXT           "Enter Page Number:", -1, 25, 10, 100, 10
  103.     EDITTEXT        ChoosePageEntryField, 50, 30, 50, 12, ES_RIGHT | ES_NUMBER
  104.     DEFPUSHBUTTON   "OK", IDOK, 20, 65, 40, 15
  105.     PUSHBUTTON      "Cancel", IDCANCEL, 90, 65, 40, 15
  106. END
  107.  
  108. GetTextDlgValue DIALOG  30, 25, 150, 90
  109. STYLE WS_VISIBLE
  110. CAPTION "Header/Footer"
  111. BEGIN
  112.     CTEXT           "Enter Text String:", -1, 25, 10, 100, 10
  113.     EDITTEXT        GetTextEntryField, 25, 30, 100, 12, ES_AUTOHSCROLL
  114.     DEFPUSHBUTTON   "OK", IDOK, 20, 65, 40, 15
  115.     PUSHBUTTON      "Cancel", IDCANCEL, 90, 65, 40, 15
  116. END
  117. #endif //_PLATFORM_WIN32_
  118.  
  119.  
  120. #ifdef _PLATFORM_OS2_
  121. ICON PAGEICON IODPage.ico
  122.  
  123. MENU PageMenuID PRELOAD
  124. BEGIN
  125.    MENUITEM "~Insert Page...", MenuInsertPage, MIS_TEXT
  126.    MENUITEM "Insert Page at ~End", MenuInsertPageLast, MIS_TEXT
  127.    MENUITEM "~Remove Page...", MenuRemovePage, MIS_TEXT
  128.    MENUITEM "~Go To Page...", MenuGoToPage, MIS_TEXT
  129.    MENUITEM "", MenuSeparator, MIS_SEPARATOR
  130.    SUBMENU  "Page Number Position", MenuPageNumberPosition, MIS_TEXT
  131.    BEGIN
  132.       MENUITEM "Top Left", MenuPageNumberTopLeft, MIS_TEXT
  133.       MENUITEM "Top Center", MenuPageNumberTopCenter, MIS_TEXT
  134.       MENUITEM "Top Right", MenuPageNumberTopRight, MIS_TEXT
  135.       MENUITEM "Bottom Left", MenuPageNumberBottomLeft, MIS_TEXT
  136.       MENUITEM "Bottom Center", MenuPageNumberBottomCenter, MIS_TEXT
  137.       MENUITEM "Bottom Right", MenuPageNumberBottomRight, MIS_TEXT
  138.       MENUITEM "None", MenuPageNumberNone, MIS_TEXT
  139.    END
  140.    SUBMENU  "Ruler Units", MenuRulerUnits, MIS_TEXT
  141.    BEGIN
  142.       MENUITEM "Inches", MenuRulerInches, MIS_TEXT
  143.       MENUITEM "Centimeters", MenuRulerCentimeters, MIS_TEXT
  144.    END
  145.    SUBMENU  "Margin Line Type", MenuMarginLineType, MIS_TEXT
  146.    BEGIN
  147.       MENUITEM "Dotted", MenuMarginDots, MIS_TEXT
  148.       MENUITEM "Dashed", MenuMarginDash, MIS_TEXT
  149.       MENUITEM "Dash-Dot", MenuMarginDashDot, MIS_TEXT
  150.       MENUITEM "Dash-Double-Dot", MenuMarginDashDoubleDot, MIS_TEXT
  151.       MENUITEM "Solid", MenuMarginSolid, MIS_TEXT
  152.    END
  153.    SUBMENU  "Grid Line Type", MenuGridLineType, MIS_TEXT
  154.    BEGIN
  155.       MENUITEM "Dotted", MenuGridDots, MIS_TEXT
  156.       MENUITEM "Dashed", MenuGridDash, MIS_TEXT
  157.       MENUITEM "Dash-Dot", MenuGridDashDot, MIS_TEXT
  158.       MENUITEM "Dash-Double-Dot", MenuGridDashDoubleDot, MIS_TEXT
  159.       MENUITEM "Solid", MenuGridSolid, MIS_TEXT
  160.    END
  161.    MENUITEM "", MenuSeparator2, MIS_SEPARATOR
  162.    MENUITEM "~Header...", MenuHeader, MIS_TEXT
  163.    MENUITEM "~Footer...", MenuFooter, MIS_TEXT
  164. END
  165.  
  166. MENU ColorMenuID PRELOAD
  167. BEGIN
  168.    MENUITEM "~Background Color...", MenuBackgroundColor, MIS_TEXT
  169.    MENUITEM "~Page Color...", MenuPageColor, MIS_TEXT
  170.    MENUITEM "~Text Color...", MenuTextColor, MIS_TEXT
  171.    MENUITEM "~Ruler Color...", MenuRulersColor, MIS_TEXT
  172.    MENUITEM "~Margin Color...", MenuMarginsColor, MIS_TEXT
  173.    MENUITEM "~Grid Color...", MenuGridColor, MIS_TEXT
  174. END
  175.  
  176. DLGTEMPLATE ChoosePageDlgValue LOADONCALL MOVEABLE DISCARDABLE
  177. BEGIN
  178.     DIALOG  "Choose Page...", ChoosePageDlgValue, 30, 25, 150, 90, WS_VISIBLE,
  179.             FCF_SYSMENU | FCF_TITLEBAR
  180.     BEGIN
  181.         CTEXT           "Enter Page Number:", UNUSED, 25, 70, 100, 10,
  182.                         DT_VCENTER
  183.         SPINBUTTON      ChoosePageSpinButton, 50, 48, 50, 12, SPBS_NUMERICONLY |
  184.                         SPBS_JUSTRIGHT | SPBS_MASTER | WS_GROUP
  185.         DEFPUSHBUTTON   "OK", DID_OK, 20, 10, 40, 15
  186.         PUSHBUTTON      "Cancel", DID_CANCEL, 90, 10, 40, 15
  187.     END
  188. END
  189.  
  190. DLGTEMPLATE GetTextDlgValue LOADONCALL MOVEABLE DISCARDABLE
  191. BEGIN
  192.     DIALOG  "Header/Footer", GetTextDlgValue, 30, 25, 150, 90, WS_VISIBLE,
  193.             FCF_SYSMENU | FCF_TITLEBAR
  194.     BEGIN
  195.         CTEXT           "Enter Text String:", UNUSED, 25, 70, 100, 10,
  196.                         DT_VCENTER
  197.         ENTRYFIELD      "", GetTextEntryField, 25, 48, 100, 12, WS_GROUP
  198.         DEFPUSHBUTTON   "OK", DID_OK, 20, 10, 40, 15
  199.         PUSHBUTTON      "Cancel", DID_CANCEL, 90, 10, 40, 15
  200.     END
  201. END
  202. #endif //_PLATFORM_OS2_
  203.  
  204.  
  205. STRINGTABLE
  206. BEGIN
  207. // begin strings for warning and error message boxes
  208.    GoToPageErrorMsg    ,"Invalid Page Number!"
  209.    MaxPageString       ,"Unable to comply!  Maximum number of pages already reached."
  210. // end strings for warning and error message boxes
  211.  
  212. // begin strings for menu items
  213. #ifdef _PLATFORM_WIN32_
  214.    PageMenuString        ,"&Page"
  215.    ColorMenuString       ,"&Colors"
  216.    FillPageString        ,"&Fill Entire Page"
  217.    SnapToGridString      ,"Snap To &Grid"
  218.    ShowGridString        ,"Alignment &Grid"
  219.    ShowRulersString      ,"&Rulers"
  220.    ShowMarginsString     ,"&Margins"
  221.    RefreshString         ,"Re&fresh"
  222.    PartInfoString        ,"&Page Layout Information"
  223. #endif //_PLATFORM_WIN32_
  224.  
  225. #ifdef _PLATFORM_OS2_
  226.    PageMenuString        ,"~Page"
  227.    ColorMenuString       ,"~Colors"
  228.    FillPageString        ,"~Fill Entire Page"
  229.    SnapToGridString      ,"Snap To ~Grid"
  230.    ShowGridString        ,"Alignment ~Grid"
  231.    ShowRulersString      ,"~Rulers"
  232.    ShowMarginsString     ,"~Margins"
  233.    RefreshString         ,"Re~fresh"
  234.    PartInfoString        ,"~Page Layout Information"
  235. #endif //_PLATFORM_OS2_
  236.  
  237. // end strings for menu items
  238.  
  239. #if 0
  240. // begin strings for binding information
  241.    kPartHandlerDisplayName         ,"Page Layout"
  242.    kPartHandlerKindDisplayName     ,"Page Layout Kind"
  243.    kPartHandlerCategoryDisplayName ,"Page Layout"
  244. // end strings for binding information
  245.  
  246. // begin strings for warning and error message boxes
  247.    WrongViewTypeMsg    ,"Page Layout doesn't support this view type; returning to frame view"
  248.    IconsNotFoundMsg    ,"Error creating icons; returning to frame view"
  249. #endif
  250.  
  251. // begin strings for dialog box title bar texts
  252.    GoToPageDlgTitle    ,"Go To Page..."
  253.    InsertPageDlgTitle  ,"Insert Blank Page After Page..."
  254.    RemovePageDlgTitle  ,"Remove Page..."
  255.    HeaderDlgTitle      ,"Header"
  256.    FooterDlgTitle      ,"Footer"
  257. // end strings for dialog box title bar texts
  258.  
  259. END
  260.  
  261.