From a64c066b02924371f486688df01b6881bcd0da8b Mon Sep 17 00:00:00 2001 From: Jürgen Schmidt Date: Wed, 20 Mar 2013 14:14:46 +0000 Subject: #121730# add new optional interface XRangeBasedSmartTagRecognizer for SmartTags Patch by: Kai Labusch Review by: arielch, jsc --- .../smarttags/XRangeBasedSmartTagRecognizer.idl | 101 +++++++++++++++++++++ .../com/sun/star/smarttags/XSmartTagRecognizer.idl | 6 +- offapi/com/sun/star/smarttags/makefile.mk | 1 + 3 files changed, 107 insertions(+), 1 deletion(-) create mode 100644 offapi/com/sun/star/smarttags/XRangeBasedSmartTagRecognizer.idl (limited to 'offapi') diff --git a/offapi/com/sun/star/smarttags/XRangeBasedSmartTagRecognizer.idl b/offapi/com/sun/star/smarttags/XRangeBasedSmartTagRecognizer.idl new file mode 100644 index 000000000000..c7671a555cc6 --- /dev/null +++ b/offapi/com/sun/star/smarttags/XRangeBasedSmartTagRecognizer.idl @@ -0,0 +1,101 @@ +/************************************************************** + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + *************************************************************/ + + + +#ifndef __com_sun_star_smarttags_XRangeBasedSmartTagRecognizer_idl__ +#define __com_sun_star_smarttags_XRangeBasedSmartTagRecognizer_idl__ + +#ifndef __com_sun_star_uno_XInitialization_idl__ +#include +#endif + +#ifndef __com_sun_star_lang_Locale_idl__ +#include +#endif + +#ifndef __com_sun_star_smarttags_SmartTagRecognizerMode_idl__ +#include +#endif + +#ifndef __com_sun_star_text_XTextMarkup_idl__ +#include +#endif + +#ifndef __com_sun_star_frame_XController_idl__ +#include +#endif + +#ifndef __com_sun_star_lang_IndexOutOfBoundsException_idl__ +#include +#endif + +#ifndef __com_sun_star_text_XTextRange_idl__ +#include +#endif + + +//============================================================================= + +module com { module sun { module star { module smarttags { + +//============================================================================= + +/** + provides access to a range based smart tag recognizer. + */ + +interface XRangeBasedSmartTagRecognizer: com::sun::star::lang::XInitialization +{ + + //------------------------------------------------------------------------- + /** recognizes smart tags. + + @param xRange + The text that should be scanned by the recognizer. + + @param eDataType + This value indicates the type of the passed text. + + @param aLocale + Is used to indicate the language of the passed text. + + @param xTextMarkup + This object is used to submit any recognized smart tags + to the calling application. + + @param aApplicationName + A string containing the name of the calling application. + + @param xController + The current controller of the document. + */ + + void recognizeTextRange( [in] com::sun::star::text::XTextRange xRange, + [in] SmartTagRecognizerMode eDataType, + [in] com::sun::star::text::XTextMarkup xTextMarkup, + [in] string aApplicationName, + [in] com::sun::star::frame::XController xController); +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/smarttags/XSmartTagRecognizer.idl b/offapi/com/sun/star/smarttags/XSmartTagRecognizer.idl index 31efc4c6edc7..6cf33f97323c 100644 --- a/offapi/com/sun/star/smarttags/XSmartTagRecognizer.idl +++ b/offapi/com/sun/star/smarttags/XSmartTagRecognizer.idl @@ -52,6 +52,11 @@ #include #endif +#ifndef __com_sun_star_text_XTextRange_idl__ +#include +#endif + + //============================================================================= module com { module sun { module star { module smarttags { @@ -178,7 +183,6 @@ interface XSmartTagRecognizer: com::sun::star::lang::XInitialization [in] com::sun::star::frame::XController xController, [in] com::sun::star::i18n::XBreakIterator xTokenizer ); - //------------------------------------------------------------------------- /** indicates whether there is a property page for a smart tag type. diff --git a/offapi/com/sun/star/smarttags/makefile.mk b/offapi/com/sun/star/smarttags/makefile.mk index 227483ba9b6a..77675f32deb9 100644 --- a/offapi/com/sun/star/smarttags/makefile.mk +++ b/offapi/com/sun/star/smarttags/makefile.mk @@ -37,6 +37,7 @@ IDLFILES=\ SmartTagAction.idl\ SmartTagRecognizer.idl\ SmartTagRecognizerMode.idl\ + XRangeBasedSmartTagRecognizer.idl\ XSmartTagAction.idl\ XSmartTagRecognizer.idl -- cgit