1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23
24#ifndef __com_sun_star_smarttags_XRangeBasedSmartTagRecognizer_idl__
25#define __com_sun_star_smarttags_XRangeBasedSmartTagRecognizer_idl__
26
27#ifndef __com_sun_star_uno_XInitialization_idl__
28#include <com/sun/star/lang/XInitialization.idl>
29#endif
30
31#ifndef __com_sun_star_lang_Locale_idl__
32#include <com/sun/star/lang/Locale.idl>
33#endif
34
35#ifndef __com_sun_star_smarttags_SmartTagRecognizerMode_idl__
36#include <com/sun/star/smarttags/SmartTagRecognizerMode.idl>
37#endif
38
39#ifndef __com_sun_star_text_XTextMarkup_idl__
40#include <com/sun/star/text/XTextMarkup.idl>
41#endif
42
43#ifndef __com_sun_star_frame_XController_idl__
44#include <com/sun/star/frame/XController.idl>
45#endif
46
47#ifndef __com_sun_star_lang_IndexOutOfBoundsException_idl__
48#include <com/sun/star/lang/IndexOutOfBoundsException.idl>
49#endif
50
51#ifndef __com_sun_star_text_XTextRange_idl__
52#include <com/sun/star/text/XTextRange.idl>
53#endif
54
55
56//=============================================================================
57
58module com {  module sun {  module star {  module smarttags {
59
60//=============================================================================
61
62/**
63    provides access to a range based smart tag recognizer.
64 */
65
66interface XRangeBasedSmartTagRecognizer: com::sun::star::lang::XInitialization
67{
68
69    //-------------------------------------------------------------------------
70    /** recognizes smart tags.
71
72        @param xRange
73                The text that should be scanned by the recognizer.
74
75        @param eDataType
76                This value indicates the type of the passed text.
77
78        @param xTextMarkup
79                This object is used to submit any recognized smart tags
80                to the calling application.
81
82        @param aApplicationName
83                A string containing the name of the calling application.
84
85        @param xController
86                The current controller of the document.
87     */
88
89    void recognizeTextRange( [in] com::sun::star::text::XTextRange xRange,
90                       [in] SmartTagRecognizerMode eDataType,
91                       [in] com::sun::star::text::XTextMarkup xTextMarkup,
92                       [in] string aApplicationName,
93                       [in] com::sun::star::frame::XController xController);
94};
95
96}; }; }; };
97
98#endif
99