summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJürgen Schmidt <jsc@apache.org>2013-03-20 14:14:46 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-05-23 11:55:26 +0100
commit1959113eac6bb23310883c974ac40cba6f222493 (patch)
tree5474214954797653cb230be53dd01ed553e39d88 /include
parent403bfea10fb8ef5c4596d6a137aa22cc5b895ccf (diff)
Resolves: #i121730# add optional interface XRangeBasedSmartTagRecognizer
for SmartTags Patch by: Kai Labusch Review by: arielch, jsc (cherry picked from commit a64c066b02924371f486688df01b6881bcd0da8b) Conflicts: offapi/com/sun/star/smarttags/XSmartTagRecognizer.idl offapi/com/sun/star/smarttags/makefile.mk svx/inc/svx/SmartTagMgr.hxx svx/source/smarttags/SmartTagMgr.cxx sw/source/core/txtnode/txtedt.cxx Change-Id: I11f528b2c1a068d0b1db1e76c2f889c0632ab972
Diffstat (limited to 'include')
-rw-r--r--include/svx/SmartTagMgr.hxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/svx/SmartTagMgr.hxx b/include/svx/SmartTagMgr.hxx
index 836ff820650f..42563fd1a8ad 100644
--- a/include/svx/SmartTagMgr.hxx
+++ b/include/svx/SmartTagMgr.hxx
@@ -42,6 +42,7 @@ namespace com { namespace sun { namespace star { namespace smarttags {
namespace com { namespace sun { namespace star { namespace text {
class XTextMarkup;
+ class XTextRange;
} } } }
namespace com { namespace sun { namespace star { namespace i18n {
@@ -149,12 +150,17 @@ public:
The length of the text to be scanned.
*/
- void Recognize( const OUString& rText,
+
+ void RecognizeString( const OUString& rText,
const com::sun::star::uno::Reference< com::sun::star::text::XTextMarkup > xMarkup,
const com::sun::star::uno::Reference< com::sun::star::frame::XController > xController,
const com::sun::star::lang::Locale& rLocale,
sal_uInt32 nStart, sal_uInt32 nLen ) const;
+ void RecognizeTextRange(const com::sun::star::uno::Reference< com::sun::star::text::XTextRange> xRange,
+ const com::sun::star::uno::Reference< com::sun::star::text::XTextMarkup > xMarkup,
+ const com::sun::star::uno::Reference< com::sun::star::frame::XController > xController) const;
+
/** Returns all action references associated with a given list of smart tag types
@param rSmartTagTypes