fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / dbaccess / source / ui / inc / queryorder.hxx
blob46da94464b534ac94553f5c11bd4b77fd5f27f06
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef INCLUDED_DBACCESS_SOURCE_UI_INC_QUERYORDER_HXX
20 #define INCLUDED_DBACCESS_SOURCE_UI_INC_QUERYORDER_HXX
22 #include <vcl/dialog.hxx>
24 #include <vcl/lstbox.hxx>
26 #include <vcl/edit.hxx>
28 #include <vcl/fixed.hxx>
30 #include <vcl/button.hxx>
32 #define DOG_ROWS 3
34 namespace com
36 namespace sun
38 namespace star
40 namespace sdb
42 class XSingleSelectQueryComposer;
44 namespace sdbc
46 class XConnection;
48 namespace container
50 class XNameAccess;
56 // DlgOrderCrit
57 namespace dbaui
59 class DlgOrderCrit : public ModalDialog
61 protected:
62 VclPtr<ListBox> m_pLB_ORDERFIELD1;
63 VclPtr<ListBox> m_pLB_ORDERVALUE1;
64 VclPtr<ListBox> m_pLB_ORDERFIELD2;
65 VclPtr<ListBox> m_pLB_ORDERVALUE2;
66 VclPtr<ListBox> m_pLB_ORDERFIELD3;
67 VclPtr<ListBox> m_pLB_ORDERVALUE3;
68 OUString aSTR_NOENTRY;
69 OUString m_sOrgOrder;
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;
75 VclPtr<ListBox> m_aColumnList[DOG_ROWS];
76 VclPtr<ListBox> m_aValueList[DOG_ROWS];
78 DECL_LINK( FieldListSelectHdl, ListBox * );
79 void EnableLines();
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 virtual ~DlgOrderCrit();
87 virtual void dispose() SAL_OVERRIDE;
89 void BuildOrderPart();
91 OUString GetOrderList( ) const;
92 OUString GetOrignalOrder() const { return m_sOrgOrder; }
94 private:
95 void impl_initializeOrderList_nothrow();
98 #endif // INCLUDED_DBACCESS_SOURCE_UI_INC_QUERYORDER_HXX
100 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */