diff options
author | Uray M. János <uray.janos@gmail.com> | 2012-08-30 10:18:14 +0200 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2012-08-30 12:50:52 +0000 |
commit | 1191f4e432d3cb49662e6133411af3a2faf10a7a (patch) | |
tree | 3ea66c29bac661a2755376f8df8991b44e8b50fe /vcl/source/edit/textund2.hxx | |
parent | 9ec0a3ec629a05809852728482fdb3f3d997edef (diff) |
Undo/Redo description+shortcut in Basic IDE
This solves an issue about Edit > Redo in BasicIDE (Hungarian site):
http://bug.openscope.org/browse/OOO-269
1. Redo should have a shortcut (Ctrl+Y), like in other parts of
LibreOffice. (Undo has the usual Ctrl+Z.)
2. In the Edit menu, Undo and Redo should print something after the
colon (what is to be undone, redone).
This patch fixes both.
Unfortunately the shortcut isn't shown in the menu (it's in
vcl/source/window/keycod.cxx like Undo, and not in
officecfg/registry/data/org/openoffice/Office/Accelerators.xcu).
Change-Id: I2cfbfeb7d57309a27676e48943633cdb194288bc
Reviewed-on: https://gerrit.libreoffice.org/514
Reviewed-by: Andras Timar <atimar@suse.com>
Tested-by: Andras Timar <atimar@suse.com>
Diffstat (limited to 'vcl/source/edit/textund2.hxx')
-rw-r--r-- | vcl/source/edit/textund2.hxx | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/vcl/source/edit/textund2.hxx b/vcl/source/edit/textund2.hxx index c5ce90cc9e54..153e3db8c323 100644 --- a/vcl/source/edit/textund2.hxx +++ b/vcl/source/edit/textund2.hxx @@ -19,7 +19,8 @@ #ifndef _TEXTUND2_HXX #define _TEXTUND2_HXX -#include <textundo.hxx> +#include "textundo.hxx" +#include <vcl/textdata.hxx> class TextUndoDelPara : public TextUndo @@ -36,6 +37,8 @@ public: virtual void Undo(); virtual void Redo(); + + virtual rtl::OUString GetComment () const; }; @@ -52,6 +55,8 @@ public: virtual void Undo(); virtual void Redo(); + + virtual rtl::OUString GetComment () const; }; @@ -68,6 +73,8 @@ public: virtual void Undo(); virtual void Redo(); + + virtual rtl::OUString GetComment () const; }; @@ -85,6 +92,8 @@ public: virtual void Redo(); virtual sal_Bool Merge( SfxUndoAction *pNextAction ); + + virtual rtl::OUString GetComment () const; }; @@ -100,6 +109,8 @@ public: virtual void Undo(); virtual void Redo(); + + virtual rtl::OUString GetComment () const; }; @@ -115,6 +126,8 @@ public: virtual void Undo(); virtual void Redo(); + + virtual rtl::OUString GetComment () const; }; #endif // _TEXTUND2_HXX |