32#include <svx/svxids.hrc>
47 addStatusListener(
".uno:ClipboardFormatItems");
63 std::unique_ptr<weld::Menu> xPopup(xBuilder->weld_menu(
"menu"));
70 if (aFmtStr.isEmpty())
72 xPopup->append(OUString::number(
static_cast<sal_uInt32
>(nFmtID)), aFmtStr);
81 OUString sResult = xPopup->popup_at_rect(pParent, aRect);
85 SfxUInt32Item aItem(SID_CLIPBOARD_FORMAT_ITEMS, sResult.toUInt32());
90 Dispatch(
".uno:ClipboardFormatItems",
99 if ( SID_CLIPBOARD_FORMAT_ITEMS == nSID )
102 if ( eState >= SfxItemState::DEFAULT )
static std::unique_ptr< weld::Builder > CreateBuilder(weld::Widget *pParent, const OUString &rUIFile, bool bMobile=false, sal_uInt64 nLOKWindowId=0)
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const=0
static OUString GetSotFormatUIName(SotClipboardFormatId nId)
std::unique_ptr< SfxPoolItem > pClipboardFmtItem
SvxClipBoardControl(sal_uInt16 nSlotId, ToolBoxItemId nId, ToolBox &rTbx)
virtual ~SvxClipBoardControl() override
void CreatePopupWindow() override
virtual void StateChangedAtToolBoxControl(sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem *pState) override
void Invalidate(InvalidateFlags nFlags=InvalidateFlags::NONE)
SFX_IMPL_TOOLBOX_CONTROL(SvxClipBoardControl, SfxVoidItem)
css::beans::PropertyValue makePropertyValue(const OUString &rName, T &&rValue)
weld::Window * GetPopupParent(vcl::Window &rOutWin, tools::Rectangle &rRect)