1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: queryorder.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef DBAUI_QUERYORDER_HXX
31 #define DBAUI_QUERYORDER_HXX
33 #ifndef _DIALOG_HXX //autogen
34 #include <vcl/dialog.hxx>
37 #ifndef _LSTBOX_HXX //autogen
38 #include <vcl/lstbox.hxx>
41 #ifndef _EDIT_HXX //autogen
42 #include <vcl/edit.hxx>
45 #ifndef _FIXED_HXX //autogen
46 #include <vcl/fixed.hxx>
49 #ifndef _BUTTON_HXX //autogen
50 #include <vcl/button.hxx>
67 class XSingleSelectQueryComposer
;
86 //==================================================================
88 //==================================================================
91 class DlgOrderCrit
: public ModalDialog
94 ListBox aLB_ORDERFIELD1
;
95 ListBox aLB_ORDERVALUE1
;
96 ListBox aLB_ORDERFIELD2
;
97 ListBox aLB_ORDERVALUE2
;
98 ListBox aLB_ORDERFIELD3
;
99 ListBox aLB_ORDERVALUE3
;
100 FixedText aFT_ORDERFIELD
;
101 FixedText aFT_ORDERAFTER1
;
102 FixedText aFT_ORDERAFTER2
;
103 FixedText aFT_ORDEROPER
;
104 FixedText aFT_ORDERDIR
;
106 CancelButton aBT_CANCEL
;
110 ::rtl::OUString m_sOrgOrder
;
112 ::com::sun::star::uno::Reference
< ::com::sun::star::sdb::XSingleSelectQueryComposer
> m_xQueryComposer
;
113 ::com::sun::star::uno::Reference
< ::com::sun::star::container::XNameAccess
> m_xColumns
;
114 ::com::sun::star::uno::Reference
< ::com::sun::star::sdbc::XConnection
> m_xConnection
;
117 ListBox
* m_aColumnList
[DOG_ROWS
];
118 ListBox
* m_aValueList
[DOG_ROWS
];
120 DECL_LINK( FieldListSelectHdl
, ListBox
* );
124 DlgOrderCrit( Window
* pParent
,
125 const ::com::sun::star::uno::Reference
< ::com::sun::star::sdbc::XConnection
>& _rxConnection
,
126 const ::com::sun::star::uno::Reference
< ::com::sun::star::sdb::XSingleSelectQueryComposer
>& _rxComposer
,
127 const ::com::sun::star::uno::Reference
< ::com::sun::star::container::XNameAccess
>& _rxCols
);
130 void BuildOrderPart();
132 ::rtl::OUString
GetOrderList( ) const;
133 ::rtl::OUString
GetOrignalOrder() const { return m_sOrgOrder
; }
136 void impl_initializeOrderList_nothrow();
139 #endif // DBAUI_QUERYORDER_HXX