public PresentationModeFontChanger(IPresentationModeState state) { this.packageState = state; this.enabled = false; this.settings = SettingsContext.GetSettings(); this.categories = GetCategories(); this.fontsAndColors = state.GetService<IVsFontAndColorStorage>(); }
public PresentationModeCommand(VsfPackage package, OleMenuCommandService omcs) : base(package, omcs) { var model = new SComponentModel(); this.state = model.GetService <IPresentationModeState>(); Initialize(new Guid(Guids.guidVsfViewCmdSet), PkgCmdIdList.cmdidPresentationMode); }
public PresentationModeFontChanger(IPresentationModeState state) { this.packageState = state; this.enabled = false; this.settings = SettingsContext.GetSettings(); this.categories = GetCategories(); this.fontsAndColors = state.GetService <IVsFontAndColorStorage>(); }
public void TextViewCreated(IWpfTextView textView) { IPresentationModeState state = PkgSource.PresentationMode; textView.Properties.GetOrCreateSingletonProperty( () => new PresentationMode(textView, state, Settings) ); }
public PresentationMode(IWpfTextView textView, IPresentationModeState state, IVsfSettings settings) { this.theView = textView; this.settings = settings; this.state = state; state.PresentationModeChanged += OnPresentationModeChanged; settings.SettingsChanged += OnSettingsChanged; textView.Closed += OnTextViewClosed; textView.ViewportWidthChanged += OnViewportWidthChanged; }
public PresentationModeCommand(VsfPackage package, OleMenuCommandService omcs) : base(package, omcs) { this.state = package; Initialize(new Guid(Guids.guidVsfViewCmdSet), PkgCmdIdList.cmdidPresentationMode); }