Skip to content

Commit a166c10

Browse files
Merge branch 'develop' into docs
2 parents f8a73bd + 49bb1d2 commit a166c10

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+4399
-79
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ master ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ master ]
20+
schedule:
21+
- cron: '36 2 * * 1'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
permissions:
28+
actions: read
29+
contents: read
30+
security-events: write
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
language: [ 'java', 'javascript' ]
36+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37+
# Learn more about CodeQL language support at https://git.io/codeql-language-support
38+
39+
steps:
40+
- name: Checkout repository
41+
uses: actions/checkout@v2
42+
43+
# Initializes the CodeQL tools for scanning.
44+
- name: Initialize CodeQL
45+
uses: github/codeql-action/init@v1
46+
with:
47+
languages: ${{ matrix.language }}
48+
# If you wish to specify custom queries, you can do so here or in a config file.
49+
# By default, queries listed here will override any specified in a config file.
50+
# Prefix the list here with "+" to use these queries and those in the config file.
51+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
52+
53+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
54+
# If this step fails, then you should remove it and run the build manually (see below)
55+
- name: Autobuild
56+
uses: github/codeql-action/autobuild@v1
57+
58+
# ℹ️ Command-line programs to run using the OS shell.
59+
# 📚 https://git.io/JvXDl
60+
61+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
62+
# and modify them (or add more) to build your code if your project
63+
# uses a compiled language
64+
65+
#- run: |
66+
# make bootstrap
67+
# make release
68+
69+
- name: Perform CodeQL Analysis
70+
uses: github/codeql-action/analyze@v1

