LibreOffice Module sw (master) 1
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
SwXTextSearch Class Referencefinal

#include <unosrch.hxx>

Inheritance diagram for SwXTextSearch:
[legend]
Collaboration diagram for SwXTextSearch:
[legend]

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_Implm_pSearchProperties
 
std::unique_ptr< SwSearchProperties_Implm_pReplaceProperties
 
const SfxItemPropertySetm_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
 

Detailed Description

Definition at line 36 of file unosrch.hxx.

Constructor & Destructor Documentation

◆ ~SwXTextSearch()

SwXTextSearch::~SwXTextSearch ( )
overrideprivatevirtual

Definition at line 375 of file unosrch.cxx.

References m_pReplaceProperties, and m_pSearchProperties.

◆ SwXTextSearch()

SwXTextSearch::SwXTextSearch ( )

Definition at line 356 of file unosrch.cxx.

Member Function Documentation

◆ addPropertyChangeListener()

void SwXTextSearch::addPropertyChangeListener ( const OUString &  aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  xListener 
)
overridevirtual

Definition at line 481 of file unosrch.cxx.

◆ addVetoableChangeListener()

void SwXTextSearch::addVetoableChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  aListener 
)
overridevirtual

Definition at line 491 of file unosrch.cxx.

◆ FillReplaceItemSet()

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().

◆ FillSearchItemSet()

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().

◆ FillSearchOptions()

void SwXTextSearch::FillSearchOptions ( i18nutil::SearchOptions2 rSearchOpt) const

◆ getImplementationName()

OUString SwXTextSearch::getImplementationName ( )
overridevirtual

Definition at line 553 of file unosrch.cxx.

◆ getPropertySetInfo()

uno::Reference< beans::XPropertySetInfo > SwXTextSearch::getPropertySetInfo ( )
overridevirtual

Definition at line 409 of file unosrch.cxx.

References SfxItemPropertySet::getPropertySetInfo(), and m_pPropSet.

◆ getPropertyValue()

uno::Any SwXTextSearch::getPropertyValue ( const OUString &  PropertyName)
overridevirtual

◆ getReplaceAttributes()

uno::Sequence< beans::PropertyValue > SwXTextSearch::getReplaceAttributes ( )
overridevirtual

Definition at line 523 of file unosrch.cxx.

References m_pReplaceProperties.

◆ getReplaceString()

OUString SwXTextSearch::getReplaceString ( )
overridevirtual

Definition at line 397 of file unosrch.cxx.

References m_sReplaceText.

◆ getSearchAttributes()

uno::Sequence< beans::PropertyValue > SwXTextSearch::getSearchAttributes ( )
overridevirtual

Definition at line 513 of file unosrch.cxx.

References m_pSearchProperties.

◆ getSearchString()

OUString SwXTextSearch::getSearchString ( )
overridevirtual

Definition at line 385 of file unosrch.cxx.

References m_sSearchText.

◆ getSupportedServiceNames()

uno::Sequence< OUString > SwXTextSearch::getSupportedServiceNames ( )
overridevirtual

Definition at line 563 of file unosrch.cxx.

◆ getValueSearch()

sal_Bool SwXTextSearch::getValueSearch ( )
overridevirtual

Definition at line 501 of file unosrch.cxx.

References m_bIsValueSearch.

◆ HasReplaceAttributes()

bool SwXTextSearch::HasReplaceAttributes ( ) const

Definition at line 548 of file unosrch.cxx.

References m_pReplaceProperties.

Referenced by SwXTextDocument::replaceAll().

◆ HasSearchAttributes()

bool SwXTextSearch::HasSearchAttributes ( ) const

Definition at line 543 of file unosrch.cxx.

References m_pSearchProperties.

Referenced by SwXTextDocument::replaceAll().

◆ removePropertyChangeListener()

void SwXTextSearch::removePropertyChangeListener ( const OUString &  aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  aListener 
)
overridevirtual

Definition at line 486 of file unosrch.cxx.

◆ removeVetoableChangeListener()

void SwXTextSearch::removeVetoableChangeListener ( const OUString &  PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  aListener 
)
overridevirtual

Definition at line 496 of file unosrch.cxx.

◆ setPropertyValue()

void SwXTextSearch::setPropertyValue ( const OUString &  aPropertyName,
const css::uno::Any &  aValue 
)
overridevirtual

◆ setReplaceAttributes()

void SwXTextSearch::setReplaceAttributes ( const css::uno::Sequence< css::beans::PropertyValue > &  aSearchAttribs)
overridevirtual

Definition at line 528 of file unosrch.cxx.

