WebCore:
authorjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 27 Mar 2006 08:34:32 +0000 (08:34 +0000)
committerjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 27 Mar 2006 08:34:32 +0000 (08:34 +0000)
        Reviewed by darn

        <http://bugzilla.opendarwin.org/show_bug.cgi?id=7974>
        Add EditActions and WebUndoActions for CreateLink and Unlink

        * bridge/mac/WebCoreFrameBridge.h:
        * editing/CreateLinkCommand.h:
        (WebCore::CreateLinkCommand::editingAction):
        * editing/EditAction.h:
        * editing/UnlinkCommand.h:
        (WebCore::UnlinkCommand::editingAction):

WebKit:

        Reviewed by darin

        <http://bugzilla.opendarwin.org/show_bug.cgi?id=7974>
        Add EditActions and WebUndoActions for CreateLink and Unlink

        * English.lproj/Localizable.strings:
        * WebCoreSupport/WebFrameBridge.m:
        (-[WebFrameBridge nameForUndoAction:]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13486 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/bridge/mac/WebCoreFrameBridge.h
WebCore/editing/CreateLinkCommand.h
WebCore/editing/EditAction.h
WebCore/editing/UnlinkCommand.h
WebKit/ChangeLog
WebKit/English.lproj/Localizable.strings
WebKit/WebCoreSupport/WebFrameBridge.m

index 40d87347727462fbc9e01396739bde224a440d41..9af7666a5991b5654e5aa9a67c628d534787c4f2 100644 (file)
@@ -1,3 +1,17 @@
+2006-03-26  Justin Garcia  <justin.garcia@apple.com>
+
+        Reviewed by darn
+        
+        <http://bugzilla.opendarwin.org/show_bug.cgi?id=7974>
+        Add EditActions and WebUndoActions for CreateLink and Unlink
+
+        * bridge/mac/WebCoreFrameBridge.h:
+        * editing/CreateLinkCommand.h:
+        (WebCore::CreateLinkCommand::editingAction):
+        * editing/EditAction.h:
+        * editing/UnlinkCommand.h:
+        (WebCore::UnlinkCommand::editingAction):
+
 2006-03-26  Eric Seidel  <eseidel@apple.com>
 
         Reviewed by mjs.
index 7a61b50901fa5aab356cdfc393fa932983feaa64..72257796dc26dbc2ee835c1d501fbd8240240167 100644 (file)
@@ -150,6 +150,8 @@ typedef enum {
     WebUndoActionPasteFont,
     WebUndoActionPasteRuler,
     WebUndoActionTyping,
+    WebUndoActionCreateLink,
+    WebUndoActionUnlink,
 } WebUndoAction;
 
 typedef enum {
index 4379c7a881776c68f15e78deb12c5a5f1a1b9e7d..e7dedf9faf4db4148b6428d7f7acf749f1b2c402 100644 (file)
@@ -35,9 +35,9 @@ class CreateLinkCommand : public CompositeEditCommand
 public:
     CreateLinkCommand(WebCore::Document*, const String&);
     virtual void doApply();
+    virtual EditAction editingAction() const { return EditActionCreateLink; }
 private:
     String m_url;
-
 };
 
 } // namespace WebCore
index 67a70d4e767dcda1c6592ab00934452d017f419e..a4df8fa211d860fd472eb2c85b0326ff05692960 100644 (file)
@@ -59,6 +59,8 @@ namespace WebCore {
         EditActionPasteFont,
         EditActionPasteRuler,
         EditActionTyping,
+        EditActionCreateLink,
+        EditActionUnlink,
     } EditAction;    
 }
 
index a9d52118ecad66a9a977f5869798363eec2c4f6c..97804e900c15822ad36d75acf4675c643721e6ae 100644 (file)
@@ -35,8 +35,8 @@ class UnlinkCommand : public CompositeEditCommand
 public:
     UnlinkCommand(WebCore::Document*);
     virtual void doApply();
+    virtual EditAction editingAction() const { return EditActionUnlink; }
 private:
-
 };
 
 } // namespace khtml
index 55266067c89050d7afd5fa3abc9b37eade4e82b1..df92ec98ab95a37eab0af046cf6bf7978292ab24 100644 (file)
@@ -1,3 +1,14 @@
+2006-03-26  Justin Garcia  <justin.garcia@apple.com>
+
+        Reviewed by darin
+        
+        <http://bugzilla.opendarwin.org/show_bug.cgi?id=7974>
+        Add EditActions and WebUndoActions for CreateLink and Unlink
+
+        * English.lproj/Localizable.strings:
+        * WebCoreSupport/WebFrameBridge.m:
+        (-[WebFrameBridge nameForUndoAction:]):
+
 2006-03-23  Tim Omernick  <timo@apple.com>
 
         Reviewed by John Sullivan.
index 3c71d92797748873f48ee9791abe719ce59f4126..c32b9f5cd30687bad3c80ddb671bc5ba12bc5a18 100644 (file)
Binary files a/WebKit/English.lproj/Localizable.strings and b/WebKit/English.lproj/Localizable.strings differ
index e3751a55289249b6012bfe5e820233d17e4a036e..b7016a936faf4ae20cae827bedcf5f1357b639ff 100644 (file)
@@ -1569,6 +1569,8 @@ static id <WebFormDelegate> formDelegate(WebFrameBridge *self)
         case WebUndoActionPasteFont: return UI_STRING_KEY("Paste Font", "Paste Font (Undo action name)", "Undo action name");
         case WebUndoActionPasteRuler: return UI_STRING_KEY("Paste Ruler", "Paste Ruler (Undo action name)", "Undo action name");
         case WebUndoActionTyping: return UI_STRING_KEY("Typing", "Typing (Undo action name)", "Undo action name");
+        case WebUndoActionCreateLink: return UI_STRING_KEY("Create Link", "Create Link (Undo action name)", "Undo action name");
+        case WebUndoActionUnlink: return UI_STRING_KEY("Unlink", "Unlink (Undo action name)", "Undo action name");
     }
     return nil;
 }