patch-gv_h 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. $OpenBSD: patch-gv_h,v 1.1 2002/04/26 01:44:08 espie Exp $
  2. --- gv.h.orig Sat Jul 24 04:29:12 1993
  3. +++ gv.h Fri Apr 26 02:30:41 2002
  4. @@ -166,81 +166,100 @@ extern Widget dialogpopup;
  5. extern Widget dialog;
  6. /* Dialogs */
  7. -extern Widget CreateDialog();
  8. -extern String GetDialogPrompt();
  9. -extern void SetDialogPrompt();
  10. -extern String GetDialogResponse();
  11. -extern void SetDialogResponse();
  12. -extern void ClearDialogResponse();
  13. +extern Widget CreateDialog(Widget, String, XtCallbackProc, XtCallbackProc);
  14. +extern String GetDialogPrompt(Widget);
  15. +extern void SetDialogPrompt(Widget, String);
  16. +extern String GetDialogResponse(Widget);
  17. +extern void SetDialogResponse(Widget, String);
  18. +extern void ClearDialogResponse(Widget);
  19. /* Callbacks */
  20. -extern void quit_ghostview();
  21. -extern void popup();
  22. -extern void popup_dialog();
  23. -extern void reopen_file();
  24. -extern void prev_page();
  25. -extern void this_page();
  26. -extern void next_page();
  27. -extern void center_page();
  28. -extern void mark_page();
  29. -extern void unmark_page();
  30. -extern void set_magstep();
  31. -extern void set_orientation();
  32. -extern void swap_landscape();
  33. -extern void set_pagemedia();
  34. -extern void track_and_zoom();
  35. -extern void message();
  36. -extern void output();
  37. -extern void okay();
  38. -extern void dismiss();
  39. -extern void destroy();
  40. -extern void destroy_ghost();
  41. +extern void quit_ghostview(Widget, XtPointer, XtPointer);
  42. +extern void popup(Widget, XtPointer, XtPointer);
  43. +extern void popup_dialog(Widget, XtPointer, XtPointer);
  44. +extern void reopen_file(Widget, XtPointer, XtPointer);
  45. +extern void prev_page(Widget, XtPointer, XtPointer);
  46. +extern void this_page(Widget, XtPointer, XtPointer);
  47. +extern void next_page(Widget, XtPointer, XtPointer);
  48. +extern void center_page(Widget, XtPointer, XtPointer);
  49. +extern void mark_page(Widget, XtPointer, XtPointer);
  50. +extern void unmark_page(Widget, XtPointer, XtPointer);
  51. +extern void set_magstep(Widget, XtPointer, XtPointer);
  52. +extern void set_orientation(Widget, XtPointer, XtPointer);
  53. +extern void swap_landscape(Widget, XtPointer, XtPointer);
  54. +extern void set_pagemedia(Widget, XtPointer, XtPointer);
  55. +extern void track_and_zoom(Widget, XtPointer, XtPointer);
  56. +extern void message(Widget, XtPointer, XtPointer);
  57. +extern void output(Widget, XtPointer, XtPointer);
  58. +extern void okay(Widget, XtPointer, XtPointer);
  59. +extern void dismiss(Widget, XtPointer, XtPointer);
  60. +extern void destroy(Widget, XtPointer, XtPointer);
  61. +extern void destroy_ghost(Widget, XtPointer, XtPointer);
  62. /* Actions */
  63. -extern void gv_copyright();
  64. -extern void gv_quit();
  65. -extern void gv_open();
  66. -extern void gv_reopen();
  67. -extern void gv_save();
  68. -extern void gv_print_whole();
  69. -extern void gv_print_marked();
  70. -extern void gv_prev();
  71. -extern void gv_show();
  72. -extern void gv_next();
  73. -extern void gv_center();
  74. -extern void gv_mark();
  75. -extern void gv_unmark();
  76. -extern void gv_set_magstep();
  77. -extern void gv_increase_magstep();
  78. -extern void gv_decrease_magstep();
  79. -extern void gv_set_orientation();
  80. -extern void gv_swap_landscape();
  81. -extern void gv_set_pagemedia();
  82. -extern void gv_default();
  83. -extern void gv_force();
  84. -extern void gv_delete_window();
  85. -extern void gv_delete_zoom();
  86. -extern void gv_dismiss();
  87. -extern void gv_scroll_up();
  88. -extern void gv_scroll_down();
  89. -extern void gv_scroll_left();
  90. -extern void gv_scroll_right();
  91. -extern void gv_erase_locator();
  92. -extern void gv_check_file();
  93. +extern void gv_copyright(Widget, XEvent *, String *, Cardinal *);
  94. +extern void gv_quit(Widget, XEvent *, String *, Cardinal *);
  95. +extern void gv_open(Widget, XEvent *, String *, Cardinal *);
  96. +extern void gv_reopen(Widget, XEvent *, String *, Cardinal *);
  97. +extern void gv_save(Widget, XEvent *, String *, Cardinal *);
  98. +extern void gv_print_whole(Widget, XEvent *, String *, Cardinal *);
  99. +extern void gv_print_marked(Widget, XEvent *, String *, Cardinal *);
  100. +extern void gv_prev(Widget, XEvent *, String *, Cardinal *);
  101. +extern void gv_show(Widget, XEvent *, String *, Cardinal *);
  102. +extern void gv_next(Widget, XEvent *, String *, Cardinal *);
  103. +extern void gv_center(Widget, XEvent *, String *, Cardinal *);
  104. +extern void gv_mark(Widget, XEvent *, String *, Cardinal *);
  105. +extern void gv_unmark(Widget, XEvent *, String *, Cardinal *);
  106. +extern void gv_set_magstep(Widget, XEvent *, String *, Cardinal *);
  107. +extern void gv_increase_magstep(Widget, XEvent *, String *, Cardinal *);
  108. +extern void gv_decrease_magstep(Widget, XEvent *, String *, Cardinal *);
  109. +extern void gv_set_orientation(Widget, XEvent *, String *, Cardinal *);
  110. +extern void gv_swap_landscape(Widget, XEvent *, String *, Cardinal *);
  111. +extern void gv_set_pagemedia(Widget, XEvent *, String *, Cardinal *);
  112. +extern void gv_default(Widget, XEvent *, String *, Cardinal *);
  113. +extern void gv_force(Widget, XEvent *, String *, Cardinal *);
  114. +extern void gv_delete_window(Widget, XEvent *, String *, Cardinal *);
  115. +extern void gv_delete_zoom(Widget, XEvent *, String *, Cardinal *);
  116. +extern void gv_dismiss(Widget, XEvent *, String *, Cardinal *);
  117. +extern void gv_scroll_up(Widget, XEvent *, String *, Cardinal *);
  118. +extern void gv_scroll_down(Widget, XEvent *, String *, Cardinal *);
  119. +extern void gv_scroll_left(Widget, XEvent *, String *, Cardinal *);
  120. +extern void gv_scroll_right(Widget, XEvent *, String *, Cardinal *);
  121. +extern void gv_erase_locator(Widget, XEvent *, String *, Cardinal *);
  122. +extern void gv_check_file(Widget, XEvent *, String *, Cardinal *);
  123. /* Misc */
  124. -extern void show_page();
  125. -extern Boolean setup_ghostview();
  126. -extern void layout_ghostview();
  127. -extern void magnify();
  128. -extern String open_file();
  129. -extern String save_file();
  130. -extern String print_file();
  131. -extern void pscopydoc();
  132. -extern void positionpopup();
  133. -extern Boolean set_new_magstep();
  134. -extern Boolean set_new_orientation();
  135. -extern Boolean set_new_pagemedia();
  136. -extern void build_pagemedia_menu();
  137. -extern Widget build_label_menu();
  138. -extern void new_file();
  139. +extern void show_page(int);
  140. +extern Boolean setup_ghostview(void);
  141. +extern void layout_ghostview(void);
  142. +extern void magnify(float *, int);
  143. +extern String open_file(String);
  144. +extern String save_file(String);
  145. +extern String print_file(String, Boolean);
  146. +extern void pscopydoc(FILE *);
  147. +extern void positionpopup(Widget);
  148. +extern Boolean set_new_magstep(void);
  149. +extern Boolean set_new_orientation(int);
  150. +extern Boolean set_new_pagemedia(int);
  151. +extern void build_pagemedia_menu(void);
  152. +extern Widget build_label_menu(Widget, String, String, Pixmap);
  153. +extern void new_file(int);
  154. +extern int find_page(String);
  155. +extern int catch_Xerror(Display *, XErrorEvent *);
  156. +
  157. +/* Path */
  158. +extern int SFchdir(char *);
  159. +extern void SFupdatePath(void);
  160. +extern void SFsetText(char *);
  161. +extern int SFchdir(char *);
  162. +
  163. +/* Draw */
  164. +extern void SFdrawList(int, int);
  165. +extern void SFinitFont(void);
  166. +extern void SFcreateGC(void);
  167. +extern void SFdrawLists(int);
  168. +extern void SFclearList(int, int);
  169. +
  170. +/* SelFile */
  171. +extern void SFtextChanged(void);
  172. +