LCOV - code coverage report
Current view: top level - libreoffice/dbaccess/source/ui/inc - queryorder.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 1 0.0 %
Date: 2012-12-27 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       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             : #ifndef DBAUI_QUERYORDER_HXX
      20             : #define DBAUI_QUERYORDER_HXX
      21             : 
      22             : #include <vcl/dialog.hxx>
      23             : 
      24             : #include <vcl/lstbox.hxx>
      25             : 
      26             : #include <vcl/edit.hxx>
      27             : 
      28             : #include <vcl/fixed.hxx>
      29             : 
      30             : #include <vcl/button.hxx>
      31             : 
      32             : #define DOG_ROWS    3
      33             : 
      34             : namespace rtl
      35             : {
      36             :     class OUString;
      37             : }
      38             : namespace com
      39             : {
      40             :     namespace sun
      41             :     {
      42             :         namespace star
      43             :         {
      44             :             namespace sdb
      45             :             {
      46             :                 class XSingleSelectQueryComposer;
      47             :             }
      48             :             namespace sdbc
      49             :             {
      50             :                 class XConnection;
      51             :             }
      52             :             namespace container
      53             :             {
      54             :                 class XNameAccess;
      55             :             }
      56             :         }
      57             :     }
      58             : }
      59             : 
      60             : //==================================================================
      61             : // DlgOrderCrit
      62             : //==================================================================
      63             : namespace dbaui
      64             : {
      65             :     class DlgOrderCrit : public ModalDialog
      66             :     {
      67             :     protected:
      68             :         ListBox         aLB_ORDERFIELD1;
      69             :         ListBox         aLB_ORDERVALUE1;
      70             :         ListBox         aLB_ORDERFIELD2;
      71             :         ListBox         aLB_ORDERVALUE2;
      72             :         ListBox         aLB_ORDERFIELD3;
      73             :         ListBox         aLB_ORDERVALUE3;
      74             :         FixedText       aFT_ORDERFIELD;
      75             :         FixedText       aFT_ORDERAFTER1;
      76             :         FixedText       aFT_ORDERAFTER2;
      77             :         FixedText       aFT_ORDEROPER;
      78             :         FixedText       aFT_ORDERDIR;
      79             :         OKButton        aBT_OK;
      80             :         CancelButton    aBT_CANCEL;
      81             :         HelpButton      aBT_HELP;
      82             :         FixedLine       aFL_ORDER;
      83             :         String          aSTR_NOENTRY;
      84             :         ::rtl::OUString m_sOrgOrder;
      85             : 
      86             :         ::com::sun::star::uno::Reference< ::com::sun::star::sdb::XSingleSelectQueryComposer> m_xQueryComposer;
      87             :         ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess> m_xColumns;
      88             :         ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection>      m_xConnection;
      89             : 
      90             : 
      91             :         ListBox*        m_aColumnList[DOG_ROWS];
      92             :         ListBox*        m_aValueList[DOG_ROWS];
      93             : 
      94             :         DECL_LINK( FieldListSelectHdl, ListBox * );
      95             :         void            EnableLines();
      96             : 
      97             :     public:
      98             :         DlgOrderCrit(   Window * pParent,
      99             :                         const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection>& _rxConnection,
     100             :                         const ::com::sun::star::uno::Reference< ::com::sun::star::sdb::XSingleSelectQueryComposer>& _rxComposer,
     101             :                         const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess>& _rxCols);
     102             : 
     103             :                         ~DlgOrderCrit();
     104             :         void            BuildOrderPart();
     105             : 
     106             :         ::rtl::OUString GetOrderList( ) const;
     107           0 :         ::rtl::OUString GetOrignalOrder() const { return m_sOrgOrder; }
     108             : 
     109             :     private:
     110             :         void            impl_initializeOrderList_nothrow();
     111             :     };
     112             : }
     113             : #endif // DBAUI_QUERYORDER_HXX
     114             : 
     115             : 
     116             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10