LibreOffice Module dbaccess (master) 1
Classes | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
dbaui::OGenericUnoController Class Referenceabstract

#include <genericcontroller.hxx>

Inheritance diagram for dbaui::OGenericUnoController:
[legend]
Collaboration diagram for dbaui::OGenericUnoController:
[legend]

Classes

struct  DispatchTarget
 

Public Member Functions

const css::uno::Reference< css::uno::XComponentContext > & getORB () const
 
ODataViewgetView () const
 
weld::WindowgetFrameWeld () const
 
void setView (const VclPtr< ODataView > &i_rView)
 
void clearView ()
 
void showError (const ::dbtools::SQLExceptionInfo &_rInfo)
 
void InvalidateFeature (sal_uInt16 nId, const css::uno::Reference< css::frame::XStatusListener > &xListener=nullptr, bool _bForceBroadcast=false)
 
void InvalidateAll ()
 InvalidateAll invalidates all features currently known. More...
 
virtual bool Construct (vcl::Window *pParent)
 
virtual void executeUnChecked (const css::util::URL &_rCommand, const css::uno::Sequence< css::beans::PropertyValue > &aArgs) override
 executes the given command without checking if it is allowed More...
 
virtual void executeChecked (const css::util::URL &_rCommand, const css::uno::Sequence< css::beans::PropertyValue > &aArgs) override
 executes the given command only when it is allowed More...
 
virtual void executeUnChecked (sal_uInt16 _nCommandId, const css::uno::Sequence< css::beans::PropertyValue > &aArgs) override
 executes the given command without checking if it is allowed More...
 
virtual void executeChecked (sal_uInt16 _nCommandId, const css::uno::Sequence< css::beans::PropertyValue > &aArgs) override
 executes the given command only when it is allowed More...
 
virtual bool isCommandEnabled (sal_uInt16 _nCommandId) const override
 checks if the given Command is enabled More...
 
virtual bool isCommandEnabled (const OUString &_rCompleteCommandURL) const override
 checks if the given Command is enabled More...
 
virtual bool isDataSourceReadOnly () const override
 checks if the selected data source is read only More...
 
virtual css::uno::Reference< css::frame::XController > getXController () override
 provides access to the model of the controller More...
 
virtual bool interceptUserInput (const NotifyEvent &_rEvent) override
 allows interception of user input, aka mouse clicks and key events More...
 
bool isCommandChecked (sal_uInt16 _nCommandId) const
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 
virtual void SAL_CALL modified (const css::lang::EventObject &aEvent) override
 
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept 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=0
 
virtual css::uno::Any SAL_CALL getViewData () override
 
virtual void SAL_CALL restoreViewData (const css::uno::Any &Data) override
 
virtual css::uno::Reference< css::frame::XModel > SAL_CALL getModel () override
 
virtual css::uno::Reference< css::frame::XFrame > SAL_CALL getFrame () override
 
virtual void SAL_CALL dispatch (const css::util::URL &aURL, const css::uno::Sequence< css::beans::PropertyValue > &aArgs) override
 
virtual void SAL_CALL addStatusListener (const css::uno::Reference< css::frame::XStatusListener > &aListener, const css::util::URL &aURL) override
 
virtual void SAL_CALL removeStatusListener (const css::uno::Reference< css::frame::XStatusListener > &aListener, const css::util::URL &aURL) override
 
virtual css::uno::Reference< css::frame::XDispatchProvider > SAL_CALL getSlaveDispatchProvider () override
 
virtual void SAL_CALL setSlaveDispatchProvider (const css::uno::Reference< css::frame::XDispatchProvider > &_xNewProvider) override
 
virtual css::uno::Reference< css::frame::XDispatchProvider > SAL_CALL getMasterDispatchProvider () override
 
virtual void SAL_CALL setMasterDispatchProvider (const css::uno::Reference< css::frame::XDispatchProvider > &_xNewProvider) override
 
virtual css::uno::Reference< css::frame::XDispatch > SAL_CALL queryDispatch (const css::util::URL &aURL, const OUString &aTargetFrameName, sal_Int32 nSearchFlags) override
 
virtual css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > SAL_CALL queryDispatches (const css::uno::Sequence< css::frame::DispatchDescriptor > &aDescripts) override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL disposing () 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 frameAction (const css::frame::FrameActionEvent &aEvent) override
 
virtual void SAL_CALL initialize (const css::uno::Sequence< css::uno::Any > &aArguments) override
 
virtual OUString SAL_CALL getImplementationName () override=0
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override=0
 
virtual css::uno::Sequence< ::sal_Int16 > SAL_CALL getSupportedCommandGroups () override
 
virtual css::uno::Sequence< css::frame::DispatchInformation > SAL_CALL getConfigurableDispatchInformation (::sal_Int16) 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 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 void executeUnChecked (const css::util::URL &_rCommand, const css::uno::Sequence< css::beans::PropertyValue > &aArgs)=0
 executes the given command without checking if it is allowed More...
 
virtual void executeChecked (const css::util::URL &_rCommand, const css::uno::Sequence< css::beans::PropertyValue > &aArgs)=0
 executes the given command only when it is allowed More...
 
