19#ifndef INCLUDED_SFX2_DOCFAC_HXX
20#define INCLUDED_SFX2_DOCFAC_HXX
26#include <rtl/ustring.hxx>
44 std::unique_ptr<SfxObjectFactory_Impl>
pImpl;
51 OUString GetFactoryURL()
const;
53 OUString GetModuleName()
const;
58 sal_uInt16 GetViewFactoryCount()
const;
62 SfxViewFactory* GetViewFactoryByViewName( std::u16string_view i_rViewName )
const;
65 std::shared_ptr<const SfxFilter> GetTemplateFilter()
const;
66 static OUString GetStandardTemplate( std::u16string_view rServiceName );
67 static void SetStandardTemplate(
const OUString& rServiceName,
const OUString& rTemplateName );
68 static void SetSystemTemplate(
const OUString& rServiceName,
const OUString& rTemplateName );
70 void SetDocumentServiceName(
const OUString& rServiceName );
71 const OUString& GetDocumentServiceName()
const;
75 SAL_DLLPRIVATE
void SetModule_Impl(
SfxModule* );
76 SAL_DLLPRIVATE sal_uInt16 GetViewNo_Impl(
const SfxInterfaceId i_nViewId,
const sal_uInt16 i_nFallback )
const;
83#define SFX_DECL_OBJECTFACTORY() \
85 static SfxObjectFactory& Factory(); \
86 virtual SfxObjectFactory& GetFactory() const override { return Factory(); }
88#define SFX_IMPL_OBJECTFACTORY(ClassName,GlobName,ShortName) \
89 SfxObjectFactory& ClassName::Factory() \
91 static SfxObjectFactory aObjectFactory(GlobName, ShortName); \
92 return aObjectFactory; \
const OUString & GetFactoryName() const
SfxObjectFactory(const SfxObjectFactory &)=delete
const SfxObjectFactory & operator=(const SfxObjectFactory &)=delete
const OUString m_sFactoryName
std::unique_ptr< SfxObjectFactory_Impl > pImpl