htmldefs.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/html/htmldefs.h
  3. // Purpose: constants for wxhtml library
  4. // Author: Vaclav Slavik
  5. // Copyright: (c) 1999 Vaclav Slavik
  6. // Licence: wxWindows licence
  7. /////////////////////////////////////////////////////////////////////////////
  8. #ifndef _WX_HTMLDEFS_H_
  9. #define _WX_HTMLDEFS_H_
  10. #include "wx/defs.h"
  11. #if wxUSE_HTML
  12. //--------------------------------------------------------------------------------
  13. // ALIGNMENTS
  14. // Describes alignment of text etc. in containers
  15. //--------------------------------------------------------------------------------
  16. #define wxHTML_ALIGN_LEFT 0x0000
  17. #define wxHTML_ALIGN_RIGHT 0x0002
  18. #define wxHTML_ALIGN_JUSTIFY 0x0010
  19. #define wxHTML_ALIGN_TOP 0x0004
  20. #define wxHTML_ALIGN_BOTTOM 0x0008
  21. #define wxHTML_ALIGN_CENTER 0x0001
  22. //--------------------------------------------------------------------------------
  23. // COLOR MODES
  24. // Used by wxHtmlColourCell to determine clr of what is changing
  25. //--------------------------------------------------------------------------------
  26. #define wxHTML_CLR_FOREGROUND 0x0001
  27. #define wxHTML_CLR_BACKGROUND 0x0002
  28. #define wxHTML_CLR_TRANSPARENT_BACKGROUND 0x0004
  29. //--------------------------------------------------------------------------------
  30. // UNITS
  31. // Used to specify units
  32. //--------------------------------------------------------------------------------
  33. #define wxHTML_UNITS_PIXELS 0x0001
  34. #define wxHTML_UNITS_PERCENT 0x0002
  35. //--------------------------------------------------------------------------------
  36. // INDENTS
  37. // Used to specify indetation relatives
  38. //--------------------------------------------------------------------------------
  39. #define wxHTML_INDENT_LEFT 0x0010
  40. #define wxHTML_INDENT_RIGHT 0x0020
  41. #define wxHTML_INDENT_TOP 0x0040
  42. #define wxHTML_INDENT_BOTTOM 0x0080
  43. #define wxHTML_INDENT_HORIZONTAL (wxHTML_INDENT_LEFT | wxHTML_INDENT_RIGHT)
  44. #define wxHTML_INDENT_VERTICAL (wxHTML_INDENT_TOP | wxHTML_INDENT_BOTTOM)
  45. #define wxHTML_INDENT_ALL (wxHTML_INDENT_VERTICAL | wxHTML_INDENT_HORIZONTAL)
  46. //--------------------------------------------------------------------------------
  47. // FIND CONDITIONS
  48. // Identifiers of wxHtmlCell's Find() conditions
  49. //--------------------------------------------------------------------------------
  50. #define wxHTML_COND_ISANCHOR 1
  51. // Finds the anchor of 'param' name (pointer to wxString).
  52. #define wxHTML_COND_ISIMAGEMAP 2
  53. // Finds imagemap of 'param' name (pointer to wxString).
  54. // (used exclusively by m_image.cpp)
  55. #define wxHTML_COND_USER 10000
  56. // User-defined conditions should start from this number
  57. //--------------------------------------------------------------------------------
  58. // INTERNALS
  59. // wxHTML internal constants
  60. //--------------------------------------------------------------------------------
  61. /* size of one scroll step of wxHtmlWindow in pixels */
  62. #define wxHTML_SCROLL_STEP 16
  63. /* size of temporary buffer used during parsing */
  64. #define wxHTML_BUFLEN 1024
  65. #endif // wxUSE_HTML
  66. #endif // _WX_HTMLDEFS_H_