diff options
author | Radek Doulik <rodo@helixcode.com> | 2000-11-01 01:10:42 +0800 |
---|---|---|
committer | Radek Doulik <rodo@src.gnome.org> | 2000-11-01 01:10:42 +0800 |
commit | fee9d1b411184ef7fee35d1b72871a29e340b0c2 (patch) | |
tree | 5e1b00dc04f01e011c14546249b0f3237d77dc8d /composer/HTMLEditor.idl | |
parent | 1c7ba10a5d5ecfea514da87de1a23278f4d43f00 (diff) | |
download | gsoc2013-evolution-fee9d1b411184ef7fee35d1b72871a29e340b0c2.tar.gz gsoc2013-evolution-fee9d1b411184ef7fee35d1b72871a29e340b0c2.tar.zst gsoc2013-evolution-fee9d1b411184ef7fee35d1b72871a29e340b0c2.zip |
better reply editing, uses new HTMLEditor::Engine,Listener interfaces
you need fresh CVS gtkhtml to try that
2000-10-31 Radek Doulik <rodo@helixcode.com>
* e-msg-composer.c (prepare_engine): new function, tries prepare
editor engine
(mark_orig_text): marks original text in editor
(set_editor_text): call mark_orig_text
(create_composer): call prepare_engine
* Makefile.am (IDL_GENERATED): added HTMLEditor generated files to
IDL_GENERATED
($(IDL_GENERATED)): generate also files from HTMLEditor.idl
(libcomposer_la_SOURCES): added listener.[ch]
* e-msg-composer.h: added editor_engine and editor_listener to
EMsgComposer
* listener.[ch]: new files, implementation of HTMLEditor::Listener
svn path=/trunk/; revision=6292
Diffstat (limited to 'composer/HTMLEditor.idl')
-rw-r--r-- | composer/HTMLEditor.idl | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/composer/HTMLEditor.idl b/composer/HTMLEditor.idl new file mode 100644 index 0000000000..ec1e971f22 --- /dev/null +++ b/composer/HTMLEditor.idl @@ -0,0 +1,56 @@ +/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ +/* + * Interface for the HTML Editor. + * + * Authors: + * Larry Ewing <lewing@helixcode.com> + * Radek Doulik <rodo@helixcode.com> + * + * Copyright (C) 2000 Helix Code, Inc. + */ + +#include <Bonobo.idl> + +module HTMLEditor { + interface Resolver : Bonobo::Unknown { + exception NotFound {}; + + void loadURL (in Bonobo::ProgressiveDataSink sink, in string url) raises (NotFound); + }; + + struct Arg { + any value; + }; + typedef sequence<Arg> ListenerArgs; + + interface Listener : Bonobo::Unknown { + void event (in string name, in ListenerArgs args); + }; + + interface Engine : Bonobo::Unknown { + attribute Listener listener; + + /* + * return data of current paragraph + */ + any get_paragraph_data (in string key); + + /* + * sets data on current paragraph + */ + void set_paragraph_data (in string key, in any value); + + /* + * set data which are set to objects of given type while inserting + * we will use that to mark original text paragraph(s) in composer + * and use that data later in editing to implement better reply + * editing + */ + void set_object_data_by_type (in string type_name, in string key, in any data); + + /* + * execute editor command + */ + void command (in string command); + }; +}; |