LCOV - code coverage report
Current view: top level - libreoffice/dbaccess/source/ui/querydesign - querydlg.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 2 0.0 %
Date: 2012-12-17 Functions: 0 2 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_QUERYDLG_HXX
      20             : #define DBAUI_QUERYDLG_HXX
      21             : #include <vcl/dialog.hxx>
      22             : 
      23             : #include <vcl/button.hxx>
      24             : 
      25             : #include <vcl/fixed.hxx>
      26             : #include <vcl/lstbox.hxx>
      27             : 
      28             : #include "QEnumTypes.hxx"
      29             : 
      30             : #include "RelControliFace.hxx"
      31             : #include "JoinTableView.hxx"
      32             : 
      33             : 
      34             : namespace dbaui
      35             : {
      36             :     class OTableListBoxControl;
      37             :     class OQueryTableView;
      38             :     class OJoinControl;
      39             :     class DlgQryJoin :  public ModalDialog
      40             :                         ,public IRelationControlInterface
      41             :     {
      42             :     protected:
      43             :         FixedText               aML_HelpText;
      44             :         OKButton                aPB_OK;
      45             :         CancelButton            aPB_CANCEL;
      46             :         HelpButton              aPB_HELP;
      47             : 
      48             :         OJoinControl*                       m_pJoinControl;
      49             :         OTableListBoxControl*               m_pTableControl;
      50             :         OJoinTableView::OTableWindowMap*    m_pTableMap;
      51             :         OQueryTableView*                    m_pTableView;
      52             : 
      53             :         EJoinType                           eJoinType;
      54             :         TTableConnectionData::value_type    m_pConnData; // enth"alt linke und rechte Tabelle
      55             :         TTableConnectionData::value_type    m_pOrigConnData;
      56             :         ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > m_xConnection;
      57             : 
      58             : 
      59             :         DECL_LINK( OKClickHdl, Button* );
      60             :         DECL_LINK( LBChangeHdl, ListBox* );
      61             :         DECL_LINK( NaturalToggleHdl, CheckBox* );
      62             : 
      63             :         /** setJoinType enables and set the new join type
      64             :             @param  _eNewJoinType   the new jointype
      65             :         */
      66             :         void setJoinType(EJoinType _eNewJoinType);
      67             :     public:
      68             :         DlgQryJoin( OQueryTableView * pParent,
      69             :                     const TTableConnectionData::value_type& pData,
      70             :                     OJoinTableView::OTableWindowMap*    _pTableMap,
      71             :                     const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _xConnection,
      72             :                     sal_Bool _bAllowTableSelect);
      73             :         virtual ~DlgQryJoin();
      74           0 :         EJoinType GetJoinType() const { return eJoinType; };
      75             : 
      76             :         /** getConnectionData returns the current connection data
      77             :             @return the current connectiondata
      78             :         */
      79             :         virtual TTableConnectionData::value_type getConnectionData() const;
      80             : 
      81             :         /** setValid set the valid inside, can be used for OK buttons
      82             :             @param  _bValid true when the using control allows an update
      83             :         */
      84             :         virtual void setValid(sal_Bool _bValid);
      85             : 
      86           0 :         virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > getConnection() { return m_xConnection; }
      87             : 
      88             :         /** notifyConnectionChange is callback which is called when the table selection has changed and a new connection exists
      89             :             @param  _pConnectionData    the connection which exists between the new tables
      90             :         */
      91             :         virtual void notifyConnectionChange();
      92             :     };
      93             : }
      94             : #endif // DBAUI_QUERYDLG_HXX
      95             : 
      96             : 
      97             : 
      98             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10