internal TextFlowEditSession(TextFlowLayer textLayer) : base(textLayer) { //and record editing hx, support undo-redo _commandHistoryList = new DocumentCommandCollection(this); #if DEBUG if (dbugEnableTextManRecorder) { _dbugActivityRecorder = new debugActivityRecorder(); _lineEditor.dbugTextManRecorder = _dbugActivityRecorder; throw new NotSupportedException(); _dbugActivityRecorder.Start(null); } #endif }
internal InternalTextLayerController(EditableTextFlowLayer textLayer) { //this controller control the editaible-textflow-layer _textLayer = textLayer; //write to textflow-layer with text-line-writer (handle the writing line) _textLineWriter = new TextLineWriter(textLayer); //and record editing hx, support undo-redo _commandHistoryList = new DocumentCommandCollection(this); #if DEBUG if (dbugEnableTextManRecorder) { _dbugActivityRecorder = new debugActivityRecorder(); _textLineWriter.dbugTextManRecorder = _dbugActivityRecorder; throw new NotSupportedException(); _dbugActivityRecorder.Start(null); } #endif }