References m_pReplaceProperties.

◆ setReplaceString()

void SwXTextSearch::setReplaceString ( const OUString &  aReplaceString)
overridevirtual

Definition at line 403 of file unosrch.cxx.

References m_sReplaceText.

◆ setSearchAttributes()

void SwXTextSearch::setSearchAttributes ( const css::uno::Sequence< css::beans::PropertyValue > &  aSearchAttribs)
overridevirtual

Definition at line 518 of file unosrch.cxx.

References m_pSearchProperties.

◆ setSearchString()

void SwXTextSearch::setSearchString ( const OUString &  aString)
overridevirtual

Definition at line 391 of file unosrch.cxx.

References m_sSearchText.

◆ setValueSearch()

void SwXTextSearch::setValueSearch ( sal_Bool  ValueSearch_)
overridevirtual

Definition at line 507 of file unosrch.cxx.

References m_bIsValueSearch.

◆ supportsService()

sal_Bool SwXTextSearch::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 558 of file unosrch.cxx.

References cppu::supportsService().

Friends And Related Function Documentation

◆ SwXTextDocument

friend class SwXTextDocument
friend

Definition at line 42 of file unosrch.hxx.

Member Data Documentation

◆ m_bAll

bool SwXTextSearch::m_bAll
private

Definition at line 51 of file unosrch.hxx.

Referenced by getPropertyValue(), and setPropertyValue().

◆ m_bBack

bool SwXTextSearch::m_bBack
private

Definition at line 53 of file unosrch.hxx.

Referenced by getPropertyValue(), SwXTextDocument::replaceAll(), and setPropertyValue().

◆ m_bCase

bool SwXTextSearch::m_bCase
private

Definition at line 55 of file unosrch.hxx.

Referenced by FillSearchOptions(), getPropertyValue(), and setPropertyValue().

◆ m_bExpr

bool SwXTextSearch::m_bExpr
private

Definition at line 54 of file unosrch.hxx.

Referenced by FillSearchOptions(), getPropertyValue(), and setPropertyValue().

◆ m_bIsValueSearch

bool SwXTextSearch::m_bIsValueSearch
private

Definition at line 63 of file unosrch.hxx.

Referenced by FillReplaceItemSet(), FillSearchItemSet(), getValueSearch(), and setValueSearch().

◆ m_bLevRelax

bool SwXTextSearch::m_bLevRelax
private

Definition at line 58 of file unosrch.hxx.

Referenced by FillSearchOptions(), getPropertyValue(), and setPropertyValue().

◆ m_bSimilarity

bool SwXTextSearch::m_bSimilarity
private

Definition at line 57 of file unosrch.hxx.

Referenced by FillSearchOptions(), getPropertyValue(), and setPropertyValue().

◆ m_bStyles

bool SwXTextSearch::m_bStyles
private

Definition at line 56 of file unosrch.hxx.

Referenced by getPropertyValue(), SwXTextDocument::replaceAll(), and setPropertyValue().

◆ m_bWord

bool SwXTextSearch::m_bWord
private

Definition at line 52 of file unosrch.hxx.

Referenced by FillSearchOptions(), getPropertyValue(), and setPropertyValue().

◆ m_nLevAdd

sal_Int16 SwXTextSearch::m_nLevAdd
private

Definition at line 60 of file unosrch.hxx.

Referenced by FillSearchOptions(), getPropertyValue(), and setPropertyValue().

◆ m_nLevExchange

sal_Int16 SwXTextSearch::m_nLevExchange
private

Definition at line 59 of file unosrch.hxx.

Referenced by FillSearchOptions(), getPropertyValue(), and setPropertyValue().

◆ m_nLevRemove

sal_Int16 SwXTextSearch::m_nLevRemove
private

Definition at line 61 of file unosrch.hxx.

Referenced by FillSearchOptions(), getPropertyValue(), and setPropertyValue().

◆ m_pPropSet

const SfxItemPropertySet* SwXTextSearch::m_pPropSet
private

Definition at line 50 of file unosrch.hxx.

Referenced by getPropertySetInfo(), getPropertyValue(), and setPropertyValue().

◆ m_pReplaceProperties

std::unique_ptr<SwSearchProperties_Impl> SwXTextSearch::m_pReplaceProperties
private

◆ m_pSearchProperties

std::unique_ptr<SwSearchProperties_Impl> SwXTextSearch::m_pSearchProperties
private

◆ m_sReplaceText

OUString SwXTextSearch::m_sReplaceText
private

◆ m_sSearchText

OUString SwXTextSearch::m_sSearchText
private

The documentation for this class was generated from the following files: