1 /*
2  * This program is free software; you can redistribute it and/or modify it
3  * under the terms of the GNU Lesser General Public License as published by
4  * the Free Software Foundation.
5  *
6  * This program is distributed in the hope that it will be useful, but
7  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
8  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
9  * for more details.
10  *
11  * You should have received a copy of the GNU Lesser General Public License
12  * along with this program; if not, see <http://www.gnu.org/licenses/>.
13  *
14  * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
15  */
16 
17 #ifndef E_COMPOSER_ACTIONS_H
18 #define E_COMPOSER_ACTIONS_H
19 
20 #define E_COMPOSER_ACTION(composer, name) \
21 	(e_html_editor_get_action ( \
22 		e_msg_composer_get_editor ( \
23 		E_MSG_COMPOSER (composer)), (name)))
24 
25 #define E_COMPOSER_ACTION_ATTACH(composer) \
26 	E_COMPOSER_ACTION ((composer), "attach")
27 #define E_COMPOSER_ACTION_CLOSE(composer) \
28 	E_COMPOSER_ACTION ((composer), "close")
29 #define E_COMPOSER_ACTION_PGP_ENCRYPT(composer) \
30 	E_COMPOSER_ACTION ((composer), "pgp-encrypt")
31 #define E_COMPOSER_ACTION_PGP_SIGN(composer) \
32 	E_COMPOSER_ACTION ((composer), "pgp-sign")
33 #define E_COMPOSER_ACTION_PICTURE_GALLERY(composer) \
34 	E_COMPOSER_ACTION ((composer), "picture-gallery")
35 #define E_COMPOSER_ACTION_PRINT(composer) \
36 	E_COMPOSER_ACTION ((composer), "print")
37 #define E_COMPOSER_ACTION_PRINT_PREVIEW(composer) \
38 	E_COMPOSER_ACTION ((composer), "print-preview")
39 #define E_COMPOSER_ACTION_PRIORITIZE_MESSAGE(composer) \
40 	E_COMPOSER_ACTION ((composer), "prioritize-message")
41 #define E_COMPOSER_ACTION_REQUEST_READ_RECEIPT(composer) \
42 	E_COMPOSER_ACTION ((composer), "request-read-receipt")
43 #define E_COMPOSER_ACTION_SAVE(composer) \
44 	E_COMPOSER_ACTION ((composer), "save")
45 #define E_COMPOSER_ACTION_SAVE_AS(composer) \
46 	E_COMPOSER_ACTION ((composer), "save-as")
47 #define E_COMPOSER_ACTION_SAVE_DRAFT(composer) \
48 	E_COMPOSER_ACTION ((composer), "save-draft")
49 #define E_COMPOSER_ACTION_SECURITY_MENU(composer) \
50 	E_COMPOSER_ACTION ((composer), "security-menu")
51 #define E_COMPOSER_ACTION_SEND(composer) \
52 	E_COMPOSER_ACTION ((composer), "send")
53 #define E_COMPOSER_ACTION_NEW_MESSAGE(composer) \
54 	E_COMPOSER_ACTION ((composer), "new-message")
55 #define E_COMPOSER_ACTION_SMIME_ENCRYPT(composer) \
56 	E_COMPOSER_ACTION ((composer), "smime-encrypt")
57 #define E_COMPOSER_ACTION_SMIME_SIGN(composer) \
58 	E_COMPOSER_ACTION ((composer), "smime-sign")
59 #define E_COMPOSER_ACTION_TOOLBAR_PGP_ENCRYPT(composer) \
60 	E_COMPOSER_ACTION ((composer), "toolbar-pgp-encrypt")
61 #define E_COMPOSER_ACTION_TOOLBAR_PGP_SIGN(composer) \
62 	E_COMPOSER_ACTION ((composer), "toolbar-pgp-sign")
63 #define E_COMPOSER_ACTION_TOOLBAR_PRIORITIZE_MESSAGE(composer) \
64 	E_COMPOSER_ACTION ((composer), "toolbar-prioritize-message")
65 #define E_COMPOSER_ACTION_TOOLBAR_REQUEST_READ_RECEIPT(composer) \
66 	E_COMPOSER_ACTION ((composer), "toolbar-request-read-receipt")
67 #define E_COMPOSER_ACTION_TOOLBAR_SMIME_ENCRYPT(composer) \
68 	E_COMPOSER_ACTION ((composer), "toolbar-smime-encrypt")
69 #define E_COMPOSER_ACTION_TOOLBAR_SMIME_SIGN(composer) \
70 	E_COMPOSER_ACTION ((composer), "toolbar-smime-sign")
71 #define E_COMPOSER_ACTION_VIEW_BCC(composer) \
72 	E_COMPOSER_ACTION ((composer), "view-bcc")
73 #define E_COMPOSER_ACTION_VIEW_CC(composer) \
74 	E_COMPOSER_ACTION ((composer), "view-cc")
75 #define E_COMPOSER_ACTION_VIEW_FROM_OVERRIDE(composer) \
76 	E_COMPOSER_ACTION ((composer), "view-from-override")
77 #define E_COMPOSER_ACTION_VIEW_REPLY_TO(composer) \
78 	E_COMPOSER_ACTION ((composer), "view-reply-to")
79 #define E_COMPOSER_ACTION_VISUALLY_WRAP_LONG_LINES(composer) \
80 	E_COMPOSER_ACTION ((composer), "visually-wrap-long-lines")
81 
82 #endif /* E_COMPOSER_ACTIONS_H */
83