Changeset View
Changeset View
Standalone View
Standalone View
core/textpage_p.h
Show All 36 Lines | |||||
37 | */ | 37 | */ | ||
38 | typedef QList<RegionText> RegionTextList; | 38 | typedef QList<RegionText> RegionTextList; | ||
39 | 39 | | |||
40 | class TextPagePrivate | 40 | class TextPagePrivate | ||
41 | { | 41 | { | ||
42 | public: | 42 | public: | ||
43 | TextPagePrivate(); | 43 | TextPagePrivate(); | ||
44 | ~TextPagePrivate(); | 44 | ~TextPagePrivate(); | ||
45 | // To be merged with wholeWords = false | ||||
46 | RegularAreaRect * findTextInternalForward( int searchID, const QString &query, | ||||
47 | TextComparisonFunction comparer, | ||||
48 | const TextList::ConstIterator &start, | ||||
49 | int start_offset, | ||||
50 | const TextList::ConstIterator &end, | ||||
51 | bool wholeWords ); | ||||
52 | RegularAreaRect * findTextInternalBackward( int searchID, const QString &query, | ||||
53 | TextComparisonFunction comparer, | ||||
54 | const TextList::ConstIterator &start, | ||||
55 | int start_offset, | ||||
56 | const TextList::ConstIterator &end, | ||||
57 | bool wholeWords ); | ||||
45 | 58 | | |||
46 | RegularAreaRect * findTextInternalForward( int searchID, const QString &query, | 59 | RegularAreaRect * findTextInternalForward( int searchID, const QString &query, | ||
47 | TextComparisonFunction comparer, | 60 | TextComparisonFunction comparer, | ||
48 | const TextList::ConstIterator &start, | 61 | const TextList::ConstIterator &start, | ||
49 | int start_offset, | 62 | int start_offset, | ||
50 | const TextList::ConstIterator &end); | 63 | const TextList::ConstIterator &end ); | ||
51 | RegularAreaRect * findTextInternalBackward( int searchID, const QString &query, | 64 | RegularAreaRect * findTextInternalBackward( int searchID, const QString &query, | ||
52 | TextComparisonFunction comparer, | 65 | TextComparisonFunction comparer, | ||
53 | const TextList::ConstIterator &start, | 66 | const TextList::ConstIterator &start, | ||
54 | int start_offset, | 67 | int start_offset, | ||
55 | const TextList::ConstIterator &end ); | 68 | const TextList::ConstIterator &end ); | ||
56 | 69 | | |||
57 | /** | 70 | /** | ||
58 | * Copy a TextList to m_words, the pointers of list are adopted | 71 | * Copy a TextList to m_words, the pointers of list are adopted | ||
59 | */ | 72 | */ | ||
60 | void setWordList(const TextList &list); | 73 | void setWordList(const TextList &list); | ||
61 | 74 | | |||
75 | | ||||
76 | bool isWholeWord( const TextList::ConstIterator &start, | ||||
77 | const TextList::ConstIterator &end); | ||||
78 | | ||||
62 | /** | 79 | /** | ||
63 | * Make necessary modifications in the TextList to make the text order correct, so | 80 | * Make necessary modifications in the TextList to make the text order correct, so | ||
64 | * that textselection works fine | 81 | * that textselection works fine | ||
65 | */ | 82 | */ | ||
66 | void correctTextOrder(); | 83 | void correctTextOrder(); | ||
67 | 84 | | |||
68 | // variables those can be accessed directly from TextPage | 85 | // variables those can be accessed directly from TextPage | ||
69 | TextList m_words; | 86 | TextList m_words; | ||
Show All 10 Lines |