On 4/6/14 2:42 AM, "Harbs" <harbs.li...@gmail.com> wrote:
>While working on TLF tables, I came to the conclusion that the simplest >way to handle the composition is to create a separate TExtFlow for each >cell in a table. The reason for this being that the composition of each >cell is in fact completely separate from the composition of the main >text, and by separating it, we can compose all the cells before starting >composition of the table. Once the cells are composed, composing the >table is very straight-forward because we are dealing with known sizes. Makes sense to me. > >I think each cell would have its own EditManager, but share an >UndoManager with the main text. > >Does anyone have any concerns with this approach? Performance and memory, of course. Don't know if pooling would help or avoiding spending too much time on cells that are off-screen. > >Also: I'd like to reuse the composed cells of header and footer cells. >I'm not sure exactly where the text content is actually drawn. Can anyone >point me in the right direction? Not sure what you mean here. -Alex