trichview.support
Re: Bug in RichView - merging styles of newly inserted rvf documents. |
Author |
Message |
John Wertz |
Posted: 04/30/2003 2:56:31 I see where I was confused, all of my tables are created at run-time and all cells are loaded with rvf streams so the problem you described never appeared. Do you plan to enhance table cells so that streams can be loaded and displayed correctly without going through the processes described in the MailMerge2 demo? Thanks again for your assistance, John "Sergey Tkachenko" <svt@trichview.com> wrote in message news:3eaeb223@support.torry.net... > > This is incorrect. Only the TRVIntegerList created in MergeStyles and used > > in TCustomRVInfos.MergeWith is freed. The rvf styles of the document are > > still available and used by the document and table cells. > > TRVIntegerList is created and assigned to PTextStylesMapping^, i.e. to > GetRootData.RVFTextStylesMapping > (PTextStylesMapping is assigned to the address of > GetRootData.RVFTextStylesMapping in InitStyleMapping procedure). > GetRootData returns RichView.RVData. > > > > > > The next cell is loaded. But the style mappings are nil, and this cell > is > > > loaded in "ignore styles" mode. The same for rest of the document. > > > > No, MergeStyles creates a new empty list and passes it to Base.MergeWith. > > The styles are correctly merged and the cell data is displayed correctly. > > Ok, I attached an example. > You can test it in the ActionTest demo. > Insert | File, 1.rvf > then > Insert | File, 2.rvf > > With the original code, both files are inserted correctly. > If you'll free style mapping at the end of the procedure, the second file > will be inserted incorrectly (if inserted after the first file) > > > > > |
Powered by ABC Amber Outlook Express Converter