19#ifndef INCLUDED_SFX2_DISPATCH_HXX
20#define INCLUDED_SFX2_DISPATCH_HXX
33#include <boost/property_tree/ptree_fwd.hpp>
34#include <initializer_list>
71 std::unique_ptr<SfxDispatcher_Impl>
xImp;
74 SAL_DLLPRIVATE
bool CheckVirtualStack(
const SfxShell& rShell );
80friend class SfxPopupMenuManager;
84 void PostMsgHandler(std::unique_ptr<SfxRequest>);
87 SAL_DLLPRIVATE
void Update_Impl_(
bool,
bool,
bool,
SfxWorkWindow*);
103 SAL_DLLPRIVATE
void Construct_Impl();
110 sal_uInt16 nModi = 0,
121 std::initializer_list<SfxPoolItem const*> args,
122 std::initializer_list<SfxPoolItem const*> internalargs = std::initializer_list<SfxPoolItem const*>());
128 const SfxSlot* GetSlot(
const OUString& rCommand );
130 bool IsActive(
const SfxShell& rShell );
131 sal_uInt16 GetShellLevel(
const SfxShell &rShell );
141 void ExecutePopup(
const OUString &rResName,
vcl::Window *pWin =
nullptr,
const Point *pPos =
nullptr );
142 static void ExecutePopup(
vcl::Window *pWin =
nullptr,
const Point *pPosPixel =
nullptr );
144 bool IsAppDispatcher()
const;
145 bool IsFlushed()
const;
147 void Lock(
bool bLock );
148 bool IsLocked()
const;
152 void HideUI(
bool bHide =
true );
159 return QueryState(sal_uInt16(nSID),
reinterpret_cast<SfxPoolItem const*&
>(rpState));
161 SfxItemState QueryState( sal_uInt16 nSID, css::uno::Any& rAny );
166 SAL_DLLPRIVATE
void SetMenu_Impl();
167 SAL_DLLPRIVATE
void Update_Impl(
bool bForce =
false );
168 SAL_DLLPRIVATE
bool IsUpdated_Impl()
const;
169 SAL_DLLPRIVATE
bool GetShellAndSlot_Impl( sal_uInt16 nSlot,
SfxShell **ppShell,
const SfxSlot **ppSlot,
170 bool bOwnShellsOnly,
bool bRealSlot );
171 SAL_DLLPRIVATE
void SetReadOnly_Impl(
bool bOn );
172 SAL_DLLPRIVATE
bool GetReadOnly_Impl()
const;
173 SAL_DLLPRIVATE
SfxSlotFilterState IsSlotEnabledByFilter_Impl( sal_uInt16 nSID )
const;
174 SAL_DLLPRIVATE
void SetQuietMode_Impl(
bool bOn );
175 SAL_DLLPRIVATE
bool IsReadOnlyShell_Impl( sal_uInt16 nShell )
const;
176 SAL_DLLPRIVATE
void RemoveShell_Impl(
SfxShell& rShell );
177 SAL_DLLPRIVATE
void DoActivate_Impl(
bool bMDI );
178 SAL_DLLPRIVATE
void DoDeactivate_Impl(
bool bMDI,
SfxViewFrame const * pNew );
179 SAL_DLLPRIVATE
void InvalidateBindings_Impl(
bool);
std::unique_ptr< SfxDispatcher_Impl > xImp
SfxItemState QueryState(TypedWhichId< T > nSID, const T *&rpState)
DECL_DLLPRIVATE_LINK(EventHdl_Impl, Timer *, void)
The class SfxShell is the base class for all classes, which provide the functionality of the form <Sl...
virtual SfxBindings & GetBindings() override