aboutsummaryrefslogtreecommitdiffstats
path: root/shell/Evolution-Component.idl
diff options
context:
space:
mode:
Diffstat (limited to 'shell/Evolution-Component.idl')
-rw-r--r--shell/Evolution-Component.idl23
1 files changed, 23 insertions, 0 deletions
diff --git a/shell/Evolution-Component.idl b/shell/Evolution-Component.idl
index c8159ff8fa..8c225ee357 100644
--- a/shell/Evolution-Component.idl
+++ b/shell/Evolution-Component.idl
@@ -13,6 +13,18 @@
module GNOME {
module Evolution {
+ /* A type of item that the component can create when asked by the user,
+ e.g. a mail message or an appointment. */
+ struct CreatableItemType {
+ string id;
+ string description;
+ string menuDescription;
+ string tooltip;
+ char menuShortcut;
+ string iconName;
+ };
+ typedef sequence <CreatableItemType> CreatableItemTypeList;
+
interface Component : Bonobo::Unknown {
exception Failed {};
@@ -34,6 +46,17 @@ module Evolution {
is FALSE) */
void interactive (in boolean now_interactive,
in unsigned long new_view_xid);
+
+
+ /*** The following stuff is needed to build the "New" toolbar
+ item as well as the "File -> New" submenu. ***/
+
+ /* List of creatable items. */
+ readonly attribute CreatableItemTypeList userCreatableItems;
+
+ /* Pop up a new editing dialog for the item with the specified
+ @item_type_name. */
+ void requestCreateItem (in string item_type_name);
};
};