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 { namespace annotation {
30  class SwAnnotationWin;
31 } }
32 
33 namespace sw { namespace sidebarwindows {
34 
36 {
37  private:
41 
42  protected:
43  virtual void Paint( vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect) override;
45  void LogicInvalidate(const tools::Rectangle* pRectangle) override;
46  virtual void Command( const CommandEvent& rCEvt ) override;
47  virtual void LoseFocus() override;
48  virtual void RequestHelp(const HelpEvent &rEvt) override;
49  virtual OUString GetSurroundingText() const override;
50  virtual Selection GetSurroundingTextSelection() const override;
51 
52  public:
54  WinBits nBits,
55  SwView& rDocView,
56  SwPostItMgr& rPostItMgr );
57  virtual ~SidebarTextControl() override;
58  virtual void dispose() override;
59 
60  virtual void GetFocus() override;
61  virtual void KeyInput( const KeyEvent& rKeyEvt ) override;
62  virtual void MouseButtonDown(const MouseEvent& rMouseEvent) override;
63  virtual void MouseButtonUp(const MouseEvent& rMEvt) override;
64  virtual void MouseMove(const MouseEvent& rMEvt) override;
65 
66  OutlinerView* GetTextView() const;
67 
68  DECL_LINK( OnlineSpellCallback, SpellCallbackInfo&, void );
69 
70  virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible() override;
71 
72  virtual void Draw(OutputDevice* pDev, const Point&, const Size&, DrawFlags) override;
73 };
74 
75 } } // end of namespace sw::sidebarwindows
76 
77 #endif
78 
79 /* 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
Dialog to specify the properties of date form field.
virtual Selection GetSurroundingTextSelection() const override
sal_Int64 WinBits
virtual void Draw(OutputDevice *pDev, const Point &, const Size &, 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:146
virtual void MouseButtonUp(const MouseEvent &rMEvt) override