| 1: | // MiscKeys.cs | |
| 2: | // Copyright (C) 2000 Mike Krueger | |
| 3: | // Copyright (C) 2000 Andrea Paatz | |
| 4: | // Copyright (C) 2000 Jeppe Cramon | |
| 5: | // | |
| 6: | // This program is free software; you can redistribute it and/or modify | |
| 7: | // it under the terms of the GNU General Public License as published by | |
| 8: | // the Free Software Foundation; either version 2 of the License, or | |
| 9: | // (at your option) any later version. | |
| 10: | // | |
| 11: | // This program is distributed in the hope that it will be useful, | |
| 12: | // but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13: | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 14: | // GNU General Public License for more details. | |
| 15: | // | |
| 16: | // You should have received a copy of the GNU General Public License | |
| 17: | // along with this program; if not, write to the Free Software | |
| 18: | // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 19: | ||
| 20: | using System.Drawing; | |
| 21: | using System.Windows.Forms; | |
| 22: | using System; | |
| 23: | ||
| 24: | using Core.Properties; | |
| 25: | using SharpDevelop.DefaultEditor.Gui.Editor; | |
| 26: | //using SharpDevelop.Gui.Edit.Text.TemplateCompletion; | |
| 27: | using SharpDevelop.DefaultEditor.Text; | |
| 28: | ||
| 29: | namespace SharpDevelop.DefaultEditor.Actions { | |
| 30: | ||
| 31: | public class Cut : AbstractEditAction | |
| 32: | { | |
| 33: | public override void Execute(IEditActionServices services) | |
| 34: | { | |
| 35: | services.ClipboardHandler.Cut(null, null); | |
| 36: | } | |
| 37: | } | |
| 38: | ||
| 39: | public class Copy : AbstractEditAction | |
| 40: | { | |
| 41: | public override void Execute(IEditActionServices services) | |
| 42: | { | |
| 43: | services.AutoClearSelection = false; | |
| 44: | services.ClipboardHandler.Copy(null, null); | |
| 45: | } | |
| 46: | } | |
| 47: | ||
| 48: | public class Paste : AbstractEditAction | |
| 49: | { | |
| 50: | public override void Execute(IEditActionServices services) | |
| 51: | { | |
| 52: | services.ClipboardHandler.Paste(null, null); | |
| 53: | } | |
| 54: | } | |
| 55: | } |
This page was automatically generated by SharpDevelop.