22#include <com/sun/star/sdbc/XResultSet.hpp>
27#include <rtl/ustring.hxx>
31class FmSearchConfigItem;
58 std::unique_ptr<::svxform::FmSearchConfigItem>
m_pConfig;
104 const std::vector<OUString>& _rContexts, sal_Int16 nInitialContext,
107 virtual short run()
override;
136 void Init(std::u16string_view strVisibleFields,
const OUString& strInitialText);
139 void OnFound(
const css::uno::Any& aCursorPos, sal_Int16 nFieldPos);
168 void initCommon(
const css::uno::Reference<css::sdbc::XResultSet>& _rxCursor);
173 int nInitialField =
m_plbField->find_text(strField);
174 if (nInitialField == -1)
Dialog for searching in Forms/Tables.
std::unique_ptr< weld::Button > m_ppbApproxSettings
DECL_LINK(OnToggledFieldRadios, weld::Toggleable &, void)
std::unique_ptr< weld::Button > m_pbSearchAgain
std::unique_ptr< weld::CheckButton > m_pcbWildCard
void SetFoundHandler(const Link< FmFoundRecordInformation &, void > &lnk)
The found-handler gets in the 'found'-case a pointer on a FmFoundRecordInformation-structure (which i...
DECL_LINK(OnClickedSpecialSettings, weld::Button &, void)
void InitContext(sal_Int16 nContext)
std::unique_ptr< weld::Label > m_pftForm
std::unique_ptr< weld::CheckButton > m_pcbStartOver
DECL_LINK(OnToggledSearchRadio, weld::Toggleable &, void)
std::unique_ptr< weld::RadioButton > m_prbSingleField
std::unique_ptr< weld::CheckButton > m_pcbBackwards
void OnFound(const css::uno::Any &aCursorPos, sal_Int16 nFieldPos)
DECL_LINK(OnSearchProgress, const FmSearchProgress *, void)
void EnableSearchForDependees(bool bEnable)
std::unique_ptr< weld::ComboBox > m_plbForm
DECL_LINK(OnSearchTextModified, weld::ComboBox &, void)
DECL_LINK(OnFieldSelected, weld::ComboBox &, void)
void SetActiveField(const OUString &strField)
DECL_LINK(OnContextSelection, weld::ComboBox &, void)
std::unique_ptr< weld::CheckButton > m_pcbApprox
std::unique_ptr< weld::CheckButton > m_pcbRegular
std::unique_ptr< weld::CheckButton > m_pcbCase
void SetCanceledNotFoundHdl(const Link< FmFoundRecordInformation &, void > &lnk)
If the search has been cancelled or has been finished without success, the current data set is always...
std::unique_ptr< weld::CheckButton > m_pHalfFullFormsCJK
DECL_LINK(OnPositionSelected, weld::ComboBox &, void)
virtual short run() override
std::unique_ptr<::svxform::FmSearchConfigItem > m_pConfig
void initCommon(const css::uno::Reference< css::sdbc::XResultSet > &_rxCursor)
std::unique_ptr< weld::RadioButton > m_prbSearchForNotNull
DECL_LINK(OnCheckBoxToggled, weld::Toggleable &, void)
void EnableSearchUI(bool bEnable)
DECL_LINK(OnFocusGrabbed, weld::Widget &, void)
std::unique_ptr< weld::Label > m_pftHint
std::unique_ptr< weld::ComboBox > m_plbPosition
void Init(std::u16string_view strVisibleFields, const OUString &strInitialText)
Link< FmFoundRecordInformation &, void > m_lnkFoundHandler
Handler for "found".
DECL_LINK(OnClickedSearchAgain, weld::Button &, void)
std::unique_ptr< weld::RadioButton > m_prbAllFields
std::unique_ptr< weld::CheckButton > m_pSoundsLikeCJK
Link< FmFoundRecordInformation &, void > m_lnkCanceledNotFoundHdl
Handler for Positioning the Cursors.
std::unique_ptr< weld::Label > m_pftPosition
std::unique_ptr< weld::Button > m_pbClose
std::unique_ptr< weld::CheckButton > m_pcbUseFormat
FmSearchDialog(weld::Window *pParent, const OUString &strInitialText, const std::vector< OUString > &_rContexts, sal_Int16 nInitialContext, const Link< FmSearchContext &, sal_uInt32 > &lnkContextSupplier)
This can search in different sets of fields.
virtual ~FmSearchDialog() override
std::unique_ptr< FmSearchEngine > m_pSearchEngine
std::unique_ptr< weld::Button > m_pSoundsLikeCJKSettings
std::unique_ptr< weld::RadioButton > m_prbSearchForText
std::vector< OUString > m_arrContextFields
memorize the currently selected field for every context
Link< FmSearchContext &, sal_uInt32 > m_lnkContextSupplier
for search in contexts
std::unique_ptr< weld::ComboBox > m_plbField
std::unique_ptr< weld::ComboBox > m_pcmbSearchText
std::unique_ptr< weld::RadioButton > m_prbSearchForNull
std::unique_ptr< weld::Label > m_pftRecord