CVS: jfor/src/org/jfor/jfor/converter TableAttributesConverter.java,1.9,1.10
Peter Herweg <[email protected]> Thu, 03 Jul 2003 10:51:54 -0700
| Newsgroups | gmane.text.xml.jfor.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/jfor/jfor/src/org/jfor/jfor/converter
In directory sc8-pr-cvs1:/tmp/cvs-serv16604/src/org/jfor/jfor/CONVER~1
Modified Files:
TableAttributesConverter.java
Log Message:
support for height attribute at table-row tag added
Index: TableAttributesConverter.java
===================================================================
RCS file: /cvsroot/jfor/jfor/src/org/jfor/jfor/converter/TableAttributesConverter.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** TableAttributesConverter.java 18 Feb 2003 16:10:46 -0000 1.9
--- TableAttributesConverter.java 3 Jul 2003 17:51:52 -0000 1.10
***************
*** 64,69 ****
// $Id$
// $Log$
// Revision 1.9 2003/02/18 16:10:46 rmarra
! // Contributions Normand Massé
// inheritance and other fixes
//
--- 64,72 ----
// $Id$
// $Log$
+ // Revision 1.10 2003/07/03 17:51:52 pherweg
+ // support for height attribute at table-row tag added
+ //
// Revision 1.9 2003/02/18 16:10:46 rmarra
! // Contributions Normand Massé
// inheritance and other fixes
//
***************
*** 283,286 ****
--- 286,295 ----
if (AbstractBuilder.attributeIsSet(attrs,"keep-with-previous", defAttrs )) {
attrib.set(ITableAttributes.ROW_KEEP_WITH_PREVIOUS);
+ }
+
+ //Check for height row attribute.
+ if (AbstractBuilder.attributeIsSet(attrs,"height")) {
+ attrValue = new String(AbstractBuilder.getValue( attrs, "height", defAttrs ));
+ attrib.set(ITableAttributes.ROW_HEIGHT, (int)FoUnitsConverter.getInstance().convertToTwips(attrValue));
}
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01