cid#1606940 Check of thread-shared field evades lock acquisition
[LibreOffice.git] / dbaccess / source / ui / inc / queryorder.hxx
blob523d84f31fe7305c72c1a2783e8f91888ddb6685
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 #pragma once
21 #include <vcl/weld.hxx>
23 #define DOG_ROWS 3
25 namespace com::sun::star{
26 namespace sdb
28 class XSingleSelectQueryComposer;
30 namespace sdbc
32 class XConnection;
34 namespace container
36 class XNameAccess;
40 // DlgOrderCrit
41 namespace dbaui
43 class DlgOrderCrit final : public weld::GenericDialogController
45 OUString m_sOrgOrder;
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);
62 void EnableLines();
64 public:
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; }
76 private:
77 void impl_initializeOrderList_nothrow();
81 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */