cvs commit: xml-fop/src/org/apache/fop/render AbstractRenderer.java

2002-04-02 Thread keiron

keiron  02/04/02 03:50:58

  Modified:src/org/apache/fop/area/inline InlineArea.java
   src/org/apache/fop/fo FObjMixed.java TextInfo.java
   src/org/apache/fop/fo/flow Block.java
InstreamForeignObject.java
   src/org/apache/fop/layoutmgr BlockLayoutManager.java
LineLayoutManager.java TextLayoutManager.java
   src/org/apache/fop/render AbstractRenderer.java
  Added:   src/org/apache/fop/layoutmgr LayoutInfo.java
  Log:
  basic vertical alignment and height for lines
  handles alignment.fo
  
  Revision  ChangesPath
  1.6   +4 -1  xml-fop/src/org/apache/fop/area/inline/InlineArea.java
  
  Index: InlineArea.java
  ===
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/area/inline/InlineArea.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- InlineArea.java   21 Mar 2002 09:34:19 -  1.5
  +++ InlineArea.java   2 Apr 2002 11:50:58 -   1.6
  @@ -1,5 +1,5 @@
   /*
  - * $Id: InlineArea.java,v 1.5 2002/03/21 09:34:19 keiron Exp $
  + * $Id: InlineArea.java,v 1.6 2002/04/02 11:50:58 keiron Exp $
* Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
* For details on use and redistribution please refer to the
* LICENSE file included with these sources.
  @@ -12,6 +12,8 @@
   import org.apache.fop.area.Trait;
   import org.apache.fop.render.Renderer;
   
  +import org.apache.fop.layoutmgr.LayoutInfo;
  +
   import java.util.List;
   import java.util.ArrayList;
   
  @@ -28,6 +30,7 @@
   // position within the line area, either top or baseline
   int verticalPosition;
   // width, height, vertical alignment
  +public LayoutInfo info = null;
   
   // store properties in array list, need better solution
   ArrayList props = null;
  
  
  
  1.20  +2 -2  xml-fop/src/org/apache/fop/fo/FObjMixed.java
  
  Index: FObjMixed.java
  ===
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/FObjMixed.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- FObjMixed.java21 Mar 2002 09:37:14 -  1.19
  +++ FObjMixed.java2 Apr 2002 11:50:58 -   1.20
  @@ -1,5 +1,5 @@
   /*
  - * $Id: FObjMixed.java,v 1.19 2002/03/21 09:37:14 keiron Exp $
  + * $Id: FObjMixed.java,v 1.20 2002/04/02 11:50:58 keiron Exp $
* Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
* For details on use and redistribution please refer to the
* LICENSE file included with these sources.
  @@ -21,7 +21,7 @@
*/
   public class FObjMixed extends FObj {
   TextInfo textInfo = null;
  -FontInfo fontInfo=null;
  +protected FontInfo fontInfo=null;
   
   public FObjMixed(FONode parent) {
   super(parent);
  
  
  
  1.2   +2 -1  xml-fop/src/org/apache/fop/fo/TextInfo.java
  
  Index: TextInfo.java
  ===
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/TextInfo.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TextInfo.java 21 Mar 2002 09:37:14 -  1.1
  +++ TextInfo.java 2 Apr 2002 11:50:58 -   1.2
  @@ -1,5 +1,5 @@
   /*
  - * $Id: TextInfo.java,v 1.1 2002/03/21 09:37:14 keiron Exp $
  + * $Id: TextInfo.java,v 1.2 2002/04/02 11:50:58 keiron Exp $
* Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
* For details on use and redistribution please refer to the
* LICENSE file included with these sources.
  @@ -28,6 +28,7 @@
   public int wrapOption;
   public int whiteSpaceCollapse;
   public int verticalAlign;
  +public int lineHeight;
   
   // Textdecoration
   public boolean underlined = false;
  
  
  
  1.51  +5 -3  xml-fop/src/org/apache/fop/fo/flow/Block.java
  
  Index: Block.java
  ===
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/Block.java,v
  retrieving revision 1.50
  retrieving revision 1.51
  diff -u -r1.50 -r1.51
  --- Block.java21 Mar 2002 09:37:14 -  1.50
  +++ Block.java2 Apr 2002 11:50:58 -   1.51
  @@ -1,5 +1,5 @@
   /*
  - * $Id: Block.java,v 1.50 2002/03/21 09:37:14 keiron Exp $
  + * $Id: Block.java,v 1.51 2002/04/02 11:50:58 keiron Exp $
* Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
* For details on use and redistribution please refer to the
* LICENSE file included with these sources.
  @@ -16,6 +16,7 @@
   import org.apache.fop.layoutmgr.LayoutManager;
   import org.apache.fop.layoutmgr.BlockLayoutManager;
   import org.apache.fop.util.CharUtilities;
  +import org.apache.fop.apps.StreamRenderer;
   
   

Re: Participating in development

2002-04-02 Thread Keiron Liddle

Hi Vaidya,

Anyone is free to participate in the development.

The usual way is to get a copy of current cvs and write your code (or 
anything else such as documentation, examples) then submit a patch to the 
list. The patch will be looked at and if appropriate it will be applied to 
cvs.

The details depend on exactly what you want to do.

I would suggest you work out exactly what you want to develop and then 
discuss this on the mailing list first.

What are you looking at developing?

On 2002.04.02 04:10 Vaidya, Raghavendra (CORP, GEITC) wrote:
 Hi Guys,
 I want to participate in development of FOP
 could you guys tell me how do I go about?
 regards
 Vaidya

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: Participating in development

2002-04-02 Thread alex



On 2002.04.02 04:10 Vaidya, Raghavendra (CORP, GEITC) wrote:
Hi Guys,
I want to participate in development of FOP
could you guys tell me how do I go about?
regards
Vaidya


One really useful way you can help is by doing some more XSL-FO examples 
which work with FOP. Ideally they should be simple enough to demonstrate 
one or two features.

Thanks

Alex


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Participating in development

2002-04-02 Thread Vaidya, Raghavendra (CORP, GEITC)

Hi Keiron,
I would like to do some bug fixing, feature enhancements for FOP.
Could you tell me how to get the code and setup the build
Thanks and Regards
Vaidya

-Original Message-
From: Keiron Liddle [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 5:41 PM
To: [EMAIL PROTECTED]
Subject: Re: Participating in development


Hi Vaidya,

Anyone is free to participate in the development.

The usual way is to get a copy of current cvs and write your code (or 
anything else such as documentation, examples) then submit a patch to the 
list. The patch will be looked at and if appropriate it will be applied to 
cvs.

The details depend on exactly what you want to do.

I would suggest you work out exactly what you want to develop and then 
discuss this on the mailing list first.

What are you looking at developing?

On 2002.04.02 04:10 Vaidya, Raghavendra (CORP, GEITC) wrote:
 Hi Guys,
 I want to participate in development of FOP
 could you guys tell me how do I go about?
 regards
 Vaidya

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this 
communication is strictly Prohibited. 
If you have received this message by error, please notify us 
immediately, return the original mail to the sender and delete the 
message from your system.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Support for UNC names in org.apache.fop.app.InputHandler

2002-04-02 Thread APSERRANO

Hi,
I've slightly modified org.apache.fop.app.InputHandler.fileInputSource 
so that it works with UNC names under Windows, such 
as //host/resource/file.
The problem is caused by the use of java.net.URL.
Consider this example:
   new java.net.URL(file, null, //host/resource/file).toString()
that returns the string file://host/resource/file instead of
the right one: file:host/resource/file.

I've attached the patched InputHandler.java, from FOP 0.20.3.

Regards,
   Alberto.




/*
 * $Id: InputHandler.java,v 1.5 2001/08/14 08:50:47 keiron Exp $
 * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
 * For details on use and redistribution please refer to the
 * LICENSE file included with these sources.
 */

package org.apache.fop.apps;

// SAX
import org.xml.sax.InputSource;
import org.xml.sax.XMLReader;

// Java
import java.net.URL;
import java.io.File;

// FOP
import org.apache.fop.messaging.MessageHandler;
import org.apache.fop.configuration.Configuration;


abstract public class InputHandler {


abstract public InputSource getInputSource();
abstract public XMLReader getParser() throws FOPException;


static public InputSource urlInputSource(URL url) {
return new InputSource(url.toString());
}

/**
 * create an InputSource from a File
 *
 * @param file the File
 * @return the InputSource created
 */
static public InputSource fileInputSource(File file) {
/* this code adapted from James Clark's in XT */
boolean isUNC = false;
String path = file.getAbsolutePath();
String fSep = System.getProperty(file.separator);

if (fSep != null  fSep.length() == 1) {
path = path.replace(fSep.charAt(0), '/');
isUNC = path.startsWith(//);
}
if (path.length()  0  path.charAt(0) != '/')
path = '/' + path;
try {
   path = new URL(file, null, path).toString();
} catch (java.net.MalformedURLException e) {
throw new Error(unexpected MalformedURLException);
}

if (isUNC)
path = file:// + path.substring(5, path.length());

return new InputSource(path);
}

/**
 * creates a SAX parser, using the value of org.xml.sax.parser
 * defaulting to org.apache.xerces.parsers.SAXParser
 *
 * @return the created SAX parser
 */
protected static XMLReader createParser() throws FOPException {
String parserClassName = Driver.getParserClassName();
MessageHandler.logln(using SAX parser  + parserClassName);

try {
return (XMLReader)Class.forName(parserClassName).newInstance();
} catch (ClassNotFoundException e) {
throw new FOPException(e);
} catch (InstantiationException e) {
throw new FOPException(Could not instantiate 
   + parserClassName, e);
} catch (IllegalAccessException e) {
throw new FOPException(Could not access  + parserClassName, e);
} catch (ClassCastException e) {
throw new FOPException(parserClassName +  is not a SAX driver,
   e);
}
}

}



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


Patch: build process

2002-04-02 Thread Andriy Palamarchuk

Changelog:
  Changed shell scripts to work under cygwin, fixed library names.

Andriy Palamarchuk




build.diff
Description: Binary data

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


Re: why doesn't fop take relative path for external graphic

2002-04-02 Thread J.Pietschmann

Katiyar, Bhawana wrote:
 Hi! I am trying to include an image using external-graphic element. It doesn't seem 
to take relative path.
 I don't want to specify the absolute path. 
The src attribute of the fo:external-graphics element
takes an URI as a value. Relative URIs are resolved
against the baseDir configuration setting. The
command line app by default uses the current working
directory as baseDir. You can also set it in the
userconfig.xml file. If you are using the command
line, be sure either to start it from the proper
directory, or tell it to use a userconfig.xml with
an appropriate setting.
If you are using FOP embedded in some other application,
for example in a servlet, the baseDir is usually
uninitialized. The symptom is a ...NotFound exception
with a URI that starts with (null).
You can set the baseDir in such a situation:
  String baseDir = url path to base;
  Configuration.put(baseDir, baseDir);
You can also set baseDir in the userconfig.xml and
use it:
   options = new Options(new File(path to userconfig.xml);
Yes, thats all, no further reference to the options
variable necessary.

J.Pietschmann






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: Keep two table rows together

2002-04-02 Thread J.Pietschmann

David B. Bitton wrote:
 I have a table with data that is grouped every two rows.  The first row
 has data in cells, and the second row is a span, and it has additional info.
 How can I stop a page break between the two rows?

Have you already tried to set keep-with-next=always
on the first row?

J.Pietschmann



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




help to get started on WebSphere 3.5

2002-04-02 Thread John . Y . Cherny

I have to generate PDF letters files. To do that I have decided to use FOP files as letter templates supplying
variables(name, address...) via XML. It is going to be a batch job, running main method developing
with Visual Age, WebSphere 3.5. Is anyone has examples?
Most importantly, I have no idea what libraries to download, where to install and how to configure.
Please, help.

John Cherny.
email: [EMAIL PROTECTED]
(w)phone: (323)259-4631

Re: FOP in a multithreading environment

2002-04-02 Thread Jeremias Maerki

A few problems have been resolved since then, but some still persist. A
known problem is NPE's within image loading code.
See: http://marc.theaimsgroup.com/?l=fop-devm=101496883317389w=2

 I am running FOP in a SOAP context.  I have started to stress test my code.
 As soon as I enable a second thread hitting my SOAP server, FOP fails.  I
 noticed rumbling in the mailing back around ver. 0.18.1 about thread safety.
 Is there something I should do, or is this still a bug in the code?

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +41 41 317 2020 - Fax +41 41 317 2029
Internet http://www.outline.ch


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]