Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : :
29 : : #ifndef _FMSEARCH_HXX
30 : : #define _FMSEARCH_HXX
31 : :
32 : : #include <com/sun/star/sdbc/XResultSet.hpp>
33 : : #include <vcl/dialog.hxx>
34 : : #include <vcl/button.hxx>
35 : : #include <vcl/fixed.hxx>
36 : : #include <vcl/edit.hxx>
37 : : #include <vcl/combobox.hxx>
38 : : #include <vcl/lstbox.hxx>
39 : : #include <comphelper/uno3.hxx>
40 : : #include <comphelper/stl_types.hxx>
41 : : #include <tools/string.hxx>
42 : : #include "svx/svxdllapi.h"
43 : :
44 : : namespace com { namespace sun { namespace star {
45 : : namespace util {
46 : : class XNumberFormatsSupplier;
47 : : }
48 : : }}}
49 : :
50 : : // ===================================================================================================
51 : : // Hilfsmethoden
52 : :
53 : : SVX_DLLPUBLIC sal_Bool IsSearchableControl( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface>& _xControl,
54 : : ::rtl::OUString* pCurrentText = NULL);
55 : : // check if the control has one of the interfaces we can use for searching
56 : : // *pCurrentText will be filled with the current text of the control (as used when searching this control)
57 : :
58 : : // ===================================================================================================
59 : : // Hilfsstrukturen
60 : :
61 : 0 : struct FmFoundRecordInformation
62 : : {
63 : : ::com::sun::star::uno::Any aPosition; // bookmark of the record in which the text was found
64 : : sal_Int16 nFieldPos; // ditto : the relative position of the column (in the string name of the field list in the constructor)
65 : : sal_Int16 nContext; // the context in which was searched and found (if the current search knows several contexts)
66 : : };
67 : :
68 : : // ===================================================================================================
69 : : // = struct FmSearchContext - informations for the search in different contexts
70 : : // ===================================================================================================
71 : :
72 [ # # ][ # # ]: 0 : struct FmSearchContext
[ # # ][ # # ]
[ # # ]
73 : : {
74 : : // [in]
75 : : sal_Int16 nContext; // the number of the context
76 : : // [out]
77 : : ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XResultSet> xCursor; // the iterator for the context
78 : : String strUsedFields; // a list of field names separeted by ';'
79 : : ::std::vector< ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > >
80 : : arrFields; // the corresponding text interfaces for the fields in strUsedFields
81 : : String sFieldDisplayNames; // if not empty : names to be displayed for the searchable fields (must have the same token count as strUsedFields !)
82 : : };
83 : :
84 : : #endif // _FMSEARCH_HXX
85 : :
86 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|