LibreOffice Module sfx2 (master) 1
|
#include <sfxbasecontroller.hxx>
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 |
SfxViewShell * | GetViewShell_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 SfxViewFrame & | GetViewFrame_Impl () const |
SAL_DLLPRIVATE void | ShowInfoBars () |
DECL_DLLPRIVATE_LINK (CheckOutHandler, weld::Button &, void) | |
Private Attributes | |
std::unique_ptr< IMPL_SfxBaseController_DataContainer > | m_pData |
Additional Inherited Members | |
Protected Attributes inherited from cppu::BaseMutex | |
mutable::osl::Mutex | m_aMutex |
Definition at line 79 of file sfxbasecontroller.hxx.
|
private |
Enumerator | |
---|---|
E_CONNECT | |
E_DISCONNECT | |
E_RECONNECT |
Definition at line 204 of file sfxbasecontroller.hxx.
SfxBaseController::SfxBaseController | ( | SfxViewShell * | pView | ) |
Definition at line 424 of file sfxbasecontroller.cxx.
|
overridevirtual |
Definition at line 434 of file sfxbasecontroller.cxx.
|
overridevirtual |
Definition at line 816 of file sfxbasecontroller.cxx.
References m_pData.
|
overridevirtual |
Definition at line 936 of file sfxbasecontroller.cxx.
References m_pData.
|
overridevirtual |
Definition at line 1016 of file sfxbasecontroller.cxx.
References m_pData.
|
overridevirtual |
Definition at line 1028 of file sfxbasecontroller.cxx.
References m_pData.
|
overridevirtual |
Definition at line 1409 of file sfxbasecontroller.cxx.
References impl_getTitleHelper().
|
overridevirtual |
Definition at line 1429 of file sfxbasecontroller.cxx.
References SfxViewFrame::AppendInfoBar(), DANGER, SfxViewFrame::HasInfoBarWithID(), INFO, m_pData, weld::Button::set_label(), and sId.
|
overridevirtual |
Definition at line 505 of file sfxbasecontroller.cxx.
References ConnectSfxFrame_Impl(), E_CONNECT, GlobalEventConfig::GetEventName(), getFrame(), m_pData, SfxApplication::NotifyEvent(), SfxGetpApp(), ShowInfoBars(), ViewCreated, and xFrame.
Referenced by dispose(), and ReleaseShell_Impl().
|
overridevirtual |
Definition at line 543 of file sfxbasecontroller.cxx.
void SfxBaseController::BorderWidthsChanged_Impl | ( | ) |
Definition at line 841 of file sfxbasecontroller.cxx.
References getBorder(), comphelper::OInterfaceIteratorHelper2::hasMoreElements(), m_pData, comphelper::OInterfaceIteratorHelper2::next(), and comphelper::OInterfaceIteratorHelper2::remove().
|
private |
Definition at line 1124 of file sfxbasecontroller.cxx.
References SfxViewFrame::Current(), DBG_ASSERT, DBG_UNHANDLED_EXCEPTION, E_CONNECT, E_DISCONNECT, E_RECONNECT, EMBEDDED, SfxViewFrame::Enable(), ENSURE_OR_THROW, Exception, SfxDispatcher::Flush(), SfxViewFrame::GetBindings(), getCreationArguments(), SfxViewFrame::GetCurViewId(), SfxViewFrame::GetDispatcher(), SfxObjectShell::GetFactory(), SfxViewFrame::GetFrame(), SfxFrame::GetFrameInterface(), getModel(), comphelper::NamedValueCollection::getOrDefault(), SfxViewFactory::GetOrdinal(), SfxObjectFactory::GetViewFactoryByViewName(), SfxFrame::GetWindow(), SfxViewFrame::GetWindow(), SfxFrame::GetWorkWindow_Impl(), SfxDispatcher::HideUI(), i, SfxBindings::Invalidate(), SfxObjectShell::IsHelpDocument(), SfxFrame::IsInPlace(), SfxFrame::IsMarkedHidden_Impl(), SfxDispatcher::Lock(), SfxViewFrame::LockAdjustPosSizePixel(), m_pData, SfxViewFrame::MakeActive_Impl(), nCount, SfxDispatcher::Push(), SfxViewFrame::Resize(), SfxWorkWindow::SetInternalDockingAllowed(), SfxViewFrame::Show(), vcl::Window::Show(), sJumpMark, sViewId, u, SfxViewFrame::UnlockAdjustPosSizePixel(), SfxDispatcher::Update_Impl(), SfxViewFrame::UpdateTitle(), and xModel.
Referenced by attachFrame(), and suspend().
|
protected |
Definition at line 971 of file sfxbasecontroller.cxx.
References SfxViewShell::Get(), and m_pData.
|
private |
|
overridevirtual |
Definition at line 869 of file sfxbasecontroller.cxx.
References attachFrame(), CloseDoc, CloseView, SfxFrame::DoClose_Impl(), SfxViewFrame::GetBindings(), GlobalEventConfig::GetEventName(), SfxViewFrame::GetFirst(), SfxViewFrame::GetFrame(), SfxObjectShell::GetModel(), SfxViewFrame::GetNext(), SfxViewFrame::GetObjectShell(), SfxShell::GetViewShell(), m_pData, SfxApplication::NotifyEvent(), SfxFrame::OwnsBindings_Impl(), SfxFrame::SetFrameInterface_Impl(), SfxFrame::SetIsClosing_Impl(), SfxGetpApp(), and xModel.
|
overridevirtual |
Definition at line 799 of file sfxbasecontroller.cxx.
References SvBorder::Bottom(), SvBorder::Left(), m_pData, SvBorder::Right(), and SvBorder::Top().
Referenced by BorderWidthsChanged_Impl().
|
overridevirtual |
Definition at line 442 of file sfxbasecontroller.cxx.
References GetViewFrame_Impl(), and m_pData.
|
overridevirtual |
Definition at line 1069 of file sfxbasecontroller.cxx.
References ACCELCONFIG, comphelper::containerToSequence(), SfxSlotPool::FirstSlot(), SfxSlot::GetCommand(), SfxSlotPool::GetGroupCount(), SfxSlot::GetGroupId(), SfxSlot::GetMode(), SfxSlotPool::GetSlotPool(), i, m_pData, MapGroupIDToCommandGroup(), MENUCONFIG, SfxSlotPool::NextSlot(), SfxSlotPool::SeekGroup(), SFX_SLOTPOOL, and TOOLBOXCONFIG.
|
overridevirtual |
Definition at line 468 of file sfxbasecontroller.cxx.
References m_pData.
Referenced by ConnectSfxFrame_Impl().
|
override |
Definition at line 653 of file sfxbasecontroller.cxx.
References m_pData.
Referenced by attachFrame(), and suspend().
|
override |
Definition at line 663 of file sfxbasecontroller.cxx.
References m_pData.
Referenced by ConnectSfxFrame_Impl(), impl_getTitleHelper(), and queryDispatch().
|
overridevirtual |
Definition at line 492 of file sfxbasecontroller.cxx.
References SfxViewFrame::GetFrame(), SfxFrame::GetFrameInterface(), and GetViewFrame_Impl().
|
override |
Definition at line 988 of file sfxbasecontroller.cxx.
References m_pData.
|
overridevirtual |
Definition at line 1040 of file sfxbasecontroller.cxx.
References ACCELCONFIG, comphelper::containerToSequence(), SfxSlotPool::FirstSlot(), SfxSlotPool::GetGroupCount(), SfxSlot::GetGroupId(), SfxSlot::GetMode(), SfxSlotPool::GetSlotPool(), i, m_pData, MapGroupIDToCommandGroup(), MENUCONFIG, SfxSlotPool::NextSlot(), SfxSlotPool::SeekGroup(), SFX_SLOTPOOL, and TOOLBOXCONFIG.
|
overridevirtual |
Definition at line 1395 of file sfxbasecontroller.cxx.
References impl_getTitleHelper().
|
overridevirtual |
Definition at line 451 of file sfxbasecontroller.cxx.
References SfxViewFactory::GetAPIViewName(), SfxObjectFactory::GetViewFactory(), SfxObjectFactory::GetViewFactoryCount(), GetViewFrame_Impl(), SfxObjectFactory::GetViewNo_Impl(), and m_pData.
|
override |
Definition at line 620 of file sfxbasecontroller.cxx.
References m_pData.
|
private |
Definition at line 483 of file sfxbasecontroller.cxx.
References ENSURE_OR_THROW, and m_pData.
Referenced by getComponentWindow(), getSidebar(), and getViewControllerName().
SfxViewShell * SfxBaseController::GetViewShell_Impl | ( | ) | const |
Definition at line 983 of file sfxbasecontroller.cxx.
References m_pData.
bool SfxBaseController::HandleEvent_Impl | ( | NotifyEvent const & | rEvent | ) |
Definition at line 1109 of file sfxbasecontroller.cxx.
References m_pData.
|
overridevirtual |
Definition at line 1491 of file sfxbasecontroller.cxx.
References SfxViewFrame::HasInfoBarWithID(), m_pData, and sId.
bool SfxBaseController::HasKeyListeners_Impl | ( | ) | const |
Definition at line 1114 of file sfxbasecontroller.cxx.
References m_pData.
bool SfxBaseController::HasMouseClickListeners_Impl | ( | ) | const |
Definition at line 1119 of file sfxbasecontroller.cxx.
References m_pData.
Reference< frame::XTitle > SfxBaseController::impl_getTitleHelper | ( | ) |
Definition at line 1377 of file sfxbasecontroller.cxx.
References getModel(), m_pData, and xModel.
Referenced by addTitleChangeListener(), getTitle(), removeTitleChangeListener(), and setTitle().
|
overridevirtual |
Definition at line 1425 of file sfxbasecontroller.cxx.
|
overridevirtual |
Definition at line 828 of file sfxbasecontroller.cxx.
References AWTRectangle(), m_pData, and VCLRectangle().
|
overridevirtual |
Definition at line 713 of file sfxbasecontroller.cxx.
References aURL, SfxViewFrame::GetBindings(), SfxViewFrame::GetChildWindow(), SfxBindings::GetDispatch(), SfxViewFrame::GetDispatcher(), SfxOfficeDispatch::GetMasterUnoCommand(), getModel(), SfxSlotPool::GetSlot(), GetSlotDispatchWithFallback(), SfxSlotPool::GetSlotPool(), SfxSlotPool::GetUnoSlot(), m_pData, nId, SfxViewFrame::SetChildWindow(), xFrame, and xModel.
|
overridevirtual |
Definition at line 781 of file sfxbasecontroller.cxx.
References nCount.
|
overridevirtual |
Definition at line 996 of file sfxbasecontroller.cxx.
References m_pData.
|
overridevirtual |
Definition at line 1006 of file sfxbasecontroller.cxx.
References m_pData.
void SfxBaseController::ReleaseShell_Impl | ( | ) |
Definition at line 950 of file sfxbasecontroller.cxx.
References attachFrame(), SfxObjectShell::GetModel(), m_pData, and xModel.
|
overridevirtual |
Definition at line 822 of file sfxbasecontroller.cxx.
References m_pData.
|
overridevirtual |
Definition at line 945 of file sfxbasecontroller.cxx.
References m_pData.
|
overridevirtual |
Definition at line 1481 of file sfxbasecontroller.cxx.
References SfxViewFrame::HasInfoBarWithID(), m_pData, SfxViewFrame::RemoveInfoBar(), and sId.
|
overridevirtual |
Definition at line 1022 of file sfxbasecontroller.cxx.
References m_pData.
|
overridevirtual |
Definition at line 1034 of file sfxbasecontroller.cxx.
References m_pData.
|
overridevirtual |
Definition at line 1418 of file sfxbasecontroller.cxx.
References impl_getTitleHelper().
|
override |
Definition at line 638 of file sfxbasecontroller.cxx.
References m_pData.
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().
|
overridevirtual |
Definition at line 1402 of file sfxbasecontroller.cxx.
References impl_getTitleHelper().
|
private |
Definition at line 1323 of file sfxbasecontroller.cxx.
References SfxViewFrame::AppendInfoBar(), weld::Button::connect_clicked(), LINK, m_pData, weld::Button::set_label(), SfxResId(), and WARNING.
Referenced by attachFrame().
Definition at line 562 of file sfxbasecontroller.cxx.
References ConnectSfxFrame_Impl(), E_DISCONNECT, E_RECONNECT, SfxViewFrame::GetFirst(), getFrame(), SfxViewFrame::GetNext(), m_pData, and SfxObjectShell::PrepareClose().
|
overridevirtual |
Definition at line 1462 of file sfxbasecontroller.cxx.
References DANGER, SfxViewFrame::HasInfoBarWithID(), INFO, m_pData, sId, and SfxViewFrame::UpdateInfoBar().
|
private |
Definition at line 216 of file sfxbasecontroller.hxx.
Referenced by addBorderResizeListener(), addEventListener(), addKeyHandler(), addMouseClickHandler(), appendInfobar(), attachFrame(), attachModel(), BorderWidthsChanged_Impl(), ConnectSfxFrame_Impl(), CopyLokViewCallbackFromFrameCreator(), dispose(), getBorder(), getComponentWindow(), getConfigurableDispatchInformation(), getCreationArguments(), getFrame(), getModel(), getStatusIndicator(), getSupportedCommandGroups(), getViewControllerName(), getViewData(), GetViewFrame_Impl(), GetViewShell_Impl(), HandleEvent_Impl(), hasInfobar(), HasKeyListeners_Impl(), HasMouseClickListeners_Impl(), impl_getTitleHelper(), queryBorderedArea(), queryDispatch(), registerContextMenuInterceptor(), releaseContextMenuInterceptor(), ReleaseShell_Impl(), removeBorderResizeListener(), removeEventListener(), removeInfobar(), removeKeyHandler(), removeMouseClickHandler(), restoreViewData(), SetCreationArguments_Impl(), SfxBaseController(), ShowInfoBars(), suspend(), and updateInfobar().