home *** CD-ROM | disk | FTP | other *** search
- ;Assembler header file for PrintDbox
- ;written by DefMod (Jun 30 1995) on Tue Sep 5 15:15:03 1995
- ;Jonathan Coxhead, Acorn Computers Ltd
-
- [ :LNOT: :DEF: Get_Types
- GBLS Get_Types
- ]
- [ :LNOT: :DEF: Types_Hdr
- Get_Types SETS "GET OS:Hdr.Types"
- |
- Get_Types SETS ""
- ]
- $Get_Types
-
- [ :LNOT: :DEF: Get_Toolbox
- GBLS Get_Toolbox
- ]
- [ :LNOT: :DEF: Toolbox_Hdr
- Get_Toolbox SETS "GET OS:Hdr.Toolbox"
- |
- Get_Toolbox SETS ""
- ]
- $Get_Toolbox
-
- [ :LNOT: :DEF: Get_Window
- GBLS Get_Window
- ]
- [ :LNOT: :DEF: Window_Hdr
- Get_Window SETS "GET OS:Hdr.Window"
- |
- Get_Window SETS ""
- ]
- $Get_Window
-
- [ :LNOT: :DEF: PrintDbox_Hdr
- GBLS PrintDbox_Hdr
-
- ;Symbols for constants
- Class_PrintDbox * &82B00
- PrintDbox_GenerateAboutToBeShown * &1
- PrintDbox_GenerateDialogueCompleted * &2
- PrintDbox_GenerateShowSetupAction * &4
- PrintDbox_IncludeAllFromTo * &8
- PrintDbox_IncludeCopies * &10
- PrintDbox_IncludeScale * &20
- PrintDbox_IncludeOrientation * &40
- PrintDbox_IncludeSave * &80
- PrintDbox_IncludeSetUp * &100
- PrintDbox_IncludeDraft * &200
- PrintDbox_SelectFromTo * &400
- PrintDbox_SelectSideways * &800
- PrintDbox_SelectDraft * &1000
- PrintDbox_Print * &82B0000
- PrintDbox_Save * &82B0001
- PrintDbox_Cancel * &82B0002
- PrintDbox_FromTo * &82B0003
- PrintDbox_All * &82B0004
- PrintDbox_From * &82B0005
- PrintDbox_To * &82B000D
- PrintDbox_Copies * &82B000E
- PrintDbox_Scale * &82B000F
- PrintDbox_Upright * &82B0009
- PrintDbox_Sideways * &82B000A
- PrintDbox_Draft * &82B000B
- PrintDbox_SetUp * &82B000C
- PrintDbox_Percent * &82B0010
- Action_PrintDboxAboutToBeShown * &82B00
- Action_PrintDboxDialogueCompleted * &82B01
- Action_PrintDboxSetUpAboutToBeShown * &82B02
- Action_PrintDboxSave * &82B03
- Action_PrintDboxSetUp * &82B04
- Action_PrintDboxPrint * &82B05
- PrintDbox_PrintSideways * &1
- PrintDbox_PrintDraft * &2
- Error_PrintDboxTasksActive * &80B300
- Error_PrintDboxAllocFailed * &80B301
- Error_PrintDboxShortBuffer * &80B302
- Error_PrintDboxNoSuchTask * &80B311
- Error_PrintDboxNoSuchMethod * &80B312
- Error_PrintDboxNoSuchMiscOpMethod * &80B313
- PrintDbox_PageRangeAll * -1
-
- ;Symbols for structure offsets and sizes
- PrintDbox_Flags * Bits
-
- ^ 0
- PrintDbox_Object_flags # PrintDbox_Flags
- PrintDbox_Object_from # Int
- PrintDbox_Object_to # Int
- PrintDbox_Object_copies # Int
- PrintDbox_Object_scale # Int
- PrintDbox_Object_further_options # Toolbox_StringReference
- PrintDbox_Object_alternative_window_name # Toolbox_StringReference
- PrintDbox_Object * @
-
- PrintDbox_Full * Toolbox_Full
-
- ^ 0
- PrintDbox_ActionAboutToBeShown_tag # Toolbox_PositionTag
- PrintDbox_ActionAboutToBeShown_position * @
- PrintDbox_ActionAboutToBeShown_position_top_left # OS_Coord
- ^ PrintDbox_ActionAboutToBeShown_position
- PrintDbox_ActionAboutToBeShown_position_full # PrintDbox_Full
- PrintDbox_ActionAboutToBeShown * @
-
- ^ 0
- PrintDbox_ActionSetupAboutToBeShown_setup # Toolbox_O
- PrintDbox_ActionSetupAboutToBeShown_tag # Toolbox_PositionTag
- PrintDbox_ActionSetupAboutToBeShown_position * @
- PrintDbox_ActionSetupAboutToBeShown_position_top_left # OS_Coord
- ^ PrintDbox_ActionSetupAboutToBeShown_position
- PrintDbox_ActionSetupAboutToBeShown_position_full # PrintDbox_Full
- PrintDbox_ActionSetupAboutToBeShown * @
-
- ^ 0
- PrintDbox_ActionSave_start # Int
- PrintDbox_ActionSave_finish # Int
- PrintDbox_ActionSave_copies # Int
- PrintDbox_ActionSave_scale_factor # Int
- PrintDbox_ActionSave * @
-
- ^ 0
- PrintDbox_ActionPrint_start # Int
- PrintDbox_ActionPrint_finish # Int
- PrintDbox_ActionPrint_copies # Int
- PrintDbox_ActionPrint_scale_factor # Int
- PrintDbox_ActionPrint * @
-
-
- ;Symbols for SWI's and SWI reason codes
- XPrintDbox_ClassSWI * &A2B00
- PrintDbox_ClassSWI * &82B00
-
- XPrintDbox_PostFilter * &A2B01
- PrintDbox_PostFilter * &82B01
-
- XPrintDbox_PreFilter * &A2B02
- PrintDbox_PreFilter * &82B02
-
- PrintDbox_GetWindowId * &0
- ;Entry
- ; R0 = flags (Bits)
- ; R1 = print_dbox (Toolbox_O)
- ; R2 = &0
- ;Exit
- ; R0 = window (Toolbox_O)
-
- PrintDbox_SetPageRange * &1
- ;Entry
- ; R0 = flags (Bits)
- ; R1 = print_dbox (Toolbox_O)
- ; R2 = &1
- ; R3 = start (Int)
- ; R4 = end (Int)
-
- PrintDbox_GetPageRange * &2
- ;Entry
- ; R0 = flags (Bits)
- ; R1 = print_dbox (Toolbox_O)
- ; R2 = &2
- ;Exit
- ; R0 = start (Int)
- ; R1 = end (Int)
-
- PrintDbox_SetCopies * &3
- ;Entry
- ; R0 = flags (Bits)
- ; R1 = print_dbox (Toolbox_O)
- ; R2 = &3
- ; R3 = copy_count (Int)
-
- PrintDbox_GetCopies * &4
- ;Entry
- ; R0 = flags (Bits)
- ; R1 = print_dbox (Toolbox_O)
- ; R2 = &4
- ;Exit
- ; R0 = copy_count (Int)
-
- PrintDbox_SetScale * &5
- ;Entry
- ; R0 = flags (Bits)
- ; R1 = print_dbox (Toolbox_O)
- ; R2 = &5
- ; R3 = scale (Int)
-
- PrintDbox_GetScale * &6
- ;Entry
- ; R0 = flags (Bits)
- ; R1 = print_dbox (Toolbox_O)
- ; R2 = &6
- ;Exit
- ; R0 = scale (Int)
-
- PrintDbox_SetOrientation * &7
- ;Entry
- ; R0 = flags (Bits)
- ; R1 = print_dbox (Toolbox_O)
- ; R2 = &7
- ; R3 = landscape (Bool)
-
- PrintDbox_GetOrientation * &8
- ;Entry
- ; R0 = flags (Bits)
- ; R1 = print_dbox (Toolbox_O)
- ; R2 = &8
- ;Exit
- ; R0 = landscape (Bool)
-
- PrintDbox_GetTitle * &9
- ;Entry
- ; R0 = flags (Bits)
- ; R1 = print_dbox (Toolbox_O)
- ; R2 = &9
- ; R3 = buffer (pointer to String)
- ; R4 = size (Int)
- ;Exit
- ; R4 = used (Int)
-
- PrintDbox_SetDraft * &A
- ;Entry
- ; R0 = flags (Bits)
- ; R1 = print_dbox (Toolbox_O)
- ; R2 = &A
- ; R3 = draft (Bool)
-
- PrintDbox_GetDraft * &B
- ;Entry
- ; R0 = flags (Bits)
- ; R1 = print_dbox (Toolbox_O)
- ; R2 = &B
- ;Exit
- ; R0 = draft (Bool)
-
- ]
- END
-