LCOV - code coverage report
Current view: top level - dbaccess/source/ui/inc - TableWindowListBox.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 3 0.0 %
Date: 2012-08-25 Functions: 0 3 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_TABLEWINDOWLISTBOX_HXX
      20                 :            : #define DBAUI_TABLEWINDOWLISTBOX_HXX
      21                 :            : 
      22                 :            : #include <svtools/svtreebx.hxx>
      23                 :            : #include "callbacks.hxx"
      24                 :            : 
      25                 :            : struct AcceptDropEvent;
      26                 :            : struct ExecuteDropEvent;
      27                 :            : namespace dbaui
      28                 :            : {
      29                 :            :     class OTableWindowListBox;
      30                 :            :     struct OJoinExchangeData
      31                 :            :     {
      32                 :            :     public:
      33                 :            :         OTableWindowListBox*    pListBox;       // die ListBox innerhalb desselben (daraus kann man sich das TabWin und daraus den WinName besorgen)
      34                 :            :         SvLBoxEntry*            pEntry;         // der Eintrag, der gedraggt oder auf den gedroppt wurde
      35                 :            : 
      36                 :            :         OJoinExchangeData(OTableWindowListBox* pBox);
      37                 :          0 :         OJoinExchangeData() : pListBox(NULL), pEntry(NULL) { }
      38                 :            :     };
      39                 :          0 :     struct OJoinDropData
      40                 :            :     {
      41                 :            :         OJoinExchangeData aSource;
      42                 :            :         OJoinExchangeData aDest;
      43                 :            :     };
      44                 :            : 
      45                 :            :     class OTableWindow;
      46                 :            :     class OTableWindowListBox
      47                 :            :             :public SvTreeListBox
      48                 :            :             ,public IDragTransferableListener
      49                 :            :     {
      50                 :            :         DECL_LINK( OnDoubleClick, SvTreeListBox* );
      51                 :            :         DECL_LINK( ScrollUpHdl, SvTreeListBox* );
      52                 :            :         DECL_LINK( ScrollDownHdl, SvTreeListBox* );
      53                 :            :         DECL_LINK( DropHdl, void* );
      54                 :            :         DECL_LINK( LookForUiHdl, void* );
      55                 :            : 
      56                 :            :         Timer                       m_aScrollTimer;
      57                 :            :         Point                       m_aMousePos;
      58                 :            : 
      59                 :            :         OTableWindow*               m_pTabWin;
      60                 :            :         sal_uLong                       m_nDropEvent;
      61                 :            :         sal_uLong                       m_nUiEvent;
      62                 :            :         OJoinDropData               m_aDropInfo;
      63                 :            : 
      64                 :            :         sal_Bool                        m_bReallyScrolled : 1;
      65                 :            :         sal_Bool                        m_bDragSource : 1;
      66                 :            : 
      67                 :            :     protected:
      68                 :            :         virtual void LoseFocus();
      69                 :            :         virtual void GetFocus();
      70                 :            :         virtual void NotifyScrolled();
      71                 :            :         virtual void NotifyEndScroll();
      72                 :            : 
      73                 :            :         virtual long PreNotify(NotifyEvent& rNEvt);
      74                 :            : 
      75                 :            :         virtual void dragFinished( );
      76                 :            : 
      77                 :            : 
      78                 :            : 
      79                 :            :     public:
      80                 :            :         OTableWindowListBox(OTableWindow* pParent);
      81                 :            :         virtual ~OTableWindowListBox();
      82                 :            : 
      83                 :            :         // DnD stuff
      84                 :            :         virtual void        StartDrag( sal_Int8 nAction, const Point& rPosPixel );
      85                 :            :         virtual sal_Int8    AcceptDrop( const AcceptDropEvent& rEvt );
      86                 :            :         virtual sal_Int8    ExecuteDrop( const ExecuteDropEvent& rEvt );
      87                 :            : 
      88                 :            :         // window
      89                 :            :         virtual void Command(const CommandEvent& rEvt);
      90                 :            : 
      91                 :          0 :         OTableWindow* GetTabWin(){ return m_pTabWin; }
      92                 :            :         SvLBoxEntry* GetEntryFromText( const String& rEntryText );
      93                 :            : 
      94                 :            :     private:
      95                 :            :         using SvTreeListBox::ExecuteDrop;
      96                 :            :     };
      97                 :            : }
      98                 :            : #endif // DBAUI_TABLEWINDOWLISTBOX_HXX
      99                 :            : 
     100                 :            : 
     101                 :            : 
     102                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10