trichview.com

trichview.support




Re: Paragraph...


Return to index


Author

Message

Sergey Tkachenko

Posted: 05/15/2002 22:43:47


Yes, you are right. Paragraph attributes are not stored directly in the

document, they are in RVStyle.ParaStyles collection.

But all these formattings can be saved with document after the proper set of

options (right click RichViewEdit in Delphi IDE, choose "Settings" in the

context menu, choose "Allow adding styles dynamically").


There are no problems applying some changes to the selected paragraphs - you

can reuse existing paragraph styles, if possible.

This is a memory efficient scheme, because a new memory is allocated only

for paragraph styles with unique formatting.


Demo of applying changes to selected paragraph:

http://www.trichview.com/support/files/redit.zip

(it requires components that can be found at

Demos\Delphi\Assorted\RichEdit\Components\)


In the latest version (available for registered users) such operations are

fully automated by a set of actions (for Delphi and C++Builder 4,5,6).



> OK, the way a paragraph looks (border, indent, etc.) in a RVEdit is stored

> in the parastyles collection? So when I change say, the indent of the

first

> paragraph, every other paragraph that is using that same parastyle will

also

> have their indent changed. Then, for me to have different borders,

indents,

> etc. for every paragraph in a document. I would have to add a new

parastyle

> to the collection for each and every paragraph in a document, including

all

> paragraphs in a table, right?

>

> In other words, the paragraph itself doesn't store it's own formatting

> information. All the formatting information is stored in a parainfo item

in

> the parastyles collection?

>

>





Powered by ABC Amber Outlook Express Converter