gtkhtml.pas 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. {
  2. Copyright (C) 2000 CodeFactory AB
  3. Copyright (C) 2000 Jonas Borgström <[email protected]>
  4. Copyright (C) 2000 Anders Carlsson <[email protected]>
  5. This library is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU Library General Public
  7. License as published by the Free Software Foundation; either
  8. version 2 of the License, or (at your option) any later version.
  9. This library is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. Library General Public License for more details.
  13. You should have received a copy of the GNU Library General Public License
  14. along with this library; see the file COPYING.LIB. If not, write to
  15. the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  16. Boston, MA 02111-1307, USA.
  17. }
  18. {
  19. !!!!! Maybe wrong for kylix !!!!!
  20. }
  21. unit gtkhtml;
  22. {$H+}
  23. {$IFDEF FPC}
  24. {$mode objfpc}
  25. {$ENDIF}
  26. {$IFDEF VER140}
  27. {$DEFINE KYLIX}
  28. {$ENDIF}
  29. interface
  30. uses
  31. gtk2, glib2, atk, pango, gdk2pixbuf, gdk2;
  32. const
  33. // OS dependent defines
  34. // !!!!! Maybe wrong for platforms other than linux !!!!!
  35. {$ifdef win32}
  36. {$DEFINE GTK_WINDOWING_WIN32}
  37. gtkhtmllib = 'libgtkhtml-win32-2.0-0.dll';
  38. {$IFDEF FPC}
  39. {$smartlink on}
  40. {$ENDIF}
  41. {$else}
  42. {$ifdef linux}
  43. gtkhtmllib = '';
  44. {$else}
  45. gtkhtmllib = 'libgtkhtml-2.so';
  46. {$endif}
  47. {$endif}
  48. const
  49. DOM_UNSPECIFIED_EVENT_TYPE_ERR = 0;
  50. DOM_INDEX_SIZE_ERR = 1;
  51. DOM_DOMSTRING_SIZE_ERR = 2;
  52. DOM_HIERARCHY_REQUEST_ERR = 3;
  53. DOM_WRONG_DOCUMENT_ERR = 4;
  54. DOM_INVALID_CHARACTER_ERR = 5;
  55. DOM_NO_DATA_ALLOWED_ERR = 6;
  56. DOM_NO_MODIFICATION_ALLOWED_ERR = 7;
  57. DOM_NOT_FOUND_ERR = 8;
  58. DOM_NOT_SUPPORTED_ERR = 9;
  59. DOM_INUSE_ATTRIBUTE_ERR = 10;
  60. DOM_INVALID_STATE_ERR = 11;
  61. DOM_SYNTAX_ERR = 12;
  62. DOM_INVALID_MODIFICATION_ERR = 13;
  63. DOM_NAMESPACE_ERR = 14;
  64. DOM_INVALID_ACCESS_ERR = 15;
  65. DOM_NO_EXCEPTION = 255;
  66. DOM_ELEMENT_NODE = 1;
  67. DOM_ATTRIBUTE_NODE = 2;
  68. DOM_TEXT_NODE = 3;
  69. DOM_CDATA_SECTION_NODE = 4;
  70. DOM_ENTITY_REFERENCE_NODE = 5;
  71. DOM_ENTITY_NODE = 6;
  72. DOM_PROCESSING_INSTRUCTION_NODE = 7;
  73. DOM_COMMENT_NODE = 8;
  74. DOM_DOCUMENT_NODE = 9;
  75. DOM_DOCUMENT_TYPE_NODE = 10;
  76. DOM_DOCUMENT_FRAGMENT_NODE = 11;
  77. DOM_NOTATION_NODE = 12;
  78. bm__HtmlFontSpecification_weight = $F;
  79. bp__HtmlFontSpecification_weight = 0;
  80. bm__HtmlFontSpecification_style = $30;
  81. bp__HtmlFontSpecification_style = 4;
  82. bm__HtmlFontSpecification_variant = $C0;
  83. bp__HtmlFontSpecification_variant = 6;
  84. bm__HtmlFontSpecification_stretch = $F00;
  85. bp__HtmlFontSpecification_stretch = 8;
  86. bm__HtmlFontSpecification_decoration = $7000;
  87. bp__HtmlFontSpecification_decoration = 12;
  88. type
  89. {$DEFINE read_forward_definitions}
  90. {$include gtkhtmlincludes.inc}
  91. {$UNDEF read_forward_definitions}
  92. {$DEFINE read_interface_types}
  93. {$include gtkhtmlincludes.inc}
  94. {$UNDEF read_interface_types}
  95. {$DEFINE read_interface_rest}
  96. {$include gtkhtmlincludes.inc}
  97. {$UNDEF read_interface_rest}
  98. implementation
  99. // call implementation parts of header files
  100. {$DEFINE read_implementation}
  101. {$include gtkhtmlincludes.inc}
  102. {$UNDEF read_implementation}
  103. end.//unit gtkhtml