LCOV - code coverage report
Current view: top level - dbaccess/source/ui/inc - WCPage.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 11 0.0 %
Date: 2014-04-14 Functions: 0 6 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_WCPAGE_HXX
      20             : #define INCLUDED_DBACCESS_SOURCE_UI_INC_WCPAGE_HXX
      21             : 
      22             : #include "WTabPage.hxx"
      23             : 
      24             : #include "QEnumTypes.hxx"
      25             : #include <vcl/fixed.hxx>
      26             : #include <vcl/group.hxx>
      27             : #include <vcl/edit.hxx>
      28             : #include <vcl/button.hxx>
      29             : 
      30             : namespace dbaui
      31             : {
      32             :     class OWizColumnSelect;
      33             :     class OWizNormalExtend;
      34             :     class OCopyTable : public OWizardPage
      35             :     {
      36             :     protected:
      37             :         FixedText                               m_ftTableName;
      38             :         Edit                                    m_edTableName;
      39             :         FixedLine                               m_aFL_Options;
      40             :         RadioButton                             m_aRB_DefData;
      41             :         RadioButton                             m_aRB_Def;
      42             :         RadioButton                             m_aRB_View;
      43             :         RadioButton                             m_aRB_AppendData;
      44             :         CheckBox                                m_aCB_UseHeaderLine;
      45             :         CheckBox                                m_aCB_PrimaryColumn;
      46             :         FixedText                               m_aFT_KeyName;
      47             :         Edit                                    m_edKeyName;
      48             :         sal_Int16                               m_nOldOperation;
      49             : 
      50             :         OWizColumnSelect*                       m_pPage2;
      51             :         OWizNormalExtend*                       m_pPage3;
      52             : 
      53             :         sal_Bool                                    m_bPKeyAllowed;
      54             :         sal_Bool                                    m_bUseHeaderAllowed;
      55             : 
      56             :         DECL_LINK( AppendDataClickHdl, Button* );
      57             :         DECL_LINK( RadioChangeHdl, Button* );
      58             :         DECL_LINK( KeyClickHdl, Button* );
      59             : 
      60             :         sal_Bool checkAppendData();
      61             :         void SetAppendDataRadio();
      62             : 
      63             :     public:
      64             :         virtual void            Reset() SAL_OVERRIDE;
      65             :         virtual void            ActivatePage() SAL_OVERRIDE;
      66             :         virtual sal_Bool        LeavePage() SAL_OVERRIDE;
      67             :         virtual OUString        GetTitle() const SAL_OVERRIDE ;
      68             : 
      69             :         OCopyTable( Window * pParent );
      70             :         virtual ~OCopyTable();
      71             : 
      72           0 :         inline sal_Bool IsOptionDefData()       const { return m_aRB_DefData.IsChecked(); }
      73           0 :         inline sal_Bool IsOptionDef()           const { return m_aRB_Def.IsChecked(); }
      74             :         inline sal_Bool IsOptionAppendData()    const { return m_aRB_AppendData.IsChecked(); }
      75           0 :         inline sal_Bool IsOptionView()          const { return m_aRB_View.IsChecked(); }
      76             :         inline sal_Bool UseHeaderLine()         const { return m_aCB_UseHeaderLine.IsChecked(); }
      77           0 :         OUString        GetKeyName()            const { return m_edKeyName.GetText(); }
      78             : 
      79             :         void setCreateStyleAction();
      80           0 :         inline void disallowViews()
      81             :         {
      82           0 :             m_aRB_View.Disable();
      83           0 :         }
      84           0 :         inline void disallowUseHeaderLine()
      85             :         {
      86           0 :             m_bUseHeaderAllowed = sal_False;
      87           0 :             m_aCB_UseHeaderLine.Disable();
      88           0 :         }
      89             : 
      90             :         void setCreatePrimaryKey( bool _bDoCreate, const OUString& _rSuggestedName );
      91             :     };
      92             : }
      93             : #endif // INCLUDED_DBACCESS_SOURCE_UI_INC_WCPAGE_HXX
      94             : 
      95             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10