docgen/parameters.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"title" : "Venus (Fugerit Document Generation Framework)",
33
"name": "Venus",
4-
"version" : "0.3.5.6",
5-
"date" : "24/02/2021",
4+
"version" : "0.3.9.4",
5+
"date" : "06/04/2022",
66
"organization" : {
77
"name" : "Fugerit Org",
88
"url" : "https://www.fugerit.org"

docgen/release-notes.txt

Lines changed: 122 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,127 @@
1-
0.3.5.7 (2021-02-24)
1+
0.3.9.4 (2022-04-06)
2+
--------------------
3+
+ para can now contains para and phrases (fop and freemarker mod)
4+
+ Changed fj-core version to 0.7.6.8
5+
6+
0.3.9.3 (2022-03-18)
7+
--------------------
8+
+ Fix to phrase link style in mod-fop
9+
10+
0.3.9.2 (2022-03-17)
11+
--------------------
12+
+ Added external link support in mod-fop
13+
14+
0.3.9.1 (2022-03-17)
15+
--------------------
16+
+ Added page-widht and page-height support in mod-fop
17+
18+
0.3.9.0 (2022-03-10)
19+
--------------------
20+
+ Added support for page-break in mod-fop
21+
22+
0.3.8.9 (2022-03-07)
23+
--------------------
24+
+ Changed doc version to doc-1-9 (deep changes to list handling)
25+
26+
0.3.8.7 / 0.3.8.8 (2022-03-06)
27+
--------------------
28+
+ Added support for different symbols on FOP/HTML rendered list (dash, minus, letters, numbers)
29+
30+
0.3.8.5 / 0.3.8.6 (2022-02-16)
31+
--------------------
32+
+ Fix the current doc meta model supported version to 1.8
33+
34+
0.3.8.3 / 0.3.8.4 (2022-02-14)
35+
--------------------
36+
+ Fix in empty list handling for fop type handler
37+
38+
0.3.8.2 (2022-02-10)
39+
--------------------
40+
+ Added no comments configuration for Markdown handlers
41+
42+
0.3.8.1 (2022-02-09)
43+
--------------------
44+
+ Added constant for type markdown (md)
45+
46+
0.3.8.0 (2022-02-09)
47+
--------------------
48+
+ Added simple type handler for Markdown format (basic and extended
49+
syntax)
50+
51+
0.3.7.4 (2022-02-03)
52+
--------------------
53+
+ fj-mode-freemarker : fix in DocPhrase handling
54+
55+
0.3.7.3 (2022-01-26)
56+
--------------------
57+
+ Added metadata info doc-language for whole document (currently only supported by fop renderer)
58+
59+
0.3.7.2 (2022-01-26)
60+
--------------------
61+
+ Added metadata info doc-title, doc-author, doc-subject, doc-creator, doc-version (currently only supported by fop renderer)
62+
63+
0.3.7.1 (2021-12-22)
64+
--------------------
65+
+ Added bookmark tree support (currently only work with fop renderer)
66+
67+
0.3.7.0 (2021-11-21)
68+
--------------------
69+
+ Better header handling for fop
70+
71+
0.3.6.9 (2021-10-21)
72+
--------------------
73+
+ Metadata for default-table-padding and default-table-spacing
74+
75+
0.3.6.8 (2021-10-09)
76+
--------------------
77+
+ Added meta/background to doc.xsd
78+
79+
0.3.6.7 (2021-09-27)
80+
--------------------
81+
+ Fix on doc-1-7.xsd for <h>
82+
83+
0.3.6.6 (2021-09-27)
84+
--------------------
85+
+ Added para.text-indent and para.spaceBefore to fop renderer
86+
87+
0.3.6.5 (2021-09-27)
88+
--------------------
89+
+ fix bug on fop renderer when space-after/before in inline container
90+
91+
0.3.6.4 (2021-09-27)
92+
--------------------
93+
+ fix bug on fop renderer when spacing and align both present
94+
95+
0.3.6.3 (2021-09-27)
96+
--------------------
97+
+ added para.space-left and para.space-right to fop renderer
98+
99+
0.3.6.2 (2021-09-27)
100+
--------------------
101+
+ added para.format="preserve-line" to fop renderer
102+
103+
0.3.6.1 (2021-09-26)
104+
--------------------
105+
+ added support for space-after / space-before in freemarker and fop renderer
106+
107+
0.3.6.0 (2021-09-21)
108+
--------------------
109+
+ doc-1-5.xsd : added 'render-mode' attribute to 'table' element (supported in freemarker fop)
110+
+ doc-1-5.xsd : added 'align' attribute to 'image' element (supported in freemarker fop)
111+
+ Changed fj-core version to 0.7.6.7
112+
113+
0.3.5.9 (2021-02-24)
114+
--------------------
115+
+ Corrections in link and list handling
116+
117+
0.3.5.8 (2021-02-24)
118+
--------------------
119+
+ Fix on list item for freemarker html and fop module
120+
121+
0.3.5.7 (2021-02-24)
2122
--------------------
3123
+ Upgraded fj-core version to 0.7.5.2
4-
+ Added FreeMarkerComplexProcessStep (providing a semplified chain step for freemarker, Process + Map Step)
124+
+ Added FreeMarkerComplexProcessStep (providing a simplified chain step for freemarker, Process + Map Step)
5125

6126
0.3.5.6 (2021-02-24)
7127
--------------------

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.5.7</version>
10+
<version>0.3.9.4</version>
1111
</parent>
1212

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

fj-doc-base/src/main/java/org/fugerit/java/doc/base/config/DocConfig.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@ public class DocConfig {
2020

2121
public static final String TYPE_FO = "fo";
2222

23+
public static final String TYPE_MD = "md";
24+
2325
}

fj-doc-base/src/main/java/org/fugerit/java/doc/base/facade/DocFacade.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ The Apache Software Foundation (http://www.apache.org/).
6060
*/
6161
public class DocFacade {
6262

63-
public static final String CURRENT_VERSION = "1-4";
63+
public static final String CURRENT_VERSION = "1-10";
6464

6565
private static Logger logger = LoggerFactory.getLogger( DocFacade.class );
6666

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/*****************************************************************
2+
<copyright>
3+
Fugerit Java Library
4+
5+
Copyright (c) 2007 Fugerit
6+
7+
All rights reserved. This program and the accompanying materials
8+
are made available under the terms of the Apache License v2.0
9+
which accompanies this distribution, and is available at
10+
http://www.apache.org/licenses/
11+
(txt version : http://www.apache.org/licenses/LICENSE-2.0.txt
12+
html version : http://www.apache.org/licenses/LICENSE-2.0.html)
13+
14+
This product includes software developed at
15+
The Apache Software Foundation (http://www.apache.org/).
16+
</copyright>
17+
*****************************************************************/
18+
package org.fugerit.java.doc.base.model;
19+
/*
20+
* @(#)DocFooter.java
21+
*
22+
* @project : org.fugerit.java.doc.base
23+
* @package : org.fugerit.java.doc.base
24+
* @creation : 16/lug/07
25+
* @release : xxxx.xx.xx
26+
*/
27+
28+
/**
29+
*
30+
*
31+
* @author Fugerit
32+
*
33+
*/
34+
public class DocBackground extends DocContainer {
35+
36+
public static final String TAG_NAME = "background";
37+
38+
/**
39+
*
40+
*/
41+
private static final long serialVersionUID = -5220633704780951L;
42+
43+
public DocBackground() {
44+
}
45+
46+
}

fj-doc-base/src/main/java/org/fugerit/java/doc/base/model/DocBase.java

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ public DocBase() {
8888

8989
private DocContainer docMeta;
9090

91+
private DocBackground docBackground;
92+
93+
private DocBookmarkTree docBookmarkTree;
94+
9195
private HashMap<String, DocElement> idMap;
9296

9397
private String xsdVersion;
@@ -177,6 +181,48 @@ public Properties getInfo() {
177181
return info;
178182
}
179183

184+
private Properties stableInfo;
185+
186+
public Properties getStableInfo() {
187+
return stableInfo;
188+
}
189+
190+
public void setStableInfo(Properties stableInfo) {
191+
this.stableInfo = stableInfo;
192+
}
193+
194+
public String getInfoPageWidth() {
195+
return this.getStableInfo().getProperty( DocInfo.INFO_NAME_PAGE_WIDTH );
196+
}
197+
198+
public String getInfoPageHeight() {
199+
return this.getStableInfo().getProperty( DocInfo.INFO_NAME_PAGE_HEIGHT );
200+
}
201+
202+
public String getInfoDocVersion() {
203+
return this.getStableInfo().getProperty( DocInfo.INFO_DOC_VERSION );
204+
}
205+
206+
public String getInfoDocTitle() {
207+
return this.getStableInfo().getProperty( DocInfo.INFO_DOC_TITLE );
208+
}
209+
210+
public String getInfoDocSubject() {
211+
return this.getStableInfo().getProperty( DocInfo.INFO_DOC_SUBJECT );
212+
}
213+
214+
public String getInfoDocAuthor() {
215+
return this.getStableInfo().getProperty( DocInfo.INFO_DOC_AUTHOR );
216+
}
217+
218+
public String getInfoDocCreator() {
219+
return this.getStableInfo().getProperty( DocInfo.INFO_DOC_CREATOR );
220+
}
221+
222+
public String getInfoDocLanguage() {
223+
return this.getStableInfo().getProperty( DocInfo.INFO_DOC_LANGUAGE );
224+
}
225+
180226
private static int getMargin( Properties props, int position ) {
181227
String margins = props.getProperty( GenericConsts.INFO_KEY_MARGINS, "10;10;10;10" );
182228
return Integer.parseInt( margins.split( ";")[position] );
@@ -206,4 +252,20 @@ public boolean isUseFooter() {
206252
return this.getDocFooter() != null && this.getDocFooter().isUseFooter();
207253
}
208254

255+
public DocBackground getDocBackground() {
256+
return docBackground;
257+
}
258+
259+
public void setDocBackground(DocBackground docBackground) {
260+
this.docBackground = docBackground;
261+
}
262+
263+
public DocBookmarkTree getDocBookmarkTree() {
264+
return docBookmarkTree;
265+
}
266+
267+
public void setDocBookmarkTree(DocBookmarkTree docBookmarkTree) {
268+
this.docBookmarkTree = docBookmarkTree;
269+
}
270+
209271
}

0 commit comments

Comments
 (0)