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

#include <sfxbasecontroller.hxx>

Inheritance diagram for SfxBaseController:
[legend]
Collaboration diagram for SfxBaseController:
[legend]

Public Member Functions

 SfxBaseController (SfxViewShell *pView)
 
virtual ~SfxBaseController () override
 
SAL_DLLPRIVATE void ReleaseShell_Impl ()
 
SAL_DLLPRIVATE void BorderWidthsChanged_Impl ()
 
css::uno::Reference< css::task::XStatusIndicator > SAL_CALL getStatusIndicator () override
 
virtual css::uno::Reference< css::awt::XWindow > SAL_CALL getComponentWindow () override
 
virtual OUString SAL_CALL getViewControllerName () override
 
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getCreationArguments () override
 
virtual css::uno::Reference< css::ui::XSidebarProvider > SAL_CALL getSidebar () override
 
virtual void SAL_CALL attachFrame (const css::uno::Reference< css::frame::XFrame > &xFrame) override
 
virtual sal_Bool SAL_CALL attachModel (const css::uno::Reference< css::frame::XModel > &xModel) override
 
virtual sal_Bool SAL_CALL suspend (sal_Bool bSuspend) override
 
css::uno::Any SAL_CALL getViewData () override
 
void SAL_CALL restoreViewData (const css::uno::Any &aValue) override
 
css::uno::Reference< css::frame::XFrame > SAL_CALL getFrame () override
 
css::uno::Reference< css::frame::XModel > SAL_CALL getModel () override
 
virtual css::uno::Reference< css::frame::XDispatch > SAL_CALL queryDispatch (const css::util::URL &aURL, const OUString &sTargetFrameName, sal_Int32 eSearchFlags) override
 
virtual css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > SAL_CALL queryDispatches (const css::uno::Sequence< css::frame::DispatchDescriptor > &seqDescriptor) override
 
virtual css::frame::BorderWidths SAL_CALL getBorder () override
 
virtual void SAL_CALL addBorderResizeListener (const css::uno::Reference< css::frame::XBorderResizeListener > &xListener) override
 
virtual void SAL_CALL removeBorderResizeListener (const css::uno::Reference< css::frame::XBorderResizeListener > &xListener) override
 
virtual css::awt::Rectangle SAL_CALL queryBorderedArea (const css::awt::Rectangle &aPreliminaryRectangle) override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) override
 
virtual void SAL_CALL removeEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) override
 
virtual void SAL_CALL registerContextMenuInterceptor (const css::uno::Reference< css::ui::XContextMenuInterceptor > &xInterceptor) override
 
virtual void SAL_CALL releaseContextMenuInterceptor (const css::uno::Reference< css::ui::XContextMenuInterceptor > &xInterceptor) override
 
virtual void SAL_CALL addKeyHandler (const css::uno::Reference< css::awt::XKeyHandler > &xHandler) override
 
virtual void SAL_CALL removeKeyHandler (const css::uno::Reference< css::awt::XKeyHandler > &xHandler) override
 
virtual void SAL_CALL addMouseClickHandler (const css::uno::Reference< css::awt::XMouseClickHandler > &xHandler) override
 
virtual void SAL_CALL removeMouseClickHandler (const css::uno::Reference< css::awt::XMouseClickHandler > &xHandler) override
 
virtual css::uno::Sequence< sal_Int16 > SAL_CALL getSupportedCommandGroups () override
 
virtual css::uno::Sequence< css::frame::DispatchInformation > SAL_CALL getConfigurableDispatchInformation (sal_Int16 nCommandGroup) override
 
virtual OUString SAL_CALL getTitle () override
 
virtual void SAL_CALL setTitle (const OUString &sTitle) override
 
virtual void SAL_CALL addTitleChangeListener (const css::uno::Reference< css::frame::XTitleChangeListener > &xListener) override
 
virtual void SAL_CALL removeTitleChangeListener (const css::uno::Reference< css::frame::XTitleChangeListener > &xListener) override
 
virtual void SAL_CALL initialize (const css::uno::Sequence< css::uno::Any > &aArguments) override
 
virtual void SAL_CALL appendInfobar (const OUString &sId, const OUString &sPrimaryMessage, const OUString &sSecondaryMessage, sal_Int32 aInfobarType, const css::uno::Sequence< css::beans::StringPair > &actionButtons, sal_Bool bShowCloseButton) override
 
virtual void SAL_CALL updateInfobar (const OUString &sId, const OUString &sPrimaryMessage, const OUString &sSecondaryMessage, sal_Int32 aInfobarType) override
 
virtual void SAL_CALL removeInfobar (const OUString &sId) override
 
virtual sal_Bool SAL_CALL hasInfobar (const OUString &sId) override
 
