20#include <com/sun/star/awt/XTopWindow.hpp>
21#include <com/sun/star/frame/XDispatchRecorder.hpp>
29#include <sfx2/strings.hrc>
33#include <sfx2/sfxsids.hrc>
81 if ( xRecorder.is() && !xRecorder->getRecordedMacro().isEmpty() )
87 VclMessageType::Question, VclButtonsType::YesNo,
89 xQueryBox->set_default_response(
RET_NO);
91 xQueryBox->set_title(
SfxResId(STR_CANCEL_RECORDING));
92 bRet = (xQueryBox->run() ==
RET_YES);
102 , m_xToolbar(m_xBuilder->weld_toolbar(
"toolbar"))
104 , mnPostUserEventId(nullptr)
105 , m_bFirstActivate(true)
115 mnPostUserEventId =
nullptr;
116 css::uno::Reference<css::awt::XTopWindow> xTopWindow(m_xDispatcher->GetFrame()->getContainerWindow(), css::uno::UNO_QUERY);
118 xTopWindow->toFront();
static ImplSVEvent * PostUserEvent(const Link< void *, void > &rLink, void *pCaller=nullptr, bool bReferenceLink=false)
static void RemoveUserEvent(ImplSVEvent *nUserEvent)
static weld::MessageDialog * CreateMessageDialog(weld::Widget *pParent, VclMessageType eMessageType, VclButtonsType eButtonType, const OUString &rPrimaryMessage, const ILibreOfficeKitNotifier *pNotifier=nullptr)
tools::Long AdjustY(tools::Long nVertMove)
tools::Long AdjustX(tools::Long nHorzMove)
SAL_DLLPRIVATE SfxDispatcher * GetDispatcher_Impl()
SfxDispatcher * GetDispatcher() const
const css::uno::Reference< css::frame::XDispatchRecorder > & GetRecorder() const
void SetController(std::shared_ptr< SfxDialogController > controller)
std::shared_ptr< SfxDialogController > & GetController()
const SfxPoolItem * ExecuteList(sal_uInt16 nSlot, SfxCallMode nCall, std::initializer_list< SfxPoolItem const * > args, std::initializer_list< SfxPoolItem const * > internalargs=std::initializer_list< SfxPoolItem const * >())
Method to execute a <SfxSlot>s over the Slot-Id.
SfxViewFrame * GetFrame() const
Returns a pointer to the <SfxViewFrame> instance, which belongs to this SfxDispatcher.
virtual void FillInfo(SfxChildWinInfo &) const
SfxBindings & GetBindings() const
void Initialize(SfxChildWinInfo const *pInfo)
virtual void Activate() override
SfxRecordingFloatWrapper_Impl(vcl::Window *pParent, sal_uInt16 nId, SfxBindings *pBindings, SfxChildWinInfo const *pInfo)
virtual bool QueryClose() override
virtual ~SfxRecordingFloatWrapper_Impl() override
ImplSVEvent * mnPostUserEventId
virtual void FillInfo(SfxChildWinInfo &rInfo) const override
SfxRecordingFloat_Impl(SfxBindings *pBindings, SfxChildWindow *pChildWin, weld::Window *pParent)
virtual void Activate() override
std::unique_ptr< ToolbarUnoDispatcher > m_xDispatcher
virtual ~SfxRecordingFloat_Impl() override
SfxViewShell * GetViewShell() const
Returns the SfxViewShell in which they are located in the subshells.
vcl::Window * GetWindow() const
void setMask(WindowDataMask nMask)
void setPos(const Point &aPos)
Point OutputToScreenPixel(const Point &rPos) const
virtual Point GetPosPixel() const
weld::Window * GetFrameWeld() const
virtual Dialog * getDialog() override
virtual void set_window_state(const OUString &rStr)=0
#define LINK(Instance, Class, Member)
SFX_IMPL_MODELESSDIALOGCONTOLLER(SfxRecordingFloatWrapper_Impl, SID_RECORDING_FLOATWINDOW)
IMPL_LINK_NOARG(SfxRecordingFloat_Impl, PresentParentFrame, void *, void)
OUString SfxResId(TranslateId aId)