LibreOffice Module sfx2 (master) 1
|
#include <docfac.hxx>
Public Member Functions | |
SfxObjectFactory (const SvGlobalName &rName, OUString sFactoryName) | |
~SfxObjectFactory () | |
const SvGlobalName & | GetClassId () const |
OUString | GetFactoryURL () const |
const OUString & | GetFactoryName () const |
OUString | GetModuleName () const |
SfxFilterContainer * | GetFilterContainer () const |
void | RegisterViewFactory (SfxViewFactory &rFactory) |
sal_uInt16 | GetViewFactoryCount () const |
SfxViewFactory & | GetViewFactory (sal_uInt16 i=0) const |
SfxViewFactory * | GetViewFactoryByViewName (std::u16string_view i_rViewName) const |
returns the view factory whose GetAPIViewName or GetLegacyViewName delivers the requested logical name More... | |
std::shared_ptr< const SfxFilter > | GetTemplateFilter () const |
void | SetDocumentServiceName (const OUString &rServiceName) |
const OUString & | GetDocumentServiceName () const |
SfxModule * | GetModule () 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 SfxObjectFactory & | operator= (const SfxObjectFactory &)=delete |
Private Attributes | |
const OUString | m_sFactoryName |
std::unique_ptr< SfxObjectFactory_Impl > | pImpl |
Definition at line 40 of file docfac.hxx.
SfxObjectFactory::SfxObjectFactory | ( | const SvGlobalName & | rName, |
OUString | sFactoryName | ||
) |
Definition at line 71 of file docfac.cxx.
References m_sFactoryName, pImpl, and sName.
SfxObjectFactory::~SfxObjectFactory | ( | ) |
Definition at line 82 of file docfac.cxx.
References pImpl.
|
privatedelete |
const SvGlobalName & SfxObjectFactory::GetClassId | ( | ) | const |
Definition at line 294 of file docfac.cxx.
References pImpl.
Referenced by SfxObjectShell::GetClassName(), and IMPL_LINK().
const OUString & SfxObjectFactory::GetDocumentServiceName | ( | ) | const |
|
inline |
Definition at line 52 of file docfac.hxx.
Referenced by SvFileObject::Edit(), SfxViewFrame::MiscState_Impl(), and SfxViewFrame::UpdateTitle().
OUString SfxObjectFactory::GetFactoryURL | ( | ) | const |
Definition at line 299 of file docfac.cxx.
References m_sFactoryName.
SfxFilterContainer * SfxObjectFactory::GetFilterContainer | ( | ) | const |
Definition at line 66 of file docfac.cxx.
References pImpl.
Referenced by SfxBaseModel::attachResource(), SfxObjectShell::CommonSaveAs_Impl(), and SfxObjectShell::SaveTo_Impl().
SfxModule * SfxObjectFactory::GetModule | ( | ) | const |
Definition at line 123 of file docfac.cxx.
References pImpl.
Referenced by ConvertSlotsToCommands(), and SfxObjectShell::GetModule().
OUString SfxObjectFactory::GetModuleName | ( | ) | const |
Definition at line 304 of file docfac.cxx.
References GetDocumentServiceName(), and comphelper::SequenceAsHashMap::getUnpackedValueOrDefault().
|
static |
Definition at line 251 of file docfac.cxx.
References SvtModuleOptions::ClassifyFactoryByServiceName(), SvtModuleOptions::ClassifyFactoryByShortName(), SvtModuleOptions::GetFactoryStandardTemplate(), and SvtModuleOptions::UNKNOWN_FACTORY.
Referenced by SfxTemplateManagerDlg::DefaultTemplateMenuSelectHdl(), IMPL_LINK(), and lcl_getAllFactoryURLs().
std::shared_ptr< const SfxFilter > SfxObjectFactory::GetTemplateFilter | ( | ) | const |
Definition at line 263 of file docfac.cxx.
References SfxFilterMatcherIter::First(), m_sFactoryName, SfxFilterMatcherIter::Next(), and nVersion.
SfxViewFactory & SfxObjectFactory::GetViewFactory | ( | sal_uInt16 | i = 0 | ) | const |
Definition at line 117 of file docfac.cxx.
Referenced by SfxBaseModel::createDefaultViewController(), SfxBaseModel::getAvailableViewControllerNames(), SfxBaseController::getViewControllerName(), GetViewFactoryByViewName(), GetViewNo_Impl(), SfxViewFrame::SaveCurrentViewData_Impl(), SfxViewFrame::StateView_Impl(), and SfxViewFrame::SwitchToViewShell_Impl().
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().
sal_uInt16 SfxObjectFactory::GetViewFactoryCount | ( | ) | const |
Definition at line 111 of file docfac.cxx.
References pImpl.
Referenced by SfxBaseModel::getAvailableViewControllerNames(), SfxBaseController::getViewControllerName(), GetViewFactoryByViewName(), and GetViewNo_Impl().
sal_uInt16 SfxObjectFactory::GetViewNo_Impl | ( | const SfxInterfaceId | i_nViewId, |
const sal_uInt16 | i_nFallback | ||
) | const |
Definition at line 328 of file docfac.cxx.
References SfxViewFactory::GetOrdinal(), GetViewFactory(), and GetViewFactoryCount().
Referenced by SfxBaseController::getViewControllerName(), and SfxViewFrame::SaveCurrentViewData_Impl().
|
privatedelete |
void SfxObjectFactory::RegisterViewFactory | ( | SfxViewFactory & | rFactory | ) |
Definition at line 88 of file docfac.cxx.
References SfxViewFactory::GetAPIViewName(), pImpl, and SAL_WARN.
void SfxObjectFactory::SetDocumentServiceName | ( | const OUString & | rServiceName | ) |
Definition at line 284 of file docfac.cxx.
References pImpl.
void SfxObjectFactory::SetModule_Impl | ( | SfxModule * | pMod | ) |
Definition at line 128 of file docfac.cxx.
References pImpl.
|
static |
Definition at line 239 of file docfac.cxx.
References SvtModuleOptions::ClassifyFactoryByServiceName(), SvtModuleOptions::ClassifyFactoryByShortName(), SvtModuleOptions::SetFactoryStandardTemplate(), SetSystemTemplate(), and SvtModuleOptions::UNKNOWN_FACTORY.
Referenced by SfxTemplateManagerDlg::DefaultTemplateMenuSelectHdl(), IMPL_LINK(), and SfxSaveAsTemplateDialog::SaveTemplate().
|
static |
Definition at line 133 of file docfac.cxx.
References DBG_ASSERT, comphelper::ConfigurationHelper::flush(), comphelper::SequenceAsHashMap::getUnpackedValueOrDefault(), SystemPath::GetUserTemplateLocation(), comphelper::makePropertyValue(), comphelper::ConfigurationHelper::openConfig(), comphelper::ConfigurationHelper::readRelativeKey(), comphelper::Standard, u, comphelper::ConfigurationHelper::writeRelativeKey(), and xFactory.
Referenced by SetStandardTemplate().
|
private |
Definition at line 43 of file docfac.hxx.
Referenced by GetFactoryURL(), GetTemplateFilter(), and SfxObjectFactory().
|
private |
Definition at line 44 of file docfac.hxx.
Referenced by GetClassId(), GetDocumentServiceName(), GetFilterContainer(), GetModule(), GetViewFactory(), GetViewFactoryCount(), RegisterViewFactory(), SetDocumentServiceName(), SetModule_Impl(), SfxObjectFactory(), and ~SfxObjectFactory().