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 .
21 #include <vcl/weld.hxx>
25 namespace com::sun::star
{
28 class XSingleSelectQueryComposer
;
43 class DlgOrderCrit final
: public weld::GenericDialogController
47 css::uno::Reference
< css::sdb::XSingleSelectQueryComposer
> m_xQueryComposer
;
48 css::uno::Reference
< css::container::XNameAccess
> m_xColumns
;
49 css::uno::Reference
< css::sdbc::XConnection
> m_xConnection
;
51 weld::ComboBox
* m_aColumnList
[DOG_ROWS
];
52 weld::ComboBox
* m_aValueList
[DOG_ROWS
];
54 std::unique_ptr
<weld::ComboBox
> m_xLB_ORDERFIELD1
;
55 std::unique_ptr
<weld::ComboBox
> m_xLB_ORDERVALUE1
;
56 std::unique_ptr
<weld::ComboBox
> m_xLB_ORDERFIELD2
;
57 std::unique_ptr
<weld::ComboBox
> m_xLB_ORDERVALUE2
;
58 std::unique_ptr
<weld::ComboBox
> m_xLB_ORDERFIELD3
;
59 std::unique_ptr
<weld::ComboBox
> m_xLB_ORDERVALUE3
;
61 DECL_LINK(FieldListSelectHdl
, weld::ComboBox
&, void);
65 DlgOrderCrit(weld::Window
* pParent
,
66 const css::uno::Reference
< css::sdbc::XConnection
>& _rxConnection
,
67 const css::uno::Reference
< css::sdb::XSingleSelectQueryComposer
>& _rxComposer
,
68 const css::uno::Reference
< css::container::XNameAccess
>& _rxCols
);
69 virtual ~DlgOrderCrit() override
;
71 void BuildOrderPart();
73 OUString
GetOrderList( ) const;
74 const OUString
& GetOriginalOrder() const { return m_sOrgOrder
; }
77 void impl_initializeOrderList_nothrow();
81 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */