LCOV - code coverage report
Current view: top level - dbaccess/source/ui/inc - RelationDlg.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 1 0.0 %
Date: 2014-04-14 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 INCLUDED_DBACCESS_SOURCE_UI_INC_RELATIONDLG_HXX
      20             : #define INCLUDED_DBACCESS_SOURCE_UI_INC_RELATIONDLG_HXX
      21             : 
      22             : #include <boost/scoped_ptr.hpp>
      23             : #include <vcl/button.hxx>
      24             : #include <vcl/dialog.hxx>
      25             : #include <vcl/fixed.hxx>
      26             : #include <vcl/msgbox.hxx>
      27             : #include "JoinTableView.hxx"
      28             : #include "RelControliFace.hxx"
      29             : #include "moduledbu.hxx"
      30             : 
      31             : namespace dbaui
      32             : {
      33             :     class OJoinTableView;
      34             :     class OTableListBoxControl;
      35             :     class ORelationDialog : public ModalDialog
      36             :                             ,public IRelationControlInterface
      37             :     {
      38             :         OModuleClient                           m_aModuleClient;
      39             :         boost::scoped_ptr<OTableListBoxControl> m_xTableControl;
      40             :         OJoinTableView::OTableWindowMap*        m_pTableMap;
      41             : 
      42             :         RadioButton* m_pRB_NoCascUpd;
      43             :         RadioButton* m_pRB_CascUpd;
      44             :         RadioButton* m_pRB_CascUpdNull;
      45             :         RadioButton* m_pRB_CascUpdDefault;
      46             :         RadioButton* m_pRB_NoCascDel;
      47             :         RadioButton* m_pRB_CascDel;
      48             :         RadioButton* m_pRB_CascDelNull;
      49             :         RadioButton* m_pRB_CascDelDefault;
      50             : 
      51             :         OKButton*   m_pPB_OK;
      52             : 
      53             :         TTableConnectionData::value_type                                        m_pConnData;
      54             :         TTableConnectionData::value_type                                        m_pOrigConnData;
      55             :         ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > m_xConnection;
      56             : 
      57             :         sal_Bool                                                                    m_bTriedOneUpdate;
      58             : 
      59             :     public:
      60             :         ORelationDialog(OJoinTableView* pParent,
      61             :                         const TTableConnectionData::value_type& pConnectionData,
      62             :                         sal_Bool bAllowTableSelect = sal_False );
      63             :         virtual ~ORelationDialog();
      64             : 
      65           0 :         virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > getConnection() SAL_OVERRIDE { return m_xConnection; }
      66             : 
      67             :         virtual short Execute() SAL_OVERRIDE;
      68             : 
      69             :         /** getTableMap gives acces to the table window map
      70             :             @retrun the table window from the join view
      71             :         */
      72             :         OJoinTableView::OTableWindowMap* getTableMap() const { return m_pTableMap; }
      73             : 
      74             :         /** getConnectionData returns the current connection data
      75             :             @return the current connectiondata
      76             :         */
      77             :         virtual TTableConnectionData::value_type getConnectionData() const SAL_OVERRIDE;
      78             : 
      79             :         /** setValid set the valid inside, can be used for OK buttons
      80             :             @param  _bValid true when the using control allows an update
      81             :         */
      82             :         virtual void setValid(sal_Bool _bValid) SAL_OVERRIDE;
      83             : 
      84             :         /** notifyConnectionChange is callback which is called when the table selection has changed and a new connection exists
      85             :             @param  _pConnectionData    the connection which exists between the new tables
      86             :         */
      87             :         virtual void notifyConnectionChange() SAL_OVERRIDE;
      88             :     protected:
      89             :         void Init(const TTableConnectionData::value_type& _pConnectionData);
      90             : 
      91             :     private:
      92             :         DECL_LINK( OKClickHdl, Button* );
      93             :     };
      94             : }
      95             : #endif // INCLUDED_DBACCESS_SOURCE_UI_INC_RELATIONDLG_HXX
      96             : 
      97             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10