home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / oslib / oslib_1 / OSLib / Toolbox / Hdr / PrintDbox < prev    next >
Encoding:
Text File  |  1995-09-05  |  7.2 KB  |  237 lines

  1. ;Assembler header file for PrintDbox
  2. ;written by DefMod (Jun 30 1995) on Tue Sep  5 15:15:03 1995
  3. ;Jonathan Coxhead, Acorn Computers Ltd
  4.  
  5.         [       :LNOT: :DEF: Get_Types
  6.         GBLS    Get_Types
  7.         ]
  8.         [       :LNOT: :DEF: Types_Hdr
  9. Get_Types                       SETS    "GET OS:Hdr.Types"
  10.         |
  11. Get_Types                       SETS    ""
  12.         ]
  13.         $Get_Types
  14.  
  15.         [       :LNOT: :DEF: Get_Toolbox
  16.         GBLS    Get_Toolbox
  17.         ]
  18.         [       :LNOT: :DEF: Toolbox_Hdr
  19. Get_Toolbox                     SETS    "GET OS:Hdr.Toolbox"
  20.         |
  21. Get_Toolbox                     SETS    ""
  22.         ]
  23.         $Get_Toolbox
  24.  
  25.         [       :LNOT: :DEF: Get_Window
  26.         GBLS    Get_Window
  27.         ]
  28.         [       :LNOT: :DEF: Window_Hdr
  29. Get_Window                      SETS    "GET OS:Hdr.Window"
  30.         |
  31. Get_Window                      SETS    ""
  32.         ]
  33.         $Get_Window
  34.  
  35.         [       :LNOT: :DEF: PrintDbox_Hdr
  36.         GBLS    PrintDbox_Hdr
  37.  
  38. ;Symbols for constants
  39. Class_PrintDbox                 *       &82B00
  40. PrintDbox_GenerateAboutToBeShown *       &1
  41. PrintDbox_GenerateDialogueCompleted *       &2
  42. PrintDbox_GenerateShowSetupAction *       &4
  43. PrintDbox_IncludeAllFromTo      *       &8
  44. PrintDbox_IncludeCopies         *       &10
  45. PrintDbox_IncludeScale          *       &20
  46. PrintDbox_IncludeOrientation    *       &40
  47. PrintDbox_IncludeSave           *       &80
  48. PrintDbox_IncludeSetUp          *       &100
  49. PrintDbox_IncludeDraft          *       &200
  50. PrintDbox_SelectFromTo          *       &400
  51. PrintDbox_SelectSideways        *       &800
  52. PrintDbox_SelectDraft           *       &1000
  53. PrintDbox_Print                 *       &82B0000
  54. PrintDbox_Save                  *       &82B0001
  55. PrintDbox_Cancel                *       &82B0002
  56. PrintDbox_FromTo                *       &82B0003
  57. PrintDbox_All                   *       &82B0004
  58. PrintDbox_From                  *       &82B0005
  59. PrintDbox_To                    *       &82B000D
  60. PrintDbox_Copies                *       &82B000E
  61. PrintDbox_Scale                 *       &82B000F
  62. PrintDbox_Upright               *       &82B0009
  63. PrintDbox_Sideways              *       &82B000A
  64. PrintDbox_Draft                 *       &82B000B
  65. PrintDbox_SetUp                 *       &82B000C
  66. PrintDbox_Percent               *       &82B0010
  67. Action_PrintDboxAboutToBeShown  *       &82B00
  68. Action_PrintDboxDialogueCompleted *       &82B01
  69. Action_PrintDboxSetUpAboutToBeShown *       &82B02
  70. Action_PrintDboxSave            *       &82B03
  71. Action_PrintDboxSetUp           *       &82B04
  72. Action_PrintDboxPrint           *       &82B05
  73. PrintDbox_PrintSideways         *       &1
  74. PrintDbox_PrintDraft            *       &2
  75. Error_PrintDboxTasksActive      *       &80B300
  76. Error_PrintDboxAllocFailed      *       &80B301
  77. Error_PrintDboxShortBuffer      *       &80B302
  78. Error_PrintDboxNoSuchTask       *       &80B311
  79. Error_PrintDboxNoSuchMethod     *       &80B312
  80. Error_PrintDboxNoSuchMiscOpMethod *       &80B313
  81. PrintDbox_PageRangeAll          *       -1
  82.  
  83. ;Symbols for structure offsets and sizes
  84. PrintDbox_Flags                 *       Bits
  85.  
  86.                                 ^       0
  87. PrintDbox_Object_flags          #       PrintDbox_Flags
  88. PrintDbox_Object_from           #       Int
  89. PrintDbox_Object_to             #       Int
  90. PrintDbox_Object_copies         #       Int
  91. PrintDbox_Object_scale          #       Int
  92. PrintDbox_Object_further_options #       Toolbox_StringReference
  93. PrintDbox_Object_alternative_window_name #       Toolbox_StringReference
  94. PrintDbox_Object                *       @
  95.  
  96. PrintDbox_Full                  *       Toolbox_Full
  97.  
  98.                                 ^       0
  99. PrintDbox_ActionAboutToBeShown_tag #       Toolbox_PositionTag
  100. PrintDbox_ActionAboutToBeShown_position *       @
  101. PrintDbox_ActionAboutToBeShown_position_top_left #       OS_Coord
  102.                                 ^       PrintDbox_ActionAboutToBeShown_position
  103. PrintDbox_ActionAboutToBeShown_position_full #       PrintDbox_Full
  104. PrintDbox_ActionAboutToBeShown  *       @
  105.  
  106.                                 ^       0
  107. PrintDbox_ActionSetupAboutToBeShown_setup #       Toolbox_O
  108. PrintDbox_ActionSetupAboutToBeShown_tag #       Toolbox_PositionTag
  109. PrintDbox_ActionSetupAboutToBeShown_position *       @
  110. PrintDbox_ActionSetupAboutToBeShown_position_top_left #       OS_Coord
  111.                                 ^       PrintDbox_ActionSetupAboutToBeShown_position
  112. PrintDbox_ActionSetupAboutToBeShown_position_full #       PrintDbox_Full
  113. PrintDbox_ActionSetupAboutToBeShown *       @
  114.  
  115.                                 ^       0
  116. PrintDbox_ActionSave_start      #       Int
  117. PrintDbox_ActionSave_finish     #       Int
  118. PrintDbox_ActionSave_copies     #       Int
  119. PrintDbox_ActionSave_scale_factor #       Int
  120. PrintDbox_ActionSave            *       @
  121.  
  122.                                 ^       0
  123. PrintDbox_ActionPrint_start     #       Int
  124. PrintDbox_ActionPrint_finish    #       Int
  125. PrintDbox_ActionPrint_copies    #       Int
  126. PrintDbox_ActionPrint_scale_factor #       Int
  127. PrintDbox_ActionPrint           *       @
  128.  
  129.  
  130. ;Symbols for SWI's and SWI reason codes
  131. XPrintDbox_ClassSWI             *       &A2B00
  132. PrintDbox_ClassSWI              *       &82B00
  133.  
  134. XPrintDbox_PostFilter           *       &A2B01
  135. PrintDbox_PostFilter            *       &82B01
  136.  
  137. XPrintDbox_PreFilter            *       &A2B02
  138. PrintDbox_PreFilter             *       &82B02
  139.  
  140. PrintDbox_GetWindowId           *       &0
  141.    ;Entry
  142.    ;  R0 = flags (Bits)
  143.    ;  R1 = print_dbox (Toolbox_O)
  144.    ;  R2 = &0
  145.    ;Exit
  146.    ;  R0 = window (Toolbox_O)
  147.  
  148. PrintDbox_SetPageRange          *       &1
  149.    ;Entry
  150.    ;  R0 = flags (Bits)
  151.    ;  R1 = print_dbox (Toolbox_O)
  152.    ;  R2 = &1
  153.    ;  R3 = start (Int)
  154.    ;  R4 = end (Int)
  155.  
  156. PrintDbox_GetPageRange          *       &2
  157.    ;Entry
  158.    ;  R0 = flags (Bits)
  159.    ;  R1 = print_dbox (Toolbox_O)
  160.    ;  R2 = &2
  161.    ;Exit
  162.    ;  R0 = start (Int)
  163.    ;  R1 = end (Int)
  164.  
  165. PrintDbox_SetCopies             *       &3
  166.    ;Entry
  167.    ;  R0 = flags (Bits)
  168.    ;  R1 = print_dbox (Toolbox_O)
  169.    ;  R2 = &3
  170.    ;  R3 = copy_count (Int)
  171.  
  172. PrintDbox_GetCopies             *       &4
  173.    ;Entry
  174.    ;  R0 = flags (Bits)
  175.    ;  R1 = print_dbox (Toolbox_O)
  176.    ;  R2 = &4
  177.    ;Exit
  178.    ;  R0 = copy_count (Int)
  179.  
  180. PrintDbox_SetScale              *       &5
  181.    ;Entry
  182.    ;  R0 = flags (Bits)
  183.    ;  R1 = print_dbox (Toolbox_O)
  184.    ;  R2 = &5
  185.    ;  R3 = scale (Int)
  186.  
  187. PrintDbox_GetScale              *       &6
  188.    ;Entry
  189.    ;  R0 = flags (Bits)
  190.    ;  R1 = print_dbox (Toolbox_O)
  191.    ;  R2 = &6
  192.    ;Exit
  193.    ;  R0 = scale (Int)
  194.  
  195. PrintDbox_SetOrientation        *       &7
  196.    ;Entry
  197.    ;  R0 = flags (Bits)
  198.    ;  R1 = print_dbox (Toolbox_O)
  199.    ;  R2 = &7
  200.    ;  R3 = landscape (Bool)
  201.  
  202. PrintDbox_GetOrientation        *       &8
  203.    ;Entry
  204.    ;  R0 = flags (Bits)
  205.    ;  R1 = print_dbox (Toolbox_O)
  206.    ;  R2 = &8
  207.    ;Exit
  208.    ;  R0 = landscape (Bool)
  209.  
  210. PrintDbox_GetTitle              *       &9
  211.    ;Entry
  212.    ;  R0 = flags (Bits)
  213.    ;  R1 = print_dbox (Toolbox_O)
  214.    ;  R2 = &9
  215.    ;  R3 = buffer (pointer to String)
  216.    ;  R4 = size (Int)
  217.    ;Exit
  218.    ;  R4 = used (Int)
  219.  
  220. PrintDbox_SetDraft              *       &A
  221.    ;Entry
  222.    ;  R0 = flags (Bits)
  223.    ;  R1 = print_dbox (Toolbox_O)
  224.    ;  R2 = &A
  225.    ;  R3 = draft (Bool)
  226.  
  227. PrintDbox_GetDraft              *       &B
  228.    ;Entry
  229.    ;  R0 = flags (Bits)
  230.    ;  R1 = print_dbox (Toolbox_O)
  231.    ;  R2 = &B
  232.    ;Exit
  233.    ;  R0 = draft (Bool)
  234.  
  235.         ]
  236.         END
  237.