Skip to content

Commit 20173ac

Browse files
0.3.9.2 (2022-03-17)
+ Added external link support in mod-fop
1 parent c91b26f commit 20173ac

File tree

16 files changed

+40
-15
lines changed

16 files changed

+40
-15
lines changed

docgen/parameters.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"title" : "Venus (Fugerit Document Generation Framework)",
33
"name": "Venus",
4-
"version" : "0.3.9.1",
4+
"version" : "0.3.9.2",
55
"date" : "17/03/2022",
66
"organization" : {
77
"name" : "Fugerit Org",

docgen/release-notes.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
0.3.9.1 (2022-03-17)
1+
0.3.9.2 (2022-03-17)
2+
--------------------
3+
+ Added external link support in mod-fop
4+
5+
0.3.9.1 (2022-03-17)
26
--------------------
37
+ Added page-widht and page-height support in mod-fop
48

fj-doc-base/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.fugerit.java</groupId>
99
<artifactId>fj-doc</artifactId>
10-
<version>0.3.9.1</version>
10+
<version>0.3.9.2</version>
1111
</parent>
1212

1313
<name>fj-doc-base</name>

fj-doc-base/src/main/java/org/fugerit/java/doc/base/xml/DocContentHandler.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ public class DocContentHandler implements ContentHandler {
7878
"cell",
7979
"list",
8080
"li",
81+
"pl",
8182
"body",
8283
"meta",
8384
"metadata",
@@ -428,7 +429,10 @@ public void startElement(String uri, String localName, String qName, Attributes
428429
}
429430
String align = props.getProperty( "align" );
430431
docImage.setAlign( getAlign( align ) );
431-
this.currentElement = docImage;
432+
this.currentElement = docImage;
433+
} else if ( "pl".equalsIgnoreCase( qName ) ) {
434+
DocContainer container = new DocContainer();
435+
this.currentElement = container;
432436
} else if ( DocPara.TAG_NAME.equalsIgnoreCase( qName ) ) {
433437
DocPara docPara = new DocPara();
434438
valuePara(docPara, props, false);

fj-doc-base/src/main/resources/config/doc-1-9.xsd

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* @project : org.fugerit.java.doc.base
88
* @creation : 2022-03-07
9-
* @version : 1.9.0 (2022-03-07)
9+
* @version : 1.9.1 (2022-03-17)
1010
*
1111
* XSD for fugerit doc configuration
1212
*/
@@ -23,6 +23,7 @@
2323
2424
changelog
2525
1-9 - deep change to list handling
26+
1-9-1 - added phrase list option to list item
2627
2728
-->
2829
<xsd:schema xmlns='http://www.w3.org/2000/10/XMLSchema'
@@ -291,13 +292,22 @@
291292
<xsd:choice minOccurs='1' maxOccurs='1'>
292293
<xsd:element ref='doc:para' />
293294
<xsd:element ref='doc:h' />
295+
<xsd:element ref='doc:pl' />
294296
</xsd:choice>
295297
<xsd:element ref='doc:list' minOccurs="0" maxOccurs="1"/>
296298
</xsd:sequence>
297299
<xsd:attribute name='id' type='xsd:string' use='optional' />
298300
</xsd:complexType>
299301
</xsd:element>
300302

303+
<xsd:element name='pl' type="doc:plType"/>
304+
305+
<xsd:complexType name="plType">
306+
<xsd:sequence minOccurs='1' maxOccurs="unbounded">
307+
<xsd:element ref="doc:phrase" />
308+
</xsd:sequence>
309+
</xsd:complexType>
310+
301311
<xsd:simpleType name="listType">
302312
<xsd:restriction base="xsd:string">
303313
<!-- default unordered list, same asd 'uld' -->

fj-doc-ent/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.fugerit.java</groupId>
99
<artifactId>fj-doc</artifactId>
10-
<version>0.3.9.1</version>
10+
<version>0.3.9.2</version>
1111
</parent>
1212

1313
<name>fj-doc-ent</name>

fj-doc-freemarker/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.fugerit.java</groupId>
99
<artifactId>fj-doc</artifactId>
10-
<version>0.3.9.1</version>
10+
<version>0.3.9.2</version>
1111
</parent>
1212

1313
<name>fj-doc-freemarker</name>

fj-doc-mod-fop/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.fugerit.java</groupId>
99
<artifactId>fj-doc</artifactId>
10-
<version>0.3.9.1</version>
10+
<version>0.3.9.2</version>
1111
</parent>
1212

1313
<name>fj-doc-mod-fop</name>

fj-doc-mod-fop/src/main/resources/fm_fop/template/macro/doc_element.ftl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
<@handleImage docImage=current/>
2323
<#elseif elementType = 'DocList'>
2424
<@handleList docList=current/>
25+
<#elseif elementType = 'DocContainer'>
26+
<#list current.elementList as currentChild><@handleElement current=currentChild/></#list>
2527
<#elseif elementType = 'DocPageBreak'>
2628
<fo:block page-break-before="always"></fo:block>
2729
<#else>
@@ -31,7 +33,11 @@
3133

3234
<#macro handlePhrase current>
3335
<#if (current.link)??>
34-
<fo:basic-link internal-destination="${current.internalLink}">${current.text}</fo:basic-link>
36+
<#if (current.internal)>
37+
<fo:basic-link internal-destination="${current.internalLink}">${current.text}</fo:basic-link>
38+
<#else>
39+
<fo:basic-link external-destination="url('${current.link}')" color="blue" text-decoration="underline">${current.text}</fo:basic-link>
40+
</#if>
3541
<#elseif (current.anchor)??>
3642
<fo:block id="${current.anchor}"><@handleWhiteSpace element=current/><@handleStyle styleValue=current.originalStyle/> <@handleFont element=current/>${current.text}</fo:block>
3743
<#else>

fj-doc-mod-itext/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.fugerit.java</groupId>
99
<artifactId>fj-doc</artifactId>
10-
<version>0.3.9.1</version>
10+
<version>0.3.9.2</version>
1111
</parent>
1212

1313
<name>fj-doc-mod-itext</name>

0 commit comments

Comments
 (0)