SfxViewShellGetViewShell_Impl () const
 
SAL_DLLPRIVATE bool HandleEvent_Impl (NotifyEvent const &rEvent)
 
SAL_DLLPRIVATE bool HasKeyListeners_Impl () const
 
SAL_DLLPRIVATE bool HasMouseClickListeners_Impl () const
 
SAL_DLLPRIVATE void SetCreationArguments_Impl (const css::uno::Sequence< css::beans::PropertyValue > &i_rCreationArgs)
 
SAL_DLLPRIVATE css::uno::Reference< css::frame::XTitle > impl_getTitleHelper ()
 

Protected Member Functions

void CopyLokViewCallbackFromFrameCreator ()
 

Private Types

enum  ConnectSfxFrame {
  E_CONNECT ,
  E_DISCONNECT ,
  E_RECONNECT
}
 

Private Member Functions

SAL_DLLPRIVATE void ConnectSfxFrame_Impl (const ConnectSfxFrame i_eConnect)
 
SAL_DLLPRIVATE SfxViewFrameGetViewFrame_Impl () const
 
SAL_DLLPRIVATE void ShowInfoBars ()
 
 DECL_DLLPRIVATE_LINK (CheckOutHandler, weld::Button &, void)
 

Private Attributes

std::unique_ptr< IMPL_SfxBaseController_DataContainerm_pData
 

Additional Inherited Members

- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 

Detailed Description

Definition at line 79 of file sfxbasecontroller.hxx.

Member Enumeration Documentation

◆ ConnectSfxFrame

Enumerator
E_CONNECT 
E_DISCONNECT 
E_RECONNECT 

Definition at line 204 of file sfxbasecontroller.hxx.

Constructor & Destructor Documentation

◆ SfxBaseController()

SfxBaseController::SfxBaseController ( SfxViewShell pView)

Definition at line 424 of file sfxbasecontroller.cxx.

References m_aMutex, m_pData, and m_pData.

◆ ~SfxBaseController()

SfxBaseController::~SfxBaseController ( )
overridevirtual

Definition at line 434 of file sfxbasecontroller.cxx.

Member Function Documentation

◆ addBorderResizeListener()

void SAL_CALL SfxBaseController::addBorderResizeListener ( const css::uno::Reference< css::frame::XBorderResizeListener > &  xListener)
overridevirtual

Definition at line 816 of file sfxbasecontroller.cxx.

References m_pData.

◆ addEventListener()

void SAL_CALL SfxBaseController::addEventListener ( const css::uno::Reference< css::lang::XEventListener > &  aListener)
overridevirtual

Definition at line 936 of file sfxbasecontroller.cxx.

References m_pData.

◆ addKeyHandler()

void SAL_CALL SfxBaseController::addKeyHandler ( const css::uno::Reference< css::awt::XKeyHandler > &  xHandler)
overridevirtual

Definition at line 1016 of file sfxbasecontroller.cxx.

References m_pData.

◆ addMouseClickHandler()

void SAL_CALL SfxBaseController::addMouseClickHandler ( const css::uno::Reference< css::awt::XMouseClickHandler > &  xHandler)
overridevirtual

Definition at line 1028 of file sfxbasecontroller.cxx.

References m_pData.

◆ addTitleChangeListener()

void SAL_CALL SfxBaseController::addTitleChangeListener ( const css::uno::Reference< css::frame::XTitleChangeListener > &  xListener)
overridevirtual

Definition at line 1409 of file sfxbasecontroller.cxx.

References impl_getTitleHelper().

◆ appendInfobar()

void SAL_CALL SfxBaseController::appendInfobar ( const OUString &  sId,
const OUString &  sPrimaryMessage,
const OUString &  sSecondaryMessage,
sal_Int32  aInfobarType,
const css::uno::Sequence< css::beans::StringPair > &  actionButtons,
sal_Bool  bShowCloseButton 
)
overridevirtual

◆ attachFrame()

void SAL_CALL SfxBaseController::attachFrame ( const css::uno::Reference< css::frame::XFrame > &  xFrame)
overridevirtual

◆ attachModel()

sal_Bool SAL_CALL SfxBaseController::attachModel ( const css::uno::Reference< css::frame::XModel > &  xModel)
overridevirtual

Definition at line 543 of file sfxbasecontroller.cxx.

References m_pData, and xModel.

◆ BorderWidthsChanged_Impl()

void SfxBaseController::BorderWidthsChanged_Impl ( )

◆ ConnectSfxFrame_Impl()

void SfxBaseController::ConnectSfxFrame_Impl ( const ConnectSfxFrame  i_eConnect)
private

◆ CopyLokViewCallbackFromFrameCreator()

