diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-01-02 15:56:33 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-01-02 15:56:33 +0000 |
commit | 82bce89b029c5006dec32d45fa8989687578d2bb (patch) | |
tree | 2912db5ce246085640137ada2480297fb0fcfd0a /offapi/com/sun/star/smarttags | |
parent | a6c7d83c98275db646351999d1e305ade431f9c2 (diff) |
INTEGRATION: CWS smarttags (1.1.2); FILE ADDED
2006/12/21 13:05:37 jakob_lechner 1.1.2.1: #i72705#: support for smarttags
Diffstat (limited to 'offapi/com/sun/star/smarttags')
-rw-r--r-- | offapi/com/sun/star/smarttags/XSmartTagAction.idl | 173 | ||||
-rw-r--r-- | offapi/com/sun/star/smarttags/XSmartTagRecognizer.idl | 138 |
2 files changed, 311 insertions, 0 deletions
diff --git a/offapi/com/sun/star/smarttags/XSmartTagAction.idl b/offapi/com/sun/star/smarttags/XSmartTagAction.idl new file mode 100644 index 000000000000..b8f2794402b8 --- /dev/null +++ b/offapi/com/sun/star/smarttags/XSmartTagAction.idl @@ -0,0 +1,173 @@ +/************************************************************************* + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: XSmartTagAction.idl,v $ + * + * $Revision: 1.2 $ + * + * last change: $Author: hr $ $Date: 2007-01-02 16:56:23 $ + * + * The Contents of this file are made available subject to + * the terms of GNU Lesser General Public License Version 2.1. + * + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2005 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * Initial Contributer was Fabalabs Software GmbH, Jakob Lechner + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + ************************************************************************/ +#ifndef __com_sun_star_smarttags_XSmartTagAction_idl__ +#define __com_sun_star_smarttags_XSmartTagAction_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif +#ifndef __com_sun_star_uno_XInitialization_idl__ +#include <com/sun/star/lang/XInitialization.idl> +#endif +#ifndef __com_sun_star_text_XTextRange_idl__ +#include <com/sun/star/text/XTextRange.idl> +#endif +#ifndef __com_sun_star_frame_XController_idl__ +#include <com/sun/star/frame/XController.idl> +#endif + + +module com { module sun { module star { module smarttags { + + + interface XSmartTagAction: com::sun::star::uno::XInterface + { + /** + Function: getName + + @return Name of the smarttag action library + */ + string getName(); + + /** + Function: getDescription + + @return Description of the smarttag action library + */ + string getDescription(); + + /** + Function: getSmartTagCount + + @return Number of available smarttags in this action library + */ + long getSmartTagCount(); + + /** + Function: getSmartTagName + + @param sal_Int32 nSmartTagIndex + Index of the wanted smarttag. Value needs to + be between 0 and the number of smarttags available (exclusively). + + @return Returns the name of one specific smarttag in this + action library. This is needed for associating the actions with the corresponding + recognizer. + */ + string getSmartTagName([in] long nSmartTagIndex); + + /** + Function: getSmartTagCaption + + @param sal_Int32 nSmartTagIndex + Index of the wanted smarttag. Value needs to + be between 0 and the number of smarttags available (exclusively). + + @return Returns the caption of one specific smarttag in this + action library. + */ + string getSmartTagCaption([in] long nSmartTagIndex, + [in] com::sun::star::frame::XController xController); + + /** + Function: getActionCount + + @param sal_Int32 nSmartTagIndex + Index of the wanted smarttag. Value needs to + be between 0 and the number of smarttags available (exclusively). + + @return Returns the number of available actions of one specific smarttag in this + action library + */ + long getActionCount([in] long nSmartTagIndex, + [in] com::sun::star::frame::XController xController); + + /** + Function: getActionCaption + + @param sal_Int32 nSmartTagIndex + Index of the wanted smarttag. Value needs to + be between 0 and the number of smarttags available (exclusively). + + @param sal_Int32 nActionIndex + Index of the wanted action. Value needs to + be between 0 and the number of actions available for the specified + smarttag (exclusively). + + @return Returns the caption of an action for one specific smarttag in this + action library. + */ + string getActionCaption([in] long nSmartTagIndex, [in] long nActionIndex, + [in] com::sun::star::frame::XController xController); + + /** + Function: invokeAction + + @param sal_Int32 nSmartTagIndex + Index of the wanted smarttag. Value needs to + be between 0 and the number of smarttags available (exclusively). + + @param sal_Int32 nActionIndex + Index of the wanted action. Value needs to + be between 0 and the number of actions available for the specified + smarttag (exclusively). + + @param OUString aWord + Word that was recognized as actionable. + + */ + void invokeAction([in] long nSmartTagIndex, [in] long nActionIndex, [in] com::sun::star::text::XTextRange xRange, + [in] com::sun::star::frame::XController xController ); + + /** initializes the object. + + <p>It should be called directly after the object is created. + */ + void initialize( [in] sequence<any> aArguments ); + + }; + + service SmartTagAction + { + // exported interfaces: + interface XSmartTagAction; + }; + + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/smarttags/XSmartTagRecognizer.idl b/offapi/com/sun/star/smarttags/XSmartTagRecognizer.idl new file mode 100644 index 000000000000..2b02f4afcf3f --- /dev/null +++ b/offapi/com/sun/star/smarttags/XSmartTagRecognizer.idl @@ -0,0 +1,138 @@ +/************************************************************************* + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: XSmartTagRecognizer.idl,v $ + * + * $Revision: 1.2 $ + * + * last change: $Author: hr $ $Date: 2007-01-02 16:56:33 $ + * + * The Contents of this file are made available subject to + * the terms of GNU Lesser General Public License Version 2.1. + * + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2005 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * Initial Contributer was Fabalabs Software GmbH, Jakob Lechner + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + ************************************************************************/ +#ifndef __com_sun_star_smarttags_XSmartTagRecognizer_idl__ +#define __com_sun_star_smarttags_XSmartTagRecognizer_idl__ + +#ifndef __com_sun_star_uno_XInterface_idl__ +#include <com/sun/star/uno/XInterface.idl> +#endif +#ifndef __com_sun_star_uno_XInitialization_idl__ +#include <com/sun/star/lang/XInitialization.idl> +#endif +#ifndef __com_sun_star_text_XTextRange_idl__ +#include <com/sun/star/text/XTextRange.idl> +#endif +#ifndef __com_sun_star_frame_XController_idl__ +#include <com/sun/star/frame/XController.idl> +#endif + + +module com { module sun { module star { module smarttags { + + + interface XSmartTagRecognizer: com::sun::star::uno::XInterface + { + /** + Function: getName + + @return Name of the smarttag recognizer + */ + string getName(); + + /** + Function: getDescription + + @return Description of the smarttag recognizer + */ + string getDescription(); + + /** + Function: getSmartTagCount + + @return Number of available smarttags of this recognizer + */ + long getSmartTagCount(); + + /** + Function: getSmartTagName + + @param sal_Int32 nSmartTagIndex + Index of the wanted smarttag. Value needs to + be between 0 and the number of smarttags available (exclusively). + + @return Returns the name of one specific smarttag in this + recognizer. This name is needed to associate the recognizer part of a smarttag + with the action part. + */ + string getSmartTagName([in] long nSmartTagIndex); + + /** + Function: getSmartTagCaption + + @param sal_Int32 nSmartTagIndex + Index of the wanted smarttag. Value needs to + be between 0 and the number of smarttags available (exclusively). + + @return Returns the caption of one specific smarttag in this + recognizer. + */ + string getSmartTagCaption([in] long nSmartTagIndex, + [in] com::sun::star::frame::XController xController); + + /** + Function: Recognize + + @param OUString aWord + Word that shall be checked by smarttag. + + @param sal_Int32 nSmartTagIndex + Index of the wanted smarttag. Value needs to + be between 0 and the number of smarttags available (exclusively). + + @return Returns true if the specified word is recognized by smarttag. + */ + boolean Recognize([in] string aWord, [in] long nSmartTagIndex, + [in] com::sun::star::frame::XController xController); + + /** initializes the object. + + <p>It should be called directly after the object is created. + */ + void initialize( [in] sequence<any> aArguments ); + + }; + + service SmartTagRecognizer + { + // exported interfaces: + interface XSmartTagRecognizer; + }; + + +}; }; }; }; + +#endif |