!import
(0 calls, 0 incl. v-uS, 0 excl. v-uS)
1 //@line 38 "/home/visbrero/mnt/roisin/rev_control/hg/mozilla/toolkit/content/editMenuOverlay.js"
2
3 // update menu items that rely on focus or on the current selection
(0 calls, 0 incl. v-uS, 0 excl. v-uS)
4 function goUpdateGlobalEditMenuItems()
5 {
6 // Don't bother updating the edit commands if they aren't visible in any way
7 // (i.e. the Edit menu isn't open, nor is the context menu open, nor have the
8 // cut, copy, and paste buttons been added to the toolbars) for performance.
9 // This only works in applications/on platforms that set the gEditUIVisible
10 // flag, so we check to see if that flag is defined before using it.
11 if (typeof gEditUIVisible != "undefined" && !gEditUIVisible)
12 return;
13
14 goUpdateCommand("cmd_undo");
15 goUpdateCommand("cmd_redo");
16 goUpdateCommand("cmd_cut");
17 goUpdateCommand("cmd_copy");
18 goUpdateCommand("cmd_paste");
19 goUpdateCommand("cmd_selectAll");
20 goUpdateCommand("cmd_delete");
21 goUpdateCommand("cmd_switchTextDirection");
22 }
23
24 // update menu items that relate to undo/redo
(0 calls, 0 incl. v-uS, 0 excl. v-uS)
25 function goUpdateUndoEditMenuItems()
26 {
27 goUpdateCommand("cmd_undo");
28 goUpdateCommand("cmd_redo");
29 }
30
31 // update menu items that depend on clipboard contents
(0 calls, 0 incl. v-uS, 0 excl. v-uS)
32 function goUpdatePasteMenuItems()
33 {
34 goUpdateCommand("cmd_paste");
35 }