public override bool TryAddFormatAtDestination(IDataModel owner, ModelDelta token, int source, int destination, string name, IReadOnlyList <ArrayRunElementSegment> sourceSegments, int parentIndex) { var run = new BSERun(destination, new SortedSpan <int>(source)); if (run.Length < 1) { return(false); } owner.ClearFormat(token, run.Start, run.Length); owner.ObserveRunWritten(token, run); return(true); }
public override void UpdateNewRunFromPointerFormat(IDataModel model, ModelDelta token, string name, IReadOnlyList <ArrayRunElementSegment> sourceSegments, int parentIndex, ref IFormattedRun run) { run = new BSERun(run.Start, run.PointerSources); }
// TODO public override ErrorInfo TryParseData(IDataModel model, string name, int dataIndex, ref IFormattedRun run) { run = new BSERun(dataIndex, run.PointerSources); return(ErrorInfo.NoError); }
public override void UpdateNewRunFromPointerFormat(IDataModel model, ModelDelta token, string name, ref IFormattedRun run) { run = new BSERun(run.Start, run.PointerSources); }