trichview.com

trichview.support




Re: how to apply superscript with vshift?


Return to index


Author

Message

Sergey Tkachenko

Posted: 04/19/2004 20:35:31


Yes, in the XML document that you sent to me the styles the you expect to be

subscript and superscript both have VShift=0.


If you need to use a fixed number of styles, you can simply save XML

documents without styles.

RVXML.SaveStyles := False;

RVXML.StyleLoadingMode := slmIgnore.


or


The document that you sent to me has 17 styles, while TRVStyle on the form

contains only 10 styles. So you do not need to add new styles, simply assign

properties of the existing styles (see my answer by e-mail).


or


If you do not have a special reason to use a fixed predefined set of styles,

you can add styles when they are needed (using ApplyStyleConversion method),

see Demos\Delphi\Editors\Editor 2


> I have now found that it works okay with new documents, but if I load an

> existing document (which hasn't a superscript style defined) the style is

> applied but not visible. I have all my styles predefined and marked as

standard.

> Now that a new style (with superscript) is defined it seems old documents

> can not automatically use the new style. Do I have to check every time

when

> I want to use a new style if it exists and if not add it (e.g with

FindSuchStyle)

> ?





Powered by ABC Amber Outlook Express Converter