aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/zwobble/mammoth/internal/styles/StyleMap.java
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2020-11-06 18:54:59 +0000
committerMichael Williamson <mike@zwobble.org>2020-11-06 18:54:59 +0000
commitd8ff620412641d5a94085df703a8321e5964ae33 (patch)
tree0d743f5fc3517ed3803a399387e4950e2309852f /src/main/java/org/zwobble/mammoth/internal/styles/StyleMap.java
parent999fbc8dc29b87a0f9c4497ec680915ac7ecae26 (diff)
Add style mapping for all caps
Diffstat (limited to 'src/main/java/org/zwobble/mammoth/internal/styles/StyleMap.java')
-rw-r--r--src/main/java/org/zwobble/mammoth/internal/styles/StyleMap.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/org/zwobble/mammoth/internal/styles/StyleMap.java b/src/main/java/org/zwobble/mammoth/internal/styles/StyleMap.java
index 2b1d19a..1b094fd 100644
--- a/src/main/java/org/zwobble/mammoth/internal/styles/StyleMap.java
+++ b/src/main/java/org/zwobble/mammoth/internal/styles/StyleMap.java
@@ -24,6 +24,7 @@ public class StyleMap {
Optionals.first(high.italic, low.italic),
Optionals.first(high.underline, low.underline),
Optionals.first(high.strikethrough, low.strikethrough),
+ Optionals.first(high.allCaps, low.allCaps),
Optionals.first(high.smallCaps, low.smallCaps),
Optionals.first(high.commentReference, low.commentReference),
Lists.eagerConcat(high.paragraphStyles, low.paragraphStyles),
@@ -39,6 +40,7 @@ public class StyleMap {
private final Optional<HtmlPath> italic;
private final Optional<HtmlPath> underline;
private final Optional<HtmlPath> strikethrough;
+ private final Optional<HtmlPath> allCaps;
private final Optional<HtmlPath> smallCaps;
private final Optional<HtmlPath> commentReference;
private final List<StyleMapping<Paragraph>> paragraphStyles;
@@ -51,6 +53,7 @@ public class StyleMap {
Optional<HtmlPath> italic,
Optional<HtmlPath> underline,
Optional<HtmlPath> strikethrough,
+ Optional<HtmlPath> allCaps,
Optional<HtmlPath> smallCaps,
Optional<HtmlPath> commentReference,
List<StyleMapping<Paragraph>> paragraphStyles,
@@ -63,6 +66,7 @@ public class StyleMap {
this.italic = italic;
this.underline = underline;
this.strikethrough = strikethrough;
+ this.allCaps = allCaps;
this.smallCaps = smallCaps;
this.commentReference = commentReference;
this.paragraphStyles = paragraphStyles;
@@ -92,6 +96,10 @@ public class StyleMap {
return strikethrough;
}
+ public Optional<HtmlPath> getAllCaps() {
+ return allCaps;
+ }
+
public Optional<HtmlPath> getSmallCaps() {
return smallCaps;
}