textsearch.hxx (cdf0e10c) textsearch.hxx (cc450e3a)
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *

--- 24 unchanged lines hidden (view full) ---

33#include <com/sun/star/i18n/XBreakIterator.hpp>
34#include <cppuhelper/implbase2.hxx> // helper for implementations
35#include <com/sun/star/i18n/XExtendedTransliteration.hpp>
36#include <com/sun/star/i18n/XCharacterClassification.hpp>
37#include <com/sun/star/lang/XServiceInfo.hpp>
38
39#include <map>
40
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *

--- 24 unchanged lines hidden (view full) ---

33#include <com/sun/star/i18n/XBreakIterator.hpp>
34#include <cppuhelper/implbase2.hxx> // helper for implementations
35#include <com/sun/star/i18n/XExtendedTransliteration.hpp>
36#include <com/sun/star/i18n/XCharacterClassification.hpp>
37#include <com/sun/star/lang/XServiceInfo.hpp>
38
39#include <map>
40
41class Regexpr;
41#include <unicode/regex.h>
42using namespace U_ICU_NAMESPACE;
43typedef U_ICU_NAMESPACE::UnicodeString IcuUniString;
44
42class WLevDistance;
43typedef ::std::map< sal_Unicode, sal_Int32 > TextSearchJumpTable;
44
45// ----------------------------------------------------
45class WLevDistance;
46typedef ::std::map< sal_Unicode, sal_Int32 > TextSearchJumpTable;
47
48// ----------------------------------------------------
46// class SearchClass
49// class TextSearch
47// ----------------------------------------------------
48class TextSearch: public cppu::WeakImplHelper2
49<
50 ::com::sun::star::util::XTextSearch,
51 ::com::sun::star::lang::XServiceInfo
52>
53{
54 ::com::sun::star::uno::Reference < ::com::sun::star::lang::XMultiServiceFactory > xMSF;

--- 33 unchanged lines hidden (view full) ---

88 sal_Int32 startPos, sal_Int32 endPos )
89 throw(::com::sun::star::uno::RuntimeException);
90 ::com::sun::star::util::SearchResult SAL_CALL
91 NSrchBkwrd( const ::rtl::OUString& searchStr,
92 sal_Int32 startPos, sal_Int32 endPos )
93 throw(::com::sun::star::uno::RuntimeException);
94
95 // Members and methods for the regular expression search
50// ----------------------------------------------------
51class TextSearch: public cppu::WeakImplHelper2
52<
53 ::com::sun::star::util::XTextSearch,
54 ::com::sun::star::lang::XServiceInfo
55>
56{
57 ::com::sun::star::uno::Reference < ::com::sun::star::lang::XMultiServiceFactory > xMSF;

--- 33 unchanged lines hidden (view full) ---

91 sal_Int32 startPos, sal_Int32 endPos )
92 throw(::com::sun::star::uno::RuntimeException);
93 ::com::sun::star::util::SearchResult SAL_CALL
94 NSrchBkwrd( const ::rtl::OUString& searchStr,
95 sal_Int32 startPos, sal_Int32 endPos )
96 throw(::com::sun::star::uno::RuntimeException);
97
98 // Members and methods for the regular expression search
96 Regexpr* pRegExp;
99 RegexMatcher* pRegexMatcher;
97 ::com::sun::star::util::SearchResult SAL_CALL
98 RESrchFrwrd( const ::rtl::OUString& searchStr,
99 sal_Int32 startPos, sal_Int32 endPos )
100 throw(::com::sun::star::uno::RuntimeException);
101 ::com::sun::star::util::SearchResult SAL_CALL
102 RESrchBkwrd( const ::rtl::OUString& searchStr,
103 sal_Int32 startPos, sal_Int32 endPos )
104 throw(::com::sun::star::uno::RuntimeException);

--- 40 unchanged lines hidden (view full) ---

145 virtual rtl::OUString SAL_CALL getImplementationName(void)
146 throw( ::com::sun::star::uno::RuntimeException );
147 virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName)
148 throw( ::com::sun::star::uno::RuntimeException );
149 virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void)
150 throw( ::com::sun::star::uno::RuntimeException );
151};
152
100 ::com::sun::star::util::SearchResult SAL_CALL
101 RESrchFrwrd( const ::rtl::OUString& searchStr,
102 sal_Int32 startPos, sal_Int32 endPos )
103 throw(::com::sun::star::uno::RuntimeException);
104 ::com::sun::star::util::SearchResult SAL_CALL
105 RESrchBkwrd( const ::rtl::OUString& searchStr,
106 sal_Int32 startPos, sal_Int32 endPos )
107 throw(::com::sun::star::uno::RuntimeException);

--- 40 unchanged lines hidden (view full) ---

148 virtual rtl::OUString SAL_CALL getImplementationName(void)
149 throw( ::com::sun::star::uno::RuntimeException );
150 virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName)
151 throw( ::com::sun::star::uno::RuntimeException );
152 virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void)
153 throw( ::com::sun::star::uno::RuntimeException );
154};
155
153
154#endif
156#endif