On Mon, 04 Oct 2004 07:36:57 -0700, Jos� Ab�lio Oliveira Matos wrote:
On Mon, Oct 04, 2004 at 03:17:43PM +0100, Angus Leeming wrote: > > Why is this a member of InsetGraphics?
Mainly because I'm new to LyX and I wouldn't know where to put it :-)
> Other places will need > something similar, so why not a helper function declared in > lyxlength.h or similar?
AFAIK in docbook this is the only place where this is needed.
Tabulars also use these units (tablewidth, columnwidth, maybe rowheight), but LyX doesn't support this yet.
Unfortunately relative values for column widths are marked with an asterisk '*' in tabulars. I don't know if '%' still has the meaning 'percent of page width' for columns widths.
Angus, would you prefer a member function in LyXLength 'asDocbookUnitString()' for the absolute lengths ?
What about a memberfunction 'bool isRelative()' ?
<flamebait>
How do you feel about disabling relative horizontal lenghths for height and relative vertical lengths for widths? It will not be possible to support this in DocBook and it's probably not very useful anyway. We wouldn't have "%page" and %"pheight" in the same list then, same with "%text" and "%theight", just "%page" and %text% for height and "%page", "%text", %column" and "%line" for widths. We could also add a height "%line" for \baselineskip or something similar.
</flamebait>
/Andreas
