LibreOffice Module sfx2 (master) 1
Public Member Functions | Private Attributes | Friends | List of all members
SfxInterface Class Referencefinal

#include <objface.hxx>

Collaboration diagram for SfxInterface:
[legend]

Public Member Functions

 SfxInterface (const char *pClass, bool bSuperClass, SfxInterfaceId nClassId, const SfxInterface *pGeno, SfxSlot &rMessages, sal_uInt16 nMsgCount)
 
 ~SfxInterface ()
 
void SetSlotMap (SfxSlot &rMessages, sal_uInt16 nMsgCount)
 
sal_uInt16 Count () const
 
const SfxSlotGetRealSlot (const SfxSlot *) const
 
const SfxSlotGetSlot (sal_uInt16 nSlotId) const
 
const SfxSlotGetSlot (const OUString &rCommand) const
 
const char * GetClassName () const
 
bool UseAsSuperClass () const
 
const SfxInterfaceGetGenoType () const
 
void RegisterObjectBar (sal_uInt16, SfxVisibilityFlags nFlags, ToolbarId eId)
 
void RegisterObjectBar (sal_uInt16, SfxVisibilityFlags nFlags, ToolbarId eId, SfxShellFeature nFeature)
 
void RegisterChildWindow (sal_uInt16, bool bContext=false)
 
void RegisterChildWindow (sal_uInt16, bool bContext, SfxShellFeature nFeature)
 
void RegisterStatusBar (StatusBarId eId)
 
ToolbarId GetObjectBarId (sal_uInt16 nNo) const
 
sal_uInt16 GetObjectBarPos (sal_uInt16 nNo) const
 
SfxVisibilityFlags GetObjectBarFlags (sal_uInt16 nNo) const
 
SfxShellFeature GetObjectBarFeature (sal_uInt16 nNo) const
 
sal_uInt16 GetObjectBarCount () const
 
bool IsObjectBarVisible (sal_uInt16 nNo) const
 
SfxShellFeature GetChildWindowFeature (sal_uInt16 nNo) const
 
sal_uInt32 GetChildWindowId (sal_uInt16 nNo) const
 
sal_uInt16 GetChildWindowCount () const
 
void RegisterPopupMenu (const OUString &)
 
const OUString & GetPopupMenuName () const
 
StatusBarId GetStatusBarId () const
 
void Register (const SfxModule *)
 
SAL_DLLPRIVATE bool ContainsSlot_Impl (const SfxSlot *pSlot) const
 

Private Attributes

const char * pName
 
const SfxInterfacepGenoType
 
SfxSlotpSlots
 
sal_uInt16 nCount
 
SfxInterfaceId nClassId
 
bool bSuperClass
 
std::unique_ptr< SfxInterface_ImplpImplData
 

Friends

class SfxSlotPool
 

Detailed Description

Definition at line 55 of file objface.hxx.

Constructor & Destructor Documentation

◆ SfxInterface()

SfxInterface::SfxInterface ( const char *  pClass,
bool  bSuperClass,
SfxInterfaceId  nClassId,
const SfxInterface pGeno,
SfxSlot rMessages,
sal_uInt16  nMsgCount 
)

Definition at line 89 of file objface.cxx.

References nId, pName, and SetSlotMap().

◆ ~SfxInterface()

SfxInterface::~SfxInterface ( )

Definition at line 180 of file objface.cxx.

Member Function Documentation

◆ ContainsSlot_Impl()

SAL_DLLPRIVATE bool SfxInterface::ContainsSlot_Impl ( const SfxSlot pSlot) const
inline

Definition at line 107 of file objface.hxx.

References Count.

Referenced by GetRealSlot().

◆ Count()

sal_uInt16 SfxInterface::Count ( ) const
inline

Definition at line 114 of file objface.hxx.

References nCount.

Referenced by SfxSlotPool::RegisterInterface(), SfxSlotPool::SeekSlot(), and SetSlotMap().

◆ GetChildWindowCount()

sal_uInt16 SfxInterface::GetChildWindowCount ( ) const

◆ GetChildWindowFeature()

SfxShellFeature SfxInterface::GetChildWindowFeature ( sal_uInt16  nNo) const

◆ GetChildWindowId()

sal_uInt32 SfxInterface::GetChildWindowId ( sal_uInt16  nNo) const

◆ GetClassName()

const char * SfxInterface::GetClassName ( ) const
inline

Definition at line 82 of file objface.hxx.

References pName.

Referenced by SfxDispatcher::FillState_(), and SfxDispatcher::Pop().

◆ GetGenoType()

const SfxInterface * SfxInterface::GetGenoType ( ) const
inline

Definition at line 85 of file objface.hxx.

Referenced by SfxShell::Invalidate_Impl().

◆ GetObjectBarCount()

sal_uInt16 SfxInterface::GetObjectBarCount ( ) const

