[FOray-commit] SF.net SVN: foray:[12574] trunk/foray
Modular XSL-FO Implementation for Java.
Status: Alpha
Brought to you by:
victormote
|
From: <vic...@us...> - 2022-02-08 18:42:22
|
Revision: 12574
http://sourceforge.net/p/foray/code/12574
Author: victormote
Date: 2022-02-08 18:42:19 +0000 (Tue, 08 Feb 2022)
Log Message:
-----------
Conform to aXSL changes: Move more trait methods to standard location.
Modified Paths:
--------------
trunk/foray/foray-areatree/src/main/java/org/foray/area/metadata/BookmarkNode4a.java
trunk/foray/foray-render/src/main/java/org/foray/render/pdf/PdfRenderer.java
Modified: trunk/foray/foray-areatree/src/main/java/org/foray/area/metadata/BookmarkNode4a.java
===================================================================
--- trunk/foray/foray-areatree/src/main/java/org/foray/area/metadata/BookmarkNode4a.java 2022-02-08 00:22:41 UTC (rev 12573)
+++ trunk/foray/foray-areatree/src/main/java/org/foray/area/metadata/BookmarkNode4a.java 2022-02-08 18:42:19 UTC (rev 12574)
@@ -130,12 +130,12 @@
}
@Override
- public URI getExternalDestination() {
+ public URI traitExternalDestination() {
return traitGeneratedBy().traitExternalDestination();
}
@Override
- public String getInternalDestination() {
+ public String traitInternalDestination() {
return traitGeneratedBy().traitInternalDestination();
}
Modified: trunk/foray/foray-render/src/main/java/org/foray/render/pdf/PdfRenderer.java
===================================================================
--- trunk/foray/foray-render/src/main/java/org/foray/render/pdf/PdfRenderer.java 2022-02-08 00:22:41 UTC (rev 12573)
+++ trunk/foray/foray-render/src/main/java/org/foray/render/pdf/PdfRenderer.java 2022-02-08 18:42:19 UTC (rev 12574)
@@ -681,9 +681,10 @@
if (bookmark.traitFontWeight().getNumericWeight() >= Font.Weight.BOLD.getNumericWeight()) {
bold = true;
}
- final PdfDestinationNamed namedDestination = this.pdfDoc.getNamedDestination(bookmark.getInternalDestination());
+ final PdfDestinationNamed namedDestination =
+ this.pdfDoc.getNamedDestination(bookmark.traitInternalDestination());
if (namedDestination == null) {
- throw new GalleyVisitorException("Named destination not found: " + bookmark.getInternalDestination());
+ throw new GalleyVisitorException("Named destination not found: " + bookmark.traitInternalDestination());
}
PdfOutlineItem pdfOutline = null;
pdfOutline = parent.createPdfOutlineItem(bookmark.getTitleText(), namedDestination, color, italic, bold);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|