1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: fmsearch.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
34 #ifndef _COM_SUN_STAR_SDBC_XRESULTSET_HPP_
35 #include <com/sun/star/sdbc/XResultSet.hpp>
38 #define _SVSTDARR_STRINGSDTOR
39 #include <bf_svtools/svstdarr.hxx>
41 #ifndef _DIALOG_HXX //autogen
42 #include <vcl/dialog.hxx>
45 #ifndef _BUTTON_HXX //autogen
46 #include <vcl/button.hxx>
49 #ifndef _FIXED_HXX //autogen
50 #include <vcl/fixed.hxx>
53 #ifndef _EDIT_HXX //autogen
54 #include <vcl/edit.hxx>
57 #ifndef _SV_COMBOBOX_HXX //autogen
58 #include <vcl/combobox.hxx>
61 #ifndef _SV_LSTBOX_HXX //autogen
62 #include <vcl/lstbox.hxx>
65 #ifndef _LINK_HXX //autogen
66 #include <tools/link.hxx>
70 #ifndef _COMPHELPER_UNO3_HXX_
71 #include <comphelper/uno3.hxx>
73 #ifndef _COMPHELPER_STLTYPES_HXX_
74 #include <comphelper/stl_types.hxx>
76 FORWARD_DECLARE_INTERFACE(util
,XNumberFormatsSupplier
)
79 //FORWARD_DECLARE_INTERFACE(uno,Reference)
80 //STRIP008 FORWARD_DECLARE_INTERFACE(util,XNumberFormatsSupplier)
82 // ===================================================================================================
83 // moegliche Rueckgabewerte fuer den Found-Handler
84 #define FM_SEARCH_GETFOCUS_ASYNC 0x0001
85 // setzt den Fokus auf den Dialog nicht sofort nach dem Aufruf des Found-Handlers, sondern postet sich selber dafuer
88 #define MAX_HISTORY_ENTRIES 50
90 // ===================================================================================================
93 // check if the control has one of the interfaces we can use for searching
94 // *pCurrentText will be filled with the current text of the control (as used when searching this control)
96 // ===================================================================================================
99 struct FmFoundRecordInformation
101 ::com::sun::star::uno::Any aPosition
; // Bookmark des Datensatzes, in dem der Text gefunden wurde
102 sal_Int16 nFieldPos
; // dito : die relative Position der Spalte (im Stringnamen in Feldliste im Constructor)
103 sal_Int16 nContext
; // Kontext, in dem gesucht und gefunden wurde (falls die aktuelle Suche verschiedene solche kennt)
106 DECLARE_STL_VECTOR( ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XInterface
>, InterfaceArray
);
109 // ===================================================================================================
110 // = struct FmSearchContext - Informationen fuer Suche in verschiedenen Kontexten
111 // ===================================================================================================
113 struct FmSearchContext
116 sal_Int16 nContext
; // die Nummer des Kontextes
118 ::com::sun::star::uno::Reference
< ::com::sun::star::sdbc::XResultSet
> xCursor
; // der Iterator fuer diesen Kontext
119 String strUsedFields
; // eine Liste von durch ';' getrennten Feldnamen
120 InterfaceArray arrFields
; // die korrespondierenden Text-Interfaces fuer die Felder in strUsedFields
121 String sFieldDisplayNames
; // if not empty : names to be displayed for the searchable fields (must have the same token count as strUsedFields !)
124 // ===================================================================================================
125 // = class FmSearchDialog - Dialog fuer Suchen in Formularen/Tabellen
126 // ===================================================================================================
129 class FmSearchConfigItem
;
132 class FmSearchEngine
;
133 struct FmSearchProgress
;
136 }//end of namespace binfilter
137 #endif // _FMSEARCH_HXX