Author: jeremias
Date: Tue Jan 18 16:47:46 2011
New Revision: 1060464
URL: http://svn.apache.org/viewvc?rev=1060464&view=rev
Log:
Make sure sub bridge contexts also have our bridges.
Modified:
xmlgraphics/fop/branches/Temp_Color/src/java/org/apache/fop/svg/PDFBridgeContext.java
Modified:
xmlgraphics/fop/branches/Temp_Color/src/java/org/apache/fop/svg/PDFBridgeContext.java
URL:
http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_Color/src/java/org/apache/fop/svg/PDFBridgeContext.java?rev=1060464&r1=1060463&r2=1060464&view=diff
==============================================================================
---
xmlgraphics/fop/branches/Temp_Color/src/java/org/apache/fop/svg/PDFBridgeContext.java
(original)
+++
xmlgraphics/fop/branches/Temp_Color/src/java/org/apache/fop/svg/PDFBridgeContext.java
Tue Jan 18 16:47:46 2011
@@ -25,6 +25,7 @@ import org.apache.batik.bridge.BridgeCon
import org.apache.batik.bridge.DocumentLoader;
import org.apache.batik.bridge.SVGTextElementBridge;
import org.apache.batik.bridge.UserAgent;
+import org.apache.batik.dom.svg.SVGOMDocument;
import org.apache.batik.gvt.TextPainter;
import org.apache.xmlgraphics.image.loader.ImageManager;
@@ -86,6 +87,7 @@ public class PDFBridgeContext extends Ab
}
/** {@inheritDoc} */
+ @Override
public void registerSVGBridges() {
super.registerSVGBridges();
@@ -123,10 +125,17 @@ public class PDFBridgeContext extends Ab
putBridge(new PDFImageElementBridge());
}
- // Make sure any 'sub bridge contexts' also have our bridges.
- //TODO There's no matching method in the super-class here
- /** @return the new bridge context */
+ /** {@inheritDoc} */
+ @Override
public BridgeContext createBridgeContext() {
+ //Retained for pre-Batik-1.7 compatibility
+ return createBridgeContext(null);
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public BridgeContext createBridgeContext(SVGOMDocument doc) {
+ // Make sure any 'sub bridge contexts' also have our bridges.
return new PDFBridgeContext(getUserAgent(), getDocumentLoader(),
fontInfo,
getImageManager(),
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]