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

#include <unosrch.hxx>

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

Public Member Functions

 SwXTextSearch ()
 
virtual sal_Int64 SAL_CALL getSomething (const css::uno::Sequence< sal_Int8 > &aIdentifier) override
 
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
 

Static Public Member Functions

static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId ()
 

Protected 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 37 of file unosrch.hxx.

Constructor & Destructor Documentation

SwXTextSearch::~SwXTextSearch ( )
overrideprotectedvirtual

Definition at line 448 of file unosrch.cxx.

References m_pReplaceProperties, and m_pSearchProperties.

SwXTextSearch::SwXTextSearch ( )

Definition at line 429 of file unosrch.cxx.

Member Function Documentation

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

Definition at line 569 of file unosrch.cxx.

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

Definition at line 579 of file unosrch.cxx.

void SwXTextSearch::FillReplaceItemSet ( SfxItemSet rSet) const

Definition at line 626 of file unosrch.cxx.

References m_bIsValueSearch, and m_pReplaceProperties.

Referenced by SwXTextDocument::replaceAll().

void SwXTextSearch::FillSearchItemSet ( SfxItemSet rSet) const

Definition at line 621 of file unosrch.cxx.

References m_bIsValueSearch, and m_pSearchProperties.

Referenced by SwXTextDocument::FindAny(), and SwXTextDocument::replaceAll().

void SwXTextSearch::FillSearchOptions ( i18nutil::SearchOptions2 rSearchOpt) const
OUString SwXTextSearch::getImplementationName ( )
overridevirtual

Definition at line 641 of file unosrch.cxx.

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

Definition at line 497 of file unosrch.cxx.

References SfxItemPropertySet::getPropertySetInfo(), and m_pPropSet.

uno::Any SwXTextSearch::getPropertyValue ( const OUString &  PropertyName)
overridevirtual
uno::Sequence< beans::PropertyValue > SwXTextSearch::getReplaceAttributes ( )
overridevirtual

Definition at line 611 of file unosrch.cxx.

References m_pReplaceProperties.

OUString SwXTextSearch::getReplaceString ( )
overridevirtual

Definition at line 485 of file unosrch.cxx.

References m_sReplaceText.

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

Definition at line 601 of file unosrch.cxx.

References m_pSearchProperties.

OUString SwXTextSearch::getSearchString ( )
overridevirtual

Definition at line 473 of file unosrch.cxx.

References m_sSearchText.

sal_Int64 SAL_CALL SwXTextSearch::getSomething ( const css::uno::Sequence< sal_Int8 > &  aIdentifier)
overridevirtual

Definition at line 464 of file unosrch.cxx.

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

Definition at line 651 of file unosrch.cxx.

const uno::Sequence< sal_Int8 > & SwXTextSearch::getUnoTunnelId ( )
static
sal_Bool SwXTextSearch::getValueSearch ( )
overridevirtual

Definition at line 589 of file unosrch.cxx.

References m_bIsValueSearch.

bool SwXTextSearch::HasReplaceAttributes ( ) const

Definition at line 636 of file unosrch.cxx.

References m_pReplaceProperties.

Referenced by SwXTextDocument::replaceAll().

bool SwXTextSearch::HasSearchAttributes ( ) const

Definition at line 631 of file unosrch.cxx.

References m_pSearchProperties.

Referenced by SwXTextDocument::FindAny(), and SwXTextDocument::replaceAll().

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

Definition at line 574 of file unosrch.cxx.

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

Definition at line 584 of file unosrch.cxx.

void SwXTextSearch::setPropertyValue ( const OUString &  aPropertyName,
const css::uno::Any &  aValue 
)
overridevirtual
void SwXTextSearch::setReplaceAttributes ( const css::uno::Sequence< css::beans::PropertyValue > &  aSearchAttribs)
overridevirtual

Definition at line 616 of file unosrch.cxx.

References m_pReplaceProperties.

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

Definition at line 491 of file unosrch.cxx.

References m_sReplaceText.

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

Definition at line 606 of file unosrch.cxx.

References m_pSearchProperties.

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

Definition at line 479 of file unosrch.cxx.

References m_sSearchText.

void SwXTextSearch::setValueSearch ( sal_Bool  ValueSearch_)
overridevirtual

Definition at line 595 of file unosrch.cxx.

References m_bIsValueSearch.

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

Definition at line 646 of file unosrch.cxx.

References cppu::supportsService().

Friends And Related Function Documentation

friend class SwXTextDocument
friend

Definition at line 44 of file unosrch.hxx.

Member Data Documentation

bool SwXTextSearch::m_bAll
private

Definition at line 53 of file unosrch.hxx.

Referenced by getPropertyValue(), and setPropertyValue().

bool SwXTextSearch::m_bBack
private
bool SwXTextSearch::m_bCase
private

Definition at line 57 of file unosrch.hxx.

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

bool SwXTextSearch::m_bExpr
private

Definition at line 56 of file unosrch.hxx.

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

bool SwXTextSearch::m_bIsValueSearch
private

Definition at line 65 of file unosrch.hxx.

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

bool SwXTextSearch::m_bLevRelax
private

Definition at line 60 of file unosrch.hxx.

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

bool SwXTextSearch::m_bSimilarity
private

Definition at line 59 of file unosrch.hxx.

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

bool SwXTextSearch::m_bStyles
private
bool SwXTextSearch::m_bWord
private

Definition at line 54 of file unosrch.hxx.

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

sal_Int16 SwXTextSearch::m_nLevAdd
private

Definition at line 62 of file unosrch.hxx.

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

sal_Int16 SwXTextSearch::m_nLevExchange
private

Definition at line 61 of file unosrch.hxx.

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

sal_Int16 SwXTextSearch::m_nLevRemove
private

Definition at line 63 of file unosrch.hxx.

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

const SfxItemPropertySet* SwXTextSearch::m_pPropSet
private

Definition at line 52 of file unosrch.hxx.

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

std::unique_ptr<SwSearchProperties_Impl> SwXTextSearch::m_pReplaceProperties
private
std::unique_ptr<SwSearchProperties_Impl> SwXTextSearch::m_pSearchProperties
private
OUString SwXTextSearch::m_sReplaceText
private
OUString SwXTextSearch::m_sSearchText
private

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