LCOV - code coverage report
Current view: top level - dbaccess/source/ui/inc - WNameMatch.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 2 0.0 %
Date: 2012-08-25 Functions: 0 3 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 2 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_WIZ_NAMEMATCHING_HXX
      20                 :            : #define DBAUI_WIZ_NAMEMATCHING_HXX
      21                 :            : 
      22                 :            : #include "WTabPage.hxx"
      23                 :            : #include "marktree.hxx"
      24                 :            : #include "DExport.hxx"
      25                 :            : #include <vcl/fixed.hxx>
      26                 :            : #include <vcl/button.hxx>
      27                 :            : #include "WCopyTable.hxx"
      28                 :            : 
      29                 :            : namespace dbaui
      30                 :            : {
      31                 :            :     // ========================================================
      32                 :            :     // columns are at root only no children
      33                 :            :     // ========================================================
      34         [ #  # ]:          0 :     class OColumnTreeBox : public OMarkableTreeListBox
      35                 :            :     {
      36                 :            :         sal_Bool m_bReadOnly;
      37                 :            :     protected:
      38                 :            :         virtual void InitEntry(SvLBoxEntry* pEntry, const String& rStr, const Image& rImg1, const Image& rImg2, SvLBoxButtonKind eButtonKind);
      39                 :            : 
      40                 :            :     public:
      41                 :            :         OColumnTreeBox( Window* pParent, const ResId& rResId );
      42                 :            : 
      43                 :            :         void FillListBox( const ODatabaseExport::TColumnVector& _rList);
      44                 :          0 :         void SetReadOnly(sal_Bool _bRo=sal_True) { m_bReadOnly = _bRo; }
      45                 :            :         virtual sal_Bool Select( SvLBoxEntry* pEntry, sal_Bool bSelect=sal_True );
      46                 :            : 
      47                 :            :     private:
      48                 :            :         using OMarkableTreeListBox::Select;
      49                 :            :     };
      50                 :            : 
      51                 :            :     // ========================================================
      52                 :            :     // Wizard Page: OWizNameMatching
      53                 :            :     // Name matching for data appending
      54                 :            :     // ========================================================
      55                 :            :     class OWizNameMatching : public OWizardPage
      56                 :            :     {
      57                 :            :         FixedText           m_FT_TABLE_LEFT;
      58                 :            :         FixedText           m_FT_TABLE_RIGHT;
      59                 :            :         OColumnTreeBox      m_CTRL_LEFT;    // left side
      60                 :            :         OColumnTreeBox      m_CTRL_RIGHT;   // right side
      61                 :            :         ImageButton         m_ibColumn_up;
      62                 :            :         ImageButton         m_ibColumn_down;
      63                 :            :         ImageButton         m_ibColumn_up_right;
      64                 :            :         ImageButton         m_ibColumn_down_right;
      65                 :            :         PushButton          m_pbAll;
      66                 :            :         PushButton          m_pbNone;
      67                 :            :         String              m_sSourceText;
      68                 :            :         String              m_sDestText;
      69                 :            : 
      70                 :            :         sal_Bool            m_bAttrsChanged;
      71                 :            : 
      72                 :            :         DECL_LINK( ButtonClickHdl, Button * );
      73                 :            :         DECL_LINK( RightButtonClickHdl, Button * );
      74                 :            :         DECL_LINK( AllNoneClickHdl, Button * );
      75                 :            :         DECL_LINK( TableListClickHdl, void* );
      76                 :            :         DECL_LINK( TableListRightSelectHdl, void* );
      77                 :            : 
      78                 :            :     public:
      79                 :            :         virtual void            Reset ( );
      80                 :            :         virtual void            ActivatePage();
      81                 :            :         virtual sal_Bool        LeavePage();
      82                 :            :         virtual String          GetTitle() const ;
      83                 :            : 
      84                 :            :         OWizNameMatching(Window* pParent);
      85                 :            :         virtual ~OWizNameMatching();
      86                 :            : 
      87                 :            :     };
      88                 :            : }
      89                 :            : #endif // DBAUI_WIZ_NAMEMATCHING_HXX
      90                 :            : 
      91                 :            : 
      92                 :            : 
      93                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10