home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / od124os2.exe / od12osp1.exe / src / utils / iodutils.rc < prev    next >
Text File  |  1997-04-02  |  6KB  |  155 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.7 com/src/samples/utils/iodutils.rc, odpagepart, od96os2, odos29712d 11/4/96 06:18:25 [3/21/97 17:48:24]
  28.  
  29. #ifndef IODUTILS_RESOURCES
  30. #define IODUTILS_RESOURCES
  31. #endif
  32.  
  33. #ifdef _PLATFORM_OS2_
  34. #include <os2.h>
  35. #endif
  36.  
  37. #ifdef _PLATFORM_WIN32_
  38. #include <WINUSER.H>
  39. #endif
  40.  
  41. #include <ODRes.h>
  42. #include "iodprint.hpp"
  43.  
  44.  
  45. #ifdef _PLATFORM_WIN32_
  46. PrintingPage DIALOG  120, 55, 148, 61
  47. STYLE WS_VISIBLE
  48. CAPTION "OpenDoc Print Progress"
  49. BEGIN
  50.     PUSHBUTTON      "&Cancel", StopPrinting, 50, 11, 40, 14
  51.     LTEXT           "", PrintQueueName, 43, 44, 94, 8
  52.     CTEXT           "", PrintPageNum, 10, 31, 128, 8
  53.     LTEXT           "Printer:", 210, 8, 44, 31, 8
  54. END
  55. #endif
  56.  
  57.  
  58. #ifdef _PLATFORM_OS2_
  59. DLGTEMPLATE PrintingPage LOADONCALL MOVEABLE DISCARDABLE
  60. BEGIN
  61.     DIALOG  "OpenDoc Print Progress", PrintingPage, 120, 55, 148, 61,
  62.             WS_VISIBLE, FCF_TITLEBAR
  63.     BEGIN
  64.         PUSHBUTTON      "~Cancel", StopPrinting, 50, 11, 40, 14
  65.         LTEXT           "", PrintQueueName, 43, 44, 94, 8
  66.         CTEXT           "", PrintPageNum, 10, 31, 128, 8
  67.         LTEXT           "Printer:", 210, 8, 44, 31, 8
  68.     END
  69. END
  70.  
  71.  
  72. DLGTEMPLATE PrinterListBoxDlgRes LOADONCALL MOVEABLE DISCARDABLE
  73. BEGIN
  74.     DIALOG  "Available Printers", PrinterListBoxDlgRes, 77, 67, 231, 76,
  75.             WS_VISIBLE, FCF_SYSMENU | FCF_TITLEBAR
  76.     BEGIN
  77.         LISTBOX         PrintListBox, 7, 11, 137, 56, LS_HORZSCROLL |
  78.                         WS_GROUP
  79.         DEFPUSHBUTTON   "~Ok", DID_OK, 157, 56, 66, 11, WS_GROUP
  80.         PUSHBUTTON      "~Properties...", PrinterProperties, 157, 41, 66, 11, WS_GROUP
  81.         PUSHBUTTON      "~Cancel", DID_CANCEL, 157, 26, 66, 11, WS_GROUP
  82.         PUSHBUTTON      "~Help", DID_HELP, 157, 11, 66, 11, WS_GROUP
  83.     END
  84. END
  85.  
  86.  
  87. DLGTEMPLATE PrintRangeDlgRes LOADONCALL MOVEABLE DISCARDABLE
  88. BEGIN
  89.     DIALOG  "OpenDoc Printing", PrintRangeDlgRes, 122, 39, 190, 134, WS_VISIBLE,
  90.             FCF_SYSMENU | FCF_TITLEBAR
  91.     BEGIN
  92.         LTEXT           "Printer:", 512, 11, 117, 35, 10
  93.         LTEXT           "", PrinterName, 61, 117, 127, 10, NOT WS_GROUP
  94.         LTEXT           "Document:", 514, 11, 104, 44, 10
  95.         LTEXT           "", DocumentName, 61, 104, 127, 10, NOT WS_GROUP
  96.         GROUPBOX        "Page selection", 516, 7, 28, 127, 64
  97.         AUTORADIOBUTTON "All", PrintAllPages, 16, 69, 39, 10, WS_TABSTOP
  98.         AUTORADIOBUTTON "Selective", PrintSelectivePages, 16, 59, 49, 10,
  99.                         WS_TABSTOP
  100.         LTEXT           "From", 519, 18, 39, 24, 8
  101.         SPINBUTTON      PrintFrom, 45, 41, 30, 8,
  102.                         SPBS_NUMERICONLY | SPBS_MASTER | SPBS_JUSTRIGHT |
  103.                         SPBS_FASTSPIN | WS_GROUP
  104.         LTEXT           "To", 521, 80, 40, 16, 8
  105.         SPINBUTTON      PrintTo, 99, 41, 30, 8,
  106.                         SPBS_NUMERICONLY | SPBS_MASTER | SPBS_JUSTRIGHT |
  107.                         SPBS_FASTSPIN | WS_GROUP
  108.         DEFPUSHBUTTON   "~Print", PrintDoc, 15, 5, 40, 14
  109.         PUSHBUTTON      "~Cancel", PrintCancel, 75, 5, 40, 14
  110.         PUSHBUTTON      "~Help", DID_HELP, 135, 5, 40, 14
  111.         LTEXT           "Copies", 525, 149, 77, 36, 8
  112.         SPINBUTTON      PrintCopies, 148, 62, 35, 8,
  113.                         SPBS_NUMERICONLY | SPBS_MASTER | SPBS_JUSTRIGHT |
  114.                         SPBS_FASTSPIN | WS_GROUP
  115.     END
  116. END
  117. #endif //_PLATFORM_OS2_
  118.  
  119.  
  120. STRINGTABLE
  121.    BEGIN
  122. // begin strings for warning and error message boxes
  123.    NoPrintQueueMsg     ,"No printer queue defined; entering non-standard paper size mode (printing disabled)!"
  124.    CantPrintErrorMsg   ,"This version of Page Layout cannot print to non-standard paper sizes!"
  125.    CantQueryPrinterMsg ,"An error occurred while trying to query the currently selected printer!"
  126.    PrinterFormErrorMsg ,"Error querying printer form data!"
  127.    PrintFailureMsg     ,"Unable to print!!!"
  128.    NoDefaultQueueMsg   ,"No Default Print Queue."
  129.    PrintBufferErrorMsg ,"Print buffer error!"
  130.    PrintersNotAvailMsg ,"An error occurred while querying available printers."
  131.    NoPrintersWarning   ,"There are no printers defined."
  132. // end strings for warning and error message boxes
  133.  
  134. // begin strings used in sprintf's
  135.    PrintingPageXString ,"Printing Page %d"
  136.    ErrorQueueXString   ,"Error opening printer queue: %s"
  137. // end strings used in sprintf's
  138.  
  139. // begin strings for message types
  140.    ErrorMsgString      ,"Error"
  141.    WarningMsgString    ,"Warning"
  142.    InfoMsgString       ,"Information"
  143.    MessageMsgString    ,"Message"
  144. // end strings for message types
  145.  
  146. // begin strings for printing dialogs
  147.    UntitledDocumentMsg ,"Untitled"
  148.    InitializingMsg     ,"Initializing"
  149.    PreparingJobMsg     ,"Preparing Print Job"
  150.    CompletingJobMsg    ,"Completing Print Job"
  151.    PageNumberMsg       ,"Page Number"
  152. // end strings for printing dialogs
  153.    END
  154.  
  155.