Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBranden Phillips2021-01-18 21:03:36 +0000
committerBranden Phillips2021-01-20 21:33:50 +0000
commit61b95493b01912af1e9288eeaf68dda636ee5fc7 (patch)
tree7b3a3c6f6da8dae00c754119082b9b2432323110
parent4259b03bee20074b7ae3c7c8e0b33953180d04d4 (diff)
downloadorg.eclipse.osee-61b95493b01912af1e9288eeaf68dda636ee5fc7.tar.gz
org.eclipse.osee-61b95493b01912af1e9288eeaf68dda636ee5fc7.tar.xz
org.eclipse.osee-61b95493b01912af1e9288eeaf68dda636ee5fc7.zip
feature[TW18370]: Add constants for server publishing
Change-Id: I22bb6d683a053f71fea489aac2050678a9102f91 Signed-off-by: Branden Phillips <branden.w.phillips@boeing.com>
-rw-r--r--plugins/org.eclipse.osee.define.rest/src/org/eclipse/osee/define/rest/publishing/MSWordTemplatePublisher.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/org.eclipse.osee.define.rest/src/org/eclipse/osee/define/rest/publishing/MSWordTemplatePublisher.java b/plugins/org.eclipse.osee.define.rest/src/org/eclipse/osee/define/rest/publishing/MSWordTemplatePublisher.java
index bb9346943c3..d66de91a4c2 100644
--- a/plugins/org.eclipse.osee.define.rest/src/org/eclipse/osee/define/rest/publishing/MSWordTemplatePublisher.java
+++ b/plugins/org.eclipse.osee.define.rest/src/org/eclipse/osee/define/rest/publishing/MSWordTemplatePublisher.java
@@ -92,6 +92,8 @@ public class MSWordTemplatePublisher {
protected static final String INSERT_ARTIFACT_HERE = "INSERT_ARTIFACT_HERE";
protected static final String INSERT_LINK = "INSERT_LINK_HERE";
protected static final String PGNUMTYPE_START_1 = "<w:pgNumType [^>]*w:start=\"1\"/>";
+ protected static final String FONT = "Times New Roman";
+ protected static final String LANDSCAPE = "Landscape";
//Patterns
protected static final Pattern headElementsPattern =
@@ -834,11 +836,10 @@ public class MSWordTemplatePublisher {
return;
}
- List<Object> attributes = artifact.getAttributeValues(attributeType);
if (attributeType.equals(WordTemplateContent)) {
renderWordTemplateContent(attributeType, artifact, presentationType, wordMl, attributeElement.getFormat(),
attributeElement.getLabel());
- } else if (!attributes.isEmpty()) {
+ } else if (artifact.isAttributeTypeValid(attributeType)) {
renderSpecifiedAttribute(attributeType, artifact, presentationType, wordMl, attributeElement.getFormat(),
attributeElement.getLabel());
}

Back to the top