public override void Dispose() { if (sciDoc != null) { sciDoc.Dispose(); sciDoc = null; base.Dispose(); } }
public void AttachDocument(SciDocument doc) { var ptr = Ref.Send(Sci.SCI_GETDOCPOINTER); if (ptr == doc.Pointer.ToInt32()) { return; } ClearDocumentState(); if (ptr != Sci.NIL) { Ref.Send(Sci.SCI_ADDREFDOCUMENT, Sci.NIL, ptr); } Ref.Send(Sci.SCI_SETDOCPOINTER, Sci.NIL, doc.Pointer.ToInt32()); Ref.Send(Sci.SCI_SETCODEPAGE, Sci.SC_CP_UTF8); OnDocumentAttached(); }
internal EilDocument(string title, SciDocument sciDoc) : base(title, sciDoc) { }
internal EilDocument(FileInfo fileInfo, SciDocument sciDoc) : base(fileInfo, sciDoc) { }
internal PlainTextDocument(string title, SciDocument sciDoc) : base(title, sciDoc) { }
internal PlainTextDocument(FileInfo fileInfo, SciDocument sciDoc) : base(fileInfo, sciDoc) { }
internal ElaDocument(FileInfo fileInfo, SciDocument sciDoc) : base(fileInfo, sciDoc) { Features = CodeEditorFeatures.Outline | CodeEditorFeatures.Tasks; }
internal ElaDocument(string title, SciDocument sciDoc) : base(title, sciDoc) { Features = CodeEditorFeatures.Outline | CodeEditorFeatures.Tasks; }
protected CodeDocument(string title, SciDocument sciDoc) : base(title, sciDoc) { UnitVersion = -1; }
protected CodeDocument(FileInfo fileInfo, SciDocument sciDoc) : base(fileInfo, sciDoc) { UnitVersion = -1; }
protected TextDocument(string title, SciDocument sciDoc) : base(title) { this.sciDoc = sciDoc; }
protected TextDocument(FileInfo fileInfo, SciDocument sciDoc) : base(fileInfo) { this.sciDoc = sciDoc; }