On 09-Apr-2001 Dekel Tsur wrote:
> I had no problem when I enabled the STL code in AppendRow.
> Do you have a problem when you compile without optimization ?
> Do we want to support buggy compilers ?
>
>
> BTW you can use
> cell_info.insert(cit, vector<cellstruct>(columns_,));
> instead of
> cell_info.insert(cit, vector<cellstruct>(columns_, cellstruct()));
> )
Well when I tried it I did it with the last stable compiler egcs-2.91.66
and failed. Did you try to add more then one row (a lot?). I'll give it
another try. I would also like to optimize access to the vectors using
iterators where possible, do you think the access is faster then?
I also had a thought about the memory footprint for insettabular and the
only possible solution I came up with to minimize it is to store the data
inside a single paragraph as we did before. But do we really want to do this.
IMO it's enough to fix the Undo problem so that an Undo call of the tabular
does not save the whole tabular but only the needed insettext paragraph(s).
Also we could make a LyXTabular::Undo which saves undo's to the general state
of the tabular (if I change parameters inside the tabular) and this could
also decide to save insets if needed. But this is far to complicted for now.
The next stuff I would like to do is permit Character changes over a cell
selection (which then is also the base for doing spellcheck inside tabulars).
Actually I'm working on the update/problems Michael reported. I already fixed
some, but have to do more work on this. As soon as I get this cleared out I
start for the Character Layout.
One idea also is to change the Tabular-Layout to do stuff like in all other
Layouts (with ROAC buttons), would this be a good move? (This is not so simple
as then I would have to look at all the modifications we did with the tabular
layout and call all the TabularFeatures calls in one block. Any idea here to
do this in a clean manner is welcome!
Jürgen
--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen Vigna E-Mail: [EMAIL PROTECTED]
Italienallee 13/N Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39100 Bozen Web: http://www.sad.it/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Ask not for whom the <CONTROL-G> tolls.