LibreOffice Module sfx2 (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
sfx2::SearchDialog Class Referencefinal

#include <srchdlg.hxx>

Inheritance diagram for sfx2::SearchDialog:
[legend]
Collaboration diagram for sfx2::SearchDialog:
[legend]

Public Member Functions

 SearchDialog (weld::Window *pWindow, OUString aConfigName)
 
virtual ~SearchDialog () override
 
void SetFindHdl (const Link< SearchDialog &, void > &rLink)
 
void SetCloseHdl (const Link< LinkParamNone *, void > &rLink)
 
OUString GetSearchText () const
 
void SetSearchText (const OUString &_rText)
 
bool IsOnlyWholeWords () const
 
bool IsMarchCase () const
 
bool IsWrapAround () const
 
bool IsSearchBackwards () const
 
void SetFocusOnEdit ()
 
- Public Member Functions inherited from weld::GenericDialogController
 GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId, bool bMobile=false)
 
virtual DialoggetDialog () override
 
virtual ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override
 
- Public Member Functions inherited from weld::DialogController
virtual DialoggetDialog ()=0
 
const DialoggetConstDialog () const
 
virtual short run ()
 
void set_title (const OUString &rTitle)
 
OUString get_title () const
 
void set_help_id (const OUString &rHelpId)
 
OUString get_help_id () const
 
void response (int nResponse)
 
virtual ~DialogController () COVERITY_NOEXCEPT_FALSE
 

Static Public Member Functions

static void runAsync (const std::shared_ptr< SearchDialog > &rController)
 
- Static Public Member Functions inherited from weld::DialogController
static bool runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &)
 

Private Member Functions

void LoadConfig ()
 
void SaveConfig ()
 
 DECL_LINK (FindHdl, weld::Button &, void)
 

Private Attributes

Link< SearchDialog &, void > m_aFindHdl
 
Link< LinkParamNone *, void > m_aCloseHdl
 
OUString m_sConfigName
 
std::unique_ptr< weld::ComboBoxm_xSearchEdit
 
std::unique_ptr< weld::CheckButtonm_xWholeWordsBox
 
std::unique_ptr< weld::CheckButtonm_xMatchCaseBox
 
std::unique_ptr< weld::CheckButtonm_xWrapAroundBox
 
std::unique_ptr< weld::CheckButtonm_xBackwardsBox
 
std::unique_ptr< weld::Buttonm_xFindBtn
 

Additional Inherited Members

- Protected Attributes inherited from weld::GenericDialogController
std::unique_ptr< weld::Builderm_xBuilder
 
std::shared_ptr< weld::Dialogm_xDialog
 

Detailed Description

Definition at line 30 of file srchdlg.hxx.

Constructor & Destructor Documentation

◆ SearchDialog()

sfx2::SearchDialog::SearchDialog ( weld::Window pWindow,
OUString  aConfigName 
)

Definition at line 40 of file srchdlg.cxx.

References LINK, LoadConfig(), m_xFindBtn, and m_xSearchEdit.

◆ ~SearchDialog()

sfx2::SearchDialog::~SearchDialog ( )
overridevirtual

Definition at line 58 of file srchdlg.cxx.

References SaveConfig().

Member Function Documentation

◆ DECL_LINK()

sfx2::SearchDialog::DECL_LINK ( FindHdl  ,
weld::Button ,
void   
)
private

◆ GetSearchText()

OUString sfx2::SearchDialog::GetSearchText ( ) const
inline

Definition at line 58 of file srchdlg.hxx.

References m_xSearchEdit.

Referenced by SfxHelpTextWindow_Impl::FindHdl().

◆ IsMarchCase()

bool sfx2::SearchDialog::IsMarchCase ( ) const
inline

Definition at line 61 of file srchdlg.hxx.

References m_xMatchCaseBox.

Referenced by SfxHelpTextWindow_Impl::FindHdl().

◆ IsOnlyWholeWords()

bool sfx2::SearchDialog::IsOnlyWholeWords ( ) const
inline

Definition at line 60 of file srchdlg.hxx.

References m_xWholeWordsBox.

Referenced by SfxHelpTextWindow_Impl::FindHdl().

◆ IsSearchBackwards()

bool sfx2::SearchDialog::IsSearchBackwards ( ) const
inline

Definition at line 63 of file srchdlg.hxx.

References m_xBackwardsBox.

Referenced by SfxHelpTextWindow_Impl::FindHdl().

◆ IsWrapAround()

bool sfx2::SearchDialog::IsWrapAround ( ) const
inline

Definition at line 62 of file srchdlg.hxx.

References m_xWrapAroundBox.

Referenced by SfxHelpTextWindow_Impl::FindHdl().

◆ LoadConfig()

void sfx2::SearchDialog::LoadConfig ( )
private

◆ runAsync()

void sfx2::SearchDialog::runAsync ( const std::shared_ptr< SearchDialog > &  rController)
static

Definition at line 128 of file srchdlg.cxx.

References weld::DialogController::runAsync().

Referenced by SfxHelpTextWindow_Impl::DoSearch().

◆ SaveConfig()

void sfx2::SearchDialog::SaveConfig ( )
private

◆ SetCloseHdl()

void sfx2::SearchDialog::SetCloseHdl ( const Link< LinkParamNone *, void > &  rLink)
inline

Definition at line 56 of file srchdlg.hxx.

References m_aCloseHdl.

◆ SetFindHdl()

void sfx2::SearchDialog::SetFindHdl ( const Link< SearchDialog &, void > &  rLink)
inline

Definition at line 55 of file srchdlg.hxx.

References m_aFindHdl.

◆ SetFocusOnEdit()

void sfx2::SearchDialog::SetFocusOnEdit ( )

Definition at line 122 of file srchdlg.cxx.

References m_xSearchEdit.

◆ SetSearchText()

void sfx2::SearchDialog::SetSearchText ( const OUString &  _rText)
inline

Definition at line 59 of file srchdlg.hxx.

References m_xSearchEdit.

Member Data Documentation

◆ m_aCloseHdl

Link<LinkParamNone*,void> sfx2::SearchDialog::m_aCloseHdl
private

Definition at line 34 of file srchdlg.hxx.

Referenced by SetCloseHdl().

◆ m_aFindHdl

Link<SearchDialog&,void> sfx2::SearchDialog::m_aFindHdl
private

Definition at line 33 of file srchdlg.hxx.

Referenced by SetFindHdl().

◆ m_sConfigName

OUString sfx2::SearchDialog::m_sConfigName
private

Definition at line 36 of file srchdlg.hxx.

Referenced by LoadConfig(), and SaveConfig().

◆ m_xBackwardsBox

std::unique_ptr<weld::CheckButton> sfx2::SearchDialog::m_xBackwardsBox
private

Definition at line 42 of file srchdlg.hxx.

Referenced by IsSearchBackwards(), LoadConfig(), and SaveConfig().

◆ m_xFindBtn

std::unique_ptr<weld::Button> sfx2::SearchDialog::m_xFindBtn
private

Definition at line 43 of file srchdlg.hxx.

Referenced by SearchDialog().

◆ m_xMatchCaseBox

std::unique_ptr<weld::CheckButton> sfx2::SearchDialog::m_xMatchCaseBox
private

Definition at line 40 of file srchdlg.hxx.

Referenced by IsMarchCase(), LoadConfig(), and SaveConfig().

◆ m_xSearchEdit

std::unique_ptr<weld::ComboBox> sfx2::SearchDialog::m_xSearchEdit
private

◆ m_xWholeWordsBox

std::unique_ptr<weld::CheckButton> sfx2::SearchDialog::m_xWholeWordsBox
private

Definition at line 39 of file srchdlg.hxx.

Referenced by IsOnlyWholeWords(), LoadConfig(), and SaveConfig().

◆ m_xWrapAroundBox

std::unique_ptr<weld::CheckButton> sfx2::SearchDialog::m_xWrapAroundBox
private

Definition at line 41 of file srchdlg.hxx.

Referenced by IsWrapAround(), LoadConfig(), and SaveConfig().


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