RVStyle.ListStyles overridden/lost

General TRichView support forum. Please post your questions here
Post Reply
lwinter
Posts: 24
Joined: Thu Dec 01, 2005 4:42 am

RVStyle.ListStyles overridden/lost

Post 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
Sergey Tkachenko
Site Admin
Posts: 17566
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Please send me a project (as simple as possible) reproducing this problem.
Post Reply