Example #1
0
        public HexFormattedLineSourceImpl(TF.ITextFormatterProvider textFormatterProvider, double baseIndent, bool useDisplayMode, HexClassifier aggregateClassifier, HexAndAdornmentSequencer sequencer, VSTC.IClassificationFormatMap classificationFormatMap)
        {
            if (textFormatterProvider == null)
            {
                throw new ArgumentNullException(nameof(textFormatterProvider));
            }
            if (aggregateClassifier == null)
            {
                throw new ArgumentNullException(nameof(aggregateClassifier));
            }
            if (sequencer == null)
            {
                throw new ArgumentNullException(nameof(sequencer));
            }
            if (classificationFormatMap == null)
            {
                throw new ArgumentNullException(nameof(classificationFormatMap));
            }

            textFormatter                  = textFormatterProvider.Create(useDisplayMode);
            formattedTextCache             = new TF.FormattedTextCache(useDisplayMode);
            UseDisplayMode                 = useDisplayMode;
            BaseIndentation                = baseIndent;
            ColumnWidth                    = formattedTextCache.GetColumnWidth(classificationFormatMap.DefaultTextProperties);
            LineHeight                     = HexFormattedLineImpl.DEFAULT_TOP_SPACE + HexFormattedLineImpl.DEFAULT_BOTTOM_SPACE + formattedTextCache.GetLineHeight(classificationFormatMap.DefaultTextProperties);
            TextHeightAboveBaseline        = formattedTextCache.GetTextHeightAboveBaseline(classificationFormatMap.DefaultTextProperties);
            TextHeightBelowBaseline        = formattedTextCache.GetTextHeightBelowBaseline(classificationFormatMap.DefaultTextProperties);
            HexAndAdornmentSequencer       = sequencer;
            this.aggregateClassifier       = aggregateClassifier;
            this.classificationFormatMap   = classificationFormatMap;
            defaultTextParagraphProperties = new VSTF.TextFormattingParagraphProperties(classificationFormatMap.DefaultTextProperties, ColumnWidth * TabSize);
        }
		FormattedHexSourceFactoryServiceImpl(TF.ITextFormatterProvider textFormatterProvider) {
			this.textFormatterProvider = textFormatterProvider;
		}
Example #3
0
 SpacerMarginProvider(VSTC.IClassificationFormatMapService classificationFormatMapService, CTC.IThemeClassificationTypeService themeClassificationTypeService, TF.ITextFormatterProvider textFormatterProvider)
 {
     this.classificationFormatMapService = classificationFormatMapService;
     this.themeClassificationTypeService = themeClassificationTypeService;
     this.textFormatterProvider          = textFormatterProvider;
 }
 FormattedHexSourceFactoryServiceImpl(TF.ITextFormatterProvider textFormatterProvider) => this.textFormatterProvider = textFormatterProvider;
Example #5
0
		SpacerMarginProvider(VSTC.IClassificationFormatMapService classificationFormatMapService, CTC.IThemeClassificationTypeService themeClassificationTypeService, TF.ITextFormatterProvider textFormatterProvider) {
			this.classificationFormatMapService = classificationFormatMapService;
			this.themeClassificationTypeService = themeClassificationTypeService;
			this.textFormatterProvider = textFormatterProvider;
		}