21 std::shared_ptr<SwContentControl> pContentControl)
23 , m_pContentControl(
std::move(pContentControl))
42 m_xPopup->popup_at_rect(pParent, aRect);
65 int nPadding = aBoxSize.
Height() / 4;
109 Color aFillColor = aLineColor;
114 Point aPos(nPadding, nPadding);
123 aButtonPos.
AdjustX(nPadding * 2);
136 rRenderContext.
DrawRect(aButtonRect);
143 aSymbolRect.
AdjustLeft(nBorderDistanceLeftAndRight);
144 aSymbolRect.
AdjustRight(-nBorderDistanceLeftAndRight);
147 aSymbolRect.
AdjustTop(nBorderDistanceTopAndBottom);
152 rRenderContext.
SetAntialiasing(eAntialiasing | AntialiasingFlags::Enable);
165 if (aResult != WindowHitTest::Inside)
172 : WindowHitTest::Transparent;
175 : WindowHitTest::Transparent;
void IncreaseLuminance(sal_uInt8 cLumInc)
virtual void dispose() override
void DrawSymbol(const tools::Rectangle &rRect, SymbolType eType, const Color &rColor, DrawSymbolFlags nStyle=DrawSymbolFlags::NONE)
void SetAntialiasing(AntialiasingFlags nMode)
void DrawRect(const tools::Rectangle &rRect)
AntialiasingFlags GetAntialiasing() const
tools::Long AdjustY(tools::Long nVertMove)
tools::Long AdjustX(tools::Long nHorzMove)
constexpr tools::Long X() const
constexpr tools::Long Height() const
tools::Long AdjustHeight(tools::Long n)
constexpr tools::Long getWidth() const
void setWidth(tools::Long nWidth)
tools::Long AdjustWidth(tools::Long n)
constexpr tools::Long Width() const
This button is shown when the cursor is inside a content control with drop-down capability.
virtual void dispose() override
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
virtual WindowHitTest ImplHitTest(const Point &rFramePos) override
virtual void LaunchPopup()
void CalcPosAndSize(const SwRect &rPortionPaintArea)
SwContentControlButton(SwEditWin *pEditWin, std::shared_ptr< SwContentControl > pContentControl)
tools::Rectangle m_aFramePixel
virtual void MouseButtonDown(const MouseEvent &rMEvt) override
virtual ~SwContentControlButton() override
void StartPopup()
Shared MouseButtonDown() and KeyInput() code.
std::unique_ptr< weld::Builder > m_xPopupBuilder
virtual void DestroyPopup()
std::unique_ptr< weld::Popover > m_xPopup
static bool IsAntiAliasing()
Window class for the Writer edit area, this is the one handling mouse and keyboard events and doing t...
Of course Writer needs its own rectangles.
void Pos(const Point &rNew)
void SSize(const Size &rNew)
vcl::Window * GetParent() const
Point LogicToPixel(const Point &rLogicPt) const
void SetParentClipMode(ParentClipMode nMode=ParentClipMode::NONE)
virtual Point GetPosPixel() const
const Color & GetTextColor() const
virtual Size GetSizePixel() const
virtual WindowHitTest ImplHitTest(const Point &rFramePos)
void SetPaintTransparent(bool bTransparent)
void Invalidate(InvalidateFlags nFlags=InvalidateFlags::NONE)
virtual void SetPosSizePixel(const Point &rNewPos, const Size &rNewSize)
void EnableChildTransparentMode(bool bEnable=true)
constexpr ::Color COL_BLACK(0x00, 0x00, 0x00)
IMPL_LINK_NOARG(SwContentControlButton, PopupModeEndHdl, weld::Popover &, void)
#define LINK(Instance, Class, Member)
weld::Window * GetPopupParent(vcl::Window &rOutWin, tools::Rectangle &rRect)
WinBits const WB_DIALOGCONTROL