LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/dbaccess/source/ui/inc - queryorder.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 1 0.0 %
Date: 2013-07-09 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 com
      35             : {
      36             :     namespace sun
      37             :     {
      38             :         namespace star
      39             :         {
      40             :             namespace sdb
      41             :             {
      42             :                 class XSingleSelectQueryComposer;
      43             :             }
      44             :             namespace sdbc
      45             :             {
      46             :                 class XConnection;
      47             :             }
      48             :             namespace container
      49             :             {
      50             :                 class XNameAccess;
      51             :             }
      52             :         }
      53             :     }
      54             : }
      55             : 
      56             : //==================================================================
      57             : // DlgOrderCrit
      58             : //==================================================================
      59             : namespace dbaui
      60             : {
      61             :     class DlgOrderCrit : public ModalDialog
      62             :     {
      63             :     protected:
      64             :         ListBox         aLB_ORDERFIELD1;
      65             :         ListBox         aLB_ORDERVALUE1;
      66             :         ListBox         aLB_ORDERFIELD2;
      67             :         ListBox         aLB_ORDERVALUE2;
      68             :         ListBox         aLB_ORDERFIELD3;
      69             :         ListBox         aLB_ORDERVALUE3;
      70             :         FixedText       aFT_ORDERFIELD;
      71             :         FixedText       aFT_ORDERAFTER1;
      72             :         FixedText       aFT_ORDERAFTER2;
      73             :         FixedText       aFT_ORDEROPER;
      74             :         FixedText       aFT_ORDERDIR;
      75             :         OKButton        aBT_OK;
      76             :         CancelButton    aBT_CANCEL;
      77             :         HelpButton      aBT_HELP;
      78             :         FixedLine       aFL_ORDER;
      79             :         String          aSTR_NOENTRY;
      80             :         OUString m_sOrgOrder;
      81             : 
      82             :         ::com::sun::star::uno::Reference< ::com::sun::star::sdb::XSingleSelectQueryComposer> m_xQueryComposer;
      83             :         ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess> m_xColumns;
      84             :         ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection>      m_xConnection;
      85             : 
      86             : 
      87             :         ListBox*        m_aColumnList[DOG_ROWS];
      88             :         ListBox*        m_aValueList[DOG_ROWS];
      89             : 
      90             :         DECL_LINK( FieldListSelectHdl, ListBox * );
      91             :         void            EnableLines();
      92             : 
      93             :     public:
      94             :         DlgOrderCrit(   Window * pParent,
      95             :                         const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection>& _rxConnection,
      96             :                         const ::com::sun::star::uno::Reference< ::com::sun::star::sdb::XSingleSelectQueryComposer>& _rxComposer,
      97             :                         const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess>& _rxCols);
      98             : 
      99             :                         ~DlgOrderCrit();
     100             :         void            BuildOrderPart();
     101             : 
     102             :         OUString GetOrderList( ) const;
     103           0 :         OUString GetOrignalOrder() const { return m_sOrgOrder; }
     104             : 
     105             :     private:
     106             :         void            impl_initializeOrderList_nothrow();
     107             :     };
     108             : }
     109             : #endif // DBAUI_QUERYORDER_HXX
     110             : 
     111             : 
     112             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10