~ubuntu-branches/ubuntu/gutsy/monodevelop/gutsy

« back to all changes in this revision

Viewing changes to Extras/MonoDevelop.SourceEditor/MonoDevelop.SourceEditor.FormattingStrategy/IFormattingStrategy.cs

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2007-07-16 13:29:54 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20070716132954-pzjpp1tbvotxw30v
Tags: 0.14+dfsg-1ubuntu1
* Sync with Debian, remaining changes:
  + debian/control:
    - Build depend on firefox-dev, depend on firefox.
    - Adjust Maintainer field.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
namespace MonoDevelop.SourceEditor.FormattingStrategy {
 
1
 
 
2
using MonoDevelop.Ide.Gui;
 
3
 
 
4
namespace MonoDevelop.SourceEditor.FormattingStrategy
 
5
{
2
6
        /// <summary>
3
7
        /// This interface handles the auto and smart indenting and formating
4
8
        /// in the document while  you type. Language bindings could overwrite this 
14
18
                /// of bytes (e.g. the number of bytes inserted before the caret, or
15
19
                /// removed, if this number is negative)
16
20
                /// </returns>
17
 
                int FormatLine (IFormattableDocument d, int line, int caretOffset, char charTyped);
 
21
                int FormatLine (TextEditor editor, int line, int caretOffset, char charTyped, string indentString, bool autoInsertCurlyBracket);
18
22
                
19
23
                /// <summary>
20
24
                /// This function sets the indentation level in a specific line
22
26
                /// <returns>
23
27
                /// the number of inserted characters.
24
28
                /// </returns>
25
 
                int IndentLine (IFormattableDocument d, int line);
26
 
                
27
 
                /// <summary>
28
 
                /// This function sets the indentlevel in a range of lines.
29
 
                /// </summary>
30
 
                void IndentLines (IFormattableDocument d, int begin, int end);
 
29
                int IndentLine (TextEditor editor, int line, string indentString);
31
30
        }       
32
31
}