// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
using System.Windows.Media;
using ICSharpCode.AvalonEdit.Document;
namespace ICSharpCode.AvalonEdit.Snippets
{
///
/// Represents an active element that allows the snippet to stay interactive after insertion.
///
public interface IActiveElement
{
///
/// Called when the all snippet elements have been inserted.
///
void OnInsertionCompleted();
///
/// Called when the interactive mode is deactivated.
///
void Deactivate(SnippetEventArgs e);
///
/// Gets whether this element is editable (the user will be able to select it with Tab).
///
bool IsEditable { get; }
///
/// Gets the segment associated with this element. May be null.
///
ISegment Segment { get; }
}
}