LCOV - code coverage report
Current view: top level - dbaccess/source/ui/inc - RelationDlg.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 1 0.0 %
Date: 2012-08-25 Functions: 0 1 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     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_RELATIONDIALOG_HXX
      20                 :            : #define DBAUI_RELATIONDIALOG_HXX
      21                 :            : 
      22                 :            : #include <vcl/dialog.hxx>
      23                 :            : 
      24                 :            : #include <vcl/button.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                 :            : 
      32                 :            : namespace dbaui
      33                 :            : {
      34                 :            :     class OJoinTableView;
      35                 :            :     class OTableListBoxControl;
      36                 :            :     //========================================================================
      37                 :            :     class ORelationDialog : public ModalDialog
      38                 :            :                             ,public IRelationControlInterface
      39                 :            :     {
      40                 :            :         OModuleClient                           m_aModuleClient;
      41                 :            :         ::std::auto_ptr<OTableListBoxControl>   m_pTableControl;
      42                 :            :         OJoinTableView::OTableWindowMap*        m_pTableMap;
      43                 :            : 
      44                 :            :         FixedLine   aFL_CascUpd;
      45                 :            :         RadioButton aRB_NoCascUpd,
      46                 :            :                     aRB_CascUpd,
      47                 :            :                     aRB_CascUpdNull,
      48                 :            :                     aRB_CascUpdDefault;
      49                 :            :         FixedLine   aFL_CascDel;
      50                 :            :         RadioButton aRB_NoCascDel,
      51                 :            :                     aRB_CascDel,
      52                 :            :                     aRB_CascDelNull,
      53                 :            :                     aRB_CascDelDefault;
      54                 :            : 
      55                 :            :         OKButton    aPB_OK;
      56                 :            :         CancelButton aPB_CANCEL;
      57                 :            :         HelpButton  aPB_HELP;
      58                 :            : 
      59                 :            : 
      60                 :            :         TTableConnectionData::value_type                                        m_pConnData;
      61                 :            :         TTableConnectionData::value_type                                        m_pOrigConnData;
      62                 :            :         ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > m_xConnection;
      63                 :            : 
      64                 :            :         sal_Bool                                                                    m_bTriedOneUpdate;
      65                 :            : 
      66                 :            :     public:
      67                 :            :         ORelationDialog(OJoinTableView* pParent,
      68                 :            :                         const TTableConnectionData::value_type& pConnectionData,
      69                 :            :                         sal_Bool bAllowTableSelect = sal_False );
      70                 :            :         virtual ~ORelationDialog();
      71                 :            : 
      72                 :          0 :         virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > getConnection(){ return m_xConnection; }
      73                 :            : 
      74                 :            :         virtual short Execute();
      75                 :            : 
      76                 :            :         /** getTableMap gives acces to the table window map
      77                 :            :             @retrun the table window from the join view
      78                 :            :         */
      79                 :            :         OJoinTableView::OTableWindowMap* getTableMap() const { return m_pTableMap; }
      80                 :            : 
      81                 :            :         /** getConnectionData returns the current connection data
      82                 :            :             @return the current connectiondata
      83                 :            :         */
      84                 :            :         virtual TTableConnectionData::value_type getConnectionData() const;
      85                 :            : 
      86                 :            :         /** setValid set the valid inside, can be used for OK buttons
      87                 :            :             @param  _bValid true when the using control allows an update
      88                 :            :         */
      89                 :            :         virtual void setValid(sal_Bool _bValid);
      90                 :            : 
      91                 :            :         /** notifyConnectionChange is callback which is called when the table selection has changed and a new connection exists
      92                 :            :             @param  _pConnectionData    the connection which exists between the new tables
      93                 :            :         */
      94                 :            :         virtual void notifyConnectionChange();
      95                 :            :     protected:
      96                 :            :         void Init(const TTableConnectionData::value_type& _pConnectionData);
      97                 :            : 
      98                 :            :     private:
      99                 :            :         DECL_LINK( OKClickHdl, Button* );
     100                 :            :     };
     101                 :            : }
     102                 :            : #endif // DBAUI_RELATIONDIALOG_HXX
     103                 :            : 
     104                 :            : 
     105                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10