Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 : #ifndef INCLUDED_DBACCESS_SOURCE_UI_INC_QUERYORDER_HXX
20 : #define INCLUDED_DBACCESS_SOURCE_UI_INC_QUERYORDER_HXX
21 :
22 : #include <vcl/dialog.hxx>
23 :
24 : #include <vcl/lstbox.hxx>
25 :
26 : #include <vcl/edit.hxx>
27 :
28 : #include <vcl/fixed.hxx>
29 :
30 : #include <vcl/button.hxx>
31 :
32 : #define DOG_ROWS 3
33 :
34 : namespace com
35 : {
36 : namespace sun
37 : {
38 : namespace star
39 : {
40 : namespace sdb
41 : {
42 : class XSingleSelectQueryComposer;
43 : }
44 : namespace sdbc
45 : {
46 : class XConnection;
47 : }
48 : namespace container
49 : {
50 : class XNameAccess;
51 : }
52 : }
53 : }
54 : }
55 :
56 : // DlgOrderCrit
57 : namespace dbaui
58 : {
59 : class DlgOrderCrit : public ModalDialog
60 : {
61 : protected:
62 : ListBox* m_pLB_ORDERFIELD1;
63 : ListBox* m_pLB_ORDERVALUE1;
64 : ListBox* m_pLB_ORDERFIELD2;
65 : ListBox* m_pLB_ORDERVALUE2;
66 : ListBox* m_pLB_ORDERFIELD3;
67 : ListBox* m_pLB_ORDERVALUE3;
68 : OUString aSTR_NOENTRY;
69 : OUString m_sOrgOrder;
70 :
71 : ::com::sun::star::uno::Reference< ::com::sun::star::sdb::XSingleSelectQueryComposer> m_xQueryComposer;
72 : ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess> m_xColumns;
73 : ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection> m_xConnection;
74 :
75 : ListBox* m_aColumnList[DOG_ROWS];
76 : ListBox* m_aValueList[DOG_ROWS];
77 :
78 : DECL_LINK( FieldListSelectHdl, ListBox * );
79 : void EnableLines();
80 :
81 : public:
82 : DlgOrderCrit( vcl::Window * pParent,
83 : const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection>& _rxConnection,
84 : const ::com::sun::star::uno::Reference< ::com::sun::star::sdb::XSingleSelectQueryComposer>& _rxComposer,
85 : const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess>& _rxCols);
86 :
87 : virtual ~DlgOrderCrit();
88 : void BuildOrderPart();
89 :
90 : OUString GetOrderList( ) const;
91 0 : OUString GetOrignalOrder() const { return m_sOrgOrder; }
92 :
93 : private:
94 : void impl_initializeOrderList_nothrow();
95 : };
96 : }
97 : #endif // INCLUDED_DBACCESS_SOURCE_UI_INC_QUERYORDER_HXX
98 :
99 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|