1:   // IEditAction.cs
2:   // Copyright (C) 2001 Mike Krueger
3:   //
4:   // This program is free software; you can redistribute it and/or modify
5:   // it under the terms of the GNU General Public License as published by
6:   // the Free Software Foundation; either version 2 of the License, or
7:   // (at your option) any later version.
8:   // 
9:   // This program is distributed in the hope that it will be useful,
10:   // but WITHOUT ANY WARRANTY; without even the implied warranty of
11:   // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12:   // GNU General Public License for more details.
13:   //
14:   // You should have received a copy of the GNU General Public License
15:   // along with this program; if not, write to the Free Software
16:   // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17:  
18:   using System;
19:  
20:   using SharpDevelop.Gui;
21:   using SharpDevelop.DefaultEditor.Gui.Editor;
22:   using SharpDevelop.DefaultEditor.Text;
23:   using SharpDevelop.Gui.Edit;
24:  
25:   namespace SharpDevelop.DefaultEditor.Actions {
26:       
27:       /// <summary>
28:       /// This is the interface for all EditActions to the outside world :)
29:       /// </summary>
30:       public interface IEditActionServices
31:       {
32:           
33:           ISdClipboardHandable ClipboardHandler {
34:               get;
35:           }
36:           
37:           IDocument Document {
38:               get;
39:           }
40:           
41:           int MaxVisibleLine {
42:               get;
43:           }
44:           
45:           // update stuff
46:           void BeginUpdate();
47:           void EndUpdate();
48:           
49:           void Refresh();
50:           void UpdateToEnd(int lineBegin);
51:           void UpdateLines(int lineBeginint lineEnd);
52:           void UpdateLineToEnd(int lineNrint xStart);
53:           
54:           // caret stuff
55:           void CenterCaret();
56:           void ScrollToCaret();
57:           
58:           // scroll stuff
59:           void ScrollTo(int line);
60:           
61:           int FirstVisibleLine {
62:               get;
63:               set;
64:           }
65:           
66:           // selection stuff
67:           bool HasSomethingSelected {
68:               get;
69:           }
70:           bool AutoClearSelection {
71:               get;
72:               set;
73:           }
74:           
75:           void SetSelection(ITextSelection selection);
76:           void ExtendSelection(int oldOffsetint newOffset);
77:           void AddToSelection(ITextSelection selection);
78:           void RemoveSelectedText();
79:           void ClearSelection();
80:       }
81:   }

This page was automatically generated by SharpDevelop.