aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/EphyWrapper.h
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2003-10-25 23:15:35 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2003-10-25 23:15:35 +0800
commit38956a20d942387e3d5b839c4b962713bd60cdf0 (patch)
tree6ac41837526e3b5aab171741e0803ff87492a2ea /embed/mozilla/EphyWrapper.h
parent20602830fa6d28dd28cab60de0698ec523b1c6b9 (diff)
downloadgsoc2013-epiphany-38956a20d942387e3d5b839c4b962713bd60cdf0.tar
gsoc2013-epiphany-38956a20d942387e3d5b839c4b962713bd60cdf0.tar.gz
gsoc2013-epiphany-38956a20d942387e3d5b839c4b962713bd60cdf0.tar.bz2
gsoc2013-epiphany-38956a20d942387e3d5b839c4b962713bd60cdf0.tar.lz
gsoc2013-epiphany-38956a20d942387e3d5b839c4b962713bd60cdf0.tar.xz
gsoc2013-epiphany-38956a20d942387e3d5b839c4b962713bd60cdf0.tar.zst
gsoc2013-epiphany-38956a20d942387e3d5b839c4b962713bd60cdf0.zip
Interface for commands. Useful for undo. (cmd_undo works).
2003-10-25 Marco Pesenti Gritti <marco@gnome.org> * embed/Makefile.am: * embed/ephy-command-manager.c: (ephy_command_manager_get_type), (ephy_command_manager_base_init), (ephy_command_manager_do_command), (ephy_command_manager_can_do_command), (ephy_command_manager_observe_command): * embed/ephy-command-manager.h: Interface for commands. Useful for undo. (cmd_undo works). * embed/ephy-embed.c: * embed/ephy-embed.h: Remove all clipboard calls. * embed/mozilla/EphyWrapper.cpp: * embed/mozilla/EphyWrapper.h: * embed/mozilla/Makefile.am: * embed/mozilla/mozilla-embed.cpp: Implement part of the commands interface. No regressions. * src/window-commands.c: (window_cmd_edit_cut), (window_cmd_edit_copy), (window_cmd_edit_paste), (window_cmd_edit_select_all): Implement clipboard using commands.
Diffstat (limited to 'embed/mozilla/EphyWrapper.h')
-rw-r--r--embed/mozilla/EphyWrapper.h16
1 files changed, 2 insertions, 14 deletions
diff --git a/embed/mozilla/EphyWrapper.h b/embed/mozilla/EphyWrapper.h
index 64cf99026..3867d053d 100644
--- a/embed/mozilla/EphyWrapper.h
+++ b/embed/mozilla/EphyWrapper.h
@@ -48,6 +48,8 @@ public:
nsresult Init (GtkMozEmbed *mozembed);
nsresult Destroy (void);
+ nsresult DoCommand (const char *command);
+
nsresult SetZoom (float aTextZoom, PRBool reflow);
nsresult GetZoom (float *aTextZoom);
@@ -81,22 +83,8 @@ public:
nsresult GetEncodingInfo (EphyEncodingInfo **infoptr);
- nsresult CanCutSelection(PRBool *result);
-
- nsresult CanCopySelection(PRBool *result);
-
- nsresult CanPaste(PRBool *result);
-
- nsresult CutSelection(void);
-
- nsresult CopySelection(void);
-
- nsresult Paste(void);
-
nsresult GetMainDOMDocument (nsIDOMDocument **aDOMDocument);
- nsresult SelectAll (void);
-
nsresult PushTargetDocument (nsIDOMDocument *domDoc);
nsresult PopTargetDocument ();