1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 //====================================================================
37 //====================================================================
38 /** the window containing the content area (including headers) of
41 class TableDataWindow
: public Window
43 friend class TableFunctionSet
;
45 TableControl_Impl
& m_rTableControl
;
47 sal_uLong m_nTipWindowHandle
;
50 TableDataWindow( TableControl_Impl
& _rTableControl
);
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
);
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: */