htmldefs.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: html/htmldefs.h
  3. // Purpose: constants for wxhtml library
  4. // Author: wxWidgets team
  5. // Licence: wxWindows licence
  6. /////////////////////////////////////////////////////////////////////////////
  7. //--------------------------------------------------------------------------------
  8. // ALIGNMENTS
  9. // Describes alignment of text etc. in containers
  10. //--------------------------------------------------------------------------------
  11. #define wxHTML_ALIGN_LEFT 0x0000
  12. #define wxHTML_ALIGN_RIGHT 0x0002
  13. #define wxHTML_ALIGN_JUSTIFY 0x0010
  14. #define wxHTML_ALIGN_TOP 0x0004
  15. #define wxHTML_ALIGN_BOTTOM 0x0008
  16. #define wxHTML_ALIGN_CENTER 0x0001
  17. //--------------------------------------------------------------------------------
  18. // COLOR MODES
  19. // Used by wxHtmlColourCell to determine clr of what is changing
  20. //--------------------------------------------------------------------------------
  21. #define wxHTML_CLR_FOREGROUND 0x0001
  22. #define wxHTML_CLR_BACKGROUND 0x0002
  23. #define wxHTML_CLR_TRANSPARENT_BACKGROUND 0x0004
  24. //--------------------------------------------------------------------------------
  25. // UNITS
  26. // Used to specify units
  27. //--------------------------------------------------------------------------------
  28. #define wxHTML_UNITS_PIXELS 0x0001
  29. #define wxHTML_UNITS_PERCENT 0x0002
  30. //--------------------------------------------------------------------------------
  31. // INDENTS
  32. // Used to specify indetation relatives
  33. //--------------------------------------------------------------------------------
  34. #define wxHTML_INDENT_LEFT 0x0010
  35. #define wxHTML_INDENT_RIGHT 0x0020
  36. #define wxHTML_INDENT_TOP 0x0040
  37. #define wxHTML_INDENT_BOTTOM 0x0080
  38. #define wxHTML_INDENT_HORIZONTAL (wxHTML_INDENT_LEFT | wxHTML_INDENT_RIGHT)
  39. #define wxHTML_INDENT_VERTICAL (wxHTML_INDENT_TOP | wxHTML_INDENT_BOTTOM)
  40. #define wxHTML_INDENT_ALL (wxHTML_INDENT_VERTICAL | wxHTML_INDENT_HORIZONTAL)
  41. //--------------------------------------------------------------------------------
  42. // FIND CONDITIONS
  43. // Identifiers of wxHtmlCell's Find() conditions
  44. //--------------------------------------------------------------------------------
  45. #define wxHTML_COND_ISANCHOR 1
  46. // Finds the anchor of 'param' name (pointer to wxString).
  47. #define wxHTML_COND_ISIMAGEMAP 2
  48. // Finds imagemap of 'param' name (pointer to wxString).
  49. // (used exclusively by m_image.cpp)
  50. #define wxHTML_COND_USER 10000
  51. // User-defined conditions should start from this number