1*2e2212a7SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*2e2212a7SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*2e2212a7SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*2e2212a7SAndrew Rist * distributed with this work for additional information 6*2e2212a7SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*2e2212a7SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*2e2212a7SAndrew Rist * "License"); you may not use this file except in compliance 9*2e2212a7SAndrew Rist * with the License. You may obtain a copy of the License at 10*2e2212a7SAndrew Rist * 11*2e2212a7SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*2e2212a7SAndrew Rist * 13*2e2212a7SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*2e2212a7SAndrew Rist * software distributed under the License is distributed on an 15*2e2212a7SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*2e2212a7SAndrew Rist * KIND, either express or implied. See the License for the 17*2e2212a7SAndrew Rist * specific language governing permissions and limitations 18*2e2212a7SAndrew Rist * under the License. 19*2e2212a7SAndrew Rist * 20*2e2212a7SAndrew Rist *************************************************************/ 21*2e2212a7SAndrew Rist 22*2e2212a7SAndrew Rist 23cdf0e10cSrcweir #ifndef DBAUI_QUERYORDER_HXX 24cdf0e10cSrcweir #define DBAUI_QUERYORDER_HXX 25cdf0e10cSrcweir 26cdf0e10cSrcweir #ifndef _DIALOG_HXX //autogen 27cdf0e10cSrcweir #include <vcl/dialog.hxx> 28cdf0e10cSrcweir #endif 29cdf0e10cSrcweir 30cdf0e10cSrcweir #ifndef _LSTBOX_HXX //autogen 31cdf0e10cSrcweir #include <vcl/lstbox.hxx> 32cdf0e10cSrcweir #endif 33cdf0e10cSrcweir 34cdf0e10cSrcweir #ifndef _EDIT_HXX //autogen 35cdf0e10cSrcweir #include <vcl/edit.hxx> 36cdf0e10cSrcweir #endif 37cdf0e10cSrcweir 38cdf0e10cSrcweir #ifndef _FIXED_HXX //autogen 39cdf0e10cSrcweir #include <vcl/fixed.hxx> 40cdf0e10cSrcweir #endif 41cdf0e10cSrcweir 42cdf0e10cSrcweir #ifndef _BUTTON_HXX //autogen 43cdf0e10cSrcweir #include <vcl/button.hxx> 44cdf0e10cSrcweir #endif 45cdf0e10cSrcweir 46cdf0e10cSrcweir #define DOG_ROWS 3 47cdf0e10cSrcweir 48cdf0e10cSrcweir namespace rtl 49cdf0e10cSrcweir { 50cdf0e10cSrcweir class OUString; 51cdf0e10cSrcweir } 52cdf0e10cSrcweir namespace com 53cdf0e10cSrcweir { 54cdf0e10cSrcweir namespace sun 55cdf0e10cSrcweir { 56cdf0e10cSrcweir namespace star 57cdf0e10cSrcweir { 58cdf0e10cSrcweir namespace sdb 59cdf0e10cSrcweir { 60cdf0e10cSrcweir class XSingleSelectQueryComposer; 61cdf0e10cSrcweir } 62cdf0e10cSrcweir namespace sdbc 63cdf0e10cSrcweir { 64cdf0e10cSrcweir class XConnection; 65cdf0e10cSrcweir } 66cdf0e10cSrcweir namespace container 67cdf0e10cSrcweir { 68cdf0e10cSrcweir class XNameAccess; 69cdf0e10cSrcweir } 70cdf0e10cSrcweir namespace beans 71cdf0e10cSrcweir { 72cdf0e10cSrcweir struct PropertyValue; 73cdf0e10cSrcweir class XPropertySet; 74cdf0e10cSrcweir } 75cdf0e10cSrcweir } 76cdf0e10cSrcweir } 77cdf0e10cSrcweir } 78cdf0e10cSrcweir 79cdf0e10cSrcweir //================================================================== 80cdf0e10cSrcweir // DlgOrderCrit 81cdf0e10cSrcweir //================================================================== 82cdf0e10cSrcweir namespace dbaui 83cdf0e10cSrcweir { 84cdf0e10cSrcweir class DlgOrderCrit : public ModalDialog 85cdf0e10cSrcweir { 86cdf0e10cSrcweir protected: 87cdf0e10cSrcweir ListBox aLB_ORDERFIELD1; 88cdf0e10cSrcweir ListBox aLB_ORDERVALUE1; 89cdf0e10cSrcweir ListBox aLB_ORDERFIELD2; 90cdf0e10cSrcweir ListBox aLB_ORDERVALUE2; 91cdf0e10cSrcweir ListBox aLB_ORDERFIELD3; 92cdf0e10cSrcweir ListBox aLB_ORDERVALUE3; 93cdf0e10cSrcweir FixedText aFT_ORDERFIELD; 94cdf0e10cSrcweir FixedText aFT_ORDERAFTER1; 95cdf0e10cSrcweir FixedText aFT_ORDERAFTER2; 96cdf0e10cSrcweir FixedText aFT_ORDEROPER; 97cdf0e10cSrcweir FixedText aFT_ORDERDIR; 98cdf0e10cSrcweir OKButton aBT_OK; 99cdf0e10cSrcweir CancelButton aBT_CANCEL; 100cdf0e10cSrcweir HelpButton aBT_HELP; 101cdf0e10cSrcweir FixedLine aFL_ORDER; 102cdf0e10cSrcweir String aSTR_NOENTRY; 103cdf0e10cSrcweir ::rtl::OUString m_sOrgOrder; 104cdf0e10cSrcweir 105cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::sdb::XSingleSelectQueryComposer> m_xQueryComposer; 106cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess> m_xColumns; 107cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection> m_xConnection; 108cdf0e10cSrcweir 109cdf0e10cSrcweir 110cdf0e10cSrcweir ListBox* m_aColumnList[DOG_ROWS]; 111cdf0e10cSrcweir ListBox* m_aValueList[DOG_ROWS]; 112cdf0e10cSrcweir 113cdf0e10cSrcweir DECL_LINK( FieldListSelectHdl, ListBox * ); 114cdf0e10cSrcweir void EnableLines(); 115cdf0e10cSrcweir 116cdf0e10cSrcweir public: 117cdf0e10cSrcweir DlgOrderCrit( Window * pParent, 118cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection>& _rxConnection, 119cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::sdb::XSingleSelectQueryComposer>& _rxComposer, 120cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess>& _rxCols); 121cdf0e10cSrcweir 122cdf0e10cSrcweir ~DlgOrderCrit(); 123cdf0e10cSrcweir void BuildOrderPart(); 124cdf0e10cSrcweir 125cdf0e10cSrcweir ::rtl::OUString GetOrderList( ) const; GetOrignalOrder() const126cdf0e10cSrcweir ::rtl::OUString GetOrignalOrder() const { return m_sOrgOrder; } 127cdf0e10cSrcweir 128cdf0e10cSrcweir private: 129cdf0e10cSrcweir void impl_initializeOrderList_nothrow(); 130cdf0e10cSrcweir }; 131cdf0e10cSrcweir } 132cdf0e10cSrcweir #endif // DBAUI_QUERYORDER_HXX 133cdf0e10cSrcweir 134cdf0e10cSrcweir 135