~ubuntu-branches/ubuntu/feisty/monodevelop/feisty

« back to all changes in this revision

Viewing changes to Unused/ICSharpCode.TextEditor/src/Document/BookmarkManager/IBookMarkManager.cs

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2006-08-18 00:51:23 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060818005123-5iit07y0j7wjg55f
Tags: 0.11+svn20060818-0ubuntu1
* New SVN snapshot
  + Works with Gtk# 2.9.0
* debian/control:
  + Updated Build-Depends
* debian/patches/use_nunit2.2.dpatch,
  debian/patches/use_real_libs.dpatch:
  + Updated
* debian/patches/versioncontrol_buildfix.dpatch:
  + Fix build failure in the version control addin

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// <file>
 
2
//     <copyright see="prj:///doc/copyright.txt"/>
 
3
//     <license see="prj:///doc/license.txt"/>
 
4
//     <owner name="Mike Krüger" email="mike@icsharpcode.net"/>
 
5
//     <version value="$version"/>
 
6
// </file>
 
7
 
 
8
using System;
 
9
using System.Collections;
 
10
 
 
11
namespace MonoDevelop.TextEditor.Document
 
12
{
 
13
        /// <summary>
 
14
        /// This class handles the bookmarks for a buffer
 
15
        /// </summary>
 
16
        public interface IBookMarkManager
 
17
        {
 
18
                /// <value>
 
19
                /// Contains all bookmarks as int values
 
20
                /// </value>
 
21
                ArrayList Marks {
 
22
                        get;
 
23
                }
 
24
                
 
25
                /// <value>
 
26
                /// The lowest mark, if no marks exists it returns -1
 
27
                /// </value>
 
28
                int FirstMark {
 
29
                        get;
 
30
                }
 
31
                
 
32
                /// <value>
 
33
                /// The highest mark, if no marks exists it returns -1
 
34
                /// </value>
 
35
                int LastMark {
 
36
                        get;
 
37
                }
 
38
                
 
39
                /// <remarks>
 
40
                /// Sets the mark at the line <code>lineNr</code> if it is not set, if the
 
41
                /// line is already marked the mark is cleared.
 
42
                /// </remarks>
 
43
                void ToggleMarkAt(int lineNr);
 
44
                
 
45
                /// <remarks>
 
46
                /// Returns true if the line <code>lineNr</code> is marked
 
47
                /// </remarks>
 
48
                bool IsMarked(int lineNr);
 
49
                
 
50
                /// <remarks>
 
51
                /// Clears all bookmarks
 
52
                /// </remarks>
 
53
                void Clear();
 
54
                
 
55
                /// <remarks>
 
56
                /// returns first mark higher than <code>lineNr</code>
 
57
                /// </remarks>
 
58
                /// <returns>
 
59
                /// returns the next mark > cur, if it not exists it returns FirstMark()
 
60
                /// </returns>
 
61
                int GetNextMark(int lineNr);
 
62
                
 
63
                /// <remarks>
 
64
                /// returns first mark lower than <code>lineNr</code>
 
65
                /// </remarks>
 
66
                /// <returns>
 
67
                /// returns the next mark lower than cur, if it not exists it returns LastMark()
 
68
                /// </returns>
 
69
                int GetPrevMark(int lineNr);
 
70
                
 
71
                
 
72
                /// <remarks>
 
73
                /// Is fired before the bookmarks change
 
74
                /// </remarks>
 
75
                event EventHandler BeforeChanged;
 
76
                
 
77
                /// <remarks>
 
78
                /// Is fired after the bookmarks change
 
79
                /// </remarks>
 
80
                event EventHandler Changed;
 
81
        }
 
82
}