Hi,

I have written an IDL file and transformed this into a rdb registry
and into c header files. I have named the rdb file "smarttags.rdb" and
placed it into the program directory of my OOo installation.
Up to my ideas every smarttag component has to be registered in this
file. Then the smarttag manager can open it and extract the names of 
all the registered implemenations of the smarttag service and
subsequently create an instance of each implementation.
I hope this is a reasonable concept.


Am Dienstag, den 05.09.2006, 14:58 +0200 schrieb Frank Meies:
> 5. For each SmartTagReference in this vector, a string/action pair is 
> obtained from the associated SmartTagLibrary, the strings will appear in 
> the context menu and the invokeAction function will be triggered if a 
> context menu entry is invoked. A UNO textrange object can be passed as a 
> parameter of the invokeAction function to enable the SmartTagLibrary to 
> change the text etc.
> 

Currently I'm writing an example component that implements the smarttag
service and I have thought again about your proposal to pass a TextRange
object to the invokeAction method. Wouldn't it be better to pass a 
reference of the whole document as well? May be someone wants to do
more complex interactions with the document than just modifying text.

In the developers guide I've found a figure about the Text document 
model:
http://api.openoffice.org/docs/DevelopersGuide/Text/Text.xhtml#1_1_Overview

As far as I have understood the XController service is the basic service
that should be passed to provide access to the whole document in the
invokeAction method. As far as I've seen there is a method called
"getCurrentController" in the SwXTextDocument class. Probably this
method could be used to obtain the XController reference when calling
the invokeAction method.

Are my assumptions correct or completely wrong or is there are better
way to do this?

Best regards

-- 
Jakob Lechner
Research & Development
Fabalabs Software GmbH
Honauerstraße 4
A-4020 Linz
Tel.: [+43] (70) 60 61 62
Fax: [+43] (70) 60 61 62-609
E-Mail: [EMAIL PROTECTED]
Web: http://www.fabalabs.org


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

Reply via email to