Page 1 of 1

RVStyle.ListStyles overridden/lost

Posted: Tue Jan 31, 2006 9:39 am
by lwinter
Hi Sergey,

I use 2 custom defined ListStyles (Standard = true), one for bullets, one for numbering, with 5 levels each.
My RichView is created at runtime from a constructor from which I create a TRVStyle and set the ListStyles (no TForm used).

Problem:
When inserting html via
(1) create a dummy RichView
(2) assign dummy's htmlImporter
(3) load html to dummy
(4) save rvf from dummy to stream
(5) insert rvf from stream to RichView,
then the custom ListStyles are replaced or re-set. Instead I get one default ListStyle, causing "index out of bounds" in RVMarker -> GetLevelInfo().

This happens regardless of RVFOptions, RVFTextStylesReadMode, RVFParaStylesReadMode or the ListStyle's "Standard".

Any suggestions where and why this happens? How to best handle this?

Thanks,
-- Lutz

Posted: Tue Jan 31, 2006 11:51 am
by Sergey Tkachenko
Please send me a project (as simple as possible) reproducing this problem.