Thanks for your reply!
Stephan Wunderlich wrote:
Have you considered using a TextSection for this purpose ... seems to me that it fulfils what you need. The only tricky thing could be the modified stage this I don't think that sections implement a XModifyListener or something comparable.

Unfortunately, TextSections are always in a new paragraph. What I need is a field which can be embedded as a character like a user field. Let's call it UserSignature because of the example below, although a user signature will not be its only usage.

Example: see below
"blah bla bla\nYours, " is regular text, the rest of the example would be that kind of UserSignature field I need.
----------------------------- BEGIN EXAMPLE ---------------------
blah bla blah
Yours, Joe Colorful
/Secret Sales Manager/
A _/green/_ Company
--------------------------- END EXAMPLE ---------------------

The user will see a writer window (embedded in a java app) with the given example and can modify it. When he is done, he clicks a button in that java app, which analyzes the writer document. The java app should now be able to decide whether the user has modified its the UserSignature and, if it is not modified, replace it by some other string.

I can not find any example how to add new types of fields to openoffice, the developer guide shows how to make some uno components, but not how to make them insertable in oowriter. Can anyone give me a clue where I could start, which files do I have to copy, modify and compile? Is it possible to implement a UserSignature field in java? Or easier in c++?
Does anyone know where I could find some hints or examples?

Many Thanks,
Jan

Hope that helps

Regards

Stephan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Reply via email to