aboutsummaryrefslogtreecommitdiffstats
path: root/composer/listener.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove the extremely verbose printf here.Dan Winship2002-03-121-2/+0
| | | | | | | * listener.c (impl_event): Remove the extremely verbose printf here. svn path=/trunk/; revision=16100
* new helper function, extracted (insert_paragraph_after): dittoRadek Doulik2001-10-311-15/+66
| | | | | | | | | | | | | | 2001-10-30 Radek Doulik <rodo@ximian.com> * listener.c (insert_paragraph_before): new helper function, extracted (insert_paragraph_after): ditto (impl_event): process command_before and command_after, use new functions (clear_signature): reset style to be sure (reply_indent): ditto svn path=/trunk/; revision=14465
* simplified, requires new gtkhtmlRadek Doulik2001-10-301-4/+0
| | | | | | | | 2001-10-30 Radek Doulik <rodo@ximian.com> * listener.c (reply_indent): simplified, requires new gtkhtml svn path=/trunk/; revision=14383
* add GList to hold the current images.Larry Ewing2001-10-301-0/+5
| | | | | | | | | | | | | | | | | | | 2001-10-29 Larry Ewing <lewing@ximian.com> * e-msg-composer.h: add GList to hold the current images. * listener.c (resolve_image_url): keep track of the images that the editor is currently uses in current_images as well as storing the images in the hash. * e-msg-composer.c (clear_current_images): clear the list of images actually in the message. (add_inlined_images): use the current image list rather than the hash tables. (build_message): clear the current image list when appropriate. (init): initialize current_images. svn path=/trunk/; revision=14379
* More fixing of the license texts.Ettore Perazzoli2001-10-281-11/+10
| | | | svn path=/trunk/; revision=14217
* Make inline images used for replies not show up asDan Winship2001-10-221-38/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | attachments. Also, I think this should make replies to HTML messages containing inline images referenced via Content-Location work, but that's not tested. * e-msg-composer.c (various): Keep two hash tables of inline image data: one mapping from cid: URLs to CamelMimeParts for all attachments, the other mapping from file: and Content-Location urls to CamelMimeParts (for those inline images that came from a file or have a Content-Location). (add_inlined_images): Simplify. Most of this code is in e_msg_composer_add_inline_image_from_file() now. (e_msg_composer_add_message_attachments, handle_multipart): Change "attach_all" arg to "just_inlines". If it is set, call e_msg_composer_add_inline_image_from_mime_part on any attachment with a Content-Id or Content-Location. (e_msg_composer_add_inline_image_from_file): Create a mime part from a file and add it to the inline images hash. (e_msg_composer_add_inline_image_from_mime_part): Add a mime part directly to the inline images hash. * listener.c (resolve_image_url): If asked to resolve a file: URL that isn't in the inline images hash, call e_msg_composer_add_inline_image_from_file to get a cid for it. (impl_event): Look up the URL in the inline_images and inline_images_by_url hashes. * e-msg-composer-attachment-bar.c (e_msg_composer_attachment_bar_find_message): Gone. No longer used. svn path=/trunk/; revision=13852
* Deleted declaration of len.Jeffrey Stedfast2001-10-121-1/+0
| | | | | | | | | | | | 2001-10-11 Jeffrey Stedfast <fejj@ximian.com> * listener.c (impl_event): Deleted declaration of len. * e-msg-composer.c (e_msg_composer_add_message_attachments): Take a settext argument. (e_msg_composer_new_with_message): Updated to pass the settext argument. svn path=/trunk/; revision=13595
* remove unused variable.Larry Ewing2001-10-061-2/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-05 Larry Ewing <lewing@ximian.com> * e-msg-composer-attachment.c (e_msg_composer_attachment_new): remove unused variable. * e-msg-composer-attachment-bar.c (e_msg_composer_attachment_bar_find_message): generalize this to lookup content locations as well. * e-msg-composer-attachment-bar.h: change prototype to match the new function. * listener.c (impl_event): handle the url_requested event, look up parts in the attachment part and feed them down the stream if it is found. * e-msg-composer.c (handle_multipart_alternative): delay setting the body text. (handle_multipart): delay setting body text (e_msg_composer_new_with_message): set the body text from the object data. Doing this ensures that we will have the attachments processed before we try to look them up. svn path=/trunk/; revision=13445
* handle delete eventRadek Doulik2001-08-071-1/+18
| | | | | | | | 2001-08-06 Radek Doulik <rodo@ximian.com> * listener.c (impl_event): handle delete event svn path=/trunk/; revision=11700
* Update the copyrights, replacing Helix Code with Ximian andEttore Perazzoli2001-06-231-2/+2
| | | | | | helixcode.com with ximian.com all over the place. svn path=/trunk/; revision=10440
* signature editing fixesRadek Doulik2001-05-041-8/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * signature editing fixes 2001-05-03 Radek Doulik <rodo@ximian.com> * e-msg-composer.c (get_signature_html): put signature in 100% width table (delete_old_signature): look only for first flow with signature == 1 (e_msg_composer_new): don't insert <BR> (e_msg_composer_new_with_sig_file): ditto (delete_old_signature): don't delete whole signature paragraph, but just it's content (delete_old_signature): if signature isn't found, insert new empty paragraph to end of document for new signature (e_msg_composer_set_sig_file): delete signature always (e_msg_composer_set_sig_file): don't place signature to the end of document, but place it where previous one was (if there wasn't then new one is appended to the document) 2001-05-02 Radek Doulik <rodo@ximian.com> * listener.c (impl_event): do automagic indenting only when in_signature_insert is FALSE * e-msg-composer.c (e_msg_composer_set_sig_file): do indent-zero before signature inserting (e_msg_composer_set_sig_file): use in_signature_insert flag 2001-05-01 Radek Doulik <rodo@ximian.com> * listener.c (impl_event): set signature to 0 in newly created empty paragraphs (clear_signature): new helper function svn path=/trunk/; revision=9658
* signature changingRadek Doulik2001-04-251-9/+8
| | | | | | | | | | | | | | | | | | | | | | | | | * signature changing 2001-04-25 Radek Doulik <rodo@ximian.com> * listener.c (impl_event): reflect object data type change * e-msg-composer.c (get_sig_file_content): renamed from get_signature (get_signature_html): new helper function, uses get_sig_file_content (set_editor_text): removed signature parameters (from_changed_cb): new signal handler, sets signature by identity change (delete_old_signature): new function, deletes old signature from the document (e_msg_composer_set_sig_file): new method, set's signature filename (e_msg_composer_mark_text_orig): removed (obsolete) * e-msg-composer-hdrs.c: added signal FROM_CHANGED svn path=/trunk/; revision=9557
* more auto-indentation magicRadek Doulik2001-04-181-0/+5
| | | | | | | | 2001-04-17 Radek Doulik <rodo@ximian.com> * listener.c (reply_indent): more auto-indentation magic svn path=/trunk/; revision=9432
* Replace #include <gtk/gtk.h> Replace #include <gnome.h> Remove #includeKjartan Maraas2001-03-301-1/+5
| | | | | | | | | | | | | | | | | | | 2001-03-29 Kjartan Maraas <kmaraas@gnome.org> * e-icon-list.c: Replace #include <gtk/gtk.h> * e-msg-composer-attachment-bar.c: Replace #include <gnome.h> * e-msg-composer-attachment-bar.h: Remove #include <gnome.h> * e-msg-composer-attachment.c: Remove #include <gnome.h> * e-msg-composer-attachment.h: Same here. * e-msg-composer-hdrs.c: Replace #include <gnome.h> and <bonobo.h> * e-msg-composer-hdrs.h: Replace #include <gnome.h> * e-msg-composer-file.c: #include <gtk/gtkmain.h>, <gtk/gtksignal.h> * e-msg-composer.c: Replace #include <bonobo.h>, <gnome.h> * e-msg-composer.h: Replace #include <gnome.h> and <bonobo.h> * evolution-composer.c: Replace #include <bonobo.h> * listener.c: Same here. svn path=/trunk/; revision=9023
* set default text colorRadek Doulik2001-03-211-0/+1
| | | | | | | | 2001-03-19 Radek Doulik <rodo@ximian.com> * listener.c (reply_indent): set default text color svn path=/trunk/; revision=8849
* reenabled magic indentationRadek Doulik2001-01-081-2/+2
| | | | svn path=/trunk/; revision=7300
* disable indenting for now, it crashes editorRadek Doulik2001-01-061-2/+2
| | | | | | | | | 2001-01-05 Radek Doulik <rodo@helixcode.com> * listener.c (impl_event): disable indenting for now, it crashes editor svn path=/trunk/; revision=7274
* added warnings (prepare_engine): updated toRadek Doulik2000-12-081-40/+40
| | | | | | | | | | | | 2000-12-07 Radek Doulik <rodo@helixcode.com> * e-msg-composer.c (prepare_engine): added warnings (prepare_engine): updated to IDL:GNOME/GtkHTML/Editor/Engine:1.0 * Makefile.am: renamed HTMLEditor* to Editor*, added Editor-common.c: $(HTML_EDITOR_GENERATED) rule svn path=/trunk/; revision=6838
* debug printfRadek Doulik2000-11-221-0/+3
| | | | svn path=/trunk/; revision=6650
* updates for HTMLEditor API changesRadek Doulik2000-11-161-31/+31
| | | | | | | | | | 2000-11-15 Radek Doulik <rodo@helixcode.com> * updates for HTMLEditor API changes * e-msg-composer.c: added #include <libgnomevfs/gnome-vfs.h> svn path=/trunk/; revision=6582
* rename command to runCommandRadek Doulik2000-11-141-5/+5
| | | | | | | | 2000-11-14 Radek Doulik <rodo@helixcode.com> * listener.c (reply_indent): rename command to runCommand svn path=/trunk/; revision=6568
* updated to HTMLEditor API changesRadek Doulik2000-11-141-4/+4
| | | | | | | | | | 2000-11-14 Radek Doulik <rodo@helixcode.com> * e-msg-composer.c: updated to HTMLEditor API changes * listener.c: updated to HTMLEditor API changes svn path=/trunk/; revision=6567
* extracted function, does reply indentation, use updated editor engine apiRadek Doulik2000-11-141-5/+19
| | | | | | | | | 2000-11-13 Radek Doulik <rodo@helixcode.com> * listener.c (reply_indent): extracted function, does reply indentation, use updated editor engine api svn path=/trunk/; revision=6560
* new function (destroy): use e_msg_composer_clear_inlined_table, destroyRadek Doulik2000-11-081-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-11-08 Radek Doulik <rodo@helixcode.com> * e-msg-composer.c (e_msg_composer_clear_inlined_table): new function (destroy): use e_msg_composer_clear_inlined_table, destroy inlined_images hash table * listener.c (resolve_image_url): don't add inlined images to attachement bar * e-msg-composer.c (add_inlined_images): new function, adds inlined images to multipart (add_inlined_image): helper function, adds one image to multipart (build_message): store HTML messages with inlined images to multipart/related * e-msg-composer-attachment-bar.c (add_from_file): removed content_id arg (e_msg_composer_attachment_bar_attach): likewise * e-msg-composer-attachment.c (e_msg_composer_attachment_new): removed content_id arg svn path=/trunk/; revision=6507
* use inline images hash tableRadek Doulik2000-11-041-13/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-11-04 Radek Doulik <rodo@helixcode.com> * listener.c (resolve_image_url): use inline images hash table * e-msg-composer.c (init): create inlined images hash table (destroy): destroy it (clear_inline_images): helper function, used from g_hash_table_foreach_remove to destroy one inline image record * e-msg-composer.h: added hash table with inlined images url -> cid info 2000-11-03 Radek Doulik <rodo@helixcode.com> * listener.c (impl_event): updated for API changed implemented image_url event (resolve_image_url): new helper function, attaches image to mail and returns new (resolved) url pointing to mime component * e-msg-composer-attachment.c (e_msg_composer_attachment_new): added conponent_id parameter * e-msg-composer-attachment-bar.c (e_msg_composer_attachment_bar_attach): added parameter content_id (add_from_file): likewise svn path=/trunk/; revision=6390
* better reply editing, uses new HTMLEditor::Engine,Listener interfacesRadek Doulik2000-11-011-0/+163
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