void SfxBaseController::CopyLokViewCallbackFromFrameCreator ( )
protected

Definition at line 971 of file sfxbasecontroller.cxx.

References SfxViewShell::Get(), and m_pData.

◆ DECL_DLLPRIVATE_LINK()

SfxBaseController::DECL_DLLPRIVATE_LINK ( CheckOutHandler  ,
weld::Button ,
void   
)
private

◆ dispose()

void SAL_CALL SfxBaseController::dispose ( void  )
overridevirtual

◆ getBorder()

frame::BorderWidths SAL_CALL SfxBaseController::getBorder ( )
overridevirtual

◆ getComponentWindow()

Reference< XWindow > SAL_CALL SfxBaseController::getComponentWindow ( )
overridevirtual

Definition at line 442 of file sfxbasecontroller.cxx.

References GetViewFrame_Impl(), and m_pData.

◆ getConfigurableDispatchInformation()

uno::Sequence< frame::DispatchInformation > SAL_CALL SfxBaseController::getConfigurableDispatchInformation ( sal_Int16  nCommandGroup)
overridevirtual

◆ getCreationArguments()

Sequence< PropertyValue > SAL_CALL SfxBaseController::getCreationArguments ( )
overridevirtual

Definition at line 468 of file sfxbasecontroller.cxx.

References m_pData.

Referenced by ConnectSfxFrame_Impl().

◆ getFrame()

Reference< frame::XFrame > SAL_CALL SfxBaseController::getFrame ( )
override

Definition at line 653 of file sfxbasecontroller.cxx.

References m_pData.

Referenced by attachFrame(), and suspend().

◆ getModel()

Reference< frame::XModel > SAL_CALL SfxBaseController::getModel ( )
override

Definition at line 663 of file sfxbasecontroller.cxx.

References m_pData.

Referenced by ConnectSfxFrame_Impl(), impl_getTitleHelper(), and queryDispatch().

◆ getSidebar()

Reference< XSidebarProvider > SAL_CALL SfxBaseController::getSidebar ( )
overridevirtual

◆ getStatusIndicator()

Reference< task::XStatusIndicator > SAL_CALL SfxBaseController::getStatusIndicator ( )
override

Definition at line 988 of file sfxbasecontroller.cxx.

References m_pData.

◆ getSupportedCommandGroups()

uno::Sequence< sal_Int16 > SAL_CALL SfxBaseController::getSupportedCommandGroups ( )
overridevirtual

◆ getTitle()

OUString SAL_CALL SfxBaseController::getTitle ( )
overridevirtual

Definition at line 1395 of file sfxbasecontroller.cxx.

References impl_getTitleHelper().

◆ getViewControllerName()

OUString SAL_CALL SfxBaseController::getViewControllerName ( )
overridevirtual

◆ getViewData()

uno::Any SfxBaseController::getViewData ( )
override

Definition at line 620 of file sfxbasecontroller.cxx.

References m_pData.

◆ GetViewFrame_Impl()

SfxViewFrame & SfxBaseController::GetViewFrame_Impl ( ) const
private

Definition at line 483 of file sfxbasecontroller.cxx.

References ENSURE_OR_THROW, and m_pData.

Referenced by getComponentWindow(), getSidebar(), and getViewControllerName().

◆ GetViewShell_Impl()

SfxViewShell * SfxBaseController::GetViewShell_Impl ( ) const

Definition at line 983 of file sfxbasecontroller.cxx.

References m_pData.

◆ HandleEvent_Impl()

bool SfxBaseController::HandleEvent_Impl ( NotifyEvent const &  rEvent)

Definition at line 1109 of file sfxbasecontroller.cxx.

References m_pData.

◆ hasInfobar()

sal_Bool SAL_CALL SfxBaseController::hasInfobar ( const OUString &  sId)
overridevirtual

Definition at line 1491 of file sfxbasecontroller.cxx.

References SfxViewFrame::HasInfoBarWithID(), m_pData, and sId.

◆ HasKeyListeners_Impl()

bool SfxBaseController::HasKeyListeners_Impl ( ) const

Definition at line 1114 of file sfxbasecontroller.cxx.

References m_pData.

◆ HasMouseClickListeners_Impl()

bool SfxBaseController::HasMouseClickListeners_Impl ( ) const

Definition at line 1119 of file sfxbasecontroller.cxx.

References m_pData.

◆ impl_getTitleHelper()

Reference< frame::XTitle > SfxBaseController::impl_getTitleHelper ( )

◆ initialize()

void SfxBaseController::initialize ( const css::uno::Sequence< css::uno::Any > &  aArguments)
overridevirtual

Definition at line 1425 of file sfxbasecontroller.cxx.

◆ queryBorderedArea()

