1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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>
42 class XSingleSelectQueryComposer
;
59 class DlgOrderCrit
: public ModalDialog
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
;
71 css::uno::Reference
< css::sdb::XSingleSelectQueryComposer
> m_xQueryComposer
;
72 css::uno::Reference
< css::container::XNameAccess
> m_xColumns
;
73 css::uno::Reference
< css::sdbc::XConnection
> m_xConnection
;
75 VclPtr
<ListBox
> m_aColumnList
[DOG_ROWS
];
76 VclPtr
<ListBox
> m_aValueList
[DOG_ROWS
];
78 DECL_LINK_TYPED( FieldListSelectHdl
, ListBox
&, void );
82 DlgOrderCrit( vcl::Window
* pParent
,
83 const css::uno::Reference
< css::sdbc::XConnection
>& _rxConnection
,
84 const css::uno::Reference
< css::sdb::XSingleSelectQueryComposer
>& _rxComposer
,
85 const css::uno::Reference
< css::container::XNameAccess
>& _rxCols
);
86 virtual ~DlgOrderCrit();
87 virtual void dispose() override
;
89 void BuildOrderPart();
91 OUString
GetOrderList( ) const;
92 const OUString
& GetOrignalOrder() const { return m_sOrgOrder
; }
95 void impl_initializeOrderList_nothrow();
98 #endif // INCLUDED_DBACCESS_SOURCE_UI_INC_QUERYORDER_HXX
100 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */