My first tests are not very encouraging… Trying to compose the table results in this function returning null: static tlf_internal function beginFactoryCompose():SimpleCompose { var rslt:SimpleCompose = _factoryComposer; _factoryComposer = peekFactoryCompose(); _savedFactoryComposer = null; return rslt; }
Looks like I need to the composition process... FWIW, it made no difference whether I added the rows to a TableBodyElement or to the table directly. On Sep 10, 2013, at 7:17 PM, Alex Harui wrote: > Hi Harbs, > > I see code for Tables, but I'm not sure it is "officially" there. Or even > complete, or even working at a prototype-level. > > So good luck with it. I might be able to ask folks who used to work on it > a few questions, but I'm pretty sure their memories of it are pretty dim > by now. > > -Alex > > On 9/10/13 6:16 AM, "Harbs" <harbs.li...@gmail.com> wrote: > >> I knew I was going to spend some real time on this one day, and that time >> is coming really soonŠ >> >> Before I dig in too deeply, what's the status on TLF Table support? I >> know it's officially there, but I don't see any documentation on it -- >> not even the basics on how it's supposed to be used. >> >> I fully expect to find bugs once I start really digging into it, but some >> documentation (any) would be nice to get me started. >> >> Looking at the source code, I see the following classes: >> >> TableElement >> TableBodyElement >> TableColElement >> TableRowElement >> TableColGroupElement >> TableDataCellElement >> TableFormattedElement >> >> I understand the structure like this: >> >> * A TableElement is the top level element for any table >> * All elements in a table inherit from TableFormattedElement >> * The bottom level of a table which needs to contain one or more >> ParagraphElements in a TableDataCellElement >> * TableDataCellElements must reside within a TableRowElement >> >> After this things get a bit fuzzier. >> >> What is TableBodyElement used for? >> How is TableColGroupElement and TableColElement used? (I assume they are >> used for formatting table columns, but the details are not very clear to >> me.) >> What about header and footer rows? Is that supported yet? >> Header and footer columns? >> Is breaking tables across containers supported yet? >> >> I have not started studying how to specify table formatting either. I'm >> hoping that's obviousŠ >> >> I'll try to add some documentation to the source code as things become >> clearer to meŠ >> >> Harbs >