1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
4
using ICSharpCode.SharpDevelop.Editor.Search;
7
namespace SearchAndReplace
9
public enum DocumentIteratorType {
15
Directory // only used for search in files
19
/// Represents a bi-directional iterator which could move froward/backward
20
/// in a document queue. Note that after move forward is called
21
/// move backward needn't to function correctly either move forward or move
22
/// backward is called but they're not mixed. After a reset the move operation
25
public interface IDocumentIterator
28
/// Returns the current ProvidedDocumentInformation. This method
29
/// usually creates a new ProvidedDocumentInformation object which can
32
ProvidedDocumentInformation Current {
37
/// Returns the file name of the current provided document information. This
38
/// property usually is not time consuming
40
string CurrentFileName {
45
/// Moves the iterator one document forward.
50
/// Moves the iterator one document backward.
55
/// Resets the iterator to the start position.
61
/// A document iterator which never returns any results.
63
public sealed class DummyDocumentIterator : IDocumentIterator
65
public ProvidedDocumentInformation Current {
71
public string CurrentFileName {
77
public bool MoveForward()
82
public bool MoveBackward()