[evolution/wip/webkit2] Add some NONE/UNKNOWN EContentEditor flags values, where it seemed useful



commit a34dd166fedaf6af9e9beaf771d25a26fa35f319
Author: Milan Crha <mcrha redhat com>
Date:   Fri Jun 10 15:56:11 2016 +0200

    Add some NONE/UNKNOWN EContentEditor flags values, where it seemed useful

 e-util/e-util-enums.h |   62 ++++++++++++++++++++++++++----------------------
 1 files changed, 34 insertions(+), 28 deletions(-)
---
diff --git a/e-util/e-util-enums.h b/e-util/e-util-enums.h
index da33985..35002a7 100644
--- a/e-util/e-util-enums.h
+++ b/e-util/e-util-enums.h
@@ -144,6 +144,7 @@ typedef enum {
 
 /**
  * EContentEditorInsertContentFlags:
+ * @E_CONTENT_EDITOR_INSERT_NONE:
  * @E_CONTENT_EDITOR_INSERT_CONVERT:
  * @E_CONTENT_EDITOR_INSERT_QUOTE_CONTENT:
  * @E_CONTENT_EDITOR_INSERT_REPLACE_ALL:
@@ -153,11 +154,12 @@ typedef enum {
  * Since: 3.22
  **/
 typedef enum {
-       E_CONTENT_EDITOR_INSERT_CONVERT = 1 << 0,
-       E_CONTENT_EDITOR_INSERT_QUOTE_CONTENT = 1 << 1,
-       E_CONTENT_EDITOR_INSERT_REPLACE_ALL = 1 << 2,
-       E_CONTENT_EDITOR_INSERT_TEXT_HTML = 1 << 3,
-       E_CONTENT_EDITOR_INSERT_TEXT_PLAIN = 1 << 4,
+       E_CONTENT_EDITOR_INSERT_NONE            = 0,
+       E_CONTENT_EDITOR_INSERT_CONVERT         = 1 << 0,
+       E_CONTENT_EDITOR_INSERT_QUOTE_CONTENT   = 1 << 1,
+       E_CONTENT_EDITOR_INSERT_REPLACE_ALL     = 1 << 2,
+       E_CONTENT_EDITOR_INSERT_TEXT_HTML       = 1 << 3,
+       E_CONTENT_EDITOR_INSERT_TEXT_PLAIN      = 1 << 4,
 } EContentEditorInsertContentFlags;
 
 /**
@@ -172,16 +174,17 @@ typedef enum {
  * Since: 3.22
  **/
 typedef enum {
-       E_CONTENT_EDITOR_GET_BODY = 1 << 0,
-       E_CONTENT_EDITOR_GET_INLINE_IMAGES = 1 << 1,
-       E_CONTENT_EDITOR_GET_PROCESSED = 1 << 2, /* raw or processed */
-       E_CONTENT_EDITOR_GET_TEXT_HTML = 1 << 3,
-       E_CONTENT_EDITOR_GET_TEXT_PLAIN = 1 << 4,
-       E_CONTENT_EDITOR_GET_EXCLUDE_SIGNATURE = 1 << 5
+       E_CONTENT_EDITOR_GET_BODY               = 1 << 0,
+       E_CONTENT_EDITOR_GET_INLINE_IMAGES      = 1 << 1,
+       E_CONTENT_EDITOR_GET_PROCESSED          = 1 << 2, /* raw or processed */
+       E_CONTENT_EDITOR_GET_TEXT_HTML          = 1 << 3,
+       E_CONTENT_EDITOR_GET_TEXT_PLAIN         = 1 << 4,
+       E_CONTENT_EDITOR_GET_EXCLUDE_SIGNATURE  = 1 << 5
 } EContentEditorGetContentFlags;
 
 /**
  * EContentEditorContentFlags:
+ * @E_CONTENT_EDITOR_MESSAGE_NONE:
  * @E_CONTENT_EDITOR_MESSAGE_DRAFT:
  * @E_CONTENT_EDITOR_MESSAGE_EDIT_AS_NEW:
  * @E_CONTENT_EDITOR_MESSAGE_EDITTING:
@@ -191,15 +194,17 @@ typedef enum {
  * Since: 3.22
  **/
 typedef enum {
-       E_CONTENT_EDITOR_MESSAGE_DRAFT = 1 << 0,
-       E_CONTENT_EDITOR_MESSAGE_EDIT_AS_NEW = 1 << 1,
-       E_CONTENT_EDITOR_MESSAGE_EDITTING = 1 << 2,
-       E_CONTENT_EDITOR_MESSAGE_FROM_SELECTION = 1 << 3,
-       E_CONTENT_EDITOR_MESSAGE_NEW = 1 << 4
+       E_CONTENT_EDITOR_MESSAGE_NONE           = 0,
+       E_CONTENT_EDITOR_MESSAGE_DRAFT          = 1 << 0,
+       E_CONTENT_EDITOR_MESSAGE_EDIT_AS_NEW    = 1 << 1,
+       E_CONTENT_EDITOR_MESSAGE_EDITTING       = 1 << 2,
+       E_CONTENT_EDITOR_MESSAGE_FROM_SELECTION = 1 << 3,
+       E_CONTENT_EDITOR_MESSAGE_NEW            = 1 << 4
 } EContentEditorContentFlags;
 
 /**
  * EContentEditorNodeFlags:
+ * @E_CONTENT_EDITOR_NODE_UNKNOWN: None from the below, aka when cannot determine.
  * @E_CONTENT_EDITOR_NODE_IS_ANCHOR:
  * @E_CONTENT_EDITOR_NODE_IS_H_RULE:
  * @E_CONTENT_EDITOR_NODE_IS_IMAGE:
@@ -211,13 +216,14 @@ typedef enum {
  * Since: 3.22
  **/
 typedef enum {
-       E_CONTENT_EDITOR_NODE_IS_ANCHOR = 1 << 0,
-       E_CONTENT_EDITOR_NODE_IS_H_RULE = 1 << 1,
-       E_CONTENT_EDITOR_NODE_IS_IMAGE = 1 << 2,
-       E_CONTENT_EDITOR_NODE_IS_TABLE = 1 << 3,
-       E_CONTENT_EDITOR_NODE_IS_TABLE_CELL = 1 << 4,
-       E_CONTENT_EDITOR_NODE_IS_TEXT = 1 << 5,
-       E_CONTENT_EDITOR_NODE_IS_TEXT_COLLAPSED = 1 << 6
+       E_CONTENT_EDITOR_NODE_UNKNOWN           = 0,
+       E_CONTENT_EDITOR_NODE_IS_ANCHOR         = 1 << 0,
+       E_CONTENT_EDITOR_NODE_IS_H_RULE         = 1 << 1,
+       E_CONTENT_EDITOR_NODE_IS_IMAGE          = 1 << 2,
+       E_CONTENT_EDITOR_NODE_IS_TABLE          = 1 << 3,
+       E_CONTENT_EDITOR_NODE_IS_TABLE_CELL     = 1 << 4,
+       E_CONTENT_EDITOR_NODE_IS_TEXT           = 1 << 5,
+       E_CONTENT_EDITOR_NODE_IS_TEXT_COLLAPSED = 1 << 6
 } EContentEditorNodeFlags;
 
 /**
@@ -517,11 +523,11 @@ typedef enum {
  * Since: 3.22
  **/
 typedef enum {
-       E_CONTENT_EDITOR_FIND_NEXT              = (1 << 0),
-       E_CONTENT_EDITOR_FIND_PREVIOUS          = (1 << 1),
-       E_CONTENT_EDITOR_FIND_MODE_BACKWARDS    = (1 << 2),
-       E_CONTENT_EDITOR_FIND_CASE_INSENSITIVE  = (1 << 3),
-       E_CONTENT_EDITOR_FIND_WRAP_AROUND       = (1 << 4)
+       E_CONTENT_EDITOR_FIND_NEXT              = 1 << 0,
+       E_CONTENT_EDITOR_FIND_PREVIOUS          = 1 << 1,
+       E_CONTENT_EDITOR_FIND_MODE_BACKWARDS    = 1 << 2,
+       E_CONTENT_EDITOR_FIND_CASE_INSENSITIVE  = 1 << 3,
+       E_CONTENT_EDITOR_FIND_WRAP_AROUND       = 1 << 4
 } EContentEditorFindFlags;
 
 G_END_DECLS


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]