LibreOffice Module sw (master)  1
SidebarTxtControl.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 
20 #ifndef INCLUDED_SW_SOURCE_UIBASE_DOCVW_SIDEBARTXTCONTROL_HXX
21 #define INCLUDED_SW_SOURCE_UIBASE_DOCVW_SIDEBARTXTCONTROL_HXX
22 
23 #include <vcl/ctrl.hxx>
24 
25 class OutlinerView;
26 class SwView;
27 class SwPostItMgr;
28 struct SpellCallbackInfo;
29 namespace sw::annotation { class SwAnnotationWin; }
30 
31 namespace sw::sidebarwindows {
32 
34 {
35  private:
39 
40  protected:
41  virtual void Paint( vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect) override;
43  void LogicInvalidate(const tools::Rectangle* pRectangle) override;
44  virtual void Command( const CommandEvent& rCEvt ) override;
45  virtual void LoseFocus() override;
46  virtual void RequestHelp(const HelpEvent &rEvt) override;
47  virtual OUString GetSurroundingText() const override;
48  virtual Selection GetSurroundingTextSelection() const override;
49 
50  public:
52  WinBits nBits,
53  SwView& rDocView,
54  SwPostItMgr& rPostItMgr );
55  virtual ~SidebarTextControl() override;
56  virtual void dispose() override;
57 
58  virtual void GetFocus() override;
59  virtual void KeyInput( const KeyEvent& rKeyEvt ) override;
60  virtual void MouseButtonDown(const MouseEvent& rMouseEvent) override;
61  virtual void MouseButtonUp(const MouseEvent& rMEvt) override;
62  virtual void MouseMove(const MouseEvent& rMEvt) override;
63 
64  OutlinerView* GetTextView() const;
65 
66  DECL_LINK( OnlineSpellCallback, SpellCallbackInfo&, void );
67 
68  virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible() override;
69 
70  virtual void Draw(OutputDevice* pDev, const Point&, DrawFlags) override;
71 };
72 
73 } // end of namespace sw::sidebarwindows
74 
75 #endif
76 
77 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void Command(const CommandEvent &rCEvt) override
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible() override
virtual void MouseMove(const MouseEvent &rMEvt) override
virtual Selection GetSurroundingTextSelection() const override
sal_Int64 WinBits
virtual void Draw(OutputDevice *pDev, const Point &, DrawFlags) override
virtual void MouseButtonDown(const MouseEvent &rMouseEvent) override
SidebarTextControl(sw::annotation::SwAnnotationWin &rSidebarWin, WinBits nBits, SwView &rDocView, SwPostItMgr &rPostItMgr)
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
void LogicInvalidate(const tools::Rectangle *pRectangle) override
DrawFlags
virtual void RequestHelp(const HelpEvent &rEvt) override
DECL_LINK(OnlineSpellCallback, SpellCallbackInfo &, void)
virtual void KeyInput(const KeyEvent &rKeyEvt) override
virtual OUString GetSurroundingText() const override
sw::annotation::SwAnnotationWin & mrSidebarWin
Definition: view.hxx:144
virtual void MouseButtonUp(const MouseEvent &rMEvt) override