◆ GetObjectBarFeature()

SfxShellFeature SfxInterface::GetObjectBarFeature ( sal_uInt16  nNo) const

◆ GetObjectBarFlags()

SfxVisibilityFlags SfxInterface::GetObjectBarFlags ( sal_uInt16  nNo) const

◆ GetObjectBarId()

ToolbarId SfxInterface::GetObjectBarId ( sal_uInt16  nNo) const

◆ GetObjectBarPos()

sal_uInt16 SfxInterface::GetObjectBarPos ( sal_uInt16  nNo) const

◆ GetPopupMenuName()

const OUString & SfxInterface::GetPopupMenuName ( ) const

Definition at line 391 of file objface.cxx.

References pImplData.

Referenced by SfxDispatcher::ExecutePopup().

◆ GetRealSlot()

const SfxSlot * SfxInterface::GetRealSlot ( const SfxSlot pSlot) const

Definition at line 220 of file objface.cxx.

References ContainsSlot_Impl(), GetRealSlot(), nCount, pGenoType, pSlots, and SAL_WARN.

Referenced by GetRealSlot().

◆ GetSlot() [1/2]

const SfxSlot * SfxInterface::GetSlot ( const OUString &  rCommand) const

Definition at line 202 of file objface.cxx.

References aCommand, GetSlot(), n, nCount, pGenoType, and pSlots.

◆ GetSlot() [2/2]

const SfxSlot * SfxInterface::GetSlot ( sal_uInt16  nSlotId) const

◆ GetStatusBarId()

StatusBarId SfxInterface::GetStatusBarId ( ) const

Definition at line 396 of file objface.cxx.

References GetStatusBarId(), None, pGenoType, and pImplData.

Referenced by GetStatusBarId(), and SfxDispatcher::Update_Impl_().

◆ IsObjectBarVisible()

bool SfxInterface::IsObjectBarVisible ( sal_uInt16  nNo) const

◆ Register()

void SfxInterface::Register ( const SfxModule pMod)

◆ RegisterChildWindow() [1/2]

void SfxInterface::RegisterChildWindow ( sal_uInt16  nId,
bool  bContext,
SfxShellFeature  nFeature 
)

Definition at line 331 of file objface.cxx.

References Invisible, nId, and pImplData.

◆ RegisterChildWindow() [2/2]

void SfxInterface::RegisterChildWindow ( sal_uInt16  nId,
bool  bContext = false 
)

Definition at line 326 of file objface.cxx.

References nId, NONE, and RegisterChildWindow().

Referenced by RegisterChildWindow().

◆ RegisterObjectBar() [1/2]

void SfxInterface::RegisterObjectBar ( sal_uInt16  nPos,
SfxVisibilityFlags  nFlags,
ToolbarId  eId 
)

Definition at line 243 of file objface.cxx.

References NONE, nPos, and RegisterObjectBar().

Referenced by RegisterObjectBar().

◆ RegisterObjectBar() [2/2]

void SfxInterface::RegisterObjectBar ( sal_uInt16  nPos,
SfxVisibilityFlags  nFlags,
ToolbarId  eId,
SfxShellFeature  nFeature 
)

Definition at line 248 of file objface.cxx.

References CreateObjectBarUI_Impl(), nPos, and pImplData.

◆ RegisterPopupMenu()

void SfxInterface::RegisterPopupMenu ( const OUString &  rResourceName)

Definition at line 238 of file objface.cxx.

References pImplData.

◆ RegisterStatusBar()

void SfxInterface::RegisterStatusBar ( StatusBarId  eId)

Definition at line 338 of file objface.cxx.

References pImplData.

◆ SetSlotMap()

void SfxInterface::SetSlotMap ( SfxSlot rMessages,
sal_uInt16  nMsgCount 
)

◆ UseAsSuperClass()

bool SfxInterface::UseAsSuperClass ( ) const
inline

Friends And Related Function Documentation

◆ SfxSlotPool

friend class SfxSlotPool
friend

Definition at line 57 of file objface.hxx.

Member Data Documentation

◆ bSuperClass

bool SfxInterface::bSuperClass
private

Definition at line 64 of file objface.hxx.

◆ nClassId

SfxInterfaceId SfxInterface::nClassId
private

Definition at line 63 of file objface.hxx.

Referenced by GetChildWindowId().

◆ nCount

sal_uInt16 SfxInterface::nCount
private

Definition at line 62 of file objface.hxx.

Referenced by Count(), GetRealSlot(), GetSlot(), and SetSlotMap().

◆ pGenoType

const SfxInterface* SfxInterface::pGenoType
private

◆ pImplData

std::unique_ptr<SfxInterface_Impl> SfxInterface::pImplData
private

◆ pName

const char* SfxInterface::pName
private

Definition at line 59 of file objface.hxx.

◆ pSlots

SfxSlot* SfxInterface::pSlots
private

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