GPU-Calc: remove Alloc_Host_Ptr for clmem of NAN vector
[LibreOffice.git] / svtools / source / table / tabledatawindow.hxx
blob4a7a771f02c323bb999b128b18ae31ba5f771f7c
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_SVTOOLS_SOURCE_TABLE_TABLEDATAWINDOW_HXX
21 #define INCLUDED_SVTOOLS_SOURCE_TABLE_TABLEDATAWINDOW_HXX
23 #include <vcl/window.hxx>
24 #include <vcl/seleng.hxx>
26 //........................................................................
27 namespace svt { namespace table
29 //........................................................................
31 class TableControl_Impl;
32 class TableFunctionSet;
35 //====================================================================
36 //= TableDataWindow
37 //====================================================================
38 /** the window containing the content area (including headers) of
39 a table control
41 class TableDataWindow : public Window
43 friend class TableFunctionSet;
44 private:
45 TableControl_Impl& m_rTableControl;
46 Link m_aSelectHdl;
47 sal_uLong m_nTipWindowHandle;
49 public:
50 TableDataWindow( TableControl_Impl& _rTableControl );
51 ~TableDataWindow();
53 inline void SetSelectHdl( const Link& rLink ) { m_aSelectHdl = rLink; }
54 inline const Link& GetSelectHdl() const { return m_aSelectHdl; }
56 // Window overridables
57 virtual void Paint( const Rectangle& rRect );
58 virtual void MouseMove( const MouseEvent& rMEvt);
59 virtual void MouseButtonDown( const MouseEvent& rMEvt);
60 virtual void MouseButtonUp( const MouseEvent& rMEvt);
61 virtual long Notify(NotifyEvent& rNEvt);
62 virtual void SetControlBackground(const Color& rColor);
63 virtual void SetControlBackground();
64 virtual void RequestHelp( const HelpEvent& rHEvt );
66 void SetBackground(const Wallpaper& rColor);
68 private:
69 void impl_hideTipWindow();
71 //........................................................................
72 } } // namespace svt::table
73 //........................................................................
75 #endif // INCLUDED_SVTOOLS_SOURCE_TABLE_TABLEDATAWINDOW_HXX
77 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */