LibreOffice Module sfx2 (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
SfxObjectFactory Class Reference

#include <docfac.hxx>

Public Member Functions

 SfxObjectFactory (const SvGlobalName &rName, OUString sFactoryName)
 
 ~SfxObjectFactory ()
 
const SvGlobalNameGetClassId () const
 
OUString GetFactoryURL () const
 
const OUString & GetFactoryName () const
 
OUString GetModuleName () const
 
SfxFilterContainerGetFilterContainer () const
 
void RegisterViewFactory (SfxViewFactory &rFactory)
 
sal_uInt16 GetViewFactoryCount () const
 
SfxViewFactoryGetViewFactory (sal_uInt16 i=0) const
 
SfxViewFactoryGetViewFactoryByViewName (std::u16string_view i_rViewName) const
 returns the view factory whose GetAPIViewName or GetLegacyViewName delivers the requested logical name More...
 
std::shared_ptr< const SfxFilterGetTemplateFilter () const
 
void SetDocumentServiceName (const OUString &rServiceName)
 
const OUString & GetDocumentServiceName () const
 
SfxModuleGetModule () const
 
SAL_DLLPRIVATE void SetModule_Impl (SfxModule *)
 
SAL_DLLPRIVATE sal_uInt16 GetViewNo_Impl (const SfxInterfaceId i_nViewId, const sal_uInt16 i_nFallback) const
 

Static Public Member Functions

static OUString GetStandardTemplate (std::u16string_view rServiceName)
 
static void SetStandardTemplate (const OUString &rServiceName, const OUString &rTemplateName)
 
static void SetSystemTemplate (const OUString &rServiceName, const OUString &rTemplateName)
 

Private Member Functions

 SfxObjectFactory (const SfxObjectFactory &)=delete
 
const SfxObjectFactoryoperator= (const SfxObjectFactory &)=delete
 

Private Attributes

const OUString m_sFactoryName
 
std::unique_ptr< SfxObjectFactory_ImplpImpl
 

Detailed Description

Definition at line 40 of file docfac.hxx.

Constructor & Destructor Documentation

◆ SfxObjectFactory() [1/2]

SfxObjectFactory::SfxObjectFactory ( const SvGlobalName rName,
OUString  sFactoryName 
)

Definition at line 71 of file docfac.cxx.

References m_sFactoryName, pImpl, and sName.

◆ ~SfxObjectFactory()

SfxObjectFactory::~SfxObjectFactory ( )

Definition at line 82 of file docfac.cxx.

References pImpl.

◆ SfxObjectFactory() [2/2]

SfxObjectFactory::SfxObjectFactory ( const SfxObjectFactory )
privatedelete

Member Function Documentation

◆ GetClassId()

const SvGlobalName & SfxObjectFactory::GetClassId ( ) const

Definition at line 294 of file docfac.cxx.

References pImpl.

Referenced by SfxObjectShell::GetClassName(), and IMPL_LINK().

◆ GetDocumentServiceName()

const OUString & SfxObjectFactory::GetDocumentServiceName ( ) const

Definition at line 289 of file docfac.cxx.

References pImpl.

Referenced by GetModuleName().

◆ GetFactoryName()

const OUString & SfxObjectFactory::GetFactoryName ( ) const
inline

◆ GetFactoryURL()

OUString SfxObjectFactory::GetFactoryURL ( ) const

Definition at line 299 of file docfac.cxx.

References m_sFactoryName.

◆ GetFilterContainer()

SfxFilterContainer * SfxObjectFactory::GetFilterContainer ( ) const

◆ GetModule()

SfxModule * SfxObjectFactory::GetModule ( ) const

Definition at line 123 of file docfac.cxx.

References pImpl.

Referenced by ConvertSlotsToCommands(), and SfxObjectShell::GetModule().

◆ GetModuleName()

OUString SfxObjectFactory::GetModuleName ( ) const

◆ GetStandardTemplate()

OUString SfxObjectFactory::GetStandardTemplate ( std::u16string_view  rServiceName)
static

◆ GetTemplateFilter()

std::shared_ptr< const SfxFilter > SfxObjectFactory::GetTemplateFilter ( ) const

◆ GetViewFactory()

SfxViewFactory & SfxObjectFactory::GetViewFactory ( sal_uInt16  i = 0) const

◆ GetViewFactoryByViewName()

SfxViewFactory * SfxObjectFactory::GetViewFactoryByViewName ( std::u16string_view  i_rViewName) const

returns the view factory whose GetAPIViewName or GetLegacyViewName delivers the requested logical name

Definition at line 339 of file docfac.cxx.

References SfxViewFactory::GetAPIViewName(), SfxViewFactory::GetLegacyViewName(), GetViewFactory(), and GetViewFactoryCount().

Referenced by SfxBaseController::ConnectSfxFrame_Impl(), SfxBaseModel::createViewController(), and SfxViewFrame::SaveCurrentViewData_Impl().

◆ GetViewFactoryCount()

sal_uInt16 SfxObjectFactory::GetViewFactoryCount ( ) const

◆ GetViewNo_Impl()

sal_uInt16 SfxObjectFactory::GetViewNo_Impl ( const SfxInterfaceId  i_nViewId,
const sal_uInt16  i_nFallback 
) const

◆ operator=()

const SfxObjectFactory & SfxObjectFactory::operator= ( const SfxObjectFactory )
privatedelete

◆ RegisterViewFactory()

void SfxObjectFactory::RegisterViewFactory ( SfxViewFactory rFactory)

Definition at line 88 of file docfac.cxx.

References SfxViewFactory::GetAPIViewName(), pImpl, and SAL_WARN.

◆ SetDocumentServiceName()

void SfxObjectFactory::SetDocumentServiceName ( const OUString &  rServiceName)

Definition at line 284 of file docfac.cxx.

References pImpl.

◆ SetModule_Impl()

void SfxObjectFactory::SetModule_Impl ( SfxModule pMod)

Definition at line 128 of file docfac.cxx.

References pImpl.

◆ SetStandardTemplate()

void SfxObjectFactory::SetStandardTemplate ( const OUString &  rServiceName,
const OUString &  rTemplateName 
)
static

◆ SetSystemTemplate()

void SfxObjectFactory::SetSystemTemplate ( const OUString &  rServiceName,
const OUString &  rTemplateName 
)
static

Member Data Documentation

◆ m_sFactoryName

const OUString SfxObjectFactory::m_sFactoryName
private

Definition at line 43 of file docfac.hxx.

Referenced by GetFactoryURL(), GetTemplateFilter(), and SfxObjectFactory().

◆ pImpl

std::unique_ptr<SfxObjectFactory_Impl> SfxObjectFactory::pImpl
private

The documentation for this class was generated from the following files: