Changeset View
Changeset View
Standalone View
Standalone View
core/page.cpp
Show First 20 Lines • Show All 295 Lines • ▼ Show 20 Line(s) | |||||
296 | } | 296 | } | ||
297 | 297 | | |||
298 | bool Page::hasAnnotations() const | 298 | bool Page::hasAnnotations() const | ||
299 | { | 299 | { | ||
300 | return !m_annotations.isEmpty(); | 300 | return !m_annotations.isEmpty(); | ||
301 | } | 301 | } | ||
302 | 302 | | |||
303 | RegularAreaRect * Page::findText( int id, const QString & text, SearchDirection direction, | 303 | RegularAreaRect * Page::findText( int id, const QString & text, SearchDirection direction, | ||
304 | Qt::CaseSensitivity caseSensitivity, const RegularAreaRect *lastRect ) const | 304 | Qt::CaseSensitivity caseSensitivity, const RegularAreaRect *lastRect, | ||
305 | const bool wholeWords ) const | ||||
305 | { | 306 | { | ||
306 | RegularAreaRect* rect = nullptr; | 307 | RegularAreaRect* rect = nullptr; | ||
307 | if ( text.isEmpty() || !d->m_text ) | 308 | if ( text.isEmpty() || !d->m_text ) | ||
308 | return rect; | 309 | return rect; | ||
309 | 310 | rect = d->m_text->findText( id, text, direction, caseSensitivity, lastRect, wholeWords ); | |||
310 | rect = d->m_text->findText( id, text, direction, caseSensitivity, lastRect ); | | |||
311 | return rect; | 311 | return rect; | ||
312 | } | 312 | } | ||
313 | 313 | | |||
314 | RegularAreaRect * Page::findText( int id, const QString & text, SearchDirection direction, | ||||
315 | Qt::CaseSensitivity caseSensitivity, const RegularAreaRect *lastRect ) const | ||||
316 | { | ||||
317 | return findText( id, text, direction, caseSensitivity, lastRect, false); | ||||
318 | } | ||||
319 | | ||||
314 | QString Page::text( const RegularAreaRect * area ) const | 320 | QString Page::text( const RegularAreaRect * area ) const | ||
315 | { | 321 | { | ||
316 | return text( area, TextPage::AnyPixelTextAreaInclusionBehaviour ); | 322 | return text( area, TextPage::AnyPixelTextAreaInclusionBehaviour ); | ||
317 | } | 323 | } | ||
318 | 324 | | |||
319 | QString Page::text( const RegularAreaRect * area, TextPage::TextAreaInclusionBehaviour b ) const | 325 | QString Page::text( const RegularAreaRect * area, TextPage::TextAreaInclusionBehaviour b ) const | ||
320 | { | 326 | { | ||
321 | QString ret; | 327 | QString ret; | ||
▲ Show 20 Lines • Show All 808 Lines • Show Last 20 Lines |