You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by vh...@apache.org on 2008/07/24 11:37:16 UTC

svn commit: r679326 [26/33] - in /xmlgraphics/fop/trunk: examples/embedding/java/embedding/ examples/embedding/java/embedding/events/ examples/embedding/java/embedding/intermediate/ examples/embedding/java/embedding/model/ examples/embedding/java/embed...

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/PSRendererMaker.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/PSRendererMaker.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/PSRendererMaker.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/PSRendererMaker.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -31,7 +31,7 @@
 public class PSRendererMaker extends AbstractRendererMaker {
 
     private static final String[] MIMES = new String[] {MimeConstants.MIME_POSTSCRIPT};
-    
+
     /** {@inheritDoc} */
     public Renderer makeRenderer(FOUserAgent userAgent) {
         return new PSRenderer();

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/PSSVGHandler.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/PSSVGHandler.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/PSSVGHandler.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/PSSVGHandler.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -246,7 +246,7 @@
             nativeTextHandler = new NativeTextHandler(graphics, psInfo.getFontInfo());
             graphics.setCustomTextHandler(nativeTextHandler);
             PSTextPainter textPainter = new PSTextPainter(nativeTextHandler);
-            ctx.setTextPainter(textPainter);            
+            ctx.setTextPainter(textPainter);
             PSTextElementBridge tBridge = new PSTextElementBridge(textPainter);
             ctx.putBridge(tBridge);
         }
@@ -279,10 +279,10 @@
              * an fo:block-container
              */
             gen.writeln("newpath");
-            gen.defineRect(xOffset / 1000f, yOffset / 1000f, 
+            gen.defineRect(xOffset / 1000f, yOffset / 1000f,
                     psInfo.getWidth() / 1000f, psInfo.getHeight() / 1000f);
             gen.writeln("clip");
-            
+
             // transform so that the coordinates (0,0) is from the top left
             // and positive is down and to the right. (0,0) is where the
             // viewBox puts it.
@@ -323,6 +323,6 @@
     public boolean supportsRenderer(Renderer renderer) {
         return (renderer instanceof PSRenderer);
     }
-    
+
 }
 

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/PSSupportedFlavors.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/PSSupportedFlavors.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/PSSupportedFlavors.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/PSSupportedFlavors.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -16,7 +16,7 @@
  */
 
 /* $Id$ */
- 
+
 package org.apache.fop.render.ps;
 
 import org.apache.xmlgraphics.image.loader.ImageFlavor;
@@ -31,8 +31,8 @@
                                                  {ImageFlavor.RAW_EPS,
                                                   ImageFlavor.RAW_CCITTFAX,
                                                   ImageFlavor.GRAPHICS2D,
-                                                  ImageFlavor.BUFFERED_IMAGE, 
-                                                  ImageFlavor.RENDERED_IMAGE, 
+                                                  ImageFlavor.BUFFERED_IMAGE,
+                                                  ImageFlavor.RENDERED_IMAGE,
                                                   ImageFlavor.XML_DOM};
 
     /** The flavors supported inline with PostScript level 3 and higher. */
@@ -41,17 +41,17 @@
                                                   ImageFlavor.RAW_JPEG,
                                                   ImageFlavor.RAW_CCITTFAX,
                                                   ImageFlavor.GRAPHICS2D,
-                                                  ImageFlavor.BUFFERED_IMAGE, 
-                                                  ImageFlavor.RENDERED_IMAGE, 
+                                                  ImageFlavor.BUFFERED_IMAGE,
+                                                  ImageFlavor.RENDERED_IMAGE,
                                                   ImageFlavor.XML_DOM};
-                   
+
     /** The flavors supported as forms with PostScript level 2. */
     ImageFlavor[] LEVEL_2_FLAVORS_FORM = new ImageFlavor[]
                                                  {//ImageFlavor.RAW_EPS,
                                                   ImageFlavor.RAW_CCITTFAX,
                                                   ImageFlavor.GRAPHICS2D,
-                                                  ImageFlavor.BUFFERED_IMAGE, 
-                                                  ImageFlavor.RENDERED_IMAGE/*, 
+                                                  ImageFlavor.BUFFERED_IMAGE,
+                                                  ImageFlavor.RENDERED_IMAGE/*,
                                                   ImageFlavor.XML_DOM*/};
 
     /** The flavors supported as forms with PostScript level 3 or higher. */
@@ -60,8 +60,8 @@
                                                   ImageFlavor.RAW_JPEG,
                                                   ImageFlavor.RAW_CCITTFAX,
                                                   ImageFlavor.GRAPHICS2D,
-                                                  ImageFlavor.BUFFERED_IMAGE, 
-                                                  ImageFlavor.RENDERED_IMAGE/*, 
+                                                  ImageFlavor.BUFFERED_IMAGE,
+                                                  ImageFlavor.RENDERED_IMAGE/*,
                                                   ImageFlavor.XML_DOM*/};