virtual void executeUnChecked (sal_uInt16 _nCommandId, const css::uno::Sequence< css::beans::PropertyValue > &aArgs)=0
 executes the given command without checking if it is allowed More...
 
virtual void executeChecked (sal_uInt16 _nCommandId, const css::uno::Sequence< css::beans::PropertyValue > &aArgs)=0
 executes the given command only when it is allowed More...
 
virtual bool isCommandEnabled (sal_uInt16 _nCommandId) const =0
 checks if the given Command is enabled More...
 
virtual bool isCommandEnabled (const OUString &_rCompleteCommandURL) const =0
 checks if the given Command is enabled More...
 
virtual bool isDataSourceReadOnly () const =0
 checks if the selected data source is read only More...
 
virtual css::uno::Reference< css::frame::XController > getXController ()=0
 provides access to the model of the controller More...
 
virtual bool interceptUserInput (const NotifyEvent &_rEvent)=0
 allows interception of user input, aka mouse clicks and key events More...
 
virtual void SAL_CALL acquire () noexcept=0
 
virtual void SAL_CALL release () noexcept=0
 

Static Public Member Functions

static css::uno::Reference< css::frame::XLayoutManager > getLayoutManager (const css::uno::Reference< css::frame::XFrame > &_xFrame)
 get the layout manager More...
 

Protected Types

typedef std::map< sal_uInt16, FeatureStateStateCache
 
typedef std::vector< DispatchTargetDispatch
 

Protected Member Functions

::cppu::OBroadcastHelpergetBroadcastHelper ()
 
 OGenericUnoController (const css::uno::Reference< css::uno::XComponentContext > &_rM)
 
 OGenericUnoController ()=delete
 
const ::comphelper::NamedValueCollectiongetInitParams () const
 
void closeTask ()
 
virtual void loadMenu (const css::uno::Reference< css::frame::XFrame > &_xFrame)
 
virtual void onLoadedMenu (const css::uno::Reference< css::frame::XLayoutManager > &_xLayoutManager)
 called when our menu has been loaded into our frame, can be used to load sub toolbars More...
 
virtual void describeSupportedFeatures ()
 
virtual FeatureState GetState (sal_uInt16 nId) const
 
virtual void Execute (sal_uInt16 nId, const css::uno::Sequence< css::beans::PropertyValue > &aArgs)
 
void implDescribeSupportedFeature (const OUString &_rCommandURL, sal_uInt16 _nFeatureId, sal_Int16 _nCommandGroup=css::frame::CommandGroup::INTERNAL)
 describes a feature supported by the controller More...
 
bool isFeatureSupported (sal_Int32 _nId)
 returns <TRUE> if the feature is supported, otherwise <FALSE> More...
 
css::util::URL getURLForId (sal_Int32 _nId) const
 
bool isUserDefinedFeature (const OUString &_rFeatureURL) const
 determines whether the given feature URL denotes a user-defined feature More...
 
css::uno::Reference< css::sdbc::XConnection > connect (const css::uno::Reference< css::sdbc::XDataSource > &_xDataSource)
 
css::uno::Reference< css::sdbc::XConnection > connect (const OUString &_rsDataSourceName, const OUString &_rContextInformation, ::dbtools::SQLExceptionInfo *_pErrorInfo)
 
void startConnectionListening (const css::uno::Reference< css::sdbc::XConnection > &_rxConnection)
 
void stopConnectionListening (const css::uno::Reference< css::sdbc::XConnection > &_rxConnection)
 
css::uno::Reference< css::awt::XWindow > getTopMostContainerWindow () const
 return the container window of the top most frame More...
 
virtual void impl_initialize ()
 
virtual OUString getPrivateTitle () const
 
css::uno::Reference< css::frame::XTitle > impl_getTitleHelper_throw (bool bCreateIfNecessary=true)
 
virtual css::uno::Reference< css::frame::XModel > getPrivateModel () const
 
virtual void startFrameListening (const css::uno::Reference< css::frame::XFrame > &_rxFrame)
 
virtual void stopFrameListening (const css::uno::Reference< css::frame::XFrame > &_rxFrame)
 
void releaseNumberForComponent ()
 
virtual ~OGenericUnoController () override
 
::osl::Mutex & getMutex () const
 
- Protected Member Functions inherited from comphelper::SharedMutexBase
 SharedMutexBase ()
 
 ~SharedMutexBase ()
 
::osl::Mutex & getMutex () const
 
SharedMutexgetSharedMutex () const
 
- Protected Member Functions inherited from dbaui::IController
 ~IController ()
 

Static Protected Member Functions

static bool isUserDefinedFeature (const sal_uInt16 nFeatureId)
 determines whether the given feature ID denotes a user-defined feature More...
 

Protected Attributes

::std::deque< FeatureListenerm_aFeaturesToInvalidate
 
std::mutex m_aFeatureMutex
 
StateCache m_aStateCache
 
Dispatch m_arrStatusListener
 
OAsynchronousLink m_aAsyncInvalidateAll
 
OAsynchronousLink m_aAsyncCloseTask
 
