LibreOffice Module sw (master)  1
FormFieldButton.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
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 
10 #ifndef INCLUDED_SW_SOURCE_CORE_TEXT_FORMEFIELDBUTTO_HXX
11 #define INCLUDED_SW_SOURCE_CORE_TEXT_FORMEFIELDBUTTO_HXX
12 
13 #include <vcl/menubtn.hxx>
14 #include <swrect.hxx>
15 
16 class SwEditWin;
17 class FloatingWindow;
18 namespace sw
19 {
20 namespace mark
21 {
22 class Fieldmark;
23 }
24 } // namespace sw
25 
30 {
31 public:
32  FormFieldButton(SwEditWin* pEditWin, sw::mark::Fieldmark& rFieldMark);
33  virtual ~FormFieldButton() override;
34  virtual void dispose() override;
35 
36  void CalcPosAndSize(const SwRect& rPortionPaintArea);
37 
38  virtual void MouseButtonUp(const MouseEvent& rMEvt) override;
39  DECL_LINK(FieldPopupModeEndHdl, FloatingWindow*, void);
40 
41  virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect) override;
42  virtual WindowHitTest ImplHitTest(const Point& rFramePos) override;
43 
44  virtual void InitPopup() = 0;
45 
46 private:
48 
49 protected:
52 };
53 
54 #endif
55 
56 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
DECL_LINK(FieldPopupModeEndHdl, FloatingWindow *, void)
WindowHitTest
sw::mark::Fieldmark & m_rFieldmark
virtual WindowHitTest ImplHitTest(const Point &rFramePos) override
Dialog to specify the properties of date form field.
Of course Writer needs its own rectangles.
Definition: swrect.hxx:34
VclPtr< FloatingWindow > m_pFieldPopup
virtual void InitPopup()=0
This button is shown when the cursor is on a form field with drop-down capability.
Window class for the Writer edit area, this is the one handling mouse and keyboard events and doing t...
Definition: edtwin.hxx:58
void CalcPosAndSize(const SwRect &rPortionPaintArea)
tools::Rectangle m_aFieldFramePixel
virtual void MouseButtonUp(const MouseEvent &rMEvt) override
virtual ~FormFieldButton() override
virtual void dispose() override
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
FormFieldButton(SwEditWin *pEditWin, sw::mark::Fieldmark &rFieldMark)