TRVEditRVData.ApplyParaStyle feature?
Posted: Mon Apr 28, 2008 5:49 am
Greetings!
Sergey, I've found some unintelligible moments in this routine.
When we select table partially - and make parastyle conversion to partial selected table (not for all cells) - it works fine in part of
But when whole table is selected - it changes parastyle for table and for all of cells
It looks strange due to its behaviour - it's not MS Word style, and it's strange - because table selected from outside and its cells haven't be affected by outside parastyle conversion.
I think, it's necessary to exclude this part of code or change it in following way
PS This part of code works fine, when making selection inside the table
Best regards,
Michael
Sergey, I've found some unintelligible moments in this routine.
When we select table partially - and make parastyle conversion to partial selected table (not for all cells) - it works fine in part of
Code: Select all
if FPartialSelectedItem<>nil then begin
FPartialSelectedItem.ApplyStyleConversionToSubRVDatas(ParaStyleNo, True, ConvType);
exit;
end;
Code: Select all
for i := SelStartNo to SelEndNo do
GetItem(i).ApplyStyleConversionToSubRVDatas(ParaStyleNo, False, ConvType);
I think, it's necessary to exclude this part of code or change it in following way
Code: Select all
for i := SelStartNo to SelEndNo do
begin
if GetItem(i).StyleNo <> -60 then
GetItem(i).ApplyStyleConversionToSubRVDatas(ParaStyleNo, False, ConvType);
end;
Best regards,
Michael