css::uno::Reference< css::util::XURLTransformer > m_xUrlTransformer
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
ControllerFrame m_aCurrentFrame
 
css::uno::Reference< css::frame::XDispatchProvider > m_xSlaveDispatcher
 
css::uno::Reference< css::frame::XDispatchProvider > m_xMasterDispatcher
 
css::uno::Reference< css::sdb::XDatabaseContext > m_xDatabaseContext
 
css::uno::Reference< css::frame::XTitle > m_xTitleHelper
 
bool m_bPreview
 
bool m_bReadOnly
 
bool m_bCurrentlyModified: 1
 
bool m_bExternalTitle: 1
 

Private Member Functions

void fillSupportedFeatures ()
 
void InvalidateAll_Impl ()
 
void InvalidateFeature_Impl ()
 
void ImplInvalidateFeature (sal_Int32 _nId, const css::uno::Reference< css::frame::XStatusListener > &_xListener, bool _bForceBroadcast)
 
void ImplBroadcastFeatureState (const OUString &_rFeature, const css::uno::Reference< css::frame::XStatusListener > &xListener, bool _bIgnoreCache)
 
void executeUserDefinedFeatures (const css::util::URL &_rFeatureURL, const css::uno::Sequence< css::beans::PropertyValue > &_rArgs)
 
 DECL_DLLPRIVATE_LINK (OnAsyncInvalidateAll, void *, void)
 
 DECL_DLLPRIVATE_LINK (OnAsyncCloseTask, void *, void)
 

Private Attributes

SupportedFeatures m_aSupportedFeatures
 
::comphelper::NamedValueCollection m_aInitParameters
 
::sfx2::UserInputInterception m_aUserInputInterception
 
VclPtr< ODataViewm_pView
 
bool m_bDescribingSupportedFeatures
 

Detailed Description

Definition at line 203 of file genericcontroller.hxx.

Member Typedef Documentation

◆ Dispatch

Definition at line 231 of file genericcontroller.hxx.

◆ StateCache

Definition at line 230 of file genericcontroller.hxx.

Constructor & Destructor Documentation

◆ OGenericUnoController() [1/2]

dbaui::OGenericUnoController::OGenericUnoController ( const css::uno::Reference< css::uno::XComponentContext > &  _rM)
protected

◆ OGenericUnoController() [2/2]

dbaui::OGenericUnoController::OGenericUnoController ( )
protecteddelete

◆ ~OGenericUnoController()

dbaui::OGenericUnoController::~OGenericUnoController ( )
overrideprotectedvirtual

Definition at line 130 of file genericcontroller.cxx.

Member Function Documentation

◆ acquire()

void SAL_CALL dbaui::OGenericUnoController::acquire ( )
overridevirtualnoexcept

Implements dbaui::IController.

Definition at line 229 of file genericcontroller.cxx.

◆ addEventListener()

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

Definition at line 699 of file genericcontroller.cxx.

◆ addKeyHandler()

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

◆ addMouseClickHandler()

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

◆ addStatusListener()

void dbaui::OGenericUnoController::addStatusListener ( const css::uno::Reference< css::frame::XStatusListener > &  aListener,
const css::util::URL &  aURL 
)
overridevirtual

◆ addTitleChangeListener()

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

Definition at line 1047 of file genericcontroller.cxx.

References impl_getTitleHelper_throw().

◆ attachFrame()

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

◆ attachModel()

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

Reimplemented in dbaui::OApplicationController.

Definition at line 956 of file genericcontroller.cxx.

References SAL_WARN.

◆ clearView()

void dbaui::OGenericUnoController::clearView ( )

◆ closeTask()

void dbaui::OGenericUnoController::closeTask ( )
protected

Definition at line 915 of file genericcontroller.cxx.

References dbaui::OAsynchronousLink::Call(), and m_aAsyncCloseTask.

◆ connect() [1/2]

css::uno::Reference< css::sdbc::XConnection > dbaui::OGenericUnoController::connect ( const css::uno::Reference< css::sdbc::XDataSource > &  _xDataSource)
protected

◆ connect() [2/2]

Reference< XConnection > dbaui::OGenericUnoController::connect ( const OUString &  _rsDataSourceName,
const OUString &  _rContextInformation,
::dbtools::SQLExceptionInfo _pErrorInfo 
)
protected

◆ Construct()

bool dbaui::OGenericUnoController::Construct ( vcl::Window pParent)
virtual

◆ DECL_DLLPRIVATE_LINK() [1/2]