-    
+
 }

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/PSTextElementBridge.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/PSTextElementBridge.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/PSTextElementBridge.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/PSTextElementBridge.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -36,7 +36,7 @@
  * @version $Id$
  */
 public class PSTextElementBridge extends SVGTextElementBridge {
-    
+
     private PSTextPainter textPainter;
 
     /**

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/PSTextPainter.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/PSTextPainter.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/PSTextPainter.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/PSTextPainter.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -70,10 +70,10 @@
  * @version $Id$
  */
 public class PSTextPainter implements TextPainter {
-    
+
     /** the logger for this class */
     protected Log log = LogFactory.getLog(PSTextPainter.class);
-    
+
     private NativeTextHandler nativeTextHandler;
     private FontInfo fontInfo;
 
@@ -81,7 +81,7 @@
      * Use the stroking text painter to get the bounds and shape.
      * Also used as a fallback to draw the string with strokes.
      */
-    protected static final TextPainter 
+    protected static final TextPainter
         PROXY_PAINTER = StrokingTextPainter.getInstance();
 
     /**
@@ -102,19 +102,19 @@
     public void paint(TextNode node, Graphics2D g2d) {
         String txt = node.getText();
         Point2D loc = node.getLocation();
-    
+
         if (hasUnsupportedAttributes(node)) {
             PROXY_PAINTER.paint(node, g2d);
         } else {
             paintTextRuns(node.getTextRuns(), g2d, loc);
         }
     }
-    
-    
+
+
     private boolean hasUnsupportedAttributes(TextNode node) {
         Iterator i = node.getTextRuns().iterator();
         while (i.hasNext()) {
-            StrokingTextPainter.TextRun 
+            StrokingTextPainter.TextRun
                     run = (StrokingTextPainter.TextRun)i.next();
             AttributedCharacterIterator aci = run.getACI();
             boolean hasUnsupported = hasUnsupportedAttributes(aci);
@@ -127,17 +127,17 @@
 
     private boolean hasUnsupportedAttributes(AttributedCharacterIterator aci) {
         boolean hasunsupported = false;
-        
+
         String text = getText(aci);
         Font font = makeFont(aci);
         if (hasUnsupportedGlyphs(text, font)) {
             log.trace("-> Unsupported glyphs found");
             hasunsupported = true;
         }
-        
+
         TextPaintInfo tpi = (TextPaintInfo) aci.getAttribute(
             GVTAttributedCharacterIterator.TextAttribute.PAINT_INFO);
-        if ((tpi != null) 
+        if ((tpi != null)
                 && ((tpi.strokeStroke != null && tpi.strokePaint != null)
                     || (tpi.strikethroughStroke != null)
                     || (tpi.underlineStroke != null)
@@ -169,7 +169,7 @@
             log.trace("-> word spacing found");
             hasunsupported = true;
         }
-        
+
         Object lengthAdjust = aci.getAttribute(
                             GVTAttributedCharacterIterator.TextAttribute.LENGTH_ADJUST);
         if (lengthAdjust != null) {
@@ -179,7 +179,7 @@
 
         Object writeMod = aci.getAttribute(
                 GVTAttributedCharacterIterator.TextAttribute.WRITING_MODE);
-        if (writeMod != null 
+        if (writeMod != null
             && !GVTAttributedCharacterIterator.TextAttribute.WRITING_MODE_LTR.equals(
                   writeMod)) {
             log.trace("-> Unsupported writing modes found");
@@ -193,7 +193,7 @@
             log.trace("-> vertical orientation found");
             hasunsupported = true;
         }
-        
+
         Object rcDel = aci.getAttribute(
                 GVTAttributedCharacterIterator.TextAttribute.TEXT_COMPOUND_DELIMITER);
         //Batik 1.6 returns null here which makes it impossible to determine whether this can
@@ -202,7 +202,7 @@
             log.trace("-> spans found");
             hasunsupported = true; //Filter spans
         }
-        
+
         if (hasunsupported) {
             log.trace("Unsupported attributes found in ACI, using StrokingTextPainter");
         }
@@ -219,7 +219,7 @@
         Point2D currentloc = loc;
         Iterator i = textRuns.iterator();
         while (i.hasNext()) {
-            StrokingTextPainter.TextRun 
+            StrokingTextPainter.TextRun
                     run = (StrokingTextPainter.TextRun)i.next();
             currentloc = paintTextRun(run, g2d, currentloc);
         }
@@ -251,7 +251,7 @@
     }
 
     /**
-     * Paint an ACI on a Graphics2D at a given location. The method has to 
+     * Paint an ACI on a Graphics2D at a given location. The method has to
      * update the location after painting.
      * @param aci ACI to paint
      * @param g2d Graphics2D to paint on
@@ -260,18 +260,18 @@
      */
     protected Point2D paintACI(AttributedCharacterIterator aci, Graphics2D g2d, Point2D loc) {
         //ACIUtils.dumpAttrs(aci);
-        
+
         aci.first();
 
         updateLocationFromACI(aci, loc);
 
         TextPaintInfo tpi = (TextPaintInfo) aci.getAttribute(
             GVTAttributedCharacterIterator.TextAttribute.PAINT_INFO);
-        
+
         if (tpi == null) {
             return loc;
         }
-        
+
         TextNode.Anchor anchor = (TextNode.Anchor)aci.getAttribute(
                 GVTAttributedCharacterIterator.TextAttribute.ANCHOR_TYPE);
 
@@ -315,7 +315,7 @@
                 default: //nop
             }
         }
-        
+
         drawPrimitiveString(g2d, loc, font, txt, tx);
         loc.setLocation(loc.getX() + (double)advance, loc.getY());
         return loc;
@@ -354,25 +354,25 @@
         }
         if (ypos != null) {
             loc.setLocation(loc.getX(), ypos.doubleValue());
-        } 
+        }
         if (dxpos != null) {
             loc.setLocation(loc.getX() + dxpos.doubleValue(), loc.getY());
-        } 
+        }
         if (dypos != null) {
             loc.setLocation(loc.getX(), loc.getY() + dypos.doubleValue());
-        } 
+        }
     }
 
     private String getStyle(AttributedCharacterIterator aci) {
         Float posture = (Float)aci.getAttribute(TextAttribute.POSTURE);
         return ((posture != null) && (posture.floatValue() > 0.0))
-                       ? "italic" 
+                       ? "italic"
                        : "normal";
     }
 
     private int getWeight(AttributedCharacterIterator aci) {
         Float taWeight = (Float)aci.getAttribute(TextAttribute.WEIGHT);
-        return ((taWeight != null) &&  (taWeight.floatValue() > 1.0)) 
+        return ((taWeight != null) &&  (taWeight.floatValue() > 1.0))
                        ? Font.WEIGHT_BOLD
                        : Font.WEIGHT_NORMAL;
     }
@@ -479,8 +479,8 @@
      * @return the bounds of the text
      */
     public Rectangle2D getBounds2D(TextNode node) {
-        /* (todo) getBounds2D() is too slow 
-         * because it uses the StrokingTextPainter. We should implement this 
+        /* (todo) getBounds2D() is too slow
+         * because it uses the StrokingTextPainter. We should implement this
          * method ourselves. */
         return PROXY_PAINTER.getBounds2D(node);
     }

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/PSTranscoder.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/PSTranscoder.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/PSTranscoder.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/PSTranscoder.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/ResourceHandler.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/ResourceHandler.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/ResourceHandler.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/ResourceHandler.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -94,18 +94,18 @@
      * @throws DSCException If there's an error in the DSC structure of the PS file
      * @throws IOException In case of an I/O error
      */
