/src/wrappers/gtk/library/gtk_print_capabilities.e

http://github.com/tybor/Liberty · Specman e · 84 lines · 61 code · 15 blank · 8 comment · 2 complexity · b6ef42882c721eeb57e6e76f116a696f MD5 · raw file

  1. indexing
  2. description: "enum GtkPrintCapabilities"
  3. copyright: "[
  4. Copyright (C) 2006 eiffel-libraries team, GTK+ team
  5. This library is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU Lesser General Public License
  7. as published by the Free Software Foundation; either version 2.1 of
  8. the License, or (at your option) any later version.
  9. This library is distributed in the hope that it will be useful, but
  10. WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. Lesser General Public License for more details.
  13. You should have received a copy of the GNU Lesser General Public
  14. License along with this library; if not, write to the Free Software
  15. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  16. 02110-1301 USA
  17. ]"
  18. deferred class GTK_PRINT_CAPABILITIES
  19. -- An enum for specifying which features the print dialog should
  20. -- offer. I neither `gtk_print_capability_generate_pdf' nor
  21. -- `gtk_print_capability_generate_ps' is specified, GTK+ assumes
  22. -- that all formats are supported.
  23. inherit ANY undefine is_equal, copy end
  24. feature -- enum
  25. are_valid_print_capabilities (some_capabilities: INTEGER): BOOLEAN is
  26. do
  27. Result:=((gtk_print_capability_page_set | gtk_print_capability_copies |
  28. gtk_print_capability_collate | gtk_print_capability_reverse |
  29. gtk_print_capability_scale | gtk_print_capability_generate_pdf |
  30. gtk_print_capability_generate_ps | gtk_print_capability_preview)
  31. & some_capabilities).to_boolean
  32. end
  33. gtk_print_capability_page_set: INTEGER is
  34. external "C macro use <gtk/gtk.h>"
  35. alias "GTK_PRINT_CAPABILITY_PAGE_SET"
  36. end
  37. gtk_print_capability_copies: INTEGER is
  38. external "C macro use <gtk/gtk.h>"
  39. alias "GTK_PRINT_CAPABILITY_COPIES"
  40. end
  41. gtk_print_capability_collate: INTEGER is
  42. external "C macro use <gtk/gtk.h>"
  43. alias "GTK_PRINT_CAPABILITY_COLLATE"
  44. end
  45. gtk_print_capability_reverse: INTEGER is
  46. external "C macro use <gtk/gtk.h>"
  47. alias "GTK_PRINT_CAPABILITY_REVERSE"
  48. end
  49. gtk_print_capability_scale: INTEGER is
  50. external "C macro use <gtk/gtk.h>"
  51. alias "GTK_PRINT_CAPABILITY_SCALE"
  52. end
  53. gtk_print_capability_generate_pdf: INTEGER is
  54. -- The program will send the document to the printer in PDF
  55. -- format
  56. external "C macro use <gtk/gtk.h>"
  57. alias "GTK_PRINT_CAPABILITY_GENERATE_PDF"
  58. end
  59. gtk_print_capability_generate_ps: INTEGER is
  60. -- The program will send the document to the printer in
  61. -- Postscript format
  62. external "C macro use <gtk/gtk.h>"
  63. alias "GTK_PRINT_CAPABILITY_GENERATE_PS"
  64. end
  65. gtk_print_capability_preview: INTEGER is
  66. external "C macro use <gtk/gtk.h>"
  67. alias "GTK_PRINT_CAPABILITY_PREVIEW"
  68. end
  69. end