Browse Source

add FontSize to global editor options

newNR
Siegfried Pammer 12 years ago
parent
commit
eef29b1259
  1. 3
      src/AddIns/BackendBindings/CSharpBinding/Project/Src/Completion/EntityCompletionData.cs
  2. 3
      src/AddIns/BackendBindings/CSharpBinding/Project/Src/Completion/TypeCompletionData.cs
  3. 6
      src/AddIns/BackendBindings/Scripting/Test/Utils/MockTextEditorOptions.cs
  4. 6
      src/AddIns/BackendBindings/WixBinding/Test/Utils/MockTextEditorOptions.cs
  5. 6
      src/AddIns/DisplayBindings/XmlEditor/Test/Utils/MockTextEditorOptions.cs
  6. 6
      src/Main/Base/Project/Editor/AvalonEditTextEditorAdapter.cs
  7. 6
      src/Main/Base/Project/Editor/IEditorControlService.cs
  8. 5
      src/Main/Base/Project/Editor/ITextEditor.cs

3
src/AddIns/BackendBindings/CSharpBinding/Project/Src/Completion/EntityCompletionData.cs

@ -30,7 +30,8 @@ namespace CSharpBinding.Completion @@ -30,7 +30,8 @@ namespace CSharpBinding.Completion
{
return new FlowDocumentScrollViewer {
Document = XmlDocFormatter.CreateTooltip(entity),
VerticalScrollBarVisibility = ScrollBarVisibility.Auto
VerticalScrollBarVisibility = ScrollBarVisibility.Auto,
FontSize = SD.EditorControlService.GlobalOptions.FontSize
};
}
}

3
src/AddIns/BackendBindings/CSharpBinding/Project/Src/Completion/TypeCompletionData.cs

@ -30,7 +30,8 @@ namespace CSharpBinding.Completion @@ -30,7 +30,8 @@ namespace CSharpBinding.Completion
{
return new FlowDocumentScrollViewer {
Document = XmlDocFormatter.CreateTooltip(type),
VerticalScrollBarVisibility = ScrollBarVisibility.Auto
VerticalScrollBarVisibility = ScrollBarVisibility.Auto,
FontSize = SD.EditorControlService.GlobalOptions.FontSize
};
}
}

6
src/AddIns/BackendBindings/Scripting/Test/Utils/MockTextEditorOptions.cs

@ -36,5 +36,11 @@ namespace ICSharpCode.Scripting.Tests.Utils @@ -36,5 +36,11 @@ namespace ICSharpCode.Scripting.Tests.Utils
throw new NotImplementedException();
}
}
public double FontSize {
get {
throw new NotImplementedException();
}
}
}
}

6
src/AddIns/BackendBindings/WixBinding/Test/Utils/MockTextEditorOptions.cs

@ -56,5 +56,11 @@ namespace WixBinding.Tests.Utils @@ -56,5 +56,11 @@ namespace WixBinding.Tests.Utils
throw new NotImplementedException();
}
}
public double FontSize {
get {
throw new NotImplementedException();
}
}
}
}

6
src/AddIns/DisplayBindings/XmlEditor/Test/Utils/MockTextEditorOptions.cs

@ -52,5 +52,11 @@ namespace XmlEditor.Tests.Utils @@ -52,5 +52,11 @@ namespace XmlEditor.Tests.Utils
throw new NotImplementedException();
}
}
public double FontSize {
get {
throw new NotImplementedException();
}
}
}
}

6
src/Main/Base/Project/Editor/AvalonEditTextEditorAdapter.cs

@ -151,6 +151,12 @@ namespace ICSharpCode.SharpDevelop.Editor @@ -151,6 +151,12 @@ namespace ICSharpCode.SharpDevelop.Editor
return "Consolas";
}
}
public double FontSize {
get {
return 10.0;
}
}
}
public virtual ICSharpCode.Core.FileName FileName {

6
src/Main/Base/Project/Editor/IEditorControlService.cs

@ -72,6 +72,12 @@ namespace ICSharpCode.SharpDevelop.Editor @@ -72,6 +72,12 @@ namespace ICSharpCode.SharpDevelop.Editor
}
}
public double FontSize {
get {
return 10.0;
}
}
public IHighlighter CreateHighlighter(IDocument document)
{
return null;

5
src/Main/Base/Project/Editor/ITextEditor.cs

@ -158,6 +158,11 @@ namespace ICSharpCode.SharpDevelop.Editor @@ -158,6 +158,11 @@ namespace ICSharpCode.SharpDevelop.Editor
/// Gets the name of the currently used font.
/// </summary>
string FontFamily { get; }
/// <summary>
/// Gets the currently used font size.
/// </summary>
double FontSize { get; }
}
/// <summary>

Loading…
Cancel
Save