-    public static void process(FOUserAgent userAgent, InputStream in, OutputStream out, 
+    public static void process(FOUserAgent userAgent, InputStream in, OutputStream out,
             FontInfo fontInfo, ResourceTracker resTracker, Map formResources,
             int pageCount, Rectangle2D documentBoundingBox)
                     throws DSCException, IOException {
         DSCParser parser = new DSCParser(in);
         PSGenerator gen = new PSGenerator(out);
         parser.setNestedDocumentHandler(new DefaultNestedDocumentHandler(gen));
-        
+
         //Skip DSC header
         DSCHeaderComment header = DSCTools.checkAndSkipDSC30Header(parser);
         header.generate(gen);
-        
+
         parser.setFilter(new DSCFilter() {
             private final Set filtered = new java.util.HashSet();
             {
@@ -141,15 +141,15 @@
 
                 PSFontUtils.determineSuppliedFonts(resTracker, fontInfo, fontInfo.getUsedFonts());
                 registerSuppliedForms(resTracker, formResources);
-                
+
                 //Supplied Resources
-                DSCCommentDocumentSuppliedResources supplied 
+                DSCCommentDocumentSuppliedResources supplied
                     = new DSCCommentDocumentSuppliedResources(
                             resTracker.getDocumentSuppliedResources());
                 supplied.generate(gen);
-                
+
                 //Needed Resources
-                DSCCommentDocumentNeededResources needed 
+                DSCCommentDocumentNeededResources needed
                     = new DSCCommentDocumentNeededResources(
                             resTracker.getDocumentNeededResources());
                 needed.generate(gen);
@@ -167,7 +167,7 @@
             }
             event.generate(gen);
         }
-        
+
         //Skip to the FOPFontSetup
         PostScriptComment fontSetupPlaceholder = parser.nextPSComment("FOPFontSetup", gen);
         if (fontSetupPlaceholder == null) {
@@ -181,7 +181,7 @@
         if (pageOrTrailer == null) {
             throw new DSCException("Page expected, but none found");
         }
-        
+
         //Process individual pages (and skip as necessary)
         while (true) {
             DSCCommentPage page = (DSCCommentPage)pageOrTrailer;
@@ -194,7 +194,7 @@
                 break;
             }
         }
-        
+
         //Write the rest
         while (parser.hasNext()) {
             DSCEvent event = parser.nextEvent();
@@ -218,7 +218,7 @@
         }
     }
 
-    private static void generateForms(ResourceTracker resTracker, FOUserAgent userAgent, 
+    private static void generateForms(ResourceTracker resTracker, FOUserAgent userAgent,
             Map formResources, PSGenerator gen) throws IOException {
         if (formResources == null) {
             return;
@@ -227,13 +227,13 @@
         while (iter.hasNext()) {
             PSImageFormResource form = (PSImageFormResource)iter.next();
             final String uri = form.getImageURI();
-            
+
             ImageManager manager = userAgent.getFactory().getImageManager();
             ImageInfo info = null;
             try {
                 ImageSessionContext sessionContext = userAgent.getImageSessionContext();
                 info = manager.getImageInfo(uri, sessionContext);
-                
+
                 ImageFlavor[] flavors;
                 if (gen.getPSLevel() >= 3) {
                     flavors = LEVEL_3_FLAVORS_FORM;
@@ -243,7 +243,7 @@
                 Map hints = ImageUtil.getDefaultHints(sessionContext);
                 org.apache.xmlgraphics.image.loader.Image img = manager.getImage(
                         info, flavors, hints, sessionContext);
-                
+
                 String imageDescription = info.getMimeType() + " " + info.getOriginalURI();
                 final Dimension2D dimensionsPt = info.getSize().getDimensionPt();
                 final Dimension2D dimensionsMpt = info.getSize().getDimensionMpt();
@@ -261,12 +261,12 @@
                             PSGraphics2DAdapter adapter = new PSGraphics2DAdapter(gen, false);
                             adapter.paintImage(imageG2D.getGraphics2DImagePainter(),
                                     null,
-                                    0, 0, 
+                                    0, 0,
                                     (int)Math.round(dimensionsMpt.getWidth()),
                                     (int)Math.round(dimensionsMpt.getHeight()));
                             gen.writeln("EndEPSF");
                         }
-                        
+
                     };
                     formGen.generate(gen);
                 } else if (img instanceof ImageRendered) {
@@ -349,9 +349,9 @@
                 gen.writeln("1 0 lineto");
                 gen.writeln("stroke");
             }
-            
+
         };
         return formGen;
     }
-    
+
 }

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/AbstractPSCommentElement.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/AbstractPSCommentElement.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/AbstractPSCommentElement.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/AbstractPSCommentElement.java Thu Jul 24 02:35:34 2008
@@ -30,17 +30,17 @@
 
     /**
      * Default constructor
-     * 
+     *
      * @param parent parent of this node
      * @see org.apache.fop.fo.FONode#FONode(FONode)
      */
     public AbstractPSCommentElement(FONode parent) {
         super(parent);
-    }    
-    
+    }
+
     /**
      * @throws FOPException if there's a problem during processing
-     * @see org.apache.fop.fo.FONode#startOfNode() 
+     * @see org.apache.fop.fo.FONode#startOfNode()
      */
     protected void startOfNode() throws FOPException {
         if (parent.getNameId() != Constants.FO_DECLARATIONS

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/AbstractPSExtensionElement.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/AbstractPSExtensionElement.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/AbstractPSExtensionElement.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/AbstractPSExtensionElement.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -16,7 +16,7 @@
  */
 
 /* $Id$ */
- 
+
 package org.apache.fop.render.ps.extensions;
 
 // FOP
@@ -37,10 +37,10 @@
      * extension attachment
      */
     protected PSExtensionAttachment attachment;
-    
+
     /**
      * Default constructor
-     * 
+     *
      * @param parent parent of this node
      * @see org.apache.fop.fo.FONode#FONode(FONode)
      */
@@ -50,14 +50,14 @@
 
     /**
      * Blocks XSL FO's from having non-FO parents.
-     * 
+     *
      * @param loc location in the FO source file
      * @param nsURI namespace of incoming node
      * @param localName (e.g. "table" for "fo:table")
      * @throws ValidationException if incoming node not valid for parent
      * @see org.apache.fop.fo.FONode#validateChildNode(Locator, String, String)
      */
-    protected void validateChildNode(Locator loc, String nsURI, String localName) 
+    protected void validateChildNode(Locator loc, String nsURI, String localName)
                 throws ValidationException {
         if (FO_URI.equals(nsURI)) {
             invalidChildError(loc, nsURI, localName);
@@ -69,7 +69,7 @@
      * @param data array of characters containing text to be added
      * @param start starting array element to add
      * @param length of data array to add
-     * @param pList currently applicable PropertyList 
+     * @param pList currently applicable PropertyList
      * @param locator location in fo source file.
      * @see org.apache.fop.fo.FONode#addCharacters(char[], int, int, PropertyList, Locator)
      */
@@ -92,7 +92,7 @@
     public String getNamespaceURI() {
         return PSExtensionElementMapping.NAMESPACE;
     }
-    
+
     /**
      * @return a String representation of this object
      * @see org.apache.fop.fo.FONode#getNormalNamespacePrefix()
@@ -112,7 +112,7 @@
             missingChildElementError("#PCDATA");
         }
     }
-    
+
     /**
      * @return the extension attachment if one is created by the extension element, null otherwise.
      * @see org.apache.fop.fo.FONode#getExtensionAttachment()
@@ -123,7 +123,7 @@
         }
         return this.attachment;
     }
-    
+
     /**
      * Instantiates extension attachment object
      * @return extension attachment

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/AbstractPSExtensionObject.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/AbstractPSExtensionObject.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/AbstractPSExtensionObject.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/AbstractPSExtensionObject.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -16,7 +16,7 @@
  */
 
 /* $Id$ */
- 
+
 package org.apache.fop.render.ps.extensions;
 
 // FOP
@@ -35,7 +35,7 @@
 public abstract class AbstractPSExtensionObject extends FONode {
 
     private PSSetupCode setupCode = new PSSetupCode();
-    
+
     /**
      * Main constructor.
      * @param parent the parent node
@@ -46,7 +46,7 @@
     }
 
     /** {@inheritDoc} */
-    protected void validateChildNode(Locator loc, String nsURI, String localName) 
+    protected void validateChildNode(Locator loc, String nsURI, String localName)
                 throws ValidationException {
         if (FO_URI.equals(nsURI)) {
             invalidChildError(loc, nsURI, localName);
@@ -69,14 +69,14 @@
     public String getNamespaceURI() {
         return PSExtensionElementMapping.NAMESPACE;
     }
-    
+
     /**{@inheritDoc} */
     public String getNormalNamespacePrefix() {
         return "ps";
     }
 
     /** {@inheritDoc} */
-    public void processNode(String elementName, Locator locator, 
+    public void processNode(String elementName, Locator locator,
                             Attributes attlist, PropertyList propertyList)
                                 throws FOPException {
         String name = attlist.getValue("name");
@@ -88,12 +88,12 @@
     /** {@inheritDoc} */
     protected void endOfNode() throws FOPException {
         super.endOfNode();
-        String s = setupCode.getContent(); 
+        String s = setupCode.getContent();
         if (s == null || s.length() == 0) {
             missingChildElementError("#PCDATA");
         }
     }
-    
+
     /** {@inheritDoc} */
     public ExtensionAttachment getExtensionAttachment() {
         return this.setupCode;

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSCommentAfterElement.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSCommentAfterElement.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSCommentAfterElement.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSCommentAfterElement.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -39,7 +39,7 @@
     }
 
     /**
-     * @return local name 
+     * @return local name
      * @see org.apache.fop.fo.FONode#getLocalName()
      */
     public String getLocalName() {

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSCommentBeforeElement.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSCommentBeforeElement.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSCommentBeforeElement.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSCommentBeforeElement.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -51,5 +51,5 @@
      */
     protected ExtensionAttachment instantiateExtensionAttachment() {
         return new PSCommentBefore();
-    }    
+    }
 }

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSExtensionAttachment.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSExtensionAttachment.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSExtensionAttachment.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSExtensionAttachment.java Thu Jul 24 02:35:34 2008
@@ -31,7 +31,7 @@
  * This is the pass-through value object for the PostScript extension.
  */
 public abstract class PSExtensionAttachment implements ExtensionAttachment, XMLizable {
-    
+
     /** extension node content */
     protected String content;
 
@@ -59,12 +59,12 @@
     public String getCategory() {
         return CATEGORY;
     }
-    
+
     /** @return the content */
     public String getContent() {
         return content;
     }
-    
+
     /**
      * Sets the content for the setup code object.
      * @param content The content to set.
@@ -72,10 +72,10 @@
     public void setContent(String content) {
         this.content = content;
     }
-           
+
     /**
      * Generates SAX events representing the object's state.
-     * 
+     *
      * @param handler ContentHandler instance to send the SAX events to
      * @throws SAXException if there's a problem generating the SAX events
      * @see org.apache.xmlgraphics.util.XMLizable#toSAX(org.xml.sax.ContentHandler)
@@ -96,7 +96,7 @@
         String className = getClass().getName();
         return className.substring(className.lastIndexOf('.') + 3);
     }
-    
+
     /**
      * @return a string representation of this object
      * @see java.lang.Object#toString()

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSExtensionElementMapping.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSExtensionElementMapping.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSExtensionElementMapping.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSExtensionElementMapping.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -16,7 +16,7 @@
  */
 
 /* $Id$ */
- 
+
 package org.apache.fop.render.ps.extensions;
 
 import org.apache.fop.fo.FONode;
@@ -28,7 +28,7 @@
 public class PSExtensionElementMapping extends ElementMapping {
 
     /** Namespace for the extension */
-    public static final String NAMESPACE = "http://xmlgraphics.apache.org/fop/postscript"; 
+    public static final String NAMESPACE = "http://xmlgraphics.apache.org/fop/postscript";
 
     /** Main constructor */
     public PSExtensionElementMapping() {
@@ -64,7 +64,7 @@
             return new PSSetPageDeviceElement(parent);
         }
     }
-    
+
     static class PSCommentBeforeMaker extends ElementMapping.Maker {
         public FONode make(FONode parent) {
             return new PSCommentBeforeElement(parent);

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSExtensionHandler.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSExtensionHandler.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSExtensionHandler.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSExtensionHandler.java Thu Jul 24 02:35:34 2008
@@ -32,7 +32,7 @@
 /**
  * ContentHandler (parser) for restoring PSExtension objects from XML.
  */
-public class PSExtensionHandler extends DefaultHandler 
+public class PSExtensionHandler extends DefaultHandler
             implements ContentHandlerFactory.ObjectSource {
 
     /** Logger instance */
@@ -40,12 +40,12 @@
 
     private StringBuffer content = new StringBuffer();
     private Attributes lastAttributes;
-    
+
     private PSExtensionAttachment returnedObject;
     private ObjectBuiltListener listener;
-    
+
     /** {@inheritDoc} */
-    public void startElement(String uri, String localName, String qName, Attributes attributes) 
+    public void startElement(String uri, String localName, String qName, Attributes attributes)
                 throws SAXException {
         boolean handled = false;
         if (PSExtensionAttachment.CATEGORY.equals(uri)) {
@@ -61,10 +61,10 @@
         }
         if (!handled) {
             if (PSExtensionAttachment.CATEGORY.equals(uri)) {
-                throw new SAXException("Unhandled element " + localName 
+                throw new SAXException("Unhandled element " + localName
                         + " in namespace: " + uri);
             } else {
-                log.warn("Unhandled element " + localName 
+                log.warn("Unhandled element " + localName
                         + " in namespace: " + uri);
             }
         }
@@ -78,13 +78,13 @@
                 this.returnedObject = new PSSetupCode(name, content.toString());
             } else if (PSSetPageDevice.ELEMENT.equals(localName)) {
                 String name = lastAttributes.getValue("name");
-                this.returnedObject = new PSSetPageDevice(name, content.toString());                
+                this.returnedObject = new PSSetPageDevice(name, content.toString());
             } else if (PSCommentBefore.ELEMENT.equals(localName)) {
-                this.returnedObject = new PSCommentBefore(content.toString());          
+                this.returnedObject = new PSCommentBefore(content.toString());
             } else if (PSCommentAfter.ELEMENT.equals(localName)) {
                 this.returnedObject = new PSCommentAfter(content.toString());
             }
-        }    
+        }
         content.setLength(0); //Reset text buffer (see characters())
     }
 

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSExtensionHandlerFactory.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSExtensionHandlerFactory.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSExtensionHandlerFactory.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSExtensionHandlerFactory.java Thu Jul 24 02:35:34 2008
@@ -28,7 +28,7 @@
 public class PSExtensionHandlerFactory implements ContentHandlerFactory {
 
     private static final String[] NAMESPACES = new String[] {PSSetupCode.CATEGORY};
-    
+
     /** {@inheritDoc} */
     public String[] getSupportedNamespaces() {
         return NAMESPACES;

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSPageSetupCodeElement.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSPageSetupCodeElement.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSPageSetupCodeElement.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSPageSetupCodeElement.java Thu Jul 24 02:35:34 2008
@@ -24,13 +24,13 @@
 import org.apache.fop.fo.FONode;
 
 /**
- * Extension element for fox:ps-page-setup-code. 
+ * Extension element for fox:ps-page-setup-code.
  */
 public class PSPageSetupCodeElement extends AbstractPSExtensionObject {
 
     /** The element name */
     protected static final String ELEMENT = "ps-page-setup-code";
-    
+
     /**
      * Main constructor
      * @param parent parent FO node
@@ -47,7 +47,7 @@
                 "rule.childOfSPM");
         }
     }
-    
+
     /** {@inheritDoc} */
     public String getLocalName() {
         return ELEMENT;

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSSetPageDevice.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSSetPageDevice.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSSetPageDevice.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSSetPageDevice.java Thu Jul 24 02:35:34 2008
@@ -62,12 +62,12 @@
      */
     public PSSetPageDevice() {
     }
-    
+
     /** @return the name */
     public String getName() {
         return name;
     }
-    
+
     /**
      * Sets the name of the setup code object.
      * @param name The name to set.
@@ -77,7 +77,7 @@
     }
 
     /**
-     * @return a string representation of this object 
+     * @return a string representation of this object
      * @see java.lang.Object#toString()
      */
     public String toString() {

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSSetPageDeviceElement.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSSetPageDeviceElement.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSSetPageDeviceElement.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSSetPageDeviceElement.java Thu Jul 24 02:35:34 2008
@@ -29,7 +29,7 @@
 import org.apache.fop.fo.extensions.ExtensionAttachment;
 
 /**
- * Extension element for ps:ps-setpagedevice. 
+ * Extension element for ps:ps-setpagedevice.
  */
 public class PSSetPageDeviceElement extends AbstractPSExtensionElement {
 
@@ -69,7 +69,7 @@
      * @throws FOPException if there's a problem during processing
      * @see org.apache.fop.fo.FONode#processNode
      */
-    public void processNode(String elementName, Locator locator, 
+    public void processNode(String elementName, Locator locator,
                             Attributes attlist, PropertyList propertyList)
                                 throws FOPException {
         String name = attlist.getValue("name");
@@ -79,7 +79,7 @@
     }
 
     /**
-     * @return local name 
+     * @return local name
      * @see org.apache.fop.fo.FONode#getLocalName() */
     public String getLocalName() {
         return ELEMENT;

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSSetupCode.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSSetupCode.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSSetupCode.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSSetupCode.java Thu Jul 24 02:35:34 2008
@@ -31,7 +31,7 @@
      * element name
      */
     protected static final String ELEMENT = "ps-setup-code";
-    
+
     private static final String ATT_NAME = "name";
 
     /**
@@ -44,7 +44,7 @@
      */
     public PSSetupCode() {
     }
-    
+
     /**
      * Default constructor.
      * @param name the name of the setup code object, may be null
@@ -54,12 +54,12 @@
         super(content);
         this.name = name;
     }
-            
+
     /** @return the name */
     public String getName() {
         return name;
     }
-    
+
     /**
      * Sets the name of the setup code object.
      * @param name The name to set.
@@ -72,7 +72,7 @@
     public String getCategory() {
         return CATEGORY;
     }
-    
+
     /** {@inheritDoc} */
     public String toString() {
         return "PSSetupCode(name=" + getName() + ", content='" + getContent() + "')";
@@ -85,7 +85,7 @@
     protected String getElement() {
         return ELEMENT;
     }
-    
+
     /** {@inheritDoc} */
     public void toSAX(ContentHandler handler) throws SAXException {
         AttributesImpl atts = new AttributesImpl();

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSSetupCodeElement.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSSetupCodeElement.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSSetupCodeElement.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSSetupCodeElement.java Thu Jul 24 02:35:34 2008
@@ -24,13 +24,13 @@
 import org.apache.fop.fo.FONode;
 
 /**
- * Extension element for fox:ps-setup-code. 
+ * Extension element for fox:ps-setup-code.
  */
 public class PSSetupCodeElement extends AbstractPSExtensionObject {
 
     /** The element name */
     protected static final String ELEMENT = "ps-setup-code";
-    
+
     /**
      * Main constructor
      * @param parent parent FO node
@@ -38,7 +38,7 @@
     public PSSetupCodeElement(FONode parent) {
         super(parent);
     }
-    
+
     /** {@inheritDoc} */
     protected void startOfNode() throws FOPException {
         super.startOfNode();
@@ -47,10 +47,10 @@
                     "rule.childOfDeclarations");
         }
     }
-    
+
     /** {@inheritDoc} */
     public String getLocalName() {
         return ELEMENT;
     }
-    
+
 }

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/BorderAttributesConverter.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/BorderAttributesConverter.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/BorderAttributesConverter.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/BorderAttributesConverter.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -42,12 +42,12 @@
      */
     private BorderAttributesConverter() {
     }
-    
+
     /**
-     * Create a border control word in attributes, with border properties 
+     * Create a border control word in attributes, with border properties
      * as specified in color, style and width.
      * @param border The CommonBorderPaddingBackground object.
-     * @param side The START, END, BEFORE, AFTER enum from CommonBorderPaddingBackground. 
+     * @param side The START, END, BEFORE, AFTER enum from CommonBorderPaddingBackground.
      * @param attributes The attributes list to set the border control word.
      * @param controlWord The border control word.
      */
@@ -61,18 +61,18 @@
             //division by 50 to convert millipoints to twips
             attrs.set(IBorderAttributes.BORDER_WIDTH, border.getBorderWidth(side, false) / 50);
             attributes.set(controlWord, attrs);
-            //Don't set BORDER_SPACE, because it makes the table look quite broken: 
+            //Don't set BORDER_SPACE, because it makes the table look quite broken:
             //vertical and horizontal borders don't meet at corners.
             //attrs.setTwips(IBorderAttributes.BORDER_SPACE, border.getPadding(side, false, null));
             //attributes.set(controlWord, attrs);
         } else {
             // Here padding specified, but corresponding border is not available
-            
+
             // Padding in millipoints
             double paddingPt = border.getPadding(side, false, null) / 1000.0;
             // Padding in twips
             int padding = (int) Math.round(paddingPt * FoUnitsConverter.POINT_TO_TWIPS);
-            
+
             // Add padding to corresponding space (space-before or space-after)
             // if side == START or END, do nothing
             if (side == CommonBorderPaddingBackground.BEFORE) {

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/FOPRtfAttributes.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/FOPRtfAttributes.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/FOPRtfAttributes.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/FOPRtfAttributes.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -28,7 +28,7 @@
 
 
 /**
- * A RtfAttributes subclass that adds some helper set methods. 
+ * A RtfAttributes subclass that adds some helper set methods.
  */
 public class FOPRtfAttributes extends RtfAttributes {
 
@@ -83,16 +83,16 @@
     }
 
     private static class DummyPercentBaseContext implements PercentBaseContext {
-        
+
         static DummyPercentBaseContext singleton = new DummyPercentBaseContext();
-        
+
         private DummyPercentBaseContext() {
             // noop
         }
-        
+
         public int getBaseLength(int lengthBase, FObj fo) {
             return 0;
         }
     }
-        
+
 }

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/FoUnitsConverter.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/FoUnitsConverter.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/FoUnitsConverter.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/FoUnitsConverter.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/ListAttributesConverter.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/ListAttributesConverter.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/ListAttributesConverter.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/ListAttributesConverter.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -38,13 +38,13 @@
  * Provides methods to convert list attributes to RtfAttributes.
  */
 public final class ListAttributesConverter {
-    
+
     /**
      * Constructor is private, because it's just a utility class.
      */
     private ListAttributesConverter() {
     }
-    
+
     /**
      * Reads an FO object's properties and adds returns them as RtfAttributes.
      * @param fobj FO object
@@ -53,12 +53,12 @@
      */
     static RtfAttributes convertAttributes(ListBlock fobj)
     throws FOPException {
-        
+
         FOPRtfAttributes attrib = new FOPRtfAttributes();
-        
+
         attrib.setTwips(RtfListTable.LIST_INDENT, fobj.getCommonMarginBlock().startIndent);
         attrib.setTwips(RtfText.LEFT_INDENT_BODY, fobj.getCommonMarginBlock().endIndent);
-        
+
         /*
          * set list table defaults
          */
@@ -67,7 +67,7 @@
         attrib.set(RtfListTable.LIST, "simple");
         //set following char as tab
         attrib.set(RtfListTable.LIST_FOLLOWING_CHAR, 0);
-        
+
         return attrib;
     }
 }
\ No newline at end of file

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/PageAttributesConverter.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/PageAttributesConverter.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/PageAttributesConverter.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/PageAttributesConverter.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -46,19 +46,19 @@
      */
     private PageAttributesConverter() {
     }
-    
+
     /** convert xsl:fo attributes to RTF text attributes */
     static RtfAttributes convertPageAttributes(SimplePageMaster pagemaster) {
         FOPRtfAttributes attrib = new FOPRtfAttributes();
-        
+
         try {
             RegionBA before = (RegionBA) pagemaster.getRegion(Constants.FO_REGION_BEFORE);
             RegionBody body   = (RegionBody) pagemaster.getRegion(Constants.FO_REGION_BODY);
             RegionBA after  = (RegionBA) pagemaster.getRegion(Constants.FO_REGION_AFTER);
-            
+
             attrib.setTwips(RtfPage.PAGE_WIDTH, pagemaster.getPageWidth());
             attrib.setTwips(RtfPage.PAGE_HEIGHT, pagemaster.getPageHeight());
-            
+
             Object widthRaw = attrib.getValue(RtfPage.PAGE_WIDTH);
             Object heightRaw = attrib.getValue(RtfPage.PAGE_HEIGHT);
             if ((widthRaw instanceof Integer) && (heightRaw instanceof Integer)
@@ -84,7 +84,7 @@
                 bodyLeft = (Length) NumericOp.addition(pageLeft, bodyMargin.marginLeft);
                 bodyRight = (Length) NumericOp.addition(pageRight, bodyMargin.marginRight);
             }
-            
+
             attrib.setTwips(RtfPage.MARGIN_TOP, bodyTop);
             attrib.setTwips(RtfPage.MARGIN_BOTTOM, bodyBottom);
             attrib.setTwips(RtfPage.MARGIN_LEFT, bodyLeft);
@@ -104,7 +104,7 @@
             }
             attrib.setTwips(RtfPage.FOOTERY, beforeTop);
         } catch (Exception e) {
-            log.error("Exception in convertPageAttributes: " 
+            log.error("Exception in convertPageAttributes: "
                 + e.getMessage() + "- page attributes ignored");
             attrib = new FOPRtfAttributes();
         }

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/RTFEventProducer.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/RTFEventProducer.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/RTFEventProducer.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/RTFEventProducer.java Thu Jul 24 02:35:34 2008
@@ -34,7 +34,7 @@
 
     /** Provider class for the event producer. */
     class Provider {
-        
+
         /**
          * Returns an event producer.
          * @param broadcaster the event broadcaster to use
@@ -53,9 +53,9 @@
         public EventModel createEventModel() {
             return loadModel(getClass(), "event-model.xml");
         }
-        
+
     }
-    
+
     /**
      * The RTF handler only supports simple-page-masters.
      * @param source the event source
@@ -64,7 +64,7 @@
      * @event.severity WARN
      */
     void onlySPMSupported(Object source, String masterReference, Locator loc);
-    
+
     /**
      * No simple-page-master could be determined-
      * @param source the event source
@@ -72,7 +72,7 @@
      * @event.severity WARN
      */
     void noSPMFound(Object source, Locator loc);
-    
+
     /**
      * The RTF handler requires explicit table-columns for now.
      * @param source the event source
@@ -80,7 +80,7 @@
      * @event.severity WARN
      */
     void explicitTableColumnsRequired(Object source, Locator loc);
-    
+
     /**
      * The RTF handler ignored some deferred event (i.e. an unsupported element).
      * @param source the event source
@@ -90,5 +90,5 @@
      * @event.severity WARN
      */
     void ignoredDeferredEvent(Object source, FONode node, boolean start, Locator loc);
-    
+
 }

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/RTFFOEventHandlerMaker.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/RTFFOEventHandlerMaker.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/RTFFOEventHandlerMaker.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/RTFFOEventHandlerMaker.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -35,8 +35,8 @@
         MimeConstants.MIME_RTF,
         MimeConstants.MIME_RTF_ALT1,
         MimeConstants.MIME_RTF_ALT2};
-    
-    
+
+
     /**
      * {@inheritDoc}
      * @param ua FOUserAgent

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/RTFHandler.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/RTFHandler.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/RTFHandler.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/RTFHandler.java Thu Jul 24 02:35:34 2008
@@ -213,7 +213,7 @@
                     RTFEventProducer eventProducer = RTFEventProducer.Provider.get(
                             getUserAgent().getEventBroadcaster());
                     eventProducer.onlySPMSupported(this, reference, pageSeq.getLocator());
-                    PageSequenceMaster master 
+                    PageSequenceMaster master
                         = pageSeq.getRoot().getLayoutMasterSet().getPageSequenceMaster(reference);
                     this.pagemaster = master.getNextSimplePageMaster(
                             false, false, false, false, false);
@@ -306,7 +306,7 @@
                     contAfter.newAfter(attr);
                 }
                 handled = true;
-            } else if (regionBefore != null 
+            } else if (regionBefore != null
                     && fl.getFlowName().equals(regionBefore.getRegionName())) {
                 bHeaderSpecified = true;
                 bPrevHeaderSpecified = true;
@@ -325,7 +325,7 @@
                 RtfBefore before = c.newBefore(beforeAttributes);
                 builderContext.pushContainer(before);
                 handled = true;
-            } else if (regionAfter != null 
+            } else if (regionAfter != null
                     && fl.getFlowName().equals(regionAfter.getRegionName())) {
                 bFooterSpecified = true;
                 bPrevFooterSpecified = true;
@@ -371,10 +371,10 @@
             Region regionAfter = pagemaster.getRegion(Constants.FO_REGION_AFTER);
             if (fl.getFlowName().equals(regionBody.getRegionName())) {
                 //just do nothing
-            } else if (regionBefore != null 
+            } else if (regionBefore != null
                     && fl.getFlowName().equals(regionBefore.getRegionName())) {
                 builderContext.popContainer();
-            } else if (regionAfter != null 
+            } else if (regionAfter != null
                     && fl.getFlowName().equals(regionAfter.getRegionName())) {
                 builderContext.popContainer();
             }
@@ -514,15 +514,15 @@
             final IRtfTableContainer tc
                 = (IRtfTableContainer)builderContext.getContainer(
                         IRtfTableContainer.class, true, null);
-            
+
             RtfAttributes atts
                 = TableAttributesConverter.convertTableAttributes(tbl);
-            
+
             RtfTable table = tc.newTable(atts, tableContext);
-            
+
             CommonBorderPaddingBackground border = tbl.getCommonBorderPaddingBackground();
             RtfAttributes borderAttributes = new RtfAttributes();
-                    
+
             BorderAttributesConverter.makeBorder(border, CommonBorderPaddingBackground.BEFORE,
                     borderAttributes, ITableAttributes.CELL_BORDER_TOP);
             BorderAttributesConverter.makeBorder(border, CommonBorderPaddingBackground.AFTER,
@@ -531,9 +531,9 @@
                     borderAttributes, ITableAttributes.CELL_BORDER_LEFT);
             BorderAttributesConverter.makeBorder(border, CommonBorderPaddingBackground.END,
                     borderAttributes,  ITableAttributes.CELL_BORDER_RIGHT);
-            
+
             table.setBorderAttributes(borderAttributes);
-            
+
             builderContext.pushContainer(table);
         } catch (IOException ioe) {
             handleIOTrouble(ioe);
@@ -576,16 +576,16 @@
              * rest of the document will be rendered. Usage of the
              * TableLayoutManager is not welcome due to design reasons and
              * it also does not provide the correct values.
-             * TODO: Make proportional-column-width working for rtf output 
+             * TODO: Make proportional-column-width working for rtf output
              */
              SimplePercentBaseContext context
                 = new SimplePercentBaseContext(null,
                                                LengthBase.TABLE_UNITS,
                                                100000);
-            
+
             Integer iWidth
                 = new Integer(tc.getColumnWidth().getValue(context) / 1000);
-            
+
             String strWidth = iWidth.toString() + FixedLength.POINT;
             Float width = new Float(
                     FoUnitsConverter.getInstance().convertToTwips(strWidth));
@@ -708,7 +708,7 @@
         } catch (Exception e) {
             log.error("startPart: " + e.getMessage());
             throw new RuntimeException(e.getMessage());
-        }        
+        }
     }
 
     private void endPart(TablePart tb) {
@@ -724,10 +724,10 @@
         } catch (Exception e) {
             log.error("endPart: " + e.getMessage());
             throw new RuntimeException(e.getMessage());
-        }        
+        }
     }
 
-    
+
      /**
      * {@inheritDoc}
      */
@@ -735,7 +735,7 @@
         startPart(body);
     }
 
-    
+
     /**
      * {@inheritDoc}
      */
@@ -782,7 +782,7 @@
         if (bDefer) {
             return;
         }
-        
+
         try {
             TableContext tctx = builderContext.getTableContext();
             final RtfTableRow row = (RtfTableRow)builderContext.getContainer(RtfTableRow.class,
@@ -795,11 +795,11 @@
                 RtfTableCell vCell = row.newTableCellMergedVertically(
                         (int)tctx.getColumnWidth(),
                         tctx.getColumnRowSpanningAttrs());
-                
+
                 if (!tctx.getFirstSpanningCol()) {
                     vCell.setHMerge(RtfTableCell.MERGE_WITH_PREVIOUS);
                 }
-                
+
                 tctx.selectNextColumn();
             }
         } catch (IOException ioe) {
@@ -837,11 +837,11 @@
                 RtfTableCell vCell = row.newTableCellMergedVertically(
                         (int)tctx.getColumnWidth(),
                         tctx.getColumnRowSpanningAttrs());
-                
+
                 if (!tctx.getFirstSpanningCol()) {
                     vCell.setHMerge(RtfTableCell.MERGE_WITH_PREVIOUS);
                 }
-                
+
                 tctx.selectNextColumn();
             }
 
@@ -851,14 +851,14 @@
             // create an RtfTableCell in the current RtfTableRow
             RtfAttributes atts = TableAttributesConverter.convertCellAttributes(tc);
             RtfTableCell cell = row.newTableCell((int)width, atts);
-            
+
             //process number-rows-spanned attribute
             if (numberRowsSpanned > 1) {
                 // Start vertical merge
                 cell.setVMerge(RtfTableCell.MERGE_START);
 
                 // set the number of rows spanned
-                tctx.setCurrentColumnRowSpanning(new Integer(numberRowsSpanned), 
+                tctx.setCurrentColumnRowSpanning(new Integer(numberRowsSpanned),
                         cell.getRtfAttributes());
             } else {
                 tctx.setCurrentColumnRowSpanning(
@@ -870,23 +870,23 @@
                 // Get the number of columns spanned
                 RtfTable table = row.getTable();
                 tctx.setCurrentFirstSpanningCol(true);
-                
+
                 // We widthdraw one cell because the first cell is already created
                 // (it's the current cell) !
                  for (int i = 0; i < numberColumnsSpanned - 1; ++i) {
                     tctx.selectNextColumn();
-                    
+
                     tctx.setCurrentFirstSpanningCol(false);
                     RtfTableCell hCell = row.newTableCellMergedHorizontally(
                             0, null);
-                    
+
                     if (numberRowsSpanned > 1) {
                         // Start vertical merge
                         hCell.setVMerge(RtfTableCell.MERGE_START);
 
                         // set the number of rows spanned
                         tctx.setCurrentColumnRowSpanning(
-                                new Integer(numberRowsSpanned), 
+                                new Integer(numberRowsSpanned),
                                 cell.getRtfAttributes());
                     } else {
                         tctx.setCurrentColumnRowSpanning(
@@ -894,7 +894,7 @@
                     }
                 }
             }
-            
+
             builderContext.pushContainer(cell);
         } catch (IOException ioe) {
             handleIOTrouble(ioe);
@@ -962,12 +962,12 @@
         if (bDefer) {
             return;
         }
-        
+
         // create an RtfListItem in the current RtfList
         try {
             RtfList list = (RtfList)builderContext.getContainer(
                     RtfList.class, true, this);
-            
+
             /**
              * If the current list already contains a list item, then close the
              * list and open a new one, so every single list item gets its own
@@ -981,11 +981,11 @@
                 this.endList((ListBlock) li.getParent());
                 this.startList((ListBlock) li.getParent());
                 this.startListBody();
-                
+
                 list = (RtfList)builderContext.getContainer(
                         RtfList.class, true, this);
-            }            
-            
+            }
+
             builderContext.pushContainer(list.newListItem());
         } catch (IOException ioe) {
             handleIOTrouble(ioe);
@@ -1136,7 +1136,7 @@
             FOUserAgent userAgent = eg.getUserAgent();
             ImageManager manager = userAgent.getFactory().getImageManager();
             info = manager.getImageInfo(uri, userAgent.getImageSessionContext());
-            
+
             putGraphic(eg, info);
         } catch (ImageException ie) {
             ResourceEventProducer eventProducer = ResourceEventProducer.Provider.get(
@@ -1160,18 +1160,18 @@
         if (bDefer) {
             return;
         }
-        
+
         try {
             XMLObj child = (XMLObj) ifo.getChildXMLObj();
             Document doc = child.getDOMDocument();
             String ns = child.getNamespaceURI();
-            
+
             ImageInfo info = new ImageInfo(null, null);
             // Set the resolution to that of the FOUserAgent
             FOUserAgent ua = ifo.getUserAgent();
             ImageSize size = new ImageSize();
             size.setResolution(ua.getSourceResolution());
-            
+
             // Set the image size to the size of the svg.
             Point2D csize = new Point2D.Float(-1, -1);
             Point2D intrinsicDimensions = child.getDimension(csize);
@@ -1188,12 +1188,12 @@
             info.setSize(size);
 
             ImageXMLDOM image = new ImageXMLDOM(info, doc, ns);
-            
+
             FOUserAgent userAgent = ifo.getUserAgent();
             ImageManager manager = userAgent.getFactory().getImageManager();
             Image converted = manager.convertImage(image, FLAVORS);
             putGraphic(ifo, converted);
-            
+
         } catch (ImageException ie) {
             ResourceEventProducer eventProducer = ResourceEventProducer.Provider.get(
                     getUserAgent().getEventBroadcaster());
@@ -1208,14 +1208,14 @@
     private static final ImageFlavor[] FLAVORS = new ImageFlavor[] {
         ImageFlavor.RAW_EMF, ImageFlavor.RAW_PNG, ImageFlavor.RAW_JPEG
     };
-    
+
     /**
      * Puts a graphic/image into the generated RTF file.
      * @param abstractGraphic the graphic (external-graphic or instream-foreign-object)
      * @param info the image info object
      * @throws IOException In case of an I/O error
      */
-    private void putGraphic(AbstractGraphics abstractGraphic, ImageInfo info) 
+    private void putGraphic(AbstractGraphics abstractGraphic, ImageInfo info)
             throws IOException {
         try {
             FOUserAgent userAgent = abstractGraphic.getUserAgent();
@@ -1231,17 +1231,17 @@
             eventProducer.imageError(this, null, ie, null);
         }
     }
-    
+
     /**
      * Puts a graphic/image into the generated RTF file.
      * @param abstractGraphic the graphic (external-graphic or instream-foreign-object)
      * @param image the image
      * @throws IOException In case of an I/O error
      */
-    private void putGraphic(AbstractGraphics abstractGraphic, Image image) 
+    private void putGraphic(AbstractGraphics abstractGraphic, Image image)
             throws IOException {
         byte[] rawData = null;
-        
+
         ImageInfo info = image.getInfo();
 
         if (image instanceof ImageRawStream) {
@@ -1266,7 +1266,7 @@
                 IRtfTextrunContainer.class, true, this);
 
         final RtfExternalGraphic rtfGraphic = c.getTextrun().newImage();
-   
+
         //set URL
         if (info.getOriginalURI() != null) {
             rtfGraphic.setURL(info.getOriginalURI());
@@ -1341,7 +1341,7 @@
             }
         }
     }
-    
+
     /**
      * {@inheritDoc}
      */

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/TableAttributesConverter.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/TableAttributesConverter.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/TableAttributesConverter.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/TableAttributesConverter.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -64,7 +64,7 @@
     //////////////////////////////////////////////////
     /**
      * Converts table-only attributes to rtf attributes.
-     * 
+     *
      * @param attrs Given attributes
      * @param defaultAttributes Default rtf attributes
      *
@@ -75,14 +75,14 @@
     static RtfAttributes convertTableAttributes(Table fobj)
             throws FOPException {
         FOPRtfAttributes attrib = new FOPRtfAttributes();
-        attrib.setTwips(ITableAttributes.ATTR_ROW_LEFT_INDENT, 
+        attrib.setTwips(ITableAttributes.ATTR_ROW_LEFT_INDENT,
                 fobj.getCommonMarginBlock().marginLeft);
         return attrib;
     }
 
     /**
      * Converts table-only attributes to rtf attributes.
-     * 
+     *
      * @param attrs Given attributes
      * @param defaultAttributes Default rtf attributes
      *
@@ -109,7 +109,7 @@
 
         //Property p;
         //RtfColorTable colorTable = RtfColorTable.getInstance();
-        
+
         FOPRtfAttributes attrib = new FOPRtfAttributes();
 
         //boolean isBorderPresent = false;
@@ -121,7 +121,7 @@
             //If there is no background-color specified for the cell,
             //then try to read it from table-row or table-header.
             CommonBorderPaddingBackground brd = null;
-            
+
             if (fobj.getParent() instanceof TableRow) {
                 TableRow parentRow = (TableRow)fobj.getParent();
                 brd = parentRow.getCommonBorderPaddingBackground();
@@ -131,20 +131,20 @@
                 brd = parentHeader.getCommonBorderPaddingBackground();
                 color = brd.backgroundColor;
             }
-            
+
             if (color == null
-                    && fobj.getParent() != null 
-                    && fobj.getParent().getParent() != null 
+                    && fobj.getParent() != null
+                    && fobj.getParent().getParent() != null
                     && fobj.getParent().getParent().getParent() instanceof Table) {
 
                 Table table = (Table)fobj.getParent().getParent().getParent();
                 brd = table.getCommonBorderPaddingBackground();
                 color = brd.backgroundColor;
             }
-            
-            
+
+
         }
-        if ((color != null) 
+        if ((color != null)
                 && (color.getAlpha() != 0
                         || color.getRed() != 0
                         || color.getGreen() != 0
@@ -198,13 +198,13 @@
             attrib.setTwips(ITableAttributes.ATTR_CELL_PADDING_BOTTOM, padding);
             attrib.set(ITableAttributes.ATTR_CELL_U_PADDING_BOTTOM, 3 /*=twips*/);
         }
-        
+
         int n = fobj.getNumberColumnsSpanned();
         // Column spanning :
         if (n > 1) {
             attrib.set(ITableAttributes.COLUMN_SPAN, n);
         }
-        
+
         switch (fobj.getDisplayAlign()) {
         case Constants.EN_BEFORE:
             attrib.set(ITableAttributes.ATTR_CELL_VERT_ALIGN_TOP);
@@ -328,7 +328,7 @@
             isBorderPresent = true;
         }
 
-        //Currently there is only one border width supported in each cell.  
+        //Currently there is only one border width supported in each cell.
         p = fobj.getProperty(Constants.PR_BORDER_LEFT_WIDTH);
         if(p == null) {
             p = fobj.getProperty(Constants.PR_BORDER_RIGHT_WIDTH);

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/TextAttributesConverter.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/TextAttributesConverter.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/TextAttributesConverter.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/TextAttributesConverter.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -52,13 +52,13 @@
  *  @author rmarra
  */
 final class TextAttributesConverter {
-    
+
     /**
      * Constructor is private, because it's just a utility class.
      */
     private TextAttributesConverter() {
     }
-    
+
     /**
      * Converts all known text FO properties to RtfAttributes
      * @param props list of FO properites, which are to be converted
@@ -106,7 +106,7 @@
         attrBaseLineShift(fobj.getBaseLineShift(), attrib);
         return attrib;
     }
-    
+
     /**
      * Converts all character related FO properties to RtfAttributes.
      * @param fobj FObj whose properties are to be converted
@@ -150,7 +150,7 @@
         } else {
             rtfAttr.set("b", 0);
         }
-        
+
         if (font.getFontStyle() == Constants.EN_ITALIC) {
             rtfAttr.set(RtfText.ATTR_ITALIC, 1);
         } else {
@@ -176,20 +176,20 @@
 
 
 
-    private static void attrTextDecoration(CommonTextDecoration textDecoration, 
+    private static void attrTextDecoration(CommonTextDecoration textDecoration,
                 RtfAttributes rtfAttr) {
         if (textDecoration == null) {
             rtfAttr.set(RtfText.ATTR_UNDERLINE, 0);
             rtfAttr.set(RtfText.ATTR_STRIKETHROUGH, 0);
             return;
         }
-                
+
         if (textDecoration.hasUnderline()) {
             rtfAttr.set(RtfText.ATTR_UNDERLINE, 1);
         } else {
             rtfAttr.set(RtfText.ATTR_UNDERLINE, 0);
         }
-        
+
         if (textDecoration.hasLineThrough()) {
             rtfAttr.set(RtfText.ATTR_STRIKETHROUGH, 1);
         } else {
@@ -198,9 +198,9 @@
     }
 
     private static void attrBlockMargin(CommonMarginBlock cmb, FOPRtfAttributes rtfAttr) {
-        rtfAttr.setTwips(RtfText.SPACE_BEFORE, 
+        rtfAttr.setTwips(RtfText.SPACE_BEFORE,
                 cmb.spaceBefore.getOptimum(null).getLength());
-        rtfAttr.setTwips(RtfText.SPACE_AFTER, 
+        rtfAttr.setTwips(RtfText.SPACE_AFTER,
                 cmb.spaceAfter.getOptimum(null).getLength());
         rtfAttr.setTwips(RtfText.LEFT_INDENT_BODY, cmb.startIndent);
         rtfAttr.setTwips(RtfText.RIGHT_INDENT_BODY, cmb.endIndent);
@@ -283,20 +283,20 @@
             CommonBorderPaddingBackground commonBorderPaddingBackground = null;
             if (node instanceof Block) {
                 Block block = (Block) node;
-                commonBorderPaddingBackground = block.getCommonBorderPaddingBackground(); 
-            } else if (node instanceof BlockContainer) { 
+                commonBorderPaddingBackground = block.getCommonBorderPaddingBackground();
+            } else if (node instanceof BlockContainer) {
                 BlockContainer container = (BlockContainer) node;
                 commonBorderPaddingBackground = container.getCommonBorderPaddingBackground();
-            } 
+            }
 
-            if (commonBorderPaddingBackground != null 
+            if (commonBorderPaddingBackground != null
                     && commonBorderPaddingBackground.hasBorder()) {
                 return true;
             }
 
             node = node.getParent();
         }
-        return false; 
+        return false;
     }
 
     /** Adds inline border information from <code>bpb</code> to <code>rtrAttr</code>. */
@@ -313,7 +313,7 @@
      * @param bl the Block object the properties are read from
      * @param rtfAttr the RtfAttributes object the attributes are written to
      */
-    private static void attrBackgroundColor(CommonBorderPaddingBackground bpb, 
+    private static void attrBackgroundColor(CommonBorderPaddingBackground bpb,
                 RtfAttributes rtfAttr) {
         Color fopValue = bpb.backgroundColor;
         int rtfColor = 0;
@@ -334,11 +334,11 @@
 
         rtfAttr.set(RtfText.ATTR_BACKGROUND_COLOR, rtfColor);
    }
-    
+
    private static void attrBaseLineShift(Length baselineShift, RtfAttributes rtfAttr) {
-       
+
        int s = baselineShift.getEnum();
-       
+
        if (s == Constants.EN_SUPER) {
            rtfAttr.set(RtfText.ATTR_SUPERSCRIPT);
        } else if (s == Constants.EN_SUB) {

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/rtflib/exceptions/RtfException.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/rtflib/exceptions/RtfException.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/rtflib/exceptions/RtfException.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/rtflib/exceptions/RtfException.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/rtflib/exceptions/RtfStructureException.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/rtflib/exceptions/RtfStructureException.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/rtflib/exceptions/RtfStructureException.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/rtflib/exceptions/RtfStructureException.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/IBorderAttributes.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/IBorderAttributes.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/IBorderAttributes.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/IBorderAttributes.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/IRtfAfterContainer.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/IRtfAfterContainer.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/IRtfAfterContainer.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/IRtfAfterContainer.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org