ok, great. found that information. now my next question is: Where in
the source code is that formula applied in Writer to get the results it
does? that is, Wc = (RcWs)/Rs and using 1440twips/in. The results I
get do not match that of Writer. Is some rounding going on that I need
to be aware of?
thanks,
Matthew
Michael Brauer - Sun Germany - ham02 - Hamburg wrote:
Matthew,
the style:rel-column-width attribute is described in section 15.9.1 of
the OpenDocument specification:
http://www.oasis-open.org/committees/download.php/12573/OpenDocument-v1.0-os.sxw
I assume OpenOffice.org has inserted the attributes because there was
no absolute width specified for the table itself. In this case, OOo
assumes that the table has a relative width, and the columns therefore
as well.
Michael
Matthew L. Avizinis wrote On 12/13/05 16:48,:
Seasons Greetings to all,
I am sending this to both lists because I'm not sure which group
this issue really belongs to since it has xml Writer format
properties but is also a development issue I think. If most of you
folks who are regulars here monitor both lists just let me know and
I'll send any further messages to one list or the other.
Another question please
In a table (#1) I've generated, the following is created by
Writer when I File | Save:
<style:table-column-properties style:column-width="51.01mm"
style:rel-column-width="65535*"/>
and in a table (#2) I get:
<style:table-column-properties style:column-width="50.01mm"
style:rel-column-width="32767*"/>
and in a third (#3) this:
<style:table-column-properties style:column-width="50.01mm"
style:rel-column-width="32768*"/>
I did not generate the */style/:rel-column-width*,* *only the
style:column-width property.
* *So how is this number calculated? What is it /rel/ative to? I'm
assuming it's called that because it's the column width relative to
something. The values are all different even though the
style:column-width is the same. I could find no documentation on
this element in the odt spec or anywhere else for that matter. Can
anyone provide some knowledge transfer please? It would be much
appreciated.
If anyone is interested, what I'm doing is, from xml data via
several xslt stylesheets generating all the individual files needed
by an OpenOffice Writer document dependent on what objects are in it,
e.g. formulae, images, tables, etc. Then using the java zip class in
a rhino javascript extension function (I'm using the Xalan xslt
processor), I zip the files together to produce a Writer document.
It works quite well, except that a few areas seem murky such as with
equation settings (which I mentioned in another e-mail) and the issue
I describe here.
Peace to you,
Matthew L. Avizinis
Gleim Publications, Inc.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]