fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / chart2 / source / controller / main / ChartWindow.hxx
blob99a0c5fb6038e4aae620b78b285bba25ac1bd2a5
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 .
19 #ifndef INCLUDED_CHART2_SOURCE_CONTROLLER_MAIN_CHARTWINDOW_HXX
20 #define INCLUDED_CHART2_SOURCE_CONTROLLER_MAIN_CHARTWINDOW_HXX
22 #include <vcl/window.hxx>
24 class OpenGLWindow;
26 namespace chart
29 class ChartController;
31 /** The ChartWindow collects events from the window and forwards them the to the controller
32 thus the controller can perform appropriate actions
35 class ChartWindow : public vcl::Window
37 public:
38 ChartWindow( ChartController* pController, vcl::Window* pParent, WinBits nStyle );
39 virtual ~ChartWindow();
40 virtual void dispose() SAL_OVERRIDE;
42 void clear();
44 //from base class Window:
45 virtual void PrePaint(vcl::RenderContext& rRenderContext) SAL_OVERRIDE;
46 virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect) SAL_OVERRIDE;
47 virtual void MouseButtonDown( const MouseEvent& rMEvt ) SAL_OVERRIDE;
48 virtual void MouseMove( const MouseEvent& rMEvt ) SAL_OVERRIDE;
49 virtual void Tracking( const TrackingEvent& rTEvt ) SAL_OVERRIDE;
50 virtual void MouseButtonUp( const MouseEvent& rMEvt ) SAL_OVERRIDE;
51 virtual void Resize() SAL_OVERRIDE;
52 virtual void Activate() SAL_OVERRIDE;
53 virtual void Deactivate() SAL_OVERRIDE;
54 virtual void GetFocus() SAL_OVERRIDE;
55 virtual void LoseFocus() SAL_OVERRIDE;
56 virtual void Command( const CommandEvent& rCEvt ) SAL_OVERRIDE;
57 virtual void KeyInput( const KeyEvent& rKEvt ) SAL_OVERRIDE;
58 virtual void DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE;
59 virtual void RequestHelp( const HelpEvent& rHEvt ) SAL_OVERRIDE;
61 void ForceInvalidate();
62 virtual void Invalidate( sal_uInt16 nFlags = 0 ) SAL_OVERRIDE;
63 virtual void Invalidate( const Rectangle& rRect, sal_uInt16 nFlags = 0 ) SAL_OVERRIDE;
64 virtual void Invalidate( const vcl::Region& rRegion, sal_uInt16 nFlags = 0 ) SAL_OVERRIDE;
66 virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > CreateAccessible() SAL_OVERRIDE;
68 private:
69 ChartController* m_pWindowController;
70 bool m_bInPaint;
71 VclPtr<OpenGLWindow> m_pOpenGLWindow;
73 void adjustHighContrastMode();
76 } //namespace chart
78 #endif
80 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */