LibreOffice Module dbaccess (master) 1
|
#include <genericcontroller.hxx>
Classes | |
struct | DispatchTarget |
Public Member Functions | |
const css::uno::Reference< css::uno::XComponentContext > & | getORB () const |
ODataView * | getView () const |
weld::Window * | getFrameWeld () 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, FeatureState > | StateCache |
typedef std::vector< DispatchTarget > | Dispatch |
Protected Member Functions | |
::cppu::OBroadcastHelper & | getBroadcastHelper () |
OGenericUnoController (const css::uno::Reference< css::uno::XComponentContext > &_rM) | |
OGenericUnoController ()=delete | |
const ::comphelper::NamedValueCollection & | getInitParams () 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 |
SharedMutex & | getSharedMutex () 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< FeatureListener > | m_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) | |
Definition at line 203 of file genericcontroller.hxx.
|
protected |
Definition at line 231 of file genericcontroller.hxx.
|
protected |
Definition at line 230 of file genericcontroller.hxx.
|
protected |
|
protecteddelete |
|
overrideprotectedvirtual |
Definition at line 130 of file genericcontroller.cxx.
|
overridevirtualnoexcept |
Implements dbaui::IController.
Definition at line 229 of file genericcontroller.cxx.
|
overridevirtual |
Definition at line 699 of file genericcontroller.cxx.
|
overridevirtual |
Definition at line 1062 of file genericcontroller.cxx.
References sfx2::UserInputInterception::addKeyHandler(), and m_aUserInputInterception.
|
overridevirtual |
Definition at line 1073 of file genericcontroller.cxx.
References sfx2::UserInputInterception::addMouseClickHandler(), and m_aUserInputInterception.
|
overridevirtual |
Definition at line 597 of file genericcontroller.cxx.
References ImplBroadcastFeatureState(), m_arrStatusListener, m_xUrlTransformer, and URL.
|
overridevirtual |
Definition at line 1047 of file genericcontroller.cxx.
References impl_getTitleHelper_throw().
|
overridevirtual |
Reimplemented in dbaui::OApplicationController.
Definition at line 296 of file genericcontroller.cxx.
References dbaui::ControllerFrame::attachFrame(), dbaui::ODataView::attachFrame(), dbaui::ControllerFrame::getFrame(), getMutex(), getView(), loadMenu(), m_aCurrentFrame, startFrameListening(), stopFrameListening(), and xFrame.
Referenced by dbaui::OApplicationController::attachFrame().
|
overridevirtual |
Reimplemented in dbaui::OApplicationController.
Definition at line 956 of file genericcontroller.cxx.
References SAL_WARN.
void dbaui::OGenericUnoController::clearView | ( | ) |
Definition at line 868 of file genericcontroller.cxx.
References m_pView.
Referenced by dbaui::OApplicationController::Construct(), dbaui::OApplicationController::disposing(), and dbaui::OApplicationController::~OApplicationController().
|
protected |
Definition at line 915 of file genericcontroller.cxx.
References dbaui::OAsynchronousLink::Call(), and m_aAsyncCloseTask.
|
protected |
|
protected |
Definition at line 851 of file genericcontroller.cxx.
References dbaui::ODatasourceConnector::connect(), getFrameWeld(), getORB(), and startConnectionListening().
|
virtual |
Reimplemented in dbaui::OApplicationController.
Definition at line 135 of file genericcontroller.cxx.
References dbaui::ODataView::Construct(), Exception, fillSupportedFeatures(), getFrameWeld(), getORB(), getView(), m_aSupportedFeatures, m_xDatabaseContext, SAL_WARN, vcl::Window::Show(), ShowServiceNotAvailableError(), and u.
Referenced by dbaui::OApplicationController::Construct(), and initialize().
|
private |
|
private |
|
protectedvirtual |
Reimplemented in dbaui::OApplicationController.
Definition at line 739 of file genericcontroller.cxx.
References ID_BROWSER_CLIPBOARD_FORMAT_ITEMS, ID_BROWSER_COPY, ID_BROWSER_CUT, ID_BROWSER_EDITDOC, ID_BROWSER_PASTE, and implDescribeSupportedFeature().
Referenced by dbaui::OApplicationController::describeSupportedFeatures(), and fillSupportedFeatures().
|
overridevirtual |
Definition at line 585 of file genericcontroller.cxx.
References executeChecked().
|
overridevirtual |
Definition at line 1164 of file genericcontroller.cxx.
Referenced by dbaui::OApplicationController::~OApplicationController().
|
overridevirtual |
Reimplemented in dbaui::OApplicationController.
Definition at line 665 of file genericcontroller.cxx.
References dbaui::ControllerFrame::attachFrame(), dbaui::OAsynchronousLink::CancelCall(), comphelper::NamedValueCollection::clear(), dbaui::ControllerFrame::getFrame(), m_aAsyncInvalidateAll, m_aCurrentFrame, m_aFeatureMutex, m_aFeaturesToInvalidate, m_aInitParameters, m_arrStatusListener, m_xDatabaseContext, m_xMasterDispatcher, m_xSlaveDispatcher, m_xTitleHelper, m_xUrlTransformer, releaseNumberForComponent(), and stopFrameListening().
Referenced by dbaui::OApplicationController::disposing().
|
overridevirtual |
Reimplemented in dbaui::OApplicationController.
|
protectedvirtual |
Reimplemented in dbaui::OApplicationController.
Definition at line 771 of file genericcontroller.cxx.
References executeUserDefinedFeatures(), getURLForId(), and isUserDefinedFeature().
Referenced by dbaui::OApplicationController::Execute().
|
overridevirtual |
executes the given command only when it is allowed
_rCommand | the URL of the command |
Implements dbaui::IController.
Referenced by dispatch(), and dbaui::OApplicationController::onDeleteEntry().
|
overridevirtual |
executes the given command only when it is allowed
_nCommandId | the id of the command URL |
Implements dbaui::IController.
|
overridevirtual |
executes the given command without checking if it is allowed
_rCommand | the URL of the command |
Implements dbaui::IController.
|
overridevirtual |
executes the given command without checking if it is allowed
_nCommandId | the id of the command URL |
Implements dbaui::IController.
|
private |
Definition at line 75 of file genericcontroller.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, getXController(), SAL_WARN, xController, and xDispatch.
Referenced by Execute().
|
private |
Definition at line 1153 of file genericcontroller.cxx.
References describeSupportedFeatures(), and m_bDescribingSupportedFeatures.
Referenced by Construct(), queryDispatch(), and removeStatusListener().
|
overridevirtual |
Definition at line 711 of file genericcontroller.cxx.
References aEvent, dbaui::ControllerFrame::frameAction(), dbaui::ControllerFrame::getFrame(), getMutex(), and m_aCurrentFrame.
|
inlineprotected |
Definition at line 259 of file genericcontroller.hxx.
|
overridevirtual |
Definition at line 273 of file genericcontroller.cxx.
References VCLUnoHelper::GetInterface(), and getView().
|
overridevirtual |
Definition at line 1139 of file genericcontroller.cxx.
References comphelper::containerToSequence(), and m_aSupportedFeatures.
|
overridevirtual |
Definition at line 289 of file genericcontroller.cxx.
|
overridevirtual |
Definition at line 950 of file genericcontroller.cxx.
References dbaui::ControllerFrame::getFrame(), getMutex(), and m_aCurrentFrame.
Referenced by dbaui::OApplicationController::attachFrame(), dbaui::OApplicationController::doAction(), dbaui::OApplicationController::Execute(), dbaui::OApplicationController::getApplicationMainWindow(), dbaui::OApplicationController::newElement(), dbaui::OApplicationController::newElementWithPilot(), and dbaui::OApplicationController::onContainerSelect().
weld::Window * dbaui::OGenericUnoController::getFrameWeld | ( | ) | const |
Definition at line 1170 of file genericcontroller.cxx.
References m_pView.
Referenced by dbaui::OApplicationController::askToReconnect(), connect(), Construct(), dbaui::OApplicationController::convertToView(), dbaui::OApplicationController::deleteObjects(), dbaui::OApplicationController::deleteTables(), dbaui::OApplicationController::ensureConnection(), dbaui::OApplicationController::Execute(), dbaui::OApplicationController::getDocumentsAccess(), dbaui::OApplicationController::insertHierarchyElement(), dbaui::OApplicationController::openDialog(), dbaui::OApplicationController::paste(), dbaui::OApplicationController::refreshTables(), dbaui::OApplicationController::renameEntry(), and dbaui::OApplicationController::suspend().
|
overridepure virtual |
Implemented in dbaui::OApplicationController.
|
inlineprotected |
Definition at line 266 of file genericcontroller.hxx.
|
static |
get the layout manager
_xFrame | The frame to ask for the layout manager. |
Definition at line 878 of file genericcontroller.cxx.
References Exception.
Referenced by loadMenu(), and dbaui::OApplicationController::onContainerSelect().
|
overridevirtual |
Definition at line 575 of file genericcontroller.cxx.
References m_xMasterDispatcher.
|
overridevirtual |
Reimplemented in dbaui::OApplicationController.
Definition at line 945 of file genericcontroller.cxx.
|
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().
|
inline |
Definition at line 385 of file genericcontroller.hxx.
References m_xContext.
Referenced by connect(), Construct(), dbaui::OApplicationController::Construct(), dbaui::OApplicationController::convertToView(), dbaui::OApplicationController::copySQLObject(), dbaui::OTableCopyHelper::copyTagTable(), dbaui::OApplicationController::Execute(), dbaui::OApplicationController::getDocumentsAccess(), dbaui::OApplicationController::insertHierarchyElement(), dbaui::OTableCopyHelper::insertTable(), dbaui::OApplicationController::newElement(), dbaui::OApplicationController::OnFirstControllerConnected(), dbaui::OApplicationController::openDialog(), dbaui::OApplicationController::openElementWithArguments(), dbaui::OApplicationController::paste(), dbaui::OApplicationController::renameEntry(), and showError().
|
inlineprotectedvirtual |
Reimplemented in dbaui::OApplicationController.
Definition at line 356 of file genericcontroller.hxx.
Referenced by impl_getTitleHelper_throw(), and releaseNumberForComponent().
|
inlineprotectedvirtual |
Definition at line 353 of file genericcontroller.hxx.
Referenced by getTitle().
|
overridevirtual |
Definition at line 279 of file genericcontroller.cxx.
|
overridevirtual |
Definition at line 565 of file genericcontroller.cxx.
References m_xSlaveDispatcher.
|
protectedvirtual |
Reimplemented in dbaui::OApplicationController.
Definition at line 749 of file genericcontroller.cxx.
References dbaui::FeatureState::bEnabled, ID_BROWSER_SAVEDOC, and ID_BROWSER_UNDO.
Referenced by dbaui::OApplicationController::GetState(), ImplBroadcastFeatureState(), isCommandChecked(), and isCommandEnabled().
|
overridevirtual |
Definition at line 1129 of file genericcontroller.cxx.
References m_aSupportedFeatures, and comphelper::mapKeysToSequence().
|
overridepure virtual |
Implemented in dbaui::OApplicationController.
|
overridevirtual |
Definition at line 1029 of file genericcontroller.cxx.
References getMutex(), getPrivateTitle(), impl_getTitleHelper_throw(), and m_bExternalTitle.
|
protected |
return the container window of the top most frame
Definition at line 993 of file genericcontroller.cxx.
References dbaui::ControllerFrame::getFrame(), m_aCurrentFrame, and xFrame.
Referenced by dbaui::OApplicationController::openDialog().
|
protected |
Definition at line 781 of file genericcontroller.cxx.
References m_aSupportedFeatures, m_xUrlTransformer, and URL.
Referenced by Execute().
|
inline |
Definition at line 386 of file genericcontroller.hxx.
Referenced by attachFrame(), dbaui::OApplicationController::attachModel(), Construct(), dbaui::OApplicationController::Construct(), dbaui::OApplicationController::disposing(), dbaui::OApplicationController::Execute(), getComponentWindow(), dbaui::OApplicationController::getContainer(), initialize(), dbaui::OTableCopyHelper::insertTable(), dbaui::OApplicationController::openDialog(), dbaui::OApplicationController::select(), showError(), and dbaui::OApplicationController::suspend().
|
overridevirtual |
Definition at line 284 of file genericcontroller.cxx.
|
overridevirtual |
Definition at line 936 of file genericcontroller.cxx.
References Any.
|
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.
css::uno::RuntimeException |
Implements dbaui::IController.
Definition at line 1100 of file genericcontroller.cxx.
Referenced by executeUserDefinedFeatures().
|
protected |
Definition at line 1013 of file genericcontroller.cxx.
References getMutex(), getPrivateModel(), m_xContext, and m_xTitleHelper.
Referenced by addTitleChangeListener(), getTitle(), removeTitleChangeListener(), and setTitle().
|
protectedvirtual |
Definition at line 170 of file genericcontroller.cxx.
Referenced by dbaui::DBSubComponentController::impl_initialize(), and initialize().
|
private |
Definition at line 345 of file genericcontroller.cxx.
References aEvent, dbaui::FeatureState::bChecked, dbaui::FeatureState::bEnabled, dbaui::FeatureState::bInvisible, GetState(), m_arrStatusListener, m_aStateCache, m_aSupportedFeatures, m_xUrlTransformer, and dbaui::FeatureState::sTitle.
Referenced by addStatusListener(), InvalidateAll_Impl(), and InvalidateFeature_Impl().
|
protected |
describes a feature supported by the controller
Must not be called outside <member>describeSupportedFeatures</member>.
_rCommandURL | the URL of the feature command |
_nFeatureId | the id of the feature. Later references to this feature usually happen by id, not by URL |
_nCommandGroup | the 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().
|
private |
Definition at line 463 of file genericcontroller.cxx.
References dbaui::FeatureListener::bForceBroadcast, dbaui::OAsynchronousLink::Call(), m_aAsyncInvalidateAll, m_aFeatureMutex, m_aFeaturesToInvalidate, m_aSupportedFeatures, dbaui::FeatureListener::nId, and dbaui::FeatureListener::xListener.
Referenced by InvalidateAll(), and InvalidateFeature().
|
overridevirtual |
Definition at line 174 of file genericcontroller.cxx.
References aArguments, Any, comphelper::NamedValueCollection::assign(), Construct(), vcl::Window::EnableInput(), Exception, getMutex(), getView(), VCLUnoHelper::GetWindow(), impl_initialize(), m_aInitParameters, m_bPreview, m_bReadOnly, m_pView, and xFrame.
|
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.
void dbaui::OGenericUnoController::InvalidateAll | ( | ) |
InvalidateAll invalidates all features currently known.
Definition at line 498 of file genericcontroller.cxx.
References ALL_FEATURES, and ImplInvalidateFeature().
Referenced by dbaui::OApplicationController::Execute(), dbaui::OApplicationController::onContainerSelect(), dbaui::OApplicationController::onLoadedMenu(), and dbaui::OApplicationController::onSelectionChanged().
|
private |
Definition at line 503 of file genericcontroller.cxx.
References dbaui::OAsynchronousLink::Call(), ImplBroadcastFeatureState(), m_aAsyncInvalidateAll, m_aFeatureMutex, m_aFeaturesToInvalidate, and m_aSupportedFeatures.
Referenced by InvalidateFeature_Impl().
void dbaui::OGenericUnoController::InvalidateFeature | ( | sal_uInt16 | nId, |
const css::uno::Reference< css::frame::XStatusListener > & | xListener = nullptr , |
||
bool | _bForceBroadcast = false |
||
) |
Definition at line 493 of file genericcontroller.cxx.
References ImplInvalidateFeature().
Referenced by dbaui::OApplicationController::Execute(), modified(), dbaui::OApplicationController::OnInvalidateClipboard(), dbaui::OApplicationController::previewChanged(), and dbaui::OApplicationController::propertyChange().
|
private |
Definition at line 417 of file genericcontroller.cxx.
References ALL_FEATURES, dbaui::FeatureListener::bForceBroadcast, ImplBroadcastFeatureState(), InvalidateAll_Impl(), m_aFeatureMutex, m_aFeaturesToInvalidate, m_aSupportedFeatures, dbaui::FeatureListener::nId, SAL_WARN, and dbaui::FeatureListener::xListener.
bool dbaui::OGenericUnoController::isCommandChecked | ( | sal_uInt16 | _nCommandId | ) | const |
Definition at line 1110 of file genericcontroller.cxx.
References dbaui::FeatureState::bChecked, and GetState().
|
overridevirtual |
checks if the given Command is enabled
_rCompleteCommandURL | the URL of the command |
Implements dbaui::IController.
Definition at line 1117 of file genericcontroller.cxx.
References bIsEnabled, isCommandEnabled(), and m_aSupportedFeatures.
|
overridevirtual |
checks if the given Command is enabled
_nCommandId | the id of the command URL |
Implements dbaui::IController.
Definition at line 1090 of file genericcontroller.cxx.
References dbaui::FeatureState::bEnabled, and GetState().
Referenced by isCommandEnabled().
|
overridevirtual |
checks if the selected data source is read only
Implements dbaui::IController.
Reimplemented in dbaui::OApplicationController.
Definition at line 1095 of file genericcontroller.cxx.
Referenced by modified().
|
protected |
returns <TRUE> if the feature is supported, otherwise <FALSE>
_nId | The ID of the feature. |
Definition at line 406 of file genericcontroller.cxx.
References m_aSupportedFeatures.
|
protected |
determines whether the given feature URL denotes a user-defined feature
Definition at line 810 of file genericcontroller.cxx.
References isUserDefinedFeature(), m_aSupportedFeatures, and pos.
|
staticprotected |
determines whether the given feature ID denotes a user-defined feature
Definition at line 801 of file genericcontroller.cxx.
Referenced by Execute(), dbaui::OApplicationController::Execute(), isUserDefinedFeature(), and queryDispatch().
|
protectedvirtual |
Definition at line 895 of file genericcontroller.cxx.
References getLayoutManager(), and onLoadedMenu().
Referenced by attachFrame(), and dbaui::SbaTableQueryBrowser::loadMenu().
|
overridevirtual |
Definition at line 258 of file genericcontroller.cxx.
References aEvent, getMutex(), ID_BROWSER_SAVEDOC, ID_BROWSER_UNDO, InvalidateFeature(), isDataSourceReadOnly(), and m_bCurrentlyModified.
Referenced by dbaui::OApplicationController::propertyChange().
|
protectedvirtual |
called when our menu has been loaded into our frame, can be used to load sub toolbars
_xLayoutManager | The layout manager. |
Reimplemented in dbaui::OApplicationController.
Definition at line 910 of file genericcontroller.cxx.
Referenced by loadMenu().
|
overridevirtual |
Definition at line 518 of file genericcontroller.cxx.
References aURL, fillSupportedFeatures(), isUserDefinedFeature(), m_aSupportedFeatures, and m_xSlaveDispatcher.
Referenced by queryDispatches().
|
overridevirtual |
Definition at line 545 of file genericcontroller.cxx.
References queryDispatch().
|
overridevirtualnoexcept |
Implements dbaui::IController.
Definition at line 234 of file genericcontroller.cxx.
|
protected |
Definition at line 651 of file genericcontroller.cxx.
References Exception, and getPrivateModel().
Referenced by disposing().
|
overridevirtual |
Definition at line 705 of file genericcontroller.cxx.
|
overridevirtual |
Definition at line 1068 of file genericcontroller.cxx.
References m_aUserInputInterception, and sfx2::UserInputInterception::removeKeyHandler().
|
overridevirtual |
Definition at line 1079 of file genericcontroller.cxx.
References m_aUserInputInterception, and sfx2::UserInputInterception::removeMouseClickHandler().
|
overridevirtual |
Definition at line 612 of file genericcontroller.cxx.
References fillSupportedFeatures(), m_aFeatureMutex, m_aFeaturesToInvalidate, m_arrStatusListener, m_aStateCache, and m_aSupportedFeatures.
|
overridevirtual |
Definition at line 1054 of file genericcontroller.cxx.
References impl_getTitleHelper_throw().
|
overridevirtual |
Definition at line 941 of file genericcontroller.cxx.
|
overridevirtual |
Definition at line 580 of file genericcontroller.cxx.
References m_xMasterDispatcher.
|
overridevirtual |
Definition at line 570 of file genericcontroller.cxx.
References m_xSlaveDispatcher.
|
overridevirtual |
Definition at line 1038 of file genericcontroller.cxx.
References getMutex(), impl_getTitleHelper_throw(), and m_bExternalTitle.
Definition at line 863 of file genericcontroller.cxx.
References m_pView.
Referenced by dbaui::OApplicationController::Construct().
void dbaui::OGenericUnoController::showError | ( | const ::dbtools::SQLExceptionInfo & | _rInfo | ) |
Definition at line 873 of file genericcontroller.cxx.
References VCLUnoHelper::GetInterface(), getORB(), and getView().
Referenced by dbaui::OTableCopyHelper::asyncCopyTagTable(), dbaui::OApplicationController::convertToView(), dbaui::OApplicationController::copyDocObject(), dbaui::OApplicationController::copyObject(), dbaui::OApplicationController::copySQLObject(), dbaui::OApplicationController::deleteObjects(), dbaui::OApplicationController::deleteTables(), dbaui::OApplicationController::ensureConnection(), dbaui::OTableCopyHelper::insertTable(), dbaui::OApplicationController::paste(), dbaui::OTableCopyHelper::pasteTable(), dbaui::OApplicationController::renameEntry(), and dbaui::OApplicationController::showPreviewFor().
|
protected |
Definition at line 824 of file genericcontroller.cxx.
Referenced by connect().
|
protectedvirtual |
Definition at line 239 of file genericcontroller.cxx.
Referenced by attachFrame().
|
protected |
Definition at line 832 of file genericcontroller.cxx.
|
protectedvirtual |
Definition at line 245 of file genericcontroller.cxx.
Referenced by attachFrame(), and disposing().
|
overridevirtual |
Definition at line 819 of file genericcontroller.cxx.
References ServiceName, and cppu::supportsService().
|
overridepure virtual |
Implemented in dbaui::OApplicationController.
|
protected |
Definition at line 240 of file genericcontroller.hxx.
Referenced by closeTask().
|
protected |
Definition at line 239 of file genericcontroller.hxx.
Referenced by disposing(), ImplInvalidateFeature(), and InvalidateAll_Impl().
|
protected |
Definition at line 244 of file genericcontroller.hxx.
Referenced by attachFrame(), disposing(), dbaui::OApplicationController::Execute(), frameAction(), getFrame(), getTopMostContainerWindow(), and dbaui::OApplicationController::openElementWithArguments().
|
protected |
Definition at line 236 of file genericcontroller.hxx.
Referenced by disposing(), ImplInvalidateFeature(), InvalidateAll_Impl(), InvalidateFeature_Impl(), and removeStatusListener().
|
protected |
Definition at line 234 of file genericcontroller.hxx.
Referenced by disposing(), ImplInvalidateFeature(), InvalidateAll_Impl(), InvalidateFeature_Impl(), and removeStatusListener().
|
private |
Definition at line 211 of file genericcontroller.hxx.
Referenced by disposing(), and initialize().
|
protected |
Definition at line 238 of file genericcontroller.hxx.
Referenced by addStatusListener(), disposing(), ImplBroadcastFeatureState(), and removeStatusListener().
|
protected |
Definition at line 237 of file genericcontroller.hxx.
Referenced by ImplBroadcastFeatureState(), and removeStatusListener().
|
private |
Definition at line 209 of file genericcontroller.hxx.
Referenced by Construct(), getConfigurableDispatchInformation(), getSupportedCommandGroups(), getURLForId(), ImplBroadcastFeatureState(), implDescribeSupportedFeature(), ImplInvalidateFeature(), InvalidateAll_Impl(), InvalidateFeature_Impl(), isCommandEnabled(), isFeatureSupported(), isUserDefinedFeature(), queryDispatch(), and removeStatusListener().
|
private |
Definition at line 212 of file genericcontroller.hxx.
Referenced by addKeyHandler(), addMouseClickHandler(), interceptUserInput(), removeKeyHandler(), and removeMouseClickHandler().
|
protected |
Definition at line 253 of file genericcontroller.hxx.
Referenced by dbaui::OApplicationController::Execute(), and modified().
|
private |
Definition at line 216 of file genericcontroller.hxx.
Referenced by fillSupportedFeatures(), and implDescribeSupportedFeature().
|
protected |
Definition at line 254 of file genericcontroller.hxx.
Referenced by getTitle(), and setTitle().
|
protected |
Definition at line 250 of file genericcontroller.hxx.
Referenced by initialize().
|
protected |
Definition at line 251 of file genericcontroller.hxx.
Referenced by dbaui::OApplicationController::Execute(), dbaui::OApplicationController::GetState(), and initialize().
Definition at line 213 of file genericcontroller.hxx.
Referenced by clearView(), getFrameWeld(), initialize(), and setView().
|
protected |
Definition at line 243 of file genericcontroller.hxx.
Referenced by dbaui::OApplicationController::GetState(), and impl_getTitleHelper_throw().
|
protected |
Definition at line 247 of file genericcontroller.hxx.
Referenced by Construct(), and disposing().
|
protected |
Definition at line 246 of file genericcontroller.hxx.
Referenced by disposing(), getMasterDispatchProvider(), and setMasterDispatchProvider().
|
protected |
Definition at line 245 of file genericcontroller.hxx.
Referenced by disposing(), getSlaveDispatchProvider(), queryDispatch(), and setSlaveDispatchProvider().
|
protected |
Definition at line 248 of file genericcontroller.hxx.
Referenced by disposing(), and impl_getTitleHelper_throw().
|
protected |
Definition at line 242 of file genericcontroller.hxx.
Referenced by addStatusListener(), disposing(), dbaui::OApplicationController::Execute(), getURLForId(), and ImplBroadcastFeatureState().