LCOV - code coverage report
Current view: top level - svtools/source/table - tabledatawindow.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 1 1 100.0 %
Date: 2014-11-03 Functions: 1 1 100.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             : 
      20             : #ifndef INCLUDED_SVTOOLS_SOURCE_TABLE_TABLEDATAWINDOW_HXX
      21             : #define INCLUDED_SVTOOLS_SOURCE_TABLE_TABLEDATAWINDOW_HXX
      22             : 
      23             : #include <vcl/window.hxx>
      24             : #include <vcl/seleng.hxx>
      25             : 
      26             : 
      27             : namespace svt { namespace table
      28             : {
      29             : 
      30             : 
      31             :     class TableControl_Impl;
      32             :     class TableFunctionSet;
      33             : 
      34             : 
      35             : 
      36             :     //= TableDataWindow
      37             : 
      38             :     /** the window containing the content area (including headers) of
      39             :         a table control
      40             :     */
      41             :     class TableDataWindow : public vcl::Window
      42             :     {
      43             :         friend class TableFunctionSet;
      44             :     private:
      45             :         TableControl_Impl&  m_rTableControl;
      46             :         Link                m_aSelectHdl;
      47             :         sal_uLong           m_nTipWindowHandle;
      48             : 
      49             :     public:
      50             :         TableDataWindow( TableControl_Impl& _rTableControl );
      51             :         virtual ~TableDataWindow();
      52             : 
      53           2 :         inline void         SetSelectHdl( const Link& rLink )   { m_aSelectHdl = rLink; }
      54             :         inline const Link&  GetSelectHdl() const                { return m_aSelectHdl; }
      55             : 
      56             :         // Window overridables
      57             :         virtual void        Paint( const Rectangle& rRect ) SAL_OVERRIDE;
      58             :         virtual void        MouseMove( const MouseEvent& rMEvt) SAL_OVERRIDE;
      59             :         virtual void        MouseButtonDown( const MouseEvent& rMEvt) SAL_OVERRIDE;
      60             :         virtual void        MouseButtonUp( const MouseEvent& rMEvt) SAL_OVERRIDE;
      61             :         virtual bool        Notify(NotifyEvent& rNEvt) SAL_OVERRIDE;
      62             :         virtual void        SetControlBackground(const Color& rColor);
      63             :         virtual void        SetControlBackground();
      64             :         virtual void        RequestHelp( const HelpEvent& rHEvt ) SAL_OVERRIDE;
      65             : 
      66             :         void                SetBackground(const Wallpaper& rColor);
      67             : 
      68             :     private:
      69             :         void    impl_hideTipWindow();
      70             :     };
      71             : 
      72             : } } // namespace svt::table
      73             : 
      74             : 
      75             : #endif // INCLUDED_SVTOOLS_SOURCE_TABLE_TABLEDATAWINDOW_HXX
      76             : 
      77             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10