awt::Rectangle SAL_CALL SfxBaseController::queryBorderedArea ( const css::awt::Rectangle &  aPreliminaryRectangle)
overridevirtual

Definition at line 828 of file sfxbasecontroller.cxx.

References AWTRectangle(), m_pData, and VCLRectangle().

◆ queryDispatch()

Reference< frame::XDispatch > SAL_CALL SfxBaseController::queryDispatch ( const css::util::URL &  aURL,
const OUString &  sTargetFrameName,
sal_Int32  eSearchFlags 
)
overridevirtual

◆ queryDispatches()

uno::Sequence< Reference< frame::XDispatch > > SAL_CALL SfxBaseController::queryDispatches ( const css::uno::Sequence< css::frame::DispatchDescriptor > &  seqDescriptor)
overridevirtual

Definition at line 781 of file sfxbasecontroller.cxx.

References nCount.

◆ registerContextMenuInterceptor()

void SAL_CALL SfxBaseController::registerContextMenuInterceptor ( const css::uno::Reference< css::ui::XContextMenuInterceptor > &  xInterceptor)
overridevirtual

Definition at line 996 of file sfxbasecontroller.cxx.

References m_pData.

◆ releaseContextMenuInterceptor()

void SAL_CALL SfxBaseController::releaseContextMenuInterceptor ( const css::uno::Reference< css::ui::XContextMenuInterceptor > &  xInterceptor)
overridevirtual

Definition at line 1006 of file sfxbasecontroller.cxx.

References m_pData.

◆ ReleaseShell_Impl()

void SfxBaseController::ReleaseShell_Impl ( )

Definition at line 950 of file sfxbasecontroller.cxx.

References attachFrame(), SfxObjectShell::GetModel(), m_pData, and xModel.

◆ removeBorderResizeListener()

void SAL_CALL SfxBaseController::removeBorderResizeListener ( const css::uno::Reference< css::frame::XBorderResizeListener > &  xListener)
overridevirtual

Definition at line 822 of file sfxbasecontroller.cxx.

References m_pData.

◆ removeEventListener()

void SAL_CALL SfxBaseController::removeEventListener ( const css::uno::Reference< css::lang::XEventListener > &  aListener)
overridevirtual

Definition at line 945 of file sfxbasecontroller.cxx.

References m_pData.

◆ removeInfobar()

void SAL_CALL SfxBaseController::removeInfobar ( const OUString &  sId)
overridevirtual

◆ removeKeyHandler()

void SAL_CALL SfxBaseController::removeKeyHandler ( const css::uno::Reference< css::awt::XKeyHandler > &  xHandler)
overridevirtual

Definition at line 1022 of file sfxbasecontroller.cxx.

References m_pData.

◆ removeMouseClickHandler()

void SAL_CALL SfxBaseController::removeMouseClickHandler ( const css::uno::Reference< css::awt::XMouseClickHandler > &  xHandler)
overridevirtual

Definition at line 1034 of file sfxbasecontroller.cxx.

References m_pData.

◆ removeTitleChangeListener()

void SAL_CALL SfxBaseController::removeTitleChangeListener ( const css::uno::Reference< css::frame::XTitleChangeListener > &  xListener)
overridevirtual

Definition at line 1418 of file sfxbasecontroller.cxx.

References impl_getTitleHelper().

◆ restoreViewData()

void SAL_CALL SfxBaseController::restoreViewData ( const css::uno::Any &  aValue)
override

Definition at line 638 of file sfxbasecontroller.cxx.

References m_pData.

◆ SetCreationArguments_Impl()

void SfxBaseController::SetCreationArguments_Impl ( const css::uno::Sequence< css::beans::PropertyValue > &  i_rCreationArgs)

Definition at line 477 of file sfxbasecontroller.cxx.

References m_pData.

Referenced by SfxBaseModel::createViewController().

◆ setTitle()

void SAL_CALL SfxBaseController::setTitle ( const OUString &  sTitle)
overridevirtual

Definition at line 1402 of file sfxbasecontroller.cxx.

References impl_getTitleHelper().

◆ ShowInfoBars()

void SfxBaseController::ShowInfoBars ( )
private

◆ suspend()

sal_Bool SAL_CALL SfxBaseController::suspend ( sal_Bool  bSuspend)
overridevirtual

◆ updateInfobar()

void SAL_CALL SfxBaseController::updateInfobar ( const OUString &  sId,
const OUString &  sPrimaryMessage,
const OUString &  sSecondaryMessage,
sal_Int32  aInfobarType 
)
overridevirtual

Member Data Documentation

◆ m_pData

std::unique_ptr<IMPL_SfxBaseController_DataContainer> SfxBaseController::m_pData
private

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