Hello, 

I think this smart tag API is very usefull, specially for integrating
OOo with other components (Wikipedia, eclipse-like quickfix, linguistic
tools ...)
I have several requests about that API.

* First, I wanted to ask if this API will be available from the whole
OpenOffice.org suite and not only from OOo Writer. The wiki page[1]
suggests that the API is only available for the OOo Writer.

* Again, the description in the wiki states that the recognize() method
decides for each word if it has a specific meaning or not. I can however
imagine many use cases where one would rather assign sequences of words
or even phrases a specified meaning. Think at words like "New York" or
"The Red Hot Chili Peppers". I would also like to highlight salutation
at the end of emails and associate them with some useful actions (e.g.
replace this salutation by an other one)

* Finally, I have a personal request: can the highlighting color of the
words be dependent on the kind of the recognized smart-tag?

[1]http://wiki.services.openoffice.org/wiki/Smart_Tags

Thanks, 
Daniel

> 
> 
>           Type: info
>          Title: Introduction of new Smart Tag API
>      Posted by: [EMAIL PROTECTED]
>       Affected: sw
> Effective from: cws smarttags3
> 
> 
> *Summary*
> --------
> New Smart Tag API in ::com::sun::star::smarttags
> 
> *Description*
> -------------
> With OOo 2.2, a first draft of a Smart Tag API has been introduced.
> That API only provided some basic Smart Tag functionality which had to
> be enhanced in many regards. An overview about Smart Tags and the
> current (OOo 2.2) Smart Tag API can be found here:
> 
> http://wiki.services.openoffice.org/wiki/Smart_Tags
> 
> For the new Smart Tag API, new services/interfaces have been
> introduced:
> 
> New services:
> +com.sun.star.smarttags.SmartTagRecognizer
> +com.sun.star.smarttags.SmartTagAction
> 
> New interfaces:
> +com.sun.star.smarttags.XSmartTagRecognizer
> +com.sun.star.smarttags.XSmartTagAction
> +com.sun.star.text.XTextMarkup
> +com.sun.star.container.XStringKeyMap 
> 
> New enums/constant groups:
> +com.sun.star.smarttags.SmartTagRecognizerMode
> +com.sun.star.text.TextMarkupType
> 
> 
> Short Description of the services/interfaces:
> 
> - A SmartTagRecognizer is used to find smart tags in a document. Note:
> There may be a couple of installed SmartTagRecognizer components.
> 
> - A SmartTagAction defines actions associated with smart tags. Note:
> There may be a couple of installed SmartTagAction components.
> 
> - SmartTagRecognizerMode is used to specify the type of text
> (paragraph, cell content, single word) passed to the recognize
> function of the SmartTagRecognizer service.
> 
> - The XTextMarkup interface provides functionality to highlight the
> text of a paragraph. This interface is used by the recognize function
> of the SmartTagRecognizer service to mark text as smart tags.
> 
> - TextMarkupType defines some constants to specify the type of the
> highlighted text (smart tag, spell check, grammar check).
> 
> - The interface XStringKeyMap provides functions to map strings to
> anys. This is used to associate user defined data with the smart tag
> identified by a SmartTagRecognizer. This user defined data will be
> stored together with the smart tag and passed to a SmartTagAction on
> invocation. 
> 
> 
> For more information see the respective IDL files.
> 
> 
> 

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

Reply via email to