diff --git a/zaaReloaded2/Formatter/AbnormalStyle.cs b/zaaReloaded2/Formatter/AbnormalStyle.cs
index cfac503..8f35601 100755
--- a/zaaReloaded2/Formatter/AbnormalStyle.cs
+++ b/zaaReloaded2/Formatter/AbnormalStyle.cs
@@ -36,7 +36,10 @@ namespace zaaReloaded2.Formatter
Bold = 0x01,
[Description("Kursiv")]
- Italics = 0x02
+ Italics = 0x02,
+
+ [Description("Unterstrichen")]
+ Underline = 0x04
}
public static class AbnormalStyleExtensions
@@ -56,6 +59,8 @@ namespace zaaReloaded2.Formatter
markup += String.Format("<{0}b>", dash);
if (style.HasFlag(AbnormalStyle.Italics))
markup += String.Format("<{0}i>", dash);
+ if (style.HasFlag(AbnormalStyle.Underline))
+ markup += String.Format("<{0}u>", dash);
return markup;
}
}
diff --git a/zaaReloaded2/Formatter/DocumentWriter.cs b/zaaReloaded2/Formatter/DocumentWriter.cs
index dea1bb8..e7535a7 100755
--- a/zaaReloaded2/Formatter/DocumentWriter.cs
+++ b/zaaReloaded2/Formatter/DocumentWriter.cs
@@ -208,6 +208,12 @@ namespace zaaReloaded2.Formatter
case "":
sel.Font.Italic = 0;
break;
+ case "":
+ sel.Font.Underline = WdUnderline.wdUnderlineSingle;
+ break;
+ case "":
+ sel.Font.Underline = WdUnderline.wdUnderlineNone;
+ break;
case "":
sel.ClearCharacterStyle();
break;
diff --git a/zaaReloaded2/ViewModels/SettingsViewModel.cs b/zaaReloaded2/ViewModels/SettingsViewModel.cs
index 54c9e60..f97f969 100755
--- a/zaaReloaded2/ViewModels/SettingsViewModel.cs
+++ b/zaaReloaded2/ViewModels/SettingsViewModel.cs
@@ -162,6 +162,29 @@ namespace zaaReloaded2.ViewModels
}
}
+ ///
+ /// Gets or sets whether abnormal values shall be underlined.
+ ///
+ public bool AbnormalUnderline
+ {
+ get
+ {
+ return _settings.AbnormalStyle.HasFlag(AbnormalStyle.Underline);
+ }
+ set
+ {
+ if (value)
+ {
+ _settings.AbnormalStyle |= AbnormalStyle.Underline;
+ }
+ else
+ {
+ _settings.AbnormalStyle &= ~AbnormalStyle.Underline;
+ }
+ OnPropertyChanged("AbnormalUnderline");
+ }
+ }
+
#endregion
#region Constructors
diff --git a/zaaReloaded2/Views/SettingsView.xaml b/zaaReloaded2/Views/SettingsView.xaml
index a678936..ba8dff2 100755
--- a/zaaReloaded2/Views/SettingsView.xaml
+++ b/zaaReloaded2/Views/SettingsView.xaml
@@ -60,12 +60,19 @@
SelectedItem="{Binding ReferenceStyle.SelectedItem}"
x:Name="ReferenceStyleChooser" HorizontalAlignment="Stretch" />
-
+
-
-
+
+ F
+
+
+ K
+
+
+ U
+