update emoji autocorrect entries from po-files
[LibreOffice.git] / include / dbaccess / genericcontroller.hxx
blob07a9decc97ca642b54a8589f62ca12f7f6396564
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_DBACCESS_GENERICCONTROLLER_HXX
21 #define INCLUDED_DBACCESS_GENERICCONTROLLER_HXX
23 #include <sal/config.h>
25 #include <deque>
26 #include <map>
27 #include <vector>
29 #include <dbaccess/AsynchronousLink.hxx>
30 #include <dbaccess/controllerframe.hxx>
31 #include <dbaccess/dbaccessdllapi.h>
32 #include <dbaccess/IController.hxx>
34 #include <com/sun/star/frame/CommandGroup.hpp>
35 #include <com/sun/star/frame/XController2.hpp>
36 #include <com/sun/star/frame/XDispatch.hpp>
37 #include <com/sun/star/frame/XDispatchInformationProvider.hpp>
38 #include <com/sun/star/frame/XDispatchProviderInterceptor.hpp>
39 #include <com/sun/star/frame/XFrameActionListener.hpp>
40 #include <com/sun/star/frame/XTitle.hpp>
41 #include <com/sun/star/frame/XTitleChangeBroadcaster.hpp>
42 #include <com/sun/star/frame/XLayoutManager.hpp>
43 #include <com/sun/star/lang/XInitialization.hpp>
44 #include <com/sun/star/lang/XServiceInfo.hpp>
45 #include <com/sun/star/sdb/XDatabaseContext.hpp>
46 #include <com/sun/star/sdbc/XConnection.hpp>
47 #include <com/sun/star/sdbc/XDataSource.hpp>
48 #include <com/sun/star/uno/XComponentContext.hpp>
49 #include <com/sun/star/util/XModifyListener.hpp>
50 #include <com/sun/star/util/XURLTransformer.hpp>
51 #include <com/sun/star/awt/XUserInputInterception.hpp>
53 #include <comphelper/broadcasthelper.hxx>
54 #include <comphelper/sharedmutex.hxx>
55 #include <comphelper/namedvaluecollection.hxx>
56 #include <connectivity/dbexception.hxx>
57 #include <cppuhelper/compbase11.hxx>
58 #include <cppuhelper/interfacecontainer.h>
60 #include <boost/optional.hpp>
61 #include <sfx2/userinputinterception.hxx>
62 #include <vcl/vclptr.hxx>
64 namespace dbtools
66 class SQLExceptionInfo;
69 namespace vcl { class Window; }
70 namespace dbaui
72 class ODataView;
75 // = optional
77 /** convenience wrapper around boost::optional, allowing typed assignments
79 template < typename T >
80 class optional : public ::boost::optional< T >
82 typedef ::boost::optional< T > base_type;
84 public:
85 optional ( ) : base_type( ) { }
86 explicit optional ( T const& val ) : base_type( val ) { }
87 optional ( optional const& rhs ) : base_type( static_cast<base_type const&>(rhs) ) { }
89 public:
90 optional& operator= ( T const& rhs )
92 base_type::reset( rhs );
93 return *this;
95 optional& operator= ( optional< T > const& rhs )
97 if ( rhs.is_initialized() )
98 base_type::reset( rhs.get() );
99 else
100 base_type::reset();
101 return *this;
105 template< typename T >
106 inline bool SAL_CALL operator >>= ( const ::com::sun::star::uno::Any & _any, optional< T >& _value )
108 _value.reset(); // de-init the optional value
110 T directValue = T();
111 if ( _any >>= directValue )
112 _value.reset( directValue );
114 return !!_value;
118 // = FeatureState
120 /** describes the state of a feature
122 In opposite to the FeatureStateEvent in css.frame, this one allows for multiple states to be specified at once.
123 With this, you can for instance specify that a toolbox item is checked, and has a certain title, at the same
124 time.
126 struct FeatureState
128 bool bEnabled;
130 optional< bool > bChecked;
131 optional< bool > bInvisible;
132 ::com::sun::star::uno::Any aValue;
133 optional< OUString > sTitle;
135 FeatureState() : bEnabled(false) { }
139 // = helper
143 struct ControllerFeature : public ::com::sun::star::frame::DispatchInformation
145 sal_uInt16 nFeatureId;
149 typedef ::std::map < OUString
150 , ControllerFeature
151 , ::std::less< OUString >
152 > SupportedFeatures;
155 struct CompareFeatureById : ::std::binary_function< SupportedFeatures::value_type, sal_Int32, bool >
158 inline bool operator()( const SupportedFeatures::value_type& _aType, const sal_Int32& _nId ) const
160 return !!( _nId == _aType.second.nFeatureId );
165 struct FeatureListener
167 ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener >
168 xListener;
169 sal_Int32 nId;
170 bool bForceBroadcast;
174 typedef ::std::deque< FeatureListener > FeatureListeners;
177 struct FindFeatureListener : ::std::binary_function< FeatureListener, ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener >, bool >
180 inline bool operator()( const FeatureListener& lhs, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener >& rhs ) const
182 return !!( lhs.xListener == rhs );
187 typedef ::comphelper::SharedMutexBase OGenericUnoController_MBASE;
189 typedef ::cppu::WeakComponentImplHelper11 < ::com::sun::star::frame::XDispatch
190 , ::com::sun::star::frame::XDispatchProviderInterceptor
191 , ::com::sun::star::util::XModifyListener
192 , ::com::sun::star::frame::XFrameActionListener
193 , ::com::sun::star::lang::XInitialization
194 , ::com::sun::star::lang::XServiceInfo
195 , ::com::sun::star::frame::XDispatchInformationProvider
196 , ::com::sun::star::frame::XController2
197 , ::com::sun::star::frame::XTitle
198 , ::com::sun::star::frame::XTitleChangeBroadcaster
199 , ::com::sun::star::awt::XUserInputInterception
200 > OGenericUnoController_Base;
202 struct OGenericUnoController_Data;
204 class DBACCESS_DLLPUBLIC OGenericUnoController
205 :public OGenericUnoController_MBASE
206 ,public OGenericUnoController_Base
207 ,public IController
209 private:
210 SupportedFeatures m_aSupportedFeatures;
211 ::comphelper::NamedValueCollection
212 m_aInitParameters;
214 ::std::unique_ptr< OGenericUnoController_Data >
215 m_pData;
216 VclPtr<ODataView> m_pView; // our (VCL) "main window"
218 #ifdef DBG_UTIL
219 bool m_bDescribingSupportedFeatures;
220 #endif
222 protected:
224 // attributes
225 struct DispatchTarget
227 ::com::sun::star::util::URL aURL;
228 ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener > xListener;
230 DispatchTarget() { }
231 DispatchTarget(const ::com::sun::star::util::URL& rURL, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener >& rRef) : aURL(rURL), xListener(rRef) { }
234 typedef std::map<sal_uInt16, FeatureState> StateCache;
235 typedef std::vector<DispatchTarget> Dispatch;
237 FeatureListeners m_aFeaturesToInvalidate;
239 ::osl::Mutex m_aFeatureMutex; // locked when features are append to or remove from deque
240 StateCache m_aStateCache; // save the current status of feature state
241 Dispatch m_arrStatusListener; // all our listeners where we dispatch status changes
242 OAsynchronousLink m_aAsyncInvalidateAll;
243 OAsynchronousLink m_aAsyncCloseTask; // called when a task should be closed
245 ::com::sun::star::uno::Reference< ::com::sun::star::util::XURLTransformer > m_xUrlTransformer; // needed sometimes
246 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > m_xContext;
247 ControllerFrame m_aCurrentFrame;
248 ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProvider > m_xSlaveDispatcher; // for intercepting dispatches
249 ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProvider > m_xMasterDispatcher; // dito
250 ::com::sun::star::uno::Reference< ::com::sun::star::sdb::XDatabaseContext > m_xDatabaseContext;
251 ::com::sun::star::uno::Reference< ::com::sun::star::frame::XTitle > m_xTitleHelper;
253 bool m_bPreview;
254 bool m_bReadOnly;
256 bool m_bCurrentlyModified : 1;
257 bool m_bExternalTitle : 1;
262 // attribute access
263 ::osl::Mutex& getMutex() const { return OGenericUnoController_MBASE::getMutex(); }
264 ::cppu::OBroadcastHelper& getBroadcastHelper() { return OGenericUnoController_Base::rBHelper; }
267 // methods
268 OGenericUnoController( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rM );
269 const ::comphelper::NamedValueCollection&
270 getInitParams() const { return m_aInitParameters; }
273 /** open the help agent for the given help id.
274 @param _nHelpId
275 The help id to dispatch.
277 void openHelpAgent( const OString& _sHelpId );
279 /** open the help agent for the given help url.
280 @param _pHelpStringURL
281 The help url to dispatch.
283 void openHelpAgent( const OUString& _suHelpStringURL );
285 /** opens the given Help URL in the help agent
287 The URL does not need to be parsed already, it is passed through
288 XURLTransformer::parseStrict before it is used.
290 void openHelpAgent( const ::com::sun::star::util::URL& _rURL );
292 // closes the task when possible
293 void closeTask();
295 // if getMenu returns a non empty string than this will be dispatched at the frame
296 virtual void loadMenu(const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& _xFrame);
298 /** called when our menu has been loaded into our frame, can be used to load sub toolbars
300 @param _xLayoutManager
301 The layout manager.
303 virtual void onLoadedMenu(const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XLayoutManager >& _xLayoutManager);
305 // all the features which should be handled by this class
306 virtual void describeSupportedFeatures();
308 // state of a feature. 'feature' may be the handle of a ::com::sun::star::util::URL somebody requested a dispatch interface for OR a toolbar slot.
309 virtual FeatureState GetState(sal_uInt16 nId) const;
310 // execute a feature
311 virtual void Execute(sal_uInt16 nId , const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue>& aArgs);
313 /** describes a feature supported by the controller
315 Must not be called outside <member>describeSupportedFeatures</member>.
317 @param _pAsciiCommandURL
318 the URL of the feature command
319 @param _nFeatureId
320 the id of the feature. Later references to this feature usually happen by id, not by
322 @param _nCommandGroup
323 the command group of the feature. This is important for configuring the controller UI
324 by the user, see also <type scope="com::sun::star::frame">CommandGroup</type>.
326 void implDescribeSupportedFeature(
327 const sal_Char* _pAsciiCommandURL,
328 sal_uInt16 _nFeatureId,
329 sal_Int16 _nCommandGroup = ::com::sun::star::frame::CommandGroup::INTERNAL
332 /** returns <TRUE/> if the feature is supported, otherwise <FALSE/>
333 @param _nId
334 The ID of the feature.
336 bool isFeatureSupported( sal_Int32 _nId );
338 // gets the URL which the given id is assigned to
339 ::com::sun::star::util::URL getURLForId(sal_Int32 _nId) const;
341 /** determines whether the given feature ID denotes a user-defined feature
343 @see IController::registerCommandURL
345 static bool isUserDefinedFeature( const sal_uInt16 nFeatureId );
347 /** determines whether the given feature URL denotes a user-defined feature
349 @see IController::registerCommandURL
351 bool isUserDefinedFeature( const OUString& _rFeatureURL ) const;
353 // connect to a datasource
354 ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > connect(
355 const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDataSource>& _xDataSource,
356 ::dbtools::SQLExceptionInfo* _pErrorInfo
359 // connect to a datasource
360 ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > connect(
361 const OUString& _rsDataSourceName,
362 const OUString& _rContextInformation,
363 ::dbtools::SQLExceptionInfo* _pErrorInfo
366 void startConnectionListening(const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _rxConnection);
367 void stopConnectionListening(const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _rxConnection);
369 /** return the container window of the top most frame
370 @return
371 The top most container window, nmay be <NULL/>.
373 ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow> getTopMostContainerWindow() const;
375 // XInitialize will be called inside initialize
376 virtual void impl_initialize();
378 virtual OUString getPrivateTitle() const { return OUString(); }
380 ::com::sun::star::uno::Reference< ::com::sun::star::frame::XTitle > impl_getTitleHelper_throw();
381 virtual ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > getPrivateModel() const
383 return ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >();
386 virtual void startFrameListening( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& _rxFrame );
387 virtual void stopFrameListening( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& _rxFrame );
389 void releaseNumberForComponent();
391 virtual ~OGenericUnoController();
393 private:
394 void fillSupportedFeatures();
396 void InvalidateAll_Impl();
397 void InvalidateFeature_Impl();
399 void ImplInvalidateFeature( sal_Int32 _nId, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener >& _xListener, bool _bForceBroadcast );
401 bool ImplInvalidateTBItem(sal_uInt16 nId, const FeatureState& rState);
402 void ImplBroadcastFeatureState(const OUString& _rFeature, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener > & xListener, bool _bIgnoreCache);
404 // link methods
405 DECL_LINK(OnAsyncInvalidateAll, void*);
406 DECL_LINK(OnAsyncCloseTask, void*);
408 public:
409 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > getORB() const { return m_xContext; }
410 ODataView* getView() const { return m_pView; }
411 void setView( const VclPtr<ODataView>& i_rView );
412 void clearView();
413 // shows a error box if the SQLExceptionInfo is valid
414 void showError(const ::dbtools::SQLExceptionInfo& _rInfo);
416 // if there is an ::com::sun::star::util::URL translation for the id
417 // ('handle') then if if xListener is NULL the change will be forwarded
418 // to all listeners to the given ::com::sun::star::util::URL
419 // if there is a toolbar slot with the given id it is updated (the new state is determined via GetState)
420 // if _bForceBroadcast is sal_True, the current feature state is broadcasted no matter if it is the same as the cached state
421 void InvalidateFeature(sal_uInt16 nId, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener > & xListener = NULL, bool _bForceBroadcast = false);
423 /** InvalidateAll invalidates all features currently known
425 void InvalidateAll();
426 // late construction
427 virtual bool Construct(vcl::Window* pParent);
429 /** get the layout manager
430 @param _xFrame
431 The frame to ask for the layout manager.
432 @return
433 The layout manager of the frame, can be <NULL/> if the frame isn't initialized.
435 static ::com::sun::star::uno::Reference< ::com::sun::star::frame::XLayoutManager > getLayoutManager(const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& _xFrame);
437 // IController
438 virtual void executeUnChecked(const ::com::sun::star::util::URL& _rCommand, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue>& aArgs) SAL_OVERRIDE;
439 virtual void executeChecked(const ::com::sun::star::util::URL& _rCommand, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue>& aArgs) SAL_OVERRIDE;
440 virtual void executeUnChecked(sal_uInt16 _nCommandId, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue>& aArgs) SAL_OVERRIDE;
441 virtual void executeChecked(sal_uInt16 _nCommandId, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue>& aArgs) SAL_OVERRIDE;
442 virtual bool isCommandEnabled(sal_uInt16 _nCommandId) const SAL_OVERRIDE;
443 virtual bool isCommandEnabled(const OUString& _rCompleteCommandURL) const SAL_OVERRIDE;
444 virtual sal_uInt16 registerCommandURL( const OUString& _rCompleteCommandURL ) SAL_OVERRIDE;
445 virtual void notifyHiContrastChanged() SAL_OVERRIDE;
446 virtual bool isDataSourceReadOnly() const SAL_OVERRIDE;
447 virtual ::com::sun::star::uno::Reference< ::com::sun::star::frame::XController > getXController() throw( ::com::sun::star::uno::RuntimeException ) SAL_OVERRIDE;
448 virtual bool interceptUserInput( const NotifyEvent& _rEvent ) SAL_OVERRIDE;
450 // misc
451 bool isCommandChecked(sal_uInt16 _nCommandId) const;
453 // ::com::sun::star::lang::XEventListener
454 virtual void SAL_CALL disposing(const ::com::sun::star::lang::EventObject& Source) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
456 // ::com::sun::star::util::XModifyListener
457 virtual void SAL_CALL modified(const ::com::sun::star::lang::EventObject& aEvent) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
459 // XInterface
460 virtual void SAL_CALL acquire( ) throw () SAL_OVERRIDE;
461 virtual void SAL_CALL release( ) throw () SAL_OVERRIDE;
463 // ::com::sun::star::frame::XController2
464 virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > SAL_CALL getComponentWindow() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
465 virtual OUString SAL_CALL getViewControllerName() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
466 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getCreationArguments() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
468 // ::com::sun::star::frame::XController
469 virtual void SAL_CALL attachFrame(const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > & xFrame) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
470 virtual sal_Bool SAL_CALL attachModel(const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > & xModel) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
471 virtual sal_Bool SAL_CALL suspend(sal_Bool bSuspend) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE = 0;
472 virtual ::com::sun::star::uno::Any SAL_CALL getViewData() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
473 virtual void SAL_CALL restoreViewData(const ::com::sun::star::uno::Any& Data) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
474 virtual ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > SAL_CALL getModel() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
475 virtual ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > SAL_CALL getFrame() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
477 // ::com::sun::star::frame::XDispatch
478 virtual void SAL_CALL dispatch(const ::com::sun::star::util::URL& aURL, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue>& aArgs) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
479 virtual void SAL_CALL addStatusListener(const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener > & aListener, const ::com::sun::star::util::URL& aURL) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
480 virtual void SAL_CALL removeStatusListener(const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener > & aListener, const ::com::sun::star::util::URL& aURL) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
482 // ::com::sun::star::frame::XDispatchProviderInterceptor
483 virtual ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProvider > SAL_CALL getSlaveDispatchProvider() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
484 virtual void SAL_CALL setSlaveDispatchProvider(const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProvider > & _xNewProvider) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
485 virtual ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProvider > SAL_CALL getMasterDispatchProvider() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
486 virtual void SAL_CALL setMasterDispatchProvider(const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProvider > & _xNewProvider) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
488 // ::com::sun::star::frame::XDispatchProvider
489 virtual ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch > SAL_CALL queryDispatch(const ::com::sun::star::util::URL& aURL, const OUString& aTargetFrameName, sal_Int32 nSearchFlags) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
490 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch > > SAL_CALL queryDispatches(const ::com::sun::star::uno::Sequence< ::com::sun::star::frame::DispatchDescriptor >& aDescripts) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
492 // ::com::sun::star::lang::XComponent
493 virtual void SAL_CALL dispose() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; //LLA: need solar mutex {OGenericUnoController_COMPBASE::dispose(); }
494 virtual void SAL_CALL disposing() SAL_OVERRIDE;
495 virtual void SAL_CALL addEventListener(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > & aListener) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
496 virtual void SAL_CALL removeEventListener(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > & aListener) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
498 // ::com::sun::star::frame::XFrameActionListener
499 virtual void SAL_CALL frameAction(const ::com::sun::star::frame::FrameActionEvent& aEvent) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
500 // lang::XInitialization
501 virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw(::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
503 // XServiceInfo
504 virtual OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE = 0;
505 virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
506 virtual ::com::sun::star::uno::Sequence< OUString> SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE = 0;
508 // XDispatchInformationProvider
509 virtual ::com::sun::star::uno::Sequence< ::sal_Int16 > SAL_CALL getSupportedCommandGroups() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
510 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::frame::DispatchInformation > SAL_CALL getConfigurableDispatchInformation( ::sal_Int16 ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
512 // XTitle
513 virtual OUString SAL_CALL getTitle( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
514 virtual void SAL_CALL setTitle( const OUString& sTitle ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
516 // XTitleChangeBroadcaster
517 virtual void SAL_CALL addTitleChangeListener( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XTitleChangeListener >& xListener ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
518 virtual void SAL_CALL removeTitleChangeListener( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XTitleChangeListener >& xListener ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
520 // XUserInputInterception
521 virtual void SAL_CALL addKeyHandler( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XKeyHandler >& xHandler ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
522 virtual void SAL_CALL removeKeyHandler( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XKeyHandler >& xHandler ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
523 virtual void SAL_CALL addMouseClickHandler( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XMouseClickHandler >& xHandler ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
524 virtual void SAL_CALL removeMouseClickHandler( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XMouseClickHandler >& xHandler ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
526 protected:
527 #ifdef _MSC_VER
528 OGenericUnoController(); // never implemented
529 #endif
533 #endif // INCLUDED_DBACCESS_GENERICCONTROLLER_HXX
536 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */