31#define BUTTON_WIDTH 12
36 "ContentControlAliasButton")
37 , m_xPushButton(m_xBuilder->weld_button(
"button"))
38 , m_sLabel(pContentControl->GetAlias())
80 SwView& rView = GetEditWin()->GetView();
87 pDlg->StartExecuteAsync(aContext);
115 Point aTextPos(nTextOffsetX, nTextOffsetY);
118 aFontSize.
getX(), aFontSize.
getY(),
static_cast<double>(aTextPos.
X()),
119 static_cast<double>(aTextPos.
Y()));
124 std::move(aFontAttr), css::lang::Locale(), aLineColor)));
128 std::unique_ptr<drawinglayer::processor2d::BaseProcessor2D> pProcessor
131 pProcessor->process(
aSeq);
basegfx::BColor getBColor() const
tools::Long GetLineHeight() const
tools::Long GetAscent() const
constexpr tools::Long Y() const
constexpr tools::Long X() const
constexpr tools::Long Height() const
virtual VclPtr< VclAbstractDialog > CreateSwContentControlDlg(weld::Window *pParent, SwWrtShell &rSh)=0
static SwAbstractDialogFactory * Create()
In case the content control has an alias/title, this widget shows it above the top left corner of the...
void ShowAll(bool bShow) override
~SwContentControlAliasButton() override
std::unique_ptr< weld::Button > m_xPushButton
void SetOffset(Point aTopLeftPixel)
SwContentControlAliasButton(SwEditWin *pEditWin, SwContentControl *pContentControl)
void SetReadonly(bool bReadonly) override
void SetContentControl(SwContentControl *pContentControl)
bool Contains(const Point &rDocPt) const override
Stores the properties of a content control.
const OUString & GetAlias() const
Window class for the Writer edit area, this is the one handling mouse and keyboard events and doing t...
const SwView & GetView() const
const Color & GetHeaderFooterMarkColor() const
const SwViewOption * GetViewOptions() const
SwWrtShell & GetWrtShell() const
Used by the UI to modify the document model.
reference_type * get() const
virtual Point GetPosPixel() const
void Show(bool bVisible=true, ShowFlags nFlags=ShowFlags::NONE)
virtual Size GetSizePixel() const
virtual void SetPosSizePixel(const Point &rNewPos, const Size &rNewSize)
IMPL_LINK_NOARG(SwContentControlAliasButton, ClickHdl, weld::Button &, void)
weld::Window * GetFrameWeld(const SfxFrame *pFrame)
#define LINK(Instance, Class, Member)
Sequence< sal_Int8 > aSeq
B2DHomMatrix createScaleTranslateB2DHomMatrix(double fScaleX, double fScaleY, double fTranslateX, double fTranslateY)
attribute::FontAttribute getFontAttributeFromVclFont(basegfx::B2DVector &o_rSize, const vcl::Font &rFont, bool bRTL, bool bBiDiStrong)
std::unique_ptr< BaseProcessor2D > createProcessor2DFromOutputDevice(OutputDevice &rTargetOutDev, const drawinglayer::geometry::ViewInformation2D &rViewInformation2D)
SwNodeOffset abs(const SwNodeOffset &a)
std::function< void(sal_Int32)> maEndDialogFn