aboutsummaryrefslogtreecommitdiffstats
path: root/composer/listener.h
diff options
context:
space:
mode:
authorRadek Doulik <rodo@helixcode.com>2000-11-01 01:10:42 +0800
committerRadek Doulik <rodo@src.gnome.org>2000-11-01 01:10:42 +0800
commitfee9d1b411184ef7fee35d1b72871a29e340b0c2 (patch)
tree5e1b00dc04f01e011c14546249b0f3237d77dc8d /composer/listener.h
parent1c7ba10a5d5ecfea514da87de1a23278f4d43f00 (diff)
downloadgsoc2013-evolution-fee9d1b411184ef7fee35d1b72871a29e340b0c2.tar
gsoc2013-evolution-fee9d1b411184ef7fee35d1b72871a29e340b0c2.tar.gz
gsoc2013-evolution-fee9d1b411184ef7fee35d1b72871a29e340b0c2.tar.bz2
gsoc2013-evolution-fee9d1b411184ef7fee35d1b72871a29e340b0c2.tar.lz
gsoc2013-evolution-fee9d1b411184ef7fee35d1b72871a29e340b0c2.tar.xz
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/listener.h')
-rw-r--r--composer/listener.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/composer/listener.h b/composer/listener.h
new file mode 100644
index 0000000000..e2815a3221
--- /dev/null
+++ b/composer/listener.h
@@ -0,0 +1,56 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
+/* This file is part of gnome-spell bonobo component
+
+ Copyright (C) 2000 Helix Code, Inc.
+ Authors: Radek Doulik <rodo@helixcode.com>
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public License
+ along with this library; see the file COPYING.LIB. If not, write to
+ the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA.
+*/
+
+#ifndef LISTENER_H_
+#define LISTENER_H_
+
+#include <libgnome/gnome-defs.h>
+#include <bonobo/bonobo-object.h>
+#include "HTMLEditor.h"
+#include "e-msg-composer.h"
+
+BEGIN_GNOME_DECLS
+
+#define HTML_EDITOR_LISTENER_TYPE (html_editor_listener_get_type ())
+#define HTML_EDITOR_LISTENER(o) (GTK_CHECK_CAST ((o), HTML_EDITOR_LISTENER_TYPE, HTMLEditorListener))
+#define HTML_EDITOR_LISTENER_CLASS(k) (GTK_CHECK_CLASS_CAST((k), HTML_EDITOR_LISTENER_TYPE, HTMLEditorListenerClass))
+#define IS_HTML_EDITOR_LISTENER(o) (GTK_CHECK_TYPE ((o), HTML_EDITOR_LISTENER_TYPE))
+#define IS_HTML_EDITOR_LISTENER_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), HTML_EDITOR_LISTENER_TYPE))
+
+typedef struct {
+ BonoboObject parent;
+ EMsgComposer *composer;
+} HTMLEditorListener;
+
+typedef struct {
+ BonoboObjectClass parent_class;
+} HTMLEditorListenerClass;
+
+GtkType html_editor_listener_get_type (void);
+HTMLEditorListener *html_editor_listener_construct (HTMLEditorListener *listener,
+ HTMLEditor_Listener corba_listener);
+HTMLEditorListener *html_editor_listener_new (EMsgComposer *composer);
+POA_HTMLEditor_Listener__epv *html_editor_listener_get_epv (void);
+
+END_GNOME_DECLS
+
+#endif /* LISTENER_H_ */