Opera 12.15 Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

documentedit_capabilities.h 2.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*-
  2. **
  3. ** Copyright (C) 1995-2003 Opera Software AS. All rights reserved.
  4. **
  5. ** This file is part of the Opera web browser. It may not be distributed
  6. ** under any circumstances.
  7. */
  8. #ifndef DOCUMENTEDIT_CAPABILITIES_H
  9. #define DOCUMENTEDIT_CAPABILITIES_H
  10. // Has OpDocumentEdit::OnElementDeleted
  11. #define DOCUMENTEDIT_CAP_ONELEMENTDELETED
  12. // OpDocumentEdit::execCommand returns BOOL
  13. #define DOCUMENTEDIT_CAP_EXECCOMMAND_RET
  14. // Has OpDocumentEditLayoutModifier
  15. #define DOCUMENTEDIT_CAP_LAYOUTMODIFIER
  16. // Has GetCursorType
  17. #define DOCUMENTEDIT_CAP_GETCURSORTYPE
  18. // Has GetPoint
  19. #define DOCUMENTEDIT_CAP_GETTEXTSELPOINT
  20. // Has GetSelection
  21. #define DOCUMENTEDIT_CAP_GETSELECTION
  22. // supports contentEditable
  23. #define DOCUMENTEDIT_CAP_CONTENTEDITABLE
  24. // OpDocumentEdit is a OpInputContext
  25. #define DOCUMENTEDIT_CAP_ISINPUTCONTEXT
  26. // Using LayoutProperties::GetProps to access HTMLayoutProperties. For cached props
  27. #define DOCUMENTEDIT_CAP_USE_LAYOUTPROPERTIES_GETPROPS
  28. // The OpDocumentEditListener has the OnTextChanged() method
  29. #define DOCEDIT_CAP_HAS_ONTEXTCHANGED
  30. // The documentedit code can handle that ClearSelection(TRUE) removes
  31. // focus.
  32. #define DOCEDIT_CAP_SURVIVES_CLEARSELECTION
  33. // OpDocumentEdit::OnElementOut exists
  34. #define DOCEDIT_CAP_HAS_ONBEFOREELEMENTOUT
  35. // OpDocumentEdit::OnTextChanged exists
  36. #define DOCEDIT_CAP_HAS_DOCEDIT_ONTEXTCHANGED
  37. // Supports spellchecking
  38. #define DOCEDIT_CAP_SPELLCHECKING
  39. // OpDocumentEdit::OnTextElmGetsLayoutWords exists
  40. #define DOCEDIT_CAP_ON_TEXT_ELM_GETS_LAYOUT_WORDS
  41. // Supports ASCII key strings for actions/menus/dialogs/skin
  42. #define DOCUMENTEDIT_CAP_INI_KEYS_ASCII
  43. // The documentedit module understands that background properties has moved
  44. #define DOCUMENTEDIT_CAP_CSS3_BACKGROUND
  45. // passes script to GetFirstFontNumber (logdoc_util)
  46. #define DOCEDIT_CAP_GETFIRSTFONTNUMBER_SCRIPT
  47. // Has new GetFontFace(OpString) method in OpDocumentEdit
  48. #define DOCEDIT_CAP_HASIMPROVEDGETFONTFACE
  49. // GetText has new parameter block_quotes_as_text.
  50. #define DOCEDIT_CAP_BLOCKQUOTES_AS_TEXT
  51. // Has the OpDocumentEdit::CleanReferencesToElement() method
  52. #define DOCEDIT_CAP_HAS_CLEANREFERENCES
  53. // Has GetTextHTMLFromNamedElement() and DeleteNamedElement() in OpDocumentEdit
  54. #define DOCEDIT_CAP_HAS_DELETE_NAMED_ELEMENT
  55. #endif // !DOCUMENTEDIT_CAPABILITIES_H