1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 DBAUI_GENERICCONTROLLER_HXX
21 #define DBAUI_GENERICCONTROLLER_HXX
23 #include "AsyncronousLink.hxx"
24 #include "controllerframe.hxx"
25 #include "dbaccessdllapi.h"
26 #include "IController.hxx"
28 #include <com/sun/star/frame/CommandGroup.hpp>
29 #include <com/sun/star/frame/XController2.hpp>
30 #include <com/sun/star/frame/XDispatch.hpp>
31 #include <com/sun/star/frame/XDispatchInformationProvider.hpp>
32 #include <com/sun/star/frame/XDispatchProviderInterceptor.hpp>
33 #include <com/sun/star/frame/XFrameActionListener.hpp>
34 #include <com/sun/star/frame/XTitle.hpp>
35 #include <com/sun/star/frame/XTitleChangeBroadcaster.hpp>
36 #include <com/sun/star/frame/XLayoutManager.hpp>
37 #include <com/sun/star/lang/XInitialization.hpp>
38 #include <com/sun/star/lang/XServiceInfo.hpp>
39 #include <com/sun/star/sdb/XDatabaseContext.hpp>
40 #include <com/sun/star/sdbc/XConnection.hpp>
41 #include <com/sun/star/sdbc/XDataSource.hpp>
42 #include <com/sun/star/uno/XComponentContext.hpp>
43 #include <com/sun/star/util/XModifyListener.hpp>
44 #include <com/sun/star/util/XURLTransformer.hpp>
45 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
46 #include <com/sun/star/awt/XUserInputInterception.hpp>
48 #include <comphelper/broadcasthelper.hxx>
49 #include <comphelper/sharedmutex.hxx>
50 #include <comphelper/namedvaluecollection.hxx>
51 #include <comphelper/stl_types.hxx>
52 #include <connectivity/dbexception.hxx>
53 #include <cppuhelper/compbase11.hxx>
54 #include <cppuhelper/interfacecontainer.h>
56 #include <boost/optional.hpp>
57 #include <sfx2/userinputinterception.hxx>
61 class SQLExceptionInfo
;
69 // ====================================================================
71 // ====================================================================
72 /** convenience wrapper around boost::optional, allowing typed assignments
74 template < typename T
>
75 class optional
: public ::boost::optional
< T
>
77 typedef ::boost::optional
< T
> base_type
;
80 optional ( ) : base_type( ) { }
81 explicit optional ( T
const& val
) : base_type( val
) { }
82 optional ( optional
const& rhs
) : base_type( (base_type
const&)rhs
) { }
85 optional
& operator= ( T
const& rhs
)
87 base_type::reset( rhs
);
90 optional
& operator= ( optional
< T
> const& rhs
)
92 if ( rhs
.is_initialized() )
93 base_type::reset( rhs
.get() );
100 template< typename T
>
101 inline bool SAL_CALL
operator >>= ( const ::com::sun::star::uno::Any
& _any
, optional
< T
>& _value
)
103 _value
.reset(); // de-init the optional value
106 if ( _any
>>= directValue
)
107 _value
.reset( directValue
);
112 // ====================================================================
114 // ====================================================================
115 /** describes the state of a feature
117 In opposite to the FeatureStateEvent in css.frame, this one allows for multiple states to be specified at once.
118 With this, you can for instance specify that a toolbox item is checked, and has a certain title, at the same
125 optional
< bool > bChecked
;
126 optional
< bool > bInvisible
;
127 ::com::sun::star::uno::Any aValue
;
128 optional
< ::rtl::OUString
> sTitle
;
130 FeatureState() : bEnabled(sal_False
) { }
133 // ====================================================================
135 // ====================================================================
137 // ....................................................................
138 struct ControllerFeature
: public ::com::sun::star::frame::DispatchInformation
140 sal_uInt16 nFeatureId
;
143 // ....................................................................
144 typedef ::std::map
< ::rtl::OUString
146 , ::std::less
< ::rtl::OUString
>
149 // ....................................................................
150 struct CompareFeatureById
: ::std::binary_function
< SupportedFeatures::value_type
, sal_Int32
, bool >
152 // ................................................................
153 inline bool operator()( const SupportedFeatures::value_type
& _aType
, const sal_Int32
& _nId
) const
155 return !!( _nId
== _aType
.second
.nFeatureId
);
159 // ....................................................................
160 struct FeatureListener
162 ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XStatusListener
>
165 sal_Bool bForceBroadcast
;
168 // ....................................................................
169 typedef ::std::deque
< FeatureListener
> FeatureListeners
;
171 // ....................................................................
172 struct FindFeatureListener
: ::std::binary_function
< FeatureListener
, ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XStatusListener
>, bool >
174 // ................................................................
175 inline bool operator()( const FeatureListener
& lhs
, const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XStatusListener
>& rhs
) const
177 return !!( lhs
.xListener
== rhs
);
181 // ....................................................................
182 typedef ::comphelper::SharedMutexBase OGenericUnoController_MBASE
;
184 typedef ::cppu::WeakComponentImplHelper11
< ::com::sun::star::frame::XDispatch
185 , ::com::sun::star::frame::XDispatchProviderInterceptor
186 , ::com::sun::star::util::XModifyListener
187 , ::com::sun::star::frame::XFrameActionListener
188 , ::com::sun::star::lang::XInitialization
189 , ::com::sun::star::lang::XServiceInfo
190 , ::com::sun::star::frame::XDispatchInformationProvider
191 , ::com::sun::star::frame::XController2
192 , ::com::sun::star::frame::XTitle
193 , ::com::sun::star::frame::XTitleChangeBroadcaster
194 , ::com::sun::star::awt::XUserInputInterception
195 > OGenericUnoController_Base
;
197 struct OGenericUnoController_Data
;
198 // ====================================================================
199 class DBACCESS_DLLPUBLIC OGenericUnoController
200 :public OGenericUnoController_MBASE
201 ,public OGenericUnoController_Base
205 SupportedFeatures m_aSupportedFeatures
;
206 ::comphelper::NamedValueCollection
209 ::std::auto_ptr
< OGenericUnoController_Data
>
211 ODataView
* m_pView
; // our (VCL) "main window"
214 bool m_bDescribingSupportedFeatures
;
218 // ----------------------------------------------------------------
220 struct DispatchTarget
222 ::com::sun::star::util::URL aURL
;
223 ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XStatusListener
> xListener
;
226 DispatchTarget(const ::com::sun::star::util::URL
& rURL
, const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XStatusListener
> xRef
) : aURL(rURL
), xListener(xRef
) { }
229 DECLARE_STL_MAP( sal_uInt16
, FeatureState
, ::std::less
< sal_uInt16
>, StateCache
);
230 DECLARE_STL_VECTOR( DispatchTarget
, Dispatch
);
232 FeatureListeners m_aFeaturesToInvalidate
;
234 ::osl::Mutex m_aFeatureMutex
; // locked when features are append to or remove from deque
235 StateCache m_aStateCache
; // save the current status of feature state
236 Dispatch m_arrStatusListener
; // all our listeners where we dispatch status changes
237 OAsyncronousLink m_aAsyncInvalidateAll
;
238 OAsyncronousLink m_aAsyncCloseTask
; // called when a task shoud be closed
240 ::com::sun::star::uno::Reference
< ::com::sun::star::util::XURLTransformer
> m_xUrlTransformer
; // needed sometimes
241 ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XMultiServiceFactory
> m_xServiceFactory
;
242 ControllerFrame m_aCurrentFrame
;
243 ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XDispatchProvider
> m_xSlaveDispatcher
; // for intercepting dispatches
244 ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XDispatchProvider
> m_xMasterDispatcher
; // dito
245 ::com::sun::star::uno::Reference
< ::com::sun::star::sdb::XDatabaseContext
> m_xDatabaseContext
;
246 ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XTitle
> m_xTitleHelper
;
249 sal_Bool m_bReadOnly
;
251 sal_Bool m_bCurrentlyModified
: 1;
252 sal_Bool m_bExternalTitle
: 1;
256 // ----------------------------------------------------------------
258 ::osl::Mutex
& getMutex() const { return OGenericUnoController_MBASE::getMutex(); }
259 ::cppu::OBroadcastHelper
& getBroadcastHelper() { return OGenericUnoController_Base::rBHelper
; }
261 // ----------------------------------------------------------------
263 OGenericUnoController( const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XMultiServiceFactory
>& _rM
);
264 const ::comphelper::NamedValueCollection
&
265 getInitParams() const { return m_aInitParameters
; }
268 /** open the help agent for the given help id.
270 The help id to dispatch.
272 void openHelpAgent( const rtl::OString
& _sHelpId
);
274 /** open the help agent for the given help url.
275 @param _pHelpStringURL
276 The help url to dispatch.
278 void openHelpAgent( const rtl::OUString
& _suHelpStringURL
);
280 /** opens the given Help URL in the help agent
282 The URL does not need to be parsed already, it is passed through
283 XURLTransformer::parseStrict before it is used.
285 void openHelpAgent( const ::com::sun::star::util::URL
& _rURL
);
287 // closes the task when possible
290 // if getMenu returns a non empty string than this will be dispatched at the frame
291 virtual void loadMenu(const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XFrame
>& _xFrame
);
293 /** called when our menu has been loaded into our frame, can be used to load sub toolbars
295 @param _xLayoutManager
298 virtual void onLoadedMenu(const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XLayoutManager
>& _xLayoutManager
);
300 // all the features which should be handled by this class
301 virtual void describeSupportedFeatures();
303 // 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.
304 virtual FeatureState
GetState(sal_uInt16 nId
) const;
306 virtual void Execute(sal_uInt16 nId
, const ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
>& aArgs
);
308 /** describes a feature supported by the controller
310 Must not be called outside <member>describeSupportedFeatures</member>.
312 @param _pAsciiCommandURL
313 the URL of the feature command
315 the id of the feature. Later references to this feature usually happen by id, not by
317 @param _nCommandGroup
318 the command group of the feature. This is important for configuring the controller UI
319 by the user, see also <type scope="com::sun::star::frame">CommandGroup</type>.
321 void implDescribeSupportedFeature(
322 const sal_Char
* _pAsciiCommandURL
,
323 sal_uInt16 _nFeatureId
,
324 sal_Int16 _nCommandGroup
= ::com::sun::star::frame::CommandGroup::INTERNAL
327 /** returns <TRUE/> if the feature is supported, otherwise <FALSE/>
329 The ID of the feature.
331 sal_Bool
isFeatureSupported( sal_Int32 _nId
);
333 // gets the URL which the given id is assigned to
334 ::com::sun::star::util::URL
getURLForId(sal_Int32 _nId
) const;
336 /** determines whether the given feature ID denotes a user-defined feature
338 @see IController::registerCommandURL
340 bool isUserDefinedFeature( const sal_uInt16 nFeatureId
) const;
342 /** determines whether the given feature URL denotes a user-defined feature
344 @see IController::registerCommandURL
346 bool isUserDefinedFeature( const ::rtl::OUString
& _rFeatureURL
) const;
348 // connect to a datasource
349 ::com::sun::star::uno::Reference
< ::com::sun::star::sdbc::XConnection
> connect(
350 const ::com::sun::star::uno::Reference
< ::com::sun::star::sdbc::XDataSource
>& _xDataSource
,
351 ::dbtools::SQLExceptionInfo
* _pErrorInfo
354 // connect to a datasource
355 ::com::sun::star::uno::Reference
< ::com::sun::star::sdbc::XConnection
> connect(
356 const ::rtl::OUString
& _rsDataSourceName
,
357 const ::rtl::OUString
& _rContextInformation
,
358 ::dbtools::SQLExceptionInfo
* _pErrorInfo
361 void startConnectionListening(const ::com::sun::star::uno::Reference
< ::com::sun::star::sdbc::XConnection
>& _rxConnection
);
362 void stopConnectionListening(const ::com::sun::star::uno::Reference
< ::com::sun::star::sdbc::XConnection
>& _rxConnection
);
364 /** return the container window of the top most frame
366 The top most container window, nmay be <NULL/>.
368 ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XWindow
> getTopMostContainerWindow() const;
370 // XInitialize will be called inside initialize
371 virtual void impl_initialize();
373 virtual ::rtl::OUString
getPrivateTitle() const { return ::rtl::OUString(); }
375 ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XTitle
> impl_getTitleHelper_throw();
376 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XModel
> getPrivateModel() const
378 return ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XModel
>();
381 virtual void startFrameListening( const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XFrame
>& _rxFrame
);
382 virtual void stopFrameListening( const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XFrame
>& _rxFrame
);
384 void releaseNumberForComponent();
386 virtual ~OGenericUnoController();
389 void fillSupportedFeatures();
391 void InvalidateAll_Impl();
392 void InvalidateFeature_Impl();
394 void ImplInvalidateFeature( sal_Int32 _nId
, const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XStatusListener
>& _xListener
, sal_Bool _bForceBroadcast
);
396 sal_Bool
ImplInvalidateTBItem(sal_uInt16 nId
, const FeatureState
& rState
);
397 void ImplBroadcastFeatureState(const ::rtl::OUString
& _rFeature
, const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XStatusListener
> & xListener
, sal_Bool _bIgnoreCache
);
400 DECL_LINK(OnAsyncInvalidateAll
, void*);
401 DECL_LINK(OnAsyncCloseTask
, void*);
404 ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XMultiServiceFactory
> getORB() const { return m_xServiceFactory
; }
405 ODataView
* getView() const { return m_pView
; }
406 void setView( ODataView
& i_rView
) { m_pView
= &i_rView
; }
407 void clearView() { m_pView
= NULL
; }
408 // shows a error box if the SQLExceptionInfo is valid
409 void showError(const ::dbtools::SQLExceptionInfo
& _rInfo
);
411 // if xListener is NULL the change will be forwarded to all listeners to the given ::com::sun::star::util::URL
412 // if _bForceBroadcast is sal_True, the current feature state is broadcasted no matter if it is the same as the cached state
413 virtual void InvalidateFeature(const ::rtl::OUString
& rURLPath
, const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XStatusListener
> & xListener
= NULL
, sal_Bool _bForceBroadcast
= sal_False
);
414 // if there is an ::com::sun::star::util::URL translation for the id ('handle') the preceding InvalidateFeature is used.
415 // if there is a toolbar slot with the given id it is updated (the new state is determined via GetState)
416 // if _bForceBroadcast is sal_True, the current feature state is broadcasted no matter if it is the same as the cached state
417 virtual void InvalidateFeature(sal_uInt16 nId
, const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XStatusListener
> & xListener
= NULL
, sal_Bool _bForceBroadcast
= sal_False
);
419 /** InvalidateAll invalidates all features currently known
421 virtual void InvalidateAll();
423 virtual sal_Bool
Construct(Window
* pParent
);
425 /** get the layout manager
427 The frame to ask for the layout manager.
429 The layout manager of the frame, can be <NULL/> if the frame isn't initialized.
431 ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XLayoutManager
> getLayoutManager(const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XFrame
>& _xFrame
) const;
434 virtual void executeUnChecked(const ::com::sun::star::util::URL
& _rCommand
, const ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
>& aArgs
);
435 virtual void executeChecked(const ::com::sun::star::util::URL
& _rCommand
, const ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
>& aArgs
);
436 virtual void executeUnChecked(sal_uInt16 _nCommandId
, const ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
>& aArgs
);
437 virtual void executeChecked(sal_uInt16 _nCommandId
, const ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
>& aArgs
);
438 virtual sal_Bool
isCommandEnabled(sal_uInt16 _nCommandId
) const;
439 virtual sal_Bool
isCommandEnabled(const ::rtl::OUString
& _rCompleteCommandURL
) const;
440 virtual sal_uInt16
registerCommandURL( const ::rtl::OUString
& _rCompleteCommandURL
);
441 virtual void notifyHiContrastChanged();
442 virtual sal_Bool
isDataSourceReadOnly() const;
443 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XController
> getXController() throw( ::com::sun::star::uno::RuntimeException
);
444 virtual bool interceptUserInput( const NotifyEvent
& _rEvent
);
447 virtual sal_Bool
isCommandChecked(sal_uInt16 _nCommandId
) const;
449 // ::com::sun::star::lang::XEventListener
450 virtual void SAL_CALL
disposing(const ::com::sun::star::lang::EventObject
& Source
) throw( ::com::sun::star::uno::RuntimeException
);
452 // ::com::sun::star::util::XModifyListener
453 virtual void SAL_CALL
modified(const ::com::sun::star::lang::EventObject
& aEvent
) throw( ::com::sun::star::uno::RuntimeException
);
456 virtual void SAL_CALL
acquire( ) throw ();
457 virtual void SAL_CALL
release( ) throw ();
459 // ::com::sun::star::frame::XController2
460 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XWindow
> SAL_CALL
getComponentWindow() throw (::com::sun::star::uno::RuntimeException
);
461 virtual ::rtl::OUString SAL_CALL
getViewControllerName() throw (::com::sun::star::uno::RuntimeException
);
462 virtual ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
> SAL_CALL
getCreationArguments() throw (::com::sun::star::uno::RuntimeException
);
464 // ::com::sun::star::frame::XController
465 virtual void SAL_CALL
attachFrame(const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XFrame
> & xFrame
) throw( ::com::sun::star::uno::RuntimeException
);
466 virtual sal_Bool SAL_CALL
attachModel(const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XModel
> & xModel
) throw( ::com::sun::star::uno::RuntimeException
);
467 virtual sal_Bool SAL_CALL
suspend(sal_Bool bSuspend
) throw( ::com::sun::star::uno::RuntimeException
) = 0;
468 virtual ::com::sun::star::uno::Any SAL_CALL
getViewData(void) throw( ::com::sun::star::uno::RuntimeException
);
469 virtual void SAL_CALL
restoreViewData(const ::com::sun::star::uno::Any
& Data
) throw( ::com::sun::star::uno::RuntimeException
);
470 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XModel
> SAL_CALL
getModel(void) throw( ::com::sun::star::uno::RuntimeException
);
471 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XFrame
> SAL_CALL
getFrame(void) throw( ::com::sun::star::uno::RuntimeException
);
473 // ::com::sun::star::frame::XDispatch
474 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
);
475 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
);
476 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
);
478 // ::com::sun::star::frame::XDispatchProviderInterceptor
479 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XDispatchProvider
> SAL_CALL
getSlaveDispatchProvider(void) throw(::com::sun::star::uno::RuntimeException
);
480 virtual void SAL_CALL
setSlaveDispatchProvider(const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XDispatchProvider
> & _xNewProvider
) throw(::com::sun::star::uno::RuntimeException
);
481 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XDispatchProvider
> SAL_CALL
getMasterDispatchProvider(void) throw(::com::sun::star::uno::RuntimeException
);
482 virtual void SAL_CALL
setMasterDispatchProvider(const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XDispatchProvider
> & _xNewProvider
) throw(::com::sun::star::uno::RuntimeException
);
484 // ::com::sun::star::frame::XDispatchProvider
485 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XDispatch
> SAL_CALL
queryDispatch(const ::com::sun::star::util::URL
& aURL
, const ::rtl::OUString
& aTargetFrameName
, sal_Int32 nSearchFlags
) throw( ::com::sun::star::uno::RuntimeException
);
486 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
);
488 // ::com::sun::star::lang::XComponent
489 virtual void SAL_CALL
dispose() throw(::com::sun::star::uno::RuntimeException
); //LLA: need solar mutex {OGenericUnoController_COMPBASE::dispose(); }
490 virtual void SAL_CALL
disposing();
491 virtual void SAL_CALL
addEventListener(const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XEventListener
> & aListener
) throw(::com::sun::star::uno::RuntimeException
);
492 virtual void SAL_CALL
removeEventListener(const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XEventListener
> & aListener
) throw(::com::sun::star::uno::RuntimeException
);
494 // ::com::sun::star::frame::XFrameActionListener
495 virtual void SAL_CALL
frameAction(const ::com::sun::star::frame::FrameActionEvent
& aEvent
) throw( ::com::sun::star::uno::RuntimeException
);
496 // lang::XInitialization
497 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
);
500 virtual ::rtl::OUString SAL_CALL
getImplementationName() throw(::com::sun::star::uno::RuntimeException
) = 0;
501 virtual sal_Bool SAL_CALL
supportsService(const ::rtl::OUString
& ServiceName
) throw(::com::sun::star::uno::RuntimeException
);
502 virtual ::com::sun::star::uno::Sequence
< ::rtl::OUString
> SAL_CALL
getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException
) = 0;
504 // XDispatchInformationProvider
505 virtual ::com::sun::star::uno::Sequence
< ::sal_Int16
> SAL_CALL
getSupportedCommandGroups() throw (::com::sun::star::uno::RuntimeException
);
506 virtual ::com::sun::star::uno::Sequence
< ::com::sun::star::frame::DispatchInformation
> SAL_CALL
getConfigurableDispatchInformation( ::sal_Int16
) throw (::com::sun::star::uno::RuntimeException
);
509 virtual ::rtl::OUString SAL_CALL
getTitle( ) throw (::com::sun::star::uno::RuntimeException
);
510 virtual void SAL_CALL
setTitle( const ::rtl::OUString
& sTitle
) throw (::com::sun::star::uno::RuntimeException
);
512 // XTitleChangeBroadcaster
513 virtual void SAL_CALL
addTitleChangeListener( const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XTitleChangeListener
>& xListener
) throw (::com::sun::star::uno::RuntimeException
);
514 virtual void SAL_CALL
removeTitleChangeListener( const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XTitleChangeListener
>& xListener
) throw (::com::sun::star::uno::RuntimeException
);
516 // XUserInputInterception
517 virtual void SAL_CALL
addKeyHandler( const ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XKeyHandler
>& xHandler
) throw (::com::sun::star::uno::RuntimeException
);
518 virtual void SAL_CALL
removeKeyHandler( const ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XKeyHandler
>& xHandler
) throw (::com::sun::star::uno::RuntimeException
);
519 virtual void SAL_CALL
addMouseClickHandler( const ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XMouseClickHandler
>& xHandler
) throw (::com::sun::star::uno::RuntimeException
);
520 virtual void SAL_CALL
removeMouseClickHandler( const ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XMouseClickHandler
>& xHandler
) throw (::com::sun::star::uno::RuntimeException
);
524 OGenericUnoController(); // never implemented
529 #endif //DBAUI_GENERICCONTROLLER_HXX
532 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */