LibreOffice Module dbaccess (master) 1
queryorder.hxx
Go to the documentation of this file.
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#pragma once
20
21#include <vcl/weld.hxx>
22
23#define DOG_ROWS 3
24
25namespace com::sun::star{
26 namespace sdb
27 {
28 class XSingleSelectQueryComposer;
29 }
30 namespace sdbc
31 {
32 class XConnection;
33 }
34 namespace container
35 {
36 class XNameAccess;
37 }
38}
39
40// DlgOrderCrit
41namespace dbaui
42{
44 {
45 OUString m_sOrgOrder;
46
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;
50
53
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;
60
61 DECL_LINK(FieldListSelectHdl, weld::ComboBox&, void);
62 void EnableLines();
63
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;
70
71 void BuildOrderPart();
72
73 OUString GetOrderList( ) const;
74 const OUString& GetOriginalOrder() const { return m_sOrgOrder; }
75
76 private:
78 };
79}
80
81/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::ComboBox > m_xLB_ORDERFIELD3
Definition: queryorder.hxx:58
std::unique_ptr< weld::ComboBox > m_xLB_ORDERFIELD1
Definition: queryorder.hxx:54
weld::ComboBox * m_aColumnList[DOG_ROWS]
Definition: queryorder.hxx:51
std::unique_ptr< weld::ComboBox > m_xLB_ORDERVALUE2
Definition: queryorder.hxx:57
css::uno::Reference< css::sdbc::XConnection > m_xConnection
Definition: queryorder.hxx:49
const OUString & GetOriginalOrder() const
Definition: queryorder.hxx:74
css::uno::Reference< css::container::XNameAccess > m_xColumns
Definition: queryorder.hxx:48
css::uno::Reference< css::sdb::XSingleSelectQueryComposer > m_xQueryComposer
Definition: queryorder.hxx:47
std::unique_ptr< weld::ComboBox > m_xLB_ORDERVALUE3
Definition: queryorder.hxx:59
void impl_initializeOrderList_nothrow()
Definition: queryorder.cxx:125
DlgOrderCrit(weld::Window *pParent, const css::uno::Reference< css::sdbc::XConnection > &_rxConnection, const css::uno::Reference< css::sdb::XSingleSelectQueryComposer > &_rxComposer, const css::uno::Reference< css::container::XNameAccess > &_rxCols)
Definition: queryorder.cxx:43
OUString GetOrderList() const
Definition: queryorder.cxx:189
std::unique_ptr< weld::ComboBox > m_xLB_ORDERFIELD2
Definition: queryorder.hxx:56
std::unique_ptr< weld::ComboBox > m_xLB_ORDERVALUE1
Definition: queryorder.hxx:55
weld::ComboBox * m_aValueList[DOG_ROWS]
Definition: queryorder.hxx:52
DECL_LINK(FieldListSelectHdl, weld::ComboBox &, void)
virtual ~DlgOrderCrit() override
Definition: queryorder.cxx:116
#define DOG_ROWS
Definition: queryorder.hxx:23