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

#include <viewfac.hxx>

Collaboration diagram for SfxViewFactory:
[legend]

Public Member Functions

 SfxViewFactory (SfxViewCtor fnC, SfxInterfaceId nOrdinal, const char *asciiViewName)
 
SfxViewShellCreateInstance (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
 

Detailed Description

Definition at line 33 of file viewfac.hxx.

Constructor & Destructor Documentation

◆ SfxViewFactory()

SfxViewFactory::SfxViewFactory ( SfxViewCtor  fnC,
SfxInterfaceId  nOrdinal,
const char *  asciiViewName 
)

Definition at line 47 of file viewfac.cxx.

Member Function Documentation

◆ CreateInstance()

SfxViewShell * SfxViewFactory::CreateInstance ( SfxViewFrame rViewFrame,
SfxViewShell pOldSh 
)

Definition at line 24 of file viewfac.cxx.

References fnCreate.

Referenced by SfxBaseModel::createViewController().

◆ GetAPIViewName()

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().

◆ GetLegacyViewName()

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().

◆ GetOrdinal()

SfxInterfaceId SfxViewFactory::GetOrdinal ( ) const
inline

Member Data Documentation

◆ fnCreate

SfxViewCtor SfxViewFactory::fnCreate
private

Definition at line 53 of file viewfac.hxx.

Referenced by CreateInstance().

◆ m_sViewName

const OUString SfxViewFactory::m_sViewName
private

Definition at line 55 of file viewfac.hxx.

Referenced by GetAPIViewName().

◆ nOrd

SfxInterfaceId SfxViewFactory::nOrd
private

Definition at line 54 of file viewfac.hxx.


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