public: /** This can search in different sets of fields. There is a number of contexts; their names are in strContexts (separated by';'),theusercanchooseoneofthem. Whentheuserchoosesacontext,lnkContextSupplieriscalled,itgetsapointeronaFmSearchContext-structure, thathastobefilled. Thefollowingcountsforthesearch: a)incaseofformattedsearchtheiteratoritselfisused(likeinthefirstconstructor) b)incaseofformattedsearchNOTtheFormatKeyatthefieldsoftheiteratorisused,buttherespectiveTextComponent isasked(that'swhytheoriginaliteratorisused;byitsmovethecontrolsbehindtheTextComponent-interfaceare updatedhopefully) c)incaseofnot-formattedsearchacloneoftheiteratorisused(becausetheTextComponent-interfacesdon'tneedto beasked) (ofcourseneeded:thestringnumberiinstrUsedFieldsofacontextmustcorrespondwiththeinterfacenumberiinthe arrFieldsofthecontext)
*/
FmSearchDialog(weld::Window* pParent, const OUString& strInitialText, const std::vector<OUString>& _rContexts, sal_Int16 nInitialContext, const Link<FmSearchContext&, sal_uInt32>& lnkContextSupplier);
virtualshort run() override;
virtual ~FmSearchDialog() override;
/** The found-handler gets in the 'found'-case a pointer on a FmFoundRecordInformation-structure (whichisonlyvalidinthehandler;soifoneneedstomemorizethedata,don'tcopythepointerbut thestructure). ThishandlerMUSTbeset. Furthermore,itshouldbeconsidered,thatduringthehandlerthesearch-dialogisstillmodal.
*/ void SetFoundHandler(const Link<FmFoundRecordInformation&, void>& lnk)
{
m_lnkFoundHandler = lnk;
} /** Ifthesearchhasbeencancelledorhasbeenfinishedwithoutsuccess,thecurrentdatasetisalwaysdisplayedinthe searchdialog.Thishandlerexiststomakethissynchronouswiththepossibledisplayofthecaller(itdoesnot necessarilyneedtobeset). ThepointerthatispassedtothehandlerpointstoaFmFoundRecordInformation-structure,forwhichaPositionand possibly(inasearchwithcontexts)nContextarevalid.
*/ void SetCanceledNotFoundHdl(const Link<FmFoundRecordInformation&, void>& lnk)
{
m_lnkCanceledNotFoundHdl = lnk;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.