LibreOffice Module sw (master)
1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
sw
source
core
inc
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
#pragma once
11
12
#include <
vcl/ctrl.hxx
>
13
#include <
swrect.hxx
>
14
15
class
SwEditWin
;
16
class
FloatingWindow
;
17
namespace
sw::mark
18
{
19
class
Fieldmark;
20
}
21
25
class
FormFieldButton
:
public
Control
26
{
27
public
:
28
FormFieldButton
(
SwEditWin
* pEditWin,
sw::mark::Fieldmark
& rFieldMark);
29
virtual
~FormFieldButton
()
override
;
30
virtual
void
dispose
()
override
;
31
32
void
CalcPosAndSize
(
const
SwRect
& rPortionPaintArea);
33
34
virtual
void
MouseButtonDown
(
const
MouseEvent
& rMEvt)
override
;
35
DECL_LINK
(FieldPopupModeEndHdl,
FloatingWindow
*,
void
);
36
37
virtual
void
Paint
(
vcl::RenderContext
& rRenderContext,
const
tools::Rectangle
& rRect)
override
;
38
virtual
WindowHitTest
ImplHitTest
(
const
Point
& rFramePos)
override
;
39
40
virtual
void
InitPopup
() = 0;
41
42
private
:
43
tools::Rectangle
m_aFieldFramePixel
;
44
45
protected
:
46
sw::mark::Fieldmark
&
m_rFieldmark
;
47
VclPtr<FloatingWindow>
m_pFieldPopup
;
48
};
49
50
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
FormFieldButton::DECL_LINK
DECL_LINK(FieldPopupModeEndHdl, FloatingWindow *, void)
WindowHitTest
WindowHitTest
FormFieldButton::m_rFieldmark
sw::mark::Fieldmark & m_rFieldmark
Definition:
FormFieldButton.hxx:46
VclPtr< FloatingWindow >
swrect.hxx
FormFieldButton::ImplHitTest
virtual WindowHitTest ImplHitTest(const Point &rFramePos) override
Definition:
FormFieldButton.cxx:142
SwRect
Of course Writer needs its own rectangles.
Definition:
swrect.hxx:35
sw::mark
Definition:
annotationmark.cxx:34
FormFieldButton::m_pFieldPopup
VclPtr< FloatingWindow > m_pFieldPopup
Definition:
FormFieldButton.hxx:47
FormFieldButton::InitPopup
virtual void InitPopup()=0
ctrl.hxx
sw::mark::Fieldmark
Definition:
bookmrk.hxx:199
FormFieldButton
This button is shown when the cursor is on a form field with drop-down capability.
Definition:
FormFieldButton.hxx:25
SwEditWin
Window class for the Writer edit area, this is the one handling mouse and keyboard events and doing t...
Definition:
edtwin.hxx:58
FormFieldButton::CalcPosAndSize
void CalcPosAndSize(const SwRect &rPortionPaintArea)
Definition:
FormFieldButton.cxx:38
FormFieldButton::m_aFieldFramePixel
tools::Rectangle m_aFieldFramePixel
Definition:
FormFieldButton.hxx:43
OutputDevice
tools::Rectangle
Unit::Point
FormFieldButton::~FormFieldButton
virtual ~FormFieldButton() override
Definition:
FormFieldButton.cxx:30
FormFieldButton::dispose
virtual void dispose() override
Definition:
FormFieldButton.cxx:32
Control
FormFieldButton::Paint
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
Definition:
FormFieldButton.cxx:96
FormFieldButton::FormFieldButton
FormFieldButton(SwEditWin *pEditWin, sw::mark::Fieldmark &rFieldMark)
Definition:
FormFieldButton.cxx:17
FormFieldButton::MouseButtonDown
virtual void MouseButtonDown(const MouseEvent &rMEvt) override
Definition:
FormFieldButton.cxx:64
MouseEvent
FloatingWindow
Generated on Thu Jan 14 2021 06:11:31 for LibreOffice Module sw (master) by
1.8.10