Hi Bruno, > I'm posting on blog tonight or tomorrow morning some code that I wrote, Its > basically a component like yours, a SOffice Basic script, a shell executable > of course and a Java executable too... regarding this, let me know if > anything is wrong with it ok?
I'll do, probably tomorrow, since I have another issue at hand today. > A question: > We guess we will need modify some pieces of OOo source; for example, we will > need to mark in each paragraph object where are mistakes, so it seems this > object will need more attributes (proprieties); what do you think? > In Chapter 3 (Professional UNO) of Developer Guide, we read that it is > possible add properties to services. Can we use this concept to add > properties to paragraphs, which save correction state of these objects? If > not, what should be the best way? This can't be used for the required purpose. Even though there is a ParagraphProperties service one can not add properties at run-time. Also there is only one such service and you would need a way to store data for all paragraphs (with incorrect text) in all documents and must be able to identify them correctly. The amount of data to be stored would be rather large. And above all I think that is something the document should take care of. I have to ask Mathias if we have time to think about a suitable solution and implement it as well in the time frame of SoC already. For the time being I would suggest to just use existing character attributes e.g. CharUnderlining and life with it's disadvantages. You could choose for example a green value that differs in one or two bits (e.g. transparency values) from any common value a user is likely to choose and thus be able to identify the text portions with that value if you need to identify where it is used. I dare say though that if everything will be fine with the Dummy implementation / integration of the grammar checker it won't take us too long to add the missing functionality. ^_~ Thomas --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
