19#ifndef INCLUDED_SFX2_APP_HXX
20#define INCLUDED_SFX2_APP_HXX
30#include <com/sun/star/ui/XAcceleratorConfiguration.hpp>
31#include <unordered_map>
88 {
return static_cast<const SfxLinkItem&
>(rL).aLink == aLink; }
97 std::unique_ptr<SfxAppData_Impl>
pImpl;
108 static void InitInterface_Impl();
118 static bool DdeExecute(
const OUString& rCmd );
120 bool InitializeDde();
138 sal_uInt16 GetFreeIndex();
139 void ReleaseIndex(sal_uInt16 i);
142 static bool IsXScriptURL(
const OUString& rScriptURL );
146 static void MacroOrganizer(
weld::Window* pParent,
const css::uno::Reference<css::frame::XFrame>& xDocFrame, sal_Int16 nTabId);
151 css::script::XLibraryContainer * GetDialogContainer();
152 css::script::XLibraryContainer * GetBasicContainer();
154 void SaveBasicAndDialogContainer()
const;
159 virtual void Invalidate(sal_uInt16 nId = 0)
override;
161 bool IsDowning()
const;
167 SAL_DLLPRIVATE
void SetOptions_Impl(
const SfxItemSet &);
168 SAL_DLLPRIVATE
void Initialize_Impl();
176 SAL_DLLPRIVATE
SfxTbxCtrlFactory* GetTbxCtrlFactory(
const std::type_info& rSlotType, sal_uInt16 nSlotID)
const;
177 SAL_DLLPRIVATE
SfxStbCtrlFactory* GetStbCtrlFactory(
const std::type_info& rSlotType, sal_uInt16 nSlotID)
const;
179 SAL_DLLPRIVATE std::vector<SfxViewFrame*>& GetViewFrames_Impl()
const;
180 SAL_DLLPRIVATE std::vector<SfxViewShell*>& GetViewShells_Impl()
const;
182 SAL_DLLPRIVATE std::unordered_map<OUString, css::uno::Reference<css::ui::XAcceleratorConfiguration>>& GetAcceleratorConfs_Impl()
const;
183 SAL_DLLPRIVATE std::vector<SfxObjectShell*>& GetObjectShells_Impl()
const;
184 SAL_DLLPRIVATE
void SetViewFrame_Impl(
SfxViewFrame *pViewFrame);
188 SAL_DLLPRIVATE
void NewDocDirectExec_Impl(
SfxRequest &);
189 SAL_DLLPRIVATE
static void NewDocDirectState_Impl(
SfxItemSet &);
190 SAL_DLLPRIVATE
void NewDocExec_Impl(
SfxRequest &);
191 SAL_DLLPRIVATE
void OpenDocExec_Impl(
SfxRequest &);
192 SAL_DLLPRIVATE
void OpenRemoteExec_Impl(
SfxRequest &);
193 SAL_DLLPRIVATE
void SignPDFExec_Impl(
SfxRequest&);
194 SAL_DLLPRIVATE
void MiscExec_Impl(
SfxRequest &);
195 SAL_DLLPRIVATE
void MiscState_Impl(
SfxItemSet &);
196 SAL_DLLPRIVATE
static void PropExec_Impl(
SfxRequest const &);
197 SAL_DLLPRIVATE
static void PropState_Impl(
SfxItemSet &);
198 SAL_DLLPRIVATE
void OfaExec_Impl(
SfxRequest &);
199 SAL_DLLPRIVATE
static void OfaState_Impl(
SfxItemSet &);
201 SAL_DLLPRIVATE
void SetProgress_Impl(
SfxProgress *);
202 SAL_DLLPRIVATE
const OUString& GetLastDir_Impl()
const;
203 SAL_DLLPRIVATE
void SetLastDir_Impl(
const OUString & );
205 SAL_DLLPRIVATE
static void Registrations_Impl();
211 SAL_DLLPRIVATE
SfxSlotPool& GetAppSlotPool_Impl()
const;
212 SAL_DLLPRIVATE
static SfxModule* GetModule_Impl();
214 static void SetModule(
SfxToolsModule nSharedLib, std::unique_ptr<SfxModule> pModule);
217 static bool loadBrandSvg(
const char *pName,
BitmapEx &rBitmap,
int nWidth);
224 static bool IsHeadlessOrUITest();
226 static bool IsTipOfTheDayDue();
SfxApplication * SfxGetpApp()
SAL_DLLPRIVATE SfxAppData_Impl * Get_Impl() const
DECL_DLLPRIVATE_STATIC_LINK(SfxApplication, GlobalBasicErrorHdl_Impl, StarBASIC *, bool)
std::unique_ptr< SfxAppData_Impl > pImpl
static SfxApplication * Get()
static BasicManager * GetBasicManager()
static ErrCode CallAppBasic(const OUString &i_macroName)
virtual SfxLinkItem * Clone(SfxItemPool *=nullptr) const override
virtual bool operator==(const SfxPoolItem &rL) const override
const Link< SfxPoolItem const *, void > & GetValue() const
Link< SfxPoolItem const *, void > aLink
SfxLinkItem(sal_uInt16 nWhichId, const Link< SfxPoolItem const *, void > &rValue)
The class SfxShell is the base class for all classes, which provide the functionality of the form <Sl...
SVXCORE_DLLPUBLIC MSO_SPT Get(const OUString &)
#define SFX_DECL_INTERFACE(nId)
constexpr auto SFX_INTERFACE_SFXAPP