dbaui::OGenericUnoController::DECL_DLLPRIVATE_LINK ( OnAsyncCloseTask  ,
void *  ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [2/2]

dbaui::OGenericUnoController::DECL_DLLPRIVATE_LINK ( OnAsyncInvalidateAll  ,
void *  ,
void   
)
private

◆ describeSupportedFeatures()

void dbaui::OGenericUnoController::describeSupportedFeatures ( )
protectedvirtual

◆ dispatch()

void dbaui::OGenericUnoController::dispatch ( const css::util::URL &  aURL,
const css::uno::Sequence< css::beans::PropertyValue > &  aArgs 
)
overridevirtual

Definition at line 585 of file genericcontroller.cxx.

References executeChecked().

◆ dispose()

void SAL_CALL dbaui::OGenericUnoController::dispose ( void  )
overridevirtual

◆ disposing() [1/2]

void dbaui::OGenericUnoController::disposing ( )
overridevirtual

◆ disposing() [2/2]

virtual void SAL_CALL dbaui::OGenericUnoController::disposing ( const css::lang::EventObject &  Source)
overridevirtual

Reimplemented in dbaui::OApplicationController.

◆ Execute()

void dbaui::OGenericUnoController::Execute ( sal_uInt16  nId,
const css::uno::Sequence< css::beans::PropertyValue > &  aArgs 
)
protectedvirtual

◆ executeChecked() [1/2]

virtual void dbaui::OGenericUnoController::executeChecked ( const css::util::URL &  _rCommand,
const css::uno::Sequence< css::beans::PropertyValue > &  aArgs 
)
overridevirtual

executes the given command only when it is allowed

Parameters
_rCommandthe URL of the command

Implements dbaui::IController.

Referenced by dispatch(), and dbaui::OApplicationController::onDeleteEntry().

◆ executeChecked() [2/2]

virtual void dbaui::OGenericUnoController::executeChecked ( sal_uInt16  _nCommandId,
const css::uno::Sequence< css::beans::PropertyValue > &  aArgs 
)
overridevirtual

executes the given command only when it is allowed

Parameters
_nCommandIdthe id of the command URL

Implements dbaui::IController.

◆ executeUnChecked() [1/2]

virtual void dbaui::OGenericUnoController::executeUnChecked ( const css::util::URL &  _rCommand,
const css::uno::Sequence< css::beans::PropertyValue > &  aArgs 
)
overridevirtual

executes the given command without checking if it is allowed

Parameters
_rCommandthe URL of the command

Implements dbaui::IController.

◆ executeUnChecked() [2/2]

virtual void dbaui::OGenericUnoController::executeUnChecked ( sal_uInt16  _nCommandId,
const css::uno::Sequence< css::beans::PropertyValue > &  aArgs 
)
overridevirtual

executes the given command without checking if it is allowed

Parameters
_nCommandIdthe id of the command URL

Implements dbaui::IController.

◆ executeUserDefinedFeatures()

void dbaui::OGenericUnoController::executeUserDefinedFeatures ( const css::util::URL &  _rFeatureURL,
const css::uno::Sequence< css::beans::PropertyValue > &  _rArgs 
)
private

Definition at line 75 of file genericcontroller.cxx.

References DBG_UNHANDLED_EXCEPTION, Exception, getXController(), SAL_WARN, xController, and xDispatch.

Referenced by Execute().

◆ fillSupportedFeatures()

void dbaui::OGenericUnoController::fillSupportedFeatures ( )
private

◆ frameAction()

void dbaui::OGenericUnoController::frameAction ( const css::frame::FrameActionEvent &  aEvent)
overridevirtual

◆ getBroadcastHelper()

::cppu::OBroadcastHelper & dbaui::OGenericUnoController::getBroadcastHelper ( )
inlineprotected

Definition at line 259 of file genericcontroller.hxx.

◆ getComponentWindow()

Reference< XWindow > SAL_CALL dbaui::OGenericUnoController::getComponentWindow ( )
overridevirtual

Definition at line 273 of file genericcontroller.cxx.

References VCLUnoHelper::GetInterface(), and getView().

◆ getConfigurableDispatchInformation()

Sequence< DispatchInformation > SAL_CALL dbaui::OGenericUnoController::getConfigurableDispatchInformation ( ::sal_Int16  CommandGroup)
overridevirtual

◆ getCreationArguments()

Sequence< PropertyValue > SAL_CALL dbaui::OGenericUnoController::getCreationArguments ( )
overridevirtual

Definition at line 289 of file genericcontroller.cxx.

◆ getFrame()

Reference< XFrame > SAL_CALL dbaui::OGenericUnoController::getFrame ( )
overridevirtual

◆ getFrameWeld()

weld::Window * dbaui::OGenericUnoController::getFrameWeld ( ) const

◆ getImplementationName()

virtual OUString SAL_CALL dbaui::OGenericUnoController::getImplementationName ( )
overridepure virtual

◆ getInitParams()

const ::comphelper::NamedValueCollection & dbaui::OGenericUnoController::getInitParams ( ) const
inlineprotected

Definition at line 266 of file genericcontroller.hxx.

◆ getLayoutManager()

Reference< XLayoutManager > dbaui::OGenericUnoController::getLayoutManager ( const css::uno::Reference< css::frame::XFrame > &  _xFrame)
static

get the layout manager

Parameters
_xFrameThe frame to ask for the layout manager.
Returns
The layout manager of the frame, can be <NULL> if the frame isn't initialized.

Definition at line 878 of file genericcontroller.cxx.

References Exception.

Referenced by loadMenu(), and dbaui::OApplicationController::onContainerSelect().

◆ getMasterDispatchProvider()

Reference< XDispatchProvider > dbaui::OGenericUnoController::getMasterDispatchProvider ( )
overridevirtual

Definition at line 575 of file genericcontroller.cxx.

References m_xMasterDispatcher.

◆ getModel()

Reference< XModel > SAL_CALL dbaui::OGenericUnoController::getModel ( )
overridevirtual

Reimplemented in dbaui::OApplicationController.

Definition at line 945 of file genericcontroller.cxx.

◆ getMutex()

::osl::Mutex & comphelper::SharedMutexBase::getMutex ( ) const
protected

Referenced by dbaui::OApplicationController::attachFrame(), attachFrame(), dbaui::OApplicationController::attachModel(), dbaui::OApplicationController::closeSubComponents(), dbaui::OApplicationController::copyDocObject(), dbaui::OApplicationController::copyObject(), dbaui::OApplicationController::copySQLObject(), dbaui::OApplicationController::createComponentWithArguments(), dbaui::OApplicationController::deleteEntries(), dbaui::OApplicationController::elementInserted(), dbaui::OApplicationController::elementRemoved(), dbaui::OApplicationController::elementReplaced(), dbaui::OApplicationController::ensureConnection(), dbaui::OApplicationController::Execute(), frameAction(), dbaui::OApplicationController::getActiveConnection(), dbaui::OApplicationController::getApplicationMainWindow(), dbaui::OApplicationController::getDataSource(), getFrame(), dbaui::OApplicationController::getSelection(), dbaui::OApplicationController::getSelectionElementNames(), dbaui::OApplicationController::getSubComponents(), getTitle(), dbaui::OApplicationController::identifySubComponent(), impl_getTitleHelper_throw(), initialize(), dbaui::OApplicationController::isConnected(), dbaui::OApplicationController::loadComponentWithArguments(), modified(), dbaui::OApplicationController::openDialog(), dbaui::OApplicationController::previewChanged(), dbaui::OApplicationController::propertyChange(), dbaui::OApplicationController::renameEntry(), dbaui::OApplicationController::select(), setTitle(), and dbaui::OApplicationController::suspend().

◆ getORB()

const css::uno::Reference< css::uno::XComponentContext > & dbaui::OGenericUnoController::getORB ( ) const
inline

◆ getPrivateModel()

virtual css::uno::Reference< css::frame::XModel > dbaui::OGenericUnoController::getPrivateModel ( ) const
inlineprotectedvirtual

Reimplemented in dbaui::OApplicationController.

Definition at line 356 of file genericcontroller.hxx.

Referenced by impl_getTitleHelper_throw(), and releaseNumberForComponent().

◆ getPrivateTitle()

virtual OUString dbaui::OGenericUnoController::getPrivateTitle ( ) const
inlineprotectedvirtual

Definition at line 353 of file genericcontroller.hxx.

Referenced by getTitle().

◆ getSidebar()

Reference< XSidebarProvider > SAL_CALL dbaui::OGenericUnoController::getSidebar ( )
overridevirtual

Definition at line 279 of file genericcontroller.cxx.

◆ getSlaveDispatchProvider()

Reference< XDispatchProvider > dbaui::OGenericUnoController::getSlaveDispatchProvider ( )
overridevirtual

Definition at line 565 of file genericcontroller.cxx.

References m_xSlaveDispatcher.

◆ GetState()

FeatureState dbaui::OGenericUnoController::GetState ( sal_uInt16  nId) const
protectedvirtual

◆ getSupportedCommandGroups()

Sequence<::sal_Int16 > SAL_CALL dbaui::OGenericUnoController::getSupportedCommandGroups ( )
overridevirtual

◆ getSupportedServiceNames()

virtual css::uno::Sequence< OUString > SAL_CALL dbaui::OGenericUnoController::getSupportedServiceNames ( )
overridepure virtual

◆ getTitle()

OUString SAL_CALL dbaui::OGenericUnoController::getTitle ( )
overridevirtual

◆ getTopMostContainerWindow()

Reference< awt::XWindow > dbaui::OGenericUnoController::getTopMostContainerWindow ( ) const
protected

return the container window of the top most frame

Returns
The top most container window, nmay be <NULL>.

Definition at line 993 of file genericcontroller.cxx.

References dbaui::ControllerFrame::getFrame(), m_aCurrentFrame, and xFrame.

Referenced by dbaui::OApplicationController::openDialog().

◆ getURLForId()

URL dbaui::OGenericUnoController::getURLForId ( sal_Int32  _nId) const
protected

Definition at line 781 of file genericcontroller.cxx.

References m_aSupportedFeatures, m_xUrlTransformer, and URL.

Referenced by Execute().

◆ getView()

ODataView * dbaui::OGenericUnoController::getView ( ) const
inline

◆ getViewControllerName()

OUString SAL_CALL dbaui::OGenericUnoController::getViewControllerName ( )
overridevirtual

Definition at line 284 of file genericcontroller.cxx.

◆ getViewData()

Any SAL_CALL dbaui::OGenericUnoController::getViewData ( )
overridevirtual

Definition at line 936 of file genericcontroller.cxx.

References Any.

◆ getXController()

Reference< XController > dbaui::OGenericUnoController::getXController ( )
overridevirtual

provides access to the model of the controller

This must be the same model as returned by XController::getModel, and might be <NULL> when the controller does not have an own model.

Exceptions
css::uno::RuntimeException

Implements dbaui::IController.

Definition at line 1100 of file genericcontroller.cxx.

Referenced by executeUserDefinedFeatures().

◆ impl_getTitleHelper_throw()

Reference< XTitle > dbaui::OGenericUnoController::impl_getTitleHelper_throw ( bool  bCreateIfNecessary = true)
protected

◆ impl_initialize()

void dbaui::OGenericUnoController::impl_initialize ( )
protectedvirtual

◆ ImplBroadcastFeatureState()

void dbaui::OGenericUnoController::ImplBroadcastFeatureState ( const OUString &  _rFeature,
const css::uno::Reference< css::frame::XStatusListener > &  xListener,
bool  _bIgnoreCache 
)
private

◆ implDescribeSupportedFeature()

void dbaui::OGenericUnoController::implDescribeSupportedFeature ( const OUString &  _rCommandURL,
sal_uInt16  _nFeatureId,
sal_Int16  _nCommandGroup = css::frame::CommandGroup::INTERNAL 
)
protected

describes a feature supported by the controller

Must not be called outside <member>describeSupportedFeatures</member>.

Parameters
_rCommandURLthe URL of the feature command
_nFeatureIdthe id of the feature. Later references to this feature usually happen by id, not by URL
_nCommandGroupthe command group of the feature. This is important for configuring the controller UI by the user, see also <type scope="css::frame">CommandGroup</type>.

Definition at line 718 of file genericcontroller.cxx.

References m_aSupportedFeatures, m_bDescribingSupportedFeatures, and dbaui::ControllerFeature::nFeatureId.

Referenced by describeSupportedFeatures(), and dbaui::OApplicationController::describeSupportedFeatures().

◆ ImplInvalidateFeature()

void dbaui::OGenericUnoController::ImplInvalidateFeature ( sal_Int32  _nId,
const css::uno::Reference< css::frame::XStatusListener > &  _xListener,
bool  _bForceBroadcast 
)
private

◆ initialize()

void SAL_CALL dbaui::OGenericUnoController::initialize ( const css::uno::Sequence< css::uno::Any > &  aArguments)
overridevirtual

◆ interceptUserInput()

bool dbaui::OGenericUnoController::interceptUserInput ( const NotifyEvent _rEvent)
overridevirtual

allows interception of user input, aka mouse clicks and key events

Implements dbaui::IController.

Definition at line 1105 of file genericcontroller.cxx.

References sfx2::UserInputInterception::handleNotifyEvent(), and m_aUserInputInterception.

◆ InvalidateAll()

void dbaui::OGenericUnoController::InvalidateAll ( )

◆ InvalidateAll_Impl()

void dbaui::OGenericUnoController::InvalidateAll_Impl ( )
private

◆ InvalidateFeature()

void dbaui::OGenericUnoController::InvalidateFeature ( sal_uInt16  nId,
const css::uno::Reference< css::frame::XStatusListener > &  xListener = nullptr,
bool  _bForceBroadcast = false 
)

◆ InvalidateFeature_Impl()

void dbaui::OGenericUnoController::InvalidateFeature_Impl ( )
private

◆ isCommandChecked()

bool dbaui::OGenericUnoController::isCommandChecked ( sal_uInt16  _nCommandId) const

Definition at line 1110 of file genericcontroller.cxx.

References dbaui::FeatureState::bChecked, and GetState().

◆ isCommandEnabled() [1/2]

bool dbaui::OGenericUnoController::isCommandEnabled ( const OUString &  _rCompleteCommandURL) const
overridevirtual

checks if the given Command is enabled

Parameters
_rCompleteCommandURLthe URL of the command
Returns
<TRUE> if the command is allowed, otherwise <FALSE>.

Implements dbaui::IController.

Definition at line 1117 of file genericcontroller.cxx.

References bIsEnabled, isCommandEnabled(), and m_aSupportedFeatures.

◆ isCommandEnabled() [2/2]

bool dbaui::OGenericUnoController::isCommandEnabled ( sal_uInt16  _nCommandId) const
overridevirtual

checks if the given Command is enabled

Parameters
_nCommandIdthe id of the command URL
Returns
<TRUE> if the command is allowed, otherwise <FALSE>.

Implements dbaui::IController.

Definition at line 1090 of file genericcontroller.cxx.

References dbaui::FeatureState::bEnabled, and GetState().

Referenced by isCommandEnabled().

◆ isDataSourceReadOnly()

bool dbaui::OGenericUnoController::isDataSourceReadOnly ( ) const
overridevirtual

checks if the selected data source is read only

Returns
<TRUE> if read only, otherwise <FALSE>

Implements dbaui::IController.

Reimplemented in dbaui::OApplicationController.

Definition at line 1095 of file genericcontroller.cxx.

Referenced by modified().

◆ isFeatureSupported()

bool dbaui::OGenericUnoController::isFeatureSupported ( sal_Int32  _nId)
protected

returns <TRUE> if the feature is supported, otherwise <FALSE>

Parameters
_nIdThe ID of the feature.

Definition at line 406 of file genericcontroller.cxx.

References m_aSupportedFeatures.

◆ isUserDefinedFeature() [1/2]

bool dbaui::OGenericUnoController::isUserDefinedFeature ( const OUString &  _rFeatureURL) const
protected

determines whether the given feature URL denotes a user-defined feature

See also
IController::registerCommandURL

Definition at line 810 of file genericcontroller.cxx.

References isUserDefinedFeature(), m_aSupportedFeatures, and pos.

◆ isUserDefinedFeature() [2/2]

bool dbaui::OGenericUnoController::isUserDefinedFeature ( const sal_uInt16  nFeatureId)
staticprotected

determines whether the given feature ID denotes a user-defined feature

See also
IController::registerCommandURL

Definition at line 801 of file genericcontroller.cxx.

Referenced by Execute(), dbaui::OApplicationController::Execute(), isUserDefinedFeature(), and queryDispatch().

◆ loadMenu()

void dbaui::OGenericUnoController::loadMenu ( const css::uno::Reference< css::frame::XFrame > &  _xFrame)
protectedvirtual

Definition at line 895 of file genericcontroller.cxx.

References getLayoutManager(), and onLoadedMenu().

Referenced by attachFrame(), and dbaui::SbaTableQueryBrowser::loadMenu().

◆ modified()

void dbaui::OGenericUnoController::modified ( const css::lang::EventObject &  aEvent)
overridevirtual

◆ onLoadedMenu()

void dbaui::OGenericUnoController::onLoadedMenu ( const css::uno::Reference< css::frame::XLayoutManager > &  _xLayoutManager)
protectedvirtual

called when our menu has been loaded into our frame, can be used to load sub toolbars

Parameters
_xLayoutManagerThe layout manager.

Reimplemented in dbaui::OApplicationController.

Definition at line 910 of file genericcontroller.cxx.

Referenced by loadMenu().

◆ queryDispatch()

Reference< XDispatch > dbaui::OGenericUnoController::queryDispatch ( const css::util::URL &  aURL,
const OUString &  aTargetFrameName,
sal_Int32  nSearchFlags 
)
overridevirtual

◆ queryDispatches()

Sequence< Reference< XDispatch > > dbaui::OGenericUnoController::queryDispatches ( const css::uno::Sequence< css::frame::DispatchDescriptor > &  aDescripts)
overridevirtual

Definition at line 545 of file genericcontroller.cxx.

References queryDispatch().

◆ release()

void SAL_CALL dbaui::OGenericUnoController::release ( )
overridevirtualnoexcept

Implements dbaui::IController.

Definition at line 234 of file genericcontroller.cxx.

◆ releaseNumberForComponent()

void dbaui::OGenericUnoController::releaseNumberForComponent ( )
protected

Definition at line 651 of file genericcontroller.cxx.

References Exception, and getPrivateModel().

Referenced by disposing().

◆ removeEventListener()

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

Definition at line 705 of file genericcontroller.cxx.

◆ removeKeyHandler()

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

◆ removeMouseClickHandler()

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

◆ removeStatusListener()

void dbaui::OGenericUnoController::removeStatusListener ( const css::uno::Reference< css::frame::XStatusListener > &  aListener,
const css::util::URL &  aURL 
)
overridevirtual

◆ removeTitleChangeListener()

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

Definition at line 1054 of file genericcontroller.cxx.

References impl_getTitleHelper_throw().

◆ restoreViewData()

void SAL_CALL dbaui::OGenericUnoController::restoreViewData ( const css::uno::Any &  Data)
overridevirtual

Definition at line 941 of file genericcontroller.cxx.

◆ setMasterDispatchProvider()

void dbaui::OGenericUnoController::setMasterDispatchProvider ( const css::uno::Reference< css::frame::XDispatchProvider > &  _xNewProvider)
overridevirtual

Definition at line 580 of file genericcontroller.cxx.

References m_xMasterDispatcher.

◆ setSlaveDispatchProvider()

void dbaui::OGenericUnoController::setSlaveDispatchProvider ( const css::uno::Reference< css::frame::XDispatchProvider > &  _xNewProvider)
overridevirtual

Definition at line 570 of file genericcontroller.cxx.

References m_xSlaveDispatcher.

◆ setTitle()

void SAL_CALL dbaui::OGenericUnoController::setTitle ( const OUString &  sTitle)
overridevirtual

Definition at line 1038 of file genericcontroller.cxx.

References getMutex(), impl_getTitleHelper_throw(), and m_bExternalTitle.

◆ setView()

void dbaui::OGenericUnoController::setView ( const VclPtr< ODataView > &  i_rView)

Definition at line 863 of file genericcontroller.cxx.

References m_pView.

Referenced by dbaui::OApplicationController::Construct().

◆ showError()

void dbaui::OGenericUnoController::showError ( const ::dbtools::SQLExceptionInfo _rInfo)

◆ startConnectionListening()

void dbaui::OGenericUnoController::startConnectionListening ( const css::uno::Reference< css::sdbc::XConnection > &  _rxConnection)
protected

Definition at line 824 of file genericcontroller.cxx.

Referenced by connect().

◆ startFrameListening()

void dbaui::OGenericUnoController::startFrameListening ( const css::uno::Reference< css::frame::XFrame > &  _rxFrame)
protectedvirtual

Definition at line 239 of file genericcontroller.cxx.

Referenced by attachFrame().

◆ stopConnectionListening()

void dbaui::OGenericUnoController::stopConnectionListening ( const css::uno::Reference< css::sdbc::XConnection > &  _rxConnection)
protected

Definition at line 832 of file genericcontroller.cxx.

◆ stopFrameListening()

void dbaui::OGenericUnoController::stopFrameListening ( const css::uno::Reference< css::frame::XFrame > &  _rxFrame)
protectedvirtual

Definition at line 245 of file genericcontroller.cxx.

Referenced by attachFrame(), and disposing().

◆ supportsService()

sal_Bool SAL_CALL dbaui::OGenericUnoController::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 819 of file genericcontroller.cxx.

References ServiceName, and cppu::supportsService().

◆ suspend()

virtual sal_Bool SAL_CALL dbaui::OGenericUnoController::suspend ( sal_Bool  bSuspend)
overridepure virtual

Member Data Documentation

◆ m_aAsyncCloseTask

OAsynchronousLink dbaui::OGenericUnoController::m_aAsyncCloseTask
protected

Definition at line 240 of file genericcontroller.hxx.

Referenced by closeTask().

◆ m_aAsyncInvalidateAll

OAsynchronousLink dbaui::OGenericUnoController::m_aAsyncInvalidateAll
protected

Definition at line 239 of file genericcontroller.hxx.

Referenced by disposing(), ImplInvalidateFeature(), and InvalidateAll_Impl().

◆ m_aCurrentFrame

ControllerFrame dbaui::OGenericUnoController::m_aCurrentFrame
protected

◆ m_aFeatureMutex

std::mutex dbaui::OGenericUnoController::m_aFeatureMutex
protected

◆ m_aFeaturesToInvalidate

::std::deque< FeatureListener > dbaui::OGenericUnoController::m_aFeaturesToInvalidate
protected

◆ m_aInitParameters

::comphelper::NamedValueCollection dbaui::OGenericUnoController::m_aInitParameters
private

Definition at line 211 of file genericcontroller.hxx.

Referenced by disposing(), and initialize().

◆ m_arrStatusListener

Dispatch dbaui::OGenericUnoController::m_arrStatusListener
protected

◆ m_aStateCache

StateCache dbaui::OGenericUnoController::m_aStateCache
protected

Definition at line 237 of file genericcontroller.hxx.

Referenced by ImplBroadcastFeatureState(), and removeStatusListener().

◆ m_aSupportedFeatures

SupportedFeatures dbaui::OGenericUnoController::m_aSupportedFeatures
private

◆ m_aUserInputInterception

::sfx2::UserInputInterception dbaui::OGenericUnoController::m_aUserInputInterception
private

◆ m_bCurrentlyModified

bool dbaui::OGenericUnoController::m_bCurrentlyModified
protected

Definition at line 253 of file genericcontroller.hxx.

Referenced by dbaui::OApplicationController::Execute(), and modified().

◆ m_bDescribingSupportedFeatures

bool dbaui::OGenericUnoController::m_bDescribingSupportedFeatures
private

Definition at line 216 of file genericcontroller.hxx.

Referenced by fillSupportedFeatures(), and implDescribeSupportedFeature().

◆ m_bExternalTitle

bool dbaui::OGenericUnoController::m_bExternalTitle
protected

Definition at line 254 of file genericcontroller.hxx.

Referenced by getTitle(), and setTitle().

◆ m_bPreview

bool dbaui::OGenericUnoController::m_bPreview
protected

Definition at line 250 of file genericcontroller.hxx.

Referenced by initialize().

◆ m_bReadOnly

bool dbaui::OGenericUnoController::m_bReadOnly
protected

◆ m_pView

VclPtr<ODataView> dbaui::OGenericUnoController::m_pView
private

Definition at line 213 of file genericcontroller.hxx.

Referenced by clearView(), getFrameWeld(), initialize(), and setView().

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > dbaui::OGenericUnoController::m_xContext
protected

◆ m_xDatabaseContext

css::uno::Reference< css::sdb::XDatabaseContext > dbaui::OGenericUnoController::m_xDatabaseContext
protected

Definition at line 247 of file genericcontroller.hxx.

Referenced by Construct(), and disposing().

◆ m_xMasterDispatcher

css::uno::Reference< css::frame::XDispatchProvider > dbaui::OGenericUnoController::m_xMasterDispatcher
protected

◆ m_xSlaveDispatcher

css::uno::Reference< css::frame::XDispatchProvider > dbaui::OGenericUnoController::m_xSlaveDispatcher
protected

◆ m_xTitleHelper

css::uno::Reference< css::frame::XTitle > dbaui::OGenericUnoController::m_xTitleHelper
protected

Definition at line 248 of file genericcontroller.hxx.

Referenced by disposing(), and impl_getTitleHelper_throw().

◆ m_xUrlTransformer

css::uno::Reference< css::util::XURLTransformer > dbaui::OGenericUnoController::m_xUrlTransformer
protected

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