34#define MAX_SAVE_COUNT sal_uInt16(10)
41 : GenericDialogController(pWindow,
"sfx/ui/searchdialog.ui",
"SearchDialog")
42 , m_sConfigName(
std::move(aConfigName))
43 , m_xSearchEdit(m_xBuilder->weld_combo_box(
"searchterm"))
44 , m_xWholeWordsBox(m_xBuilder->weld_check_button(
"wholewords"))
45 , m_xMatchCaseBox(m_xBuilder->weld_check_button(
"matchcase"))
46 , m_xWrapAroundBox(m_xBuilder->weld_check_button(
"wrap"))
47 , m_xBackwardsBox(m_xBuilder->weld_check_button(
"backwards"))
48 , m_xFindBtn(m_xBuilder->weld_button(
"ok"))
70 if ( aUserItem >>= sUserData )
74 OUString sSearchText = sUserData.getToken( 0,
';', nIdx );
82 m_xSearchEdit->append_text(sSearchText.getToken( 0,
'\t', nIdx));
105 Any aUserItem( sUserData );
111 OUString sSrchTxt = m_xSearchEdit->get_active_text();
112 auto nPos = m_xSearchEdit->find_text(sSrchTxt);
116 m_xSearchEdit->remove(
nPos);
117 m_xSearchEdit->insert_text(0, sSrchTxt);
119 m_aFindHdl.Call( *
this );
css::uno::Any GetUserItem(const OUString &sName) const
void SetUserItem(const OUString &sName, const css::uno::Any &aValue)
SearchDialog(weld::Window *pWindow, OUString aConfigName)
std::unique_ptr< weld::CheckButton > m_xBackwardsBox
std::unique_ptr< weld::CheckButton > m_xMatchCaseBox
std::unique_ptr< weld::ComboBox > m_xSearchEdit
virtual ~SearchDialog() override
std::unique_ptr< weld::CheckButton > m_xWrapAroundBox
static void runAsync(const std::shared_ptr< SearchDialog > &rController)
std::unique_ptr< weld::Button > m_xFindBtn
std::unique_ptr< weld::CheckButton > m_xWholeWordsBox
static bool runAsync(const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &)
#define DBG_ASSERT(sCon, aError)
#define LINK(Instance, Class, Member)
OString stripStart(const OString &rIn, char c)
sal_Int32 getTokenCount(std::string_view rIn, char cTok)
sal_Int32 toInt32(std::u16string_view str, sal_Int16 radix=10)
std::basic_string_view< charT, traits > getToken(std::basic_string_view< charT, traits > sv, charT delimiter, std::size_t &position)
IMPL_LINK_NOARG(SvDDELinkEditDialog, EditHdl_Impl, weld::Entry &, void)