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
RVStyle.ListStyles overridden/lost
-
- Site Admin
- Posts: 17566
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: