LibreOffice Module sw (master) 1
|
#include <unosrch.hxx>
Public Member Functions | |
SwXTextSearch () | |
virtual OUString SAL_CALL | getSearchString () override |
virtual void SAL_CALL | setSearchString (const OUString &aString) override |
virtual OUString SAL_CALL | getReplaceString () override |
virtual void SAL_CALL | setReplaceString (const OUString &aReplaceString) override |
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | getPropertySetInfo () override |
virtual void SAL_CALL | setPropertyValue (const OUString &aPropertyName, const css::uno::Any &aValue) override |
virtual css::uno::Any SAL_CALL | getPropertyValue (const OUString &PropertyName) override |
virtual void SAL_CALL | addPropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override |
virtual void SAL_CALL | removePropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override |
virtual void SAL_CALL | addVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override |
virtual void SAL_CALL | removeVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override |
virtual sal_Bool SAL_CALL | getValueSearch () override |
virtual void SAL_CALL | setValueSearch (sal_Bool ValueSearch_) override |
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL | getSearchAttributes () override |
virtual void SAL_CALL | setSearchAttributes (const css::uno::Sequence< css::beans::PropertyValue > &aSearchAttribs) override |
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL | getReplaceAttributes () override |
virtual void SAL_CALL | setReplaceAttributes (const css::uno::Sequence< css::beans::PropertyValue > &aSearchAttribs) override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
void | FillSearchItemSet (SfxItemSet &rSet) const |
void | FillReplaceItemSet (SfxItemSet &rSet) const |
bool | HasSearchAttributes () const |
bool | HasReplaceAttributes () const |
void | FillSearchOptions (i18nutil::SearchOptions2 &rSearchOpt) const |
Private Member Functions | |
virtual | ~SwXTextSearch () override |
Private Attributes | |
OUString | m_sSearchText |
OUString | m_sReplaceText |
std::unique_ptr< SwSearchProperties_Impl > | m_pSearchProperties |
std::unique_ptr< SwSearchProperties_Impl > | m_pReplaceProperties |
const SfxItemPropertySet * | m_pPropSet |
bool | m_bAll: 1 |
bool | m_bWord: 1 |
bool | m_bBack: 1 |
bool | m_bExpr: 1 |
bool | m_bCase: 1 |
bool | m_bStyles:1 |
bool | m_bSimilarity: 1 |
bool | m_bLevRelax:1 |
sal_Int16 | m_nLevExchange |
sal_Int16 | m_nLevAdd |
sal_Int16 | m_nLevRemove |
bool | m_bIsValueSearch:1 |
Friends | |
class | SwXTextDocument |
Definition at line 36 of file unosrch.hxx.
|
overrideprivatevirtual |
Definition at line 375 of file unosrch.cxx.
References m_pReplaceProperties, and m_pSearchProperties.
SwXTextSearch::SwXTextSearch | ( | ) |
Definition at line 356 of file unosrch.cxx.
|
overridevirtual |
Definition at line 481 of file unosrch.cxx.
|
overridevirtual |
Definition at line 491 of file unosrch.cxx.
void SwXTextSearch::FillReplaceItemSet | ( | SfxItemSet & | rSet | ) | const |
Definition at line 538 of file unosrch.cxx.
References m_bIsValueSearch, m_pReplaceProperties, and rSet.
Referenced by SwXTextDocument::replaceAll().
void SwXTextSearch::FillSearchItemSet | ( | SfxItemSet & | rSet | ) | const |
Definition at line 533 of file unosrch.cxx.
References m_bIsValueSearch, m_pSearchProperties, and rSet.
Referenced by SwXTextDocument::replaceAll().
void SwXTextSearch::FillSearchOptions | ( | i18nutil::SearchOptions2 & | rSearchOpt | ) | const |
Definition at line 568 of file unosrch.cxx.
References i18nutil::SearchOptions2::AlgorithmType2, i18nutil::SearchOptions2::changedChars, i18nutil::SearchOptions2::deletedChars, GetAppLanguageTag(), LanguageTag::getLocale(), i18nutil::SearchOptions2::insertedChars, i18nutil::SearchOptions2::Locale, m_bCase, m_bExpr, m_bLevRelax, m_bSimilarity, m_bWord, m_nLevAdd, m_nLevExchange, m_nLevRemove, m_sReplaceText, m_sSearchText, i18nutil::SearchOptions2::replaceString, i18nutil::SearchOptions2::searchFlag, i18nutil::SearchOptions2::searchString, and i18nutil::SearchOptions2::transliterateFlags.
Referenced by SwXTextDocument::replaceAll().
|
overridevirtual |
Definition at line 553 of file unosrch.cxx.
|
overridevirtual |
Definition at line 409 of file unosrch.cxx.
References SfxItemPropertySet::getPropertySetInfo(), and m_pPropSet.
|
overridevirtual |
Definition at line 445 of file unosrch.cxx.
References SfxItemPropertyMap::getByName(), SfxItemPropertySet::getPropertyMap(), m_bAll, m_bBack, m_bCase, m_bExpr, m_bLevRelax, m_bSimilarity, m_bStyles, m_bWord, m_nLevAdd, m_nLevExchange, m_nLevRemove, m_pPropSet, SfxItemPropertyMapEntry::nWID, WID_BACKWARDS, WID_CASE_SENSITIVE, WID_REGULAR_EXPRESSION, WID_SEARCH_ALL, WID_SIMILARITY, WID_SIMILARITY_ADD, WID_SIMILARITY_EXCHANGE, WID_SIMILARITY_RELAX, WID_SIMILARITY_REMOVE, WID_STYLES, and WID_WORDS.
|
overridevirtual |
Definition at line 523 of file unosrch.cxx.
References m_pReplaceProperties.
|
overridevirtual |
Definition at line 397 of file unosrch.cxx.
References m_sReplaceText.
|
overridevirtual |
Definition at line 513 of file unosrch.cxx.
References m_pSearchProperties.
|
overridevirtual |
Definition at line 385 of file unosrch.cxx.
References m_sSearchText.
|
overridevirtual |
Definition at line 563 of file unosrch.cxx.
|
overridevirtual |
Definition at line 501 of file unosrch.cxx.
References m_bIsValueSearch.
bool SwXTextSearch::HasReplaceAttributes | ( | ) | const |
Definition at line 548 of file unosrch.cxx.
References m_pReplaceProperties.
Referenced by SwXTextDocument::replaceAll().
bool SwXTextSearch::HasSearchAttributes | ( | ) | const |
Definition at line 543 of file unosrch.cxx.
References m_pSearchProperties.
Referenced by SwXTextDocument::replaceAll().
|
overridevirtual |
Definition at line 486 of file unosrch.cxx.
|
overridevirtual |
Definition at line 496 of file unosrch.cxx.
|
overridevirtual |
Definition at line 415 of file unosrch.cxx.
References SfxItemPropertyMap::getByName(), SfxItemPropertySet::getPropertyMap(), m_bAll, m_bBack, m_bCase, m_bExpr, m_bLevRelax, m_bSimilarity, m_bStyles, m_bWord, m_nLevAdd, m_nLevExchange, m_nLevRemove, m_pPropSet, SfxItemPropertyMapEntry::nFlags, SfxItemPropertyMapEntry::nWID, o3tl::tryAccess< bool >(), WID_BACKWARDS, WID_CASE_SENSITIVE, WID_REGULAR_EXPRESSION, WID_SEARCH_ALL, WID_SIMILARITY, WID_SIMILARITY_ADD, WID_SIMILARITY_EXCHANGE, WID_SIMILARITY_RELAX, WID_SIMILARITY_REMOVE, WID_STYLES, and WID_WORDS.
|
overridevirtual |
Definition at line 528 of file unosrch.cxx.
References m_pReplaceProperties.
|
overridevirtual |
Definition at line 403 of file unosrch.cxx.
References m_sReplaceText.
|
overridevirtual |
Definition at line 518 of file unosrch.cxx.
References m_pSearchProperties.
|
overridevirtual |
Definition at line 391 of file unosrch.cxx.
References m_sSearchText.
|
overridevirtual |
Definition at line 507 of file unosrch.cxx.
References m_bIsValueSearch.
|
overridevirtual |
Definition at line 558 of file unosrch.cxx.
References cppu::supportsService().
|
friend |
Definition at line 42 of file unosrch.hxx.
|
private |
Definition at line 51 of file unosrch.hxx.
Referenced by getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 53 of file unosrch.hxx.
Referenced by getPropertyValue(), SwXTextDocument::replaceAll(), and setPropertyValue().
|
private |
Definition at line 55 of file unosrch.hxx.
Referenced by FillSearchOptions(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 54 of file unosrch.hxx.
Referenced by FillSearchOptions(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 63 of file unosrch.hxx.
Referenced by FillReplaceItemSet(), FillSearchItemSet(), getValueSearch(), and setValueSearch().
|
private |
Definition at line 58 of file unosrch.hxx.
Referenced by FillSearchOptions(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 57 of file unosrch.hxx.
Referenced by FillSearchOptions(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 56 of file unosrch.hxx.
Referenced by getPropertyValue(), SwXTextDocument::replaceAll(), and setPropertyValue().
|
private |
Definition at line 52 of file unosrch.hxx.
Referenced by FillSearchOptions(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 60 of file unosrch.hxx.
Referenced by FillSearchOptions(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 59 of file unosrch.hxx.
Referenced by FillSearchOptions(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 61 of file unosrch.hxx.
Referenced by FillSearchOptions(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 50 of file unosrch.hxx.
Referenced by getPropertySetInfo(), getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 48 of file unosrch.hxx.
Referenced by FillReplaceItemSet(), getReplaceAttributes(), HasReplaceAttributes(), setReplaceAttributes(), and ~SwXTextSearch().
|
private |
Definition at line 47 of file unosrch.hxx.
Referenced by FillSearchItemSet(), getSearchAttributes(), HasSearchAttributes(), setSearchAttributes(), and ~SwXTextSearch().
|
private |
Definition at line 45 of file unosrch.hxx.
Referenced by FillSearchOptions(), getReplaceString(), SwXTextDocument::replaceAll(), and setReplaceString().
|
private |
Definition at line 44 of file unosrch.hxx.
Referenced by FillSearchOptions(), getSearchString(), SwXTextDocument::replaceAll(), and setSearchString().