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

« back to all changes in this revision

Viewing changes to Unused/TextEditor/Search/SearchResult/ISearchResult.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.IO;
 
10
using System.Drawing;
 
11
 
 
12
using MonoDevelop.Core.Properties;
 
13
using MonoDevelop.Ide.Gui.Undo;
 
14
 
 
15
namespace MonoDevelop.TextEditor.Document
 
16
{
 
17
        /// <summary>
 
18
        /// This interface describes the result a search strategy must
 
19
        /// return with a call to find next.
 
20
        /// </summary>
 
21
        public interface ISearchResult
 
22
        {
 
23
                /// <value>
 
24
                /// Returns the file name of the search result. This
 
25
                /// value is null till the ProvidedDocumentInformation 
 
26
                /// property is set.
 
27
                /// </value>
 
28
                string FileName {
 
29
                        get;
 
30
                }
 
31
                
 
32
                /// <value>
 
33
                /// This property is set by the find object and need not to be
 
34
                /// set by the search strategies. All search results that are returned
 
35
                /// by the find object do have a ProvidedDocumentInformation.
 
36
                /// </value>
 
37
                ProvidedDocumentInformation ProvidedDocumentInformation {
 
38
                        set;
 
39
                }
 
40
                
 
41
                /// <value>
 
42
                /// The offset of the pattern match
 
43
                /// </value>
 
44
                int Offset {
 
45
                        get;
 
46
                }
 
47
                
 
48
                /// <value>
 
49
                /// The length of the pattern match.
 
50
                /// </value>
 
51
                int Length {
 
52
                        get;
 
53
                }
 
54
                
 
55
                /// <remarks>
 
56
                /// This method creates a document for the file FileName. This method works
 
57
                /// only after the ProvidedDocumentInformation is set.
 
58
                /// </remarks>
 
59
                IDocument CreateDocument();
 
60
                
 
61
                /// <remarks>
 
62
                /// Replace operations must transform the replace pattern with this
 
63
                /// method.
 
64
                /// </remarks>
 
65
                string TransformReplacePattern(string pattern);
 
66
        }
 
67
}