diff options
Diffstat (limited to 'sw/source/core/inc/DropDownFormFieldButton.hxx')
-rw-r--r-- | sw/source/core/inc/DropDownFormFieldButton.hxx | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/sw/source/core/inc/DropDownFormFieldButton.hxx b/sw/source/core/inc/DropDownFormFieldButton.hxx index 1147f59dfc9b..ab1004cc8119 100644 --- a/sw/source/core/inc/DropDownFormFieldButton.hxx +++ b/sw/source/core/inc/DropDownFormFieldButton.hxx @@ -12,6 +12,7 @@ #include <vcl/menubtn.hxx> #include <swrect.hxx> +#include "FormFieldButton.hxx" class SwEditWin; class FloatingWindow; @@ -24,28 +25,16 @@ class DropDownFieldmark; } /** - * This button is shown when the cursor is in a drop-down form field. + * This button is shown when the cursor is on a drop-down form field. * The user can select an item of the field using this button while filling in a form. */ -class DropDownFormFieldButton : public MenuButton +class DropDownFormFieldButton : public FormFieldButton { public: DropDownFormFieldButton(SwEditWin* pEditWin, sw::mark::DropDownFieldmark& rFieldMark); virtual ~DropDownFormFieldButton() override; - virtual void dispose() override; - void CalcPosAndSize(const SwRect& rPortionPaintArea); - - virtual void MouseButtonUp(const MouseEvent& rMEvt) override; - DECL_LINK(FieldPopupModeEndHdl, FloatingWindow*, void); - - virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect) override; - virtual WindowHitTest ImplHitTest(const Point& rFramePos) override; - -private: - tools::Rectangle m_aFieldFramePixel; - sw::mark::DropDownFieldmark& m_rFieldmark; - VclPtr<FloatingWindow> m_pFieldPopup; + virtual void InitPopup() override; }; #endif |