Inline styles

General TRichView support forum. Please post your questions here
Post Reply
Rob
Posts: 52
Joined: Wed Sep 07, 2005 6:47 am

Inline styles

Post by Rob »

Is there a way to use styles as inner styles?

An inline style is a style that defines a limited amoount of properties. Say, I would want to have a style that only defines bold, italic and underline. Is this possible?

The style should not change the size of the last style selected, nor should it use another font, etc...
Sergey Tkachenko
Site Admin
Posts: 17534
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

There is an option in SaveHTMLEx to save inline styles instead of CSS table, but it saves all styles, and HTML becomes very large.
Rob
Posts: 52
Joined: Wed Sep 07, 2005 6:47 am

Post by Rob »

Thanks for the quick response, but that is not what I mean.

I am just asking if it is possible to define a text style that - when selected - only changes a limited number of text properties.

So this is what my text looks like in pseudo code, the [S*] means a text style selection:

[S1]This is a [S3]nice[/S3] piece of text[/S1]
[S2]This is a [S3]nice[/S3] piece of text[/S2]

S1 is a tekst in style 'Times New Roman', without any additional options.
S2 is a tekst in style 'Courier New', without any additional options.
S3 defines ITALIC only. This will make the word 'nice' italic for S1 and S2 style.

Is this currently suported? If yes, how do I define the styles and how do I use them?
Sergey Tkachenko
Site Admin
Posts: 17534
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Something like this is planned for future, see StyleTemplate collection in TRVStyle)
Rob
Posts: 52
Joined: Wed Sep 07, 2005 6:47 am

Post by Rob »

OK, I'll put it on my wish list for implementing the ODT parser
Post Reply