internal BackGroundTextLineWriter GetBackgroundWriter()
        {
            if (backgroundWriter == null)
            {
                backgroundWriter = new BackGroundTextLineWriter(this.TextLayer);
#if DEBUG
                backgroundWriter.dbugTextManRecorder = this.dbugTextManRecorder;
#endif
            }
            return backgroundWriter;
        }
        internal BackGroundTextLineWriter GetBackgroundWriter()
        {
            if (backgroundWriter == null)
            {
                backgroundWriter = new BackGroundTextLineWriter(this.TextLayer);
#if DEBUG
                backgroundWriter.dbugTextManRecorder = this.dbugTextManRecorder;
#endif
            }
            return(backgroundWriter);
        }
Example #3
0
        public InternalTextLayerController(
            TextEditRenderBox visualTextSurface,
            EditableTextFlowLayer textLayer)
        {
            this.visualTextSurface   = visualTextSurface;
            textLineWriter           = new TextLineWriter(textLayer);
            backGroundTextLineWriter = textLineWriter.GetBackgroundWriter();
            commandHistory           = new DocumentCommandCollection(this);
            this.textMan             = new TextMan(this, visualTextSurface);
#if DEBUG
            if (dbugEnableTextManRecorder)
            {
                dbugTextManRecorder = new dbugMultiTextManRecorder();
                textLineWriter.dbugTextManRecorder = dbugTextManRecorder;
                throw new NotSupportedException();
                dbugTextManRecorder.Start(null);
            }
#endif
        }
        public InternalTextLayerController(
            TextEditRenderBox visualTextSurface,
            EditableTextFlowLayer textLayer)
        {
            this.visualTextSurface = visualTextSurface;
            textLineWriter = new TextLineWriter(textLayer);
            backGroundTextLineWriter = textLineWriter.GetBackgroundWriter();
            commandHistory = new DocumentCommandCollection(this);
            this.textMan = new TextMan(this, visualTextSurface);
#if DEBUG
            if (dbugEnableTextManRecorder)
            {
                dbugTextManRecorder = new dbugMultiTextManRecorder();
                textLineWriter.dbugTextManRecorder = dbugTextManRecorder;
                throw new NotSupportedException();
                dbugTextManRecorder.Start(null);
            }
#endif
        }