LibreOffice Module sfx2 (master) 1
|
#include <viewfac.hxx>
Public Member Functions | |
SfxViewFactory (SfxViewCtor fnC, SfxInterfaceId nOrdinal, const char *asciiViewName) | |
SfxViewShell * | CreateInstance (SfxViewFrame &rViewFrame, SfxViewShell *pOldSh) |
SfxInterfaceId | GetOrdinal () const |
OUString | GetLegacyViewName () const |
returns a legacy view name. This is "view" with an appended ordinal/ID. More... | |
OUString | GetAPIViewName () const |
returns an API-compatible view name. More... | |
Private Attributes | |
SfxViewCtor | fnCreate |
SfxInterfaceId | nOrd |
const OUString | m_sViewName |
Definition at line 33 of file viewfac.hxx.
SfxViewFactory::SfxViewFactory | ( | SfxViewCtor | fnC, |
SfxInterfaceId | nOrdinal, | ||
const char * | asciiViewName | ||
) |
Definition at line 47 of file viewfac.cxx.
SfxViewShell * SfxViewFactory::CreateInstance | ( | SfxViewFrame & | rViewFrame, |
SfxViewShell * | pOldSh | ||
) |
Definition at line 24 of file viewfac.cxx.
References fnCreate.
Referenced by SfxBaseModel::createViewController().
OUString SfxViewFactory::GetAPIViewName | ( | ) | const |
returns an API-compatible view name.
For details on which view names are specified, see the XModel2.getAvailableViewControllerNames documentation.
Definition at line 34 of file viewfac.cxx.
References GetLegacyViewName(), GetOrdinal(), m_sViewName, and SFX_INTERFACE_NONE.
Referenced by SfxBaseModel::createDefaultViewController(), SfxBaseModel::getAvailableViewControllerNames(), SfxBaseController::getViewControllerName(), SfxObjectFactory::GetViewFactoryByViewName(), SfxObjectFactory::RegisterViewFactory(), and SfxViewFrame::SaveCurrentViewData_Impl().
OUString SfxViewFactory::GetLegacyViewName | ( | ) | const |
returns a legacy view name. This is "view" with an appended ordinal/ID.
Definition at line 29 of file viewfac.cxx.
References GetOrdinal().
Referenced by GetAPIViewName(), and SfxObjectFactory::GetViewFactoryByViewName().
|
inline |
Definition at line 40 of file viewfac.hxx.
Referenced by SfxBaseController::ConnectSfxFrame_Impl(), SfxBaseModel::createViewController(), GetAPIViewName(), GetLegacyViewName(), SfxObjectFactory::GetViewNo_Impl(), SfxViewFrame::SaveCurrentViewData_Impl(), SfxViewFrame::StateView_Impl(), and SfxViewFrame::SwitchToViewShell_Impl().
|
private |
Definition at line 53 of file viewfac.hxx.
Referenced by CreateInstance().
|
private |
Definition at line 55 of file viewfac.hxx.
Referenced by GetAPIViewName().
|
private |
Definition at line 54 of file viewfac.hxx.