LibreOffice Module chart2 (master) 1
ChartWindow.hxx
Go to the documentation of this file.
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#pragma once
20
21#include <vcl/window.hxx>
22
23namespace chart
24{
25
26class ChartController;
27
32class ChartWindow final : public vcl::Window
33{
34public:
35 ChartWindow( ChartController* pController, vcl::Window* pParent, WinBits nStyle );
36 virtual ~ChartWindow() override;
37 virtual void dispose() override;
38
39 //from base class Window:
40 virtual void PrePaint(vcl::RenderContext& rRenderContext) override;
41 virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect) override;
42 virtual void MouseButtonDown( const MouseEvent& rMEvt ) override;
43 virtual void MouseMove( const MouseEvent& rMEvt ) override;
44 virtual void Tracking( const TrackingEvent& rTEvt ) override;
45 virtual void MouseButtonUp( const MouseEvent& rMEvt ) override;
46 virtual void Resize() override;
47 virtual void Activate() override;
48 virtual void Deactivate() override;
49 virtual void GetFocus() override;
50 virtual void LoseFocus() override;
51 virtual void Command( const CommandEvent& rCEvt ) override;
52 virtual void KeyInput( const KeyEvent& rKEvt ) override;
53 virtual void DataChanged( const DataChangedEvent& rDCEvt ) override;
54 virtual void RequestHelp( const HelpEvent& rHEvt ) override;
55
56 void ForceInvalidate();
57 virtual void ImplInvalidate( const vcl::Region* rRegion, InvalidateFlags nFlags ) override;
59 virtual void LogicInvalidate( const tools::Rectangle* pRectangle ) override;
60
61 virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible() override;
62
63 virtual FactoryFunction GetUITestFactory() const override;
64
66
67 virtual bool IsChart() const override { return true; }
69
70private:
71 // returns the chart bounding box in twips
73
74private:
78
80};
81
82} //namespace chart
83
84/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
The ChartWindow collects events from the window and forwards them the to the controller thus the cont...
Definition: ChartWindow.hxx:33
ChartWindow(ChartController *pController, vcl::Window *pParent, WinBits nStyle)
Definition: ChartWindow.cxx:50
VclPtr< vcl::Window > m_pViewShellWindow
Definition: ChartWindow.hxx:77
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
Definition: ChartWindow.cxx:88
ChartController * GetController()
virtual void ImplInvalidate(const vcl::Region *rRegion, InvalidateFlags nFlags) override
virtual void Deactivate() override
virtual void Command(const CommandEvent &rCEvt) override
virtual FactoryFunction GetUITestFactory() const override
virtual void Activate() override
void adjustHighContrastMode()
virtual void Tracking(const TrackingEvent &rTEvt) override
virtual ~ChartWindow() override
Definition: ChartWindow.cxx:67
virtual void LoseFocus() override
virtual void MouseMove(const MouseEvent &rMEvt) override
virtual void PrePaint(vcl::RenderContext &rRenderContext) override
Definition: ChartWindow.cxx:79
virtual void GetFocus() override
virtual void MouseButtonDown(const MouseEvent &rMEvt) override
ChartController * m_pWindowController
Definition: ChartWindow.hxx:75
virtual void DataChanged(const DataChangedEvent &rDCEvt) override
tools::Rectangle GetBoundingBox()
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible() override
virtual void dispose() override
Definition: ChartWindow.cxx:72
vcl::Window * GetParentEditWin()
virtual void MouseButtonUp(const MouseEvent &rMEvt) override
virtual void Resize() override
virtual void LogicInvalidate(const tools::Rectangle *pRectangle) override
Notify the LOK client about an invalidated area.
virtual bool IsChart() const override
Definition: ChartWindow.hxx:67
virtual void KeyInput(const KeyEvent &rKEvt) override
virtual void RequestHelp(const HelpEvent &rHEvt) override
std::function< std::unique_ptr< UIObject >(vcl::Window *)> FactoryFunction
InvalidateFlags
sal_Int64 WinBits