1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
29 #ifndef DBAUI_GENERICCONTROLLER_HXX
30 #define DBAUI_GENERICCONTROLLER_HXX
32 #include "AsyncronousLink.hxx"
33 #include "controllerframe.hxx"
34 #include "dbaccessdllapi.h"
35 #include "IController.hxx"
37 /** === begin UNO includes === **/
38 #include <com/sun/star/container/XNameAccess.hpp>
39 #include <com/sun/star/frame/CommandGroup.hpp>
40 #include <com/sun/star/frame/XController2.hpp>
41 #include <com/sun/star/frame/XDispatch.hpp>
42 #include <com/sun/star/frame/XDispatchInformationProvider.hpp>
43 #include <com/sun/star/frame/XDispatchProviderInterceptor.hpp>
44 #include <com/sun/star/frame/XFrameActionListener.hpp>
45 #include <com/sun/star/frame/XTitle.hpp>
46 #include <com/sun/star/frame/XTitleChangeBroadcaster.hpp>
47 #include <com/sun/star/frame/XLayoutManager.hpp>
48 #include <com/sun/star/lang/XInitialization.hpp>
49 #include <com/sun/star/lang/XServiceInfo.hpp>
50 #include <com/sun/star/sdbc/XConnection.hpp>
51 #include <com/sun/star/sdbc/XDataSource.hpp>
52 #include <com/sun/star/uno/XComponentContext.hpp>
53 #include <com/sun/star/util/XModifyListener.hpp>
54 #include <com/sun/star/util/XURLTransformer.hpp>
55 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
56 #include <com/sun/star/awt/XUserInputInterception.hpp>
57 /** === end UNO includes === **/
59 #include <comphelper/broadcasthelper.hxx>
60 #include <comphelper/sharedmutex.hxx>
61 #include <comphelper/namedvaluecollection.hxx>
62 #include <comphelper/stl_types.hxx>
63 #include <connectivity/dbexception.hxx>
64 #include <cppuhelper/compbase11.hxx>
65 #include <cppuhelper/interfacecontainer.h>
67 #include <boost/optional.hpp>
68 #include <sfx2/userinputinterception.hxx>
72 class SQLExceptionInfo
;
81 // ====================================================================
83 // ====================================================================
84 /** convenience wrapper around boost::optional, allowing typed assignments
86 template < typename T
>
87 class optional
: public ::boost::optional
< T
>
89 typedef ::boost::optional
< T
> base_type
;
92 optional ( ) : base_type( ) { }
93 explicit optional ( T
const& val
) : base_type( val
) { }
94 optional ( optional
const& rhs
) : base_type( (base_type
const&)rhs
) { }
97 optional
& operator= ( T
const& rhs
)
99 base_type::reset( rhs
);
102 optional
& operator= ( optional
< T
> const& rhs
)
104 if ( rhs
.is_initialized() )
105 base_type::reset( rhs
.get() );
112 template< typename T
>
113 inline bool SAL_CALL
operator >>= ( const ::com::sun::star::uno::Any
& _any
, optional
< T
>& _value
)
115 _value
.reset(); // de-init the optional value
118 if ( _any
>>= directValue
)
119 _value
.reset( directValue
);
124 // ====================================================================
126 // ====================================================================
127 /** describes the state of a feature
129 In opposite to the FeatureStateEvent in css.frame, this one allows for multiple states to be specified at once.
130 With this, you can for instance specify that a toolbox item is checked, and has a certain title, at the same
137 optional
< bool > bChecked
;
138 optional
< bool > bInvisible
;
139 ::com::sun::star::uno::Any aValue
;
140 optional
< ::rtl::OUString
> sTitle
;
142 FeatureState() : bEnabled(sal_False
) { }
145 // ====================================================================
147 // ====================================================================
149 // ....................................................................
150 struct ControllerFeature
: public ::com::sun::star::frame::DispatchInformation
152 sal_uInt16 nFeatureId
;
155 // ....................................................................
156 typedef ::std::map
< ::rtl::OUString
158 , ::std::less
< ::rtl::OUString
>
161 // ....................................................................
162 struct CompareFeatureById
: ::std::binary_function
< SupportedFeatures::value_type
, sal_Int32
, bool >
164 // ................................................................
165 inline bool operator()( const SupportedFeatures::value_type
& _aType
, const sal_Int32
& _nId
) const
167 return !!( _nId
== _aType
.second
.nFeatureId
);
171 // ....................................................................
172 struct FeatureListener
174 ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XStatusListener
>
177 sal_Bool bForceBroadcast
;
180 // ....................................................................
181 typedef ::std::deque
< FeatureListener
> FeatureListeners
;
183 // ....................................................................
184 struct FindFeatureListener
: ::std::binary_function
< FeatureListener
, ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XStatusListener
>, bool >
186 // ................................................................
187 inline bool operator()( const FeatureListener
& lhs
, const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XStatusListener
>& rhs
) const
189 return !!( lhs
.xListener
== rhs
);
193 // ....................................................................
194 typedef ::comphelper::SharedMutexBase OGenericUnoController_MBASE
;
196 typedef ::cppu::WeakComponentImplHelper11
< ::com::sun::star::frame::XDispatch
197 , ::com::sun::star::frame::XDispatchProviderInterceptor
198 , ::com::sun::star::util::XModifyListener
199 , ::com::sun::star::frame::XFrameActionListener
200 , ::com::sun::star::lang::XInitialization
201 , ::com::sun::star::lang::XServiceInfo
202 , ::com::sun::star::frame::XDispatchInformationProvider
203 , ::com::sun::star::frame::XController2
204 , ::com::sun::star::frame::XTitle
205 , ::com::sun::star::frame::XTitleChangeBroadcaster
206 , ::com::sun::star::awt::XUserInputInterception
207 > OGenericUnoController_Base
;
209 struct OGenericUnoController_Data
;
210 // ====================================================================
211 class DBACCESS_DLLPUBLIC OGenericUnoController
212 :public OGenericUnoController_MBASE
213 ,public OGenericUnoController_Base
217 SupportedFeatures m_aSupportedFeatures
;
218 ::comphelper::NamedValueCollection
221 ::std::auto_ptr
< OGenericUnoController_Data
>
223 ODataView
* m_pView
; // our (VCL) "main window"
226 bool m_bDescribingSupportedFeatures
;
230 // ----------------------------------------------------------------
232 struct DispatchTarget
234 ::com::sun::star::util::URL aURL
;
235 ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XStatusListener
> xListener
;
238 DispatchTarget(const ::com::sun::star::util::URL
& rURL
, const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XStatusListener
> xRef
) : aURL(rURL
), xListener(xRef
) { }
241 DECLARE_STL_MAP( sal_uInt16
, FeatureState
, ::std::less
< sal_uInt16
>, StateCache
);
242 DECLARE_STL_VECTOR( DispatchTarget
, Dispatch
);
244 FeatureListeners m_aFeaturesToInvalidate
;
246 ::osl::Mutex m_aFeatureMutex
; // locked when features are append to or remove from deque
247 StateCache m_aStateCache
; // save the current status of feature state
248 Dispatch m_arrStatusListener
; // all our listeners where we dispatch status changes
249 OAsyncronousLink m_aAsyncInvalidateAll
;
250 OAsyncronousLink m_aAsyncCloseTask
; // called when a task shoud be closed
252 ::com::sun::star::uno::Reference
< ::com::sun::star::util::XURLTransformer
> m_xUrlTransformer
; // needed sometimes
253 ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XMultiServiceFactory
> m_xServiceFactory
;
254 ControllerFrame m_aCurrentFrame
;
255 ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XDispatchProvider
> m_xSlaveDispatcher
; // for intercepting dispatches
256 ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XDispatchProvider
> m_xMasterDispatcher
; // dito
257 ::com::sun::star::uno::Reference
< ::com::sun::star::container::XNameAccess
> m_xDatabaseContext
;
258 ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XTitle
> m_xTitleHelper
;
261 sal_Bool m_bReadOnly
;
263 sal_Bool m_bCurrentlyModified
: 1;
264 sal_Bool m_bExternalTitle
: 1;
268 // ----------------------------------------------------------------
270 ::osl::Mutex
& getMutex() const { return OGenericUnoController_MBASE::getMutex(); }
271 ::cppu::OBroadcastHelper
& getBroadcastHelper() { return OGenericUnoController_Base::rBHelper
; }
273 // ----------------------------------------------------------------
275 OGenericUnoController( const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XMultiServiceFactory
>& _rM
);
276 const ::comphelper::NamedValueCollection
&
277 getInitParams() const { return m_aInitParameters
; }
280 /** open the help agent for the given help id.
282 The help id to dispatch.
284 void openHelpAgent( const rtl::OString
& _sHelpId
);
286 /** open the help agent for the given help url.
287 @param _pHelpStringURL
288 The help url to dispatch.
290 void openHelpAgent( const rtl::OUString
& _suHelpStringURL
);
292 /** opens the given Help URL in the help agent
294 The URL does not need to be parsed already, it is passed through
295 XURLTransformer::parseStrict before it is used.
297 void openHelpAgent( const ::com::sun::star::util::URL
& _rURL
);
299 // closes the task when possible
302 // if getMenu returns a non empty string than this will be dispatched at the frame
303 virtual void loadMenu(const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XFrame
>& _xFrame
);
305 /** called when our menu has been loaded into our frame, can be used to load sub toolbars
307 @param _xLayoutManager
310 virtual void onLoadedMenu(const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XLayoutManager
>& _xLayoutManager
);
312 // all the features which should be handled by this class
313 virtual void describeSupportedFeatures();
315 // 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.
316 virtual FeatureState
GetState(sal_uInt16 nId
) const;
318 virtual void Execute(sal_uInt16 nId
, const ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
>& aArgs
);
320 /** describes a feature supported by the controller
322 Must not be called outside <member>describeSupportedFeatures</member>.
324 @param _pAsciiCommandURL
325 the URL of the feature command
327 the id of the feature. Later references to this feature usually happen by id, not by
329 @param _nCommandGroup
330 the command group of the feature. This is important for configuring the controller UI
331 by the user, see also <type scope="com::sun::star::frame">CommandGroup</type>.
333 void implDescribeSupportedFeature(
334 const sal_Char
* _pAsciiCommandURL
,
335 sal_uInt16 _nFeatureId
,
336 sal_Int16 _nCommandGroup
= ::com::sun::star::frame::CommandGroup::INTERNAL
339 /** returns <TRUE/> if the feature is supported, otherwise <FALSE/>
341 The ID of the feature.
343 sal_Bool
isFeatureSupported( sal_Int32 _nId
);
345 // gets the URL which the given id is assigned to
346 ::com::sun::star::util::URL
getURLForId(sal_Int32 _nId
) const;
348 /** determines whether the given feature ID denotes a user-defined feature
350 @see IController::registerCommandURL
352 bool isUserDefinedFeature( const sal_uInt16 nFeatureId
) const;
354 /** determines whether the given feature URL denotes a user-defined feature
356 @see IController::registerCommandURL
358 bool isUserDefinedFeature( const ::rtl::OUString
& _rFeatureURL
) const;
360 // connect to a datasource
361 ::com::sun::star::uno::Reference
< ::com::sun::star::sdbc::XConnection
> connect(
362 const ::com::sun::star::uno::Reference
< ::com::sun::star::sdbc::XDataSource
>& _xDataSource
,
363 ::dbtools::SQLExceptionInfo
* _pErrorInfo
366 // connect to a datasource
367 ::com::sun::star::uno::Reference
< ::com::sun::star::sdbc::XConnection
> connect(
368 const ::rtl::OUString
& _rsDataSourceName
,
369 const ::rtl::OUString
& _rContextInformation
,
370 ::dbtools::SQLExceptionInfo
* _pErrorInfo
373 void startConnectionListening(const ::com::sun::star::uno::Reference
< ::com::sun::star::sdbc::XConnection
>& _rxConnection
);
374 void stopConnectionListening(const ::com::sun::star::uno::Reference
< ::com::sun::star::sdbc::XConnection
>& _rxConnection
);
376 /** return the container window of the top most frame
378 The top most container window, nmay be <NULL/>.
380 ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XWindow
> getTopMostContainerWindow() const;
382 // XInitialize will be called inside initialize
383 virtual void impl_initialize();
385 virtual ::rtl::OUString
getPrivateTitle() const { return ::rtl::OUString(); }
387 ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XTitle
> impl_getTitleHelper_throw();
388 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XModel
> getPrivateModel() const
390 return ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XModel
>();
393 virtual void startFrameListening( const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XFrame
>& _rxFrame
);
394 virtual void stopFrameListening( const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XFrame
>& _rxFrame
);
396 void releaseNumberForComponent();
398 virtual ~OGenericUnoController();
401 void fillSupportedFeatures();
403 void InvalidateAll_Impl();
404 void InvalidateFeature_Impl();
406 void ImplInvalidateFeature( sal_Int32 _nId
, const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XStatusListener
>& _xListener
, sal_Bool _bForceBroadcast
);
408 sal_Bool
ImplInvalidateTBItem(sal_uInt16 nId
, const FeatureState
& rState
);
409 void ImplBroadcastFeatureState(const ::rtl::OUString
& _rFeature
, const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XStatusListener
> & xListener
, sal_Bool _bIgnoreCache
);
412 DECL_LINK(OnAsyncInvalidateAll
, void*);
413 DECL_LINK(OnAsyncCloseTask
, void*);
416 ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XMultiServiceFactory
> getORB() const { return m_xServiceFactory
; }
417 ODataView
* getView() const { return m_pView
; }
418 void setView( ODataView
& i_rView
) { m_pView
= &i_rView
; }
419 void clearView() { m_pView
= NULL
; }
420 // shows a error box if the SQLExceptionInfo is valid
421 void showError(const ::dbtools::SQLExceptionInfo
& _rInfo
);
423 // if xListener is NULL the change will be forwarded to all listeners to the given ::com::sun::star::util::URL
424 // if _bForceBroadcast is sal_True, the current feature state is broadcasted no matter if it is the same as the cached state
425 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
);
426 // if there is an ::com::sun::star::util::URL translation for the id ('handle') the preceding InvalidateFeature is used.
427 // if there is a toolbar slot with the given id it is updated (the new state is determined via GetState)
428 // if _bForceBroadcast is sal_True, the current feature state is broadcasted no matter if it is the same as the cached state
429 virtual void InvalidateFeature(sal_uInt16 nId
, const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XStatusListener
> & xListener
= NULL
, sal_Bool _bForceBroadcast
= sal_False
);
431 /** InvalidateAll invalidates all features currently known
433 virtual void InvalidateAll();
435 virtual sal_Bool
Construct(Window
* pParent
);
437 /** get the layout manager
439 The frame to ask for the layout manager.
441 The layout manager of the frame, can be <NULL/> if the frame isn't initialized.
443 ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XLayoutManager
> getLayoutManager(const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XFrame
>& _xFrame
) const;
446 virtual void executeUnChecked(const ::com::sun::star::util::URL
& _rCommand
, const ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
>& aArgs
);
447 virtual void executeChecked(const ::com::sun::star::util::URL
& _rCommand
, const ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
>& aArgs
);
448 virtual void executeUnChecked(sal_uInt16 _nCommandId
, const ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
>& aArgs
);
449 virtual void executeChecked(sal_uInt16 _nCommandId
, const ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
>& aArgs
);
450 virtual sal_Bool
isCommandEnabled(sal_uInt16 _nCommandId
) const;
451 virtual sal_Bool
isCommandEnabled(const ::rtl::OUString
& _rCompleteCommandURL
) const;
452 virtual sal_uInt16
registerCommandURL( const ::rtl::OUString
& _rCompleteCommandURL
);
453 virtual void notifyHiContrastChanged();
454 virtual sal_Bool
isDataSourceReadOnly() const;
455 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XController
> getXController() throw( ::com::sun::star::uno::RuntimeException
);
456 virtual bool interceptUserInput( const NotifyEvent
& _rEvent
);
459 virtual sal_Bool
isCommandChecked(sal_uInt16 _nCommandId
) const;
461 // ::com::sun::star::lang::XEventListener
462 virtual void SAL_CALL
disposing(const ::com::sun::star::lang::EventObject
& Source
) throw( ::com::sun::star::uno::RuntimeException
);
464 // ::com::sun::star::util::XModifyListener
465 virtual void SAL_CALL
modified(const ::com::sun::star::lang::EventObject
& aEvent
) throw( ::com::sun::star::uno::RuntimeException
);
468 virtual void SAL_CALL
acquire( ) throw ();
469 virtual void SAL_CALL
release( ) throw ();
471 // ::com::sun::star::frame::XController2
472 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XWindow
> SAL_CALL
getComponentWindow() throw (::com::sun::star::uno::RuntimeException
);
473 virtual ::rtl::OUString SAL_CALL
getViewControllerName() throw (::com::sun::star::uno::RuntimeException
);
474 virtual ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
> SAL_CALL
getCreationArguments() throw (::com::sun::star::uno::RuntimeException
);
476 // ::com::sun::star::frame::XController
477 virtual void SAL_CALL
attachFrame(const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XFrame
> & xFrame
) throw( ::com::sun::star::uno::RuntimeException
);
478 virtual sal_Bool SAL_CALL
attachModel(const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XModel
> & xModel
) throw( ::com::sun::star::uno::RuntimeException
);
479 virtual sal_Bool SAL_CALL
suspend(sal_Bool bSuspend
) throw( ::com::sun::star::uno::RuntimeException
) = 0;
480 virtual ::com::sun::star::uno::Any SAL_CALL
getViewData(void) throw( ::com::sun::star::uno::RuntimeException
);
481 virtual void SAL_CALL
restoreViewData(const ::com::sun::star::uno::Any
& Data
) throw( ::com::sun::star::uno::RuntimeException
);
482 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XModel
> SAL_CALL
getModel(void) throw( ::com::sun::star::uno::RuntimeException
);
483 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XFrame
> SAL_CALL
getFrame(void) throw( ::com::sun::star::uno::RuntimeException
);
485 // ::com::sun::star::frame::XDispatch
486 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
);
487 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
);
488 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
);
490 // ::com::sun::star::frame::XDispatchProviderInterceptor
491 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XDispatchProvider
> SAL_CALL
getSlaveDispatchProvider(void) throw(::com::sun::star::uno::RuntimeException
);
492 virtual void SAL_CALL
setSlaveDispatchProvider(const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XDispatchProvider
> & _xNewProvider
) throw(::com::sun::star::uno::RuntimeException
);
493 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XDispatchProvider
> SAL_CALL
getMasterDispatchProvider(void) throw(::com::sun::star::uno::RuntimeException
);
494 virtual void SAL_CALL
setMasterDispatchProvider(const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XDispatchProvider
> & _xNewProvider
) throw(::com::sun::star::uno::RuntimeException
);
496 // ::com::sun::star::frame::XDispatchProvider
497 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
);
498 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
);
500 // ::com::sun::star::lang::XComponent
501 virtual void SAL_CALL
dispose() throw(::com::sun::star::uno::RuntimeException
); //LLA: need solar mutex {OGenericUnoController_COMPBASE::dispose(); }
502 virtual void SAL_CALL
disposing();
503 virtual void SAL_CALL
addEventListener(const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XEventListener
> & aListener
) throw(::com::sun::star::uno::RuntimeException
);
504 virtual void SAL_CALL
removeEventListener(const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XEventListener
> & aListener
) throw(::com::sun::star::uno::RuntimeException
);
506 // ::com::sun::star::frame::XFrameActionListener
507 virtual void SAL_CALL
frameAction(const ::com::sun::star::frame::FrameActionEvent
& aEvent
) throw( ::com::sun::star::uno::RuntimeException
);
508 // lang::XInitialization
509 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
);
512 virtual ::rtl::OUString SAL_CALL
getImplementationName() throw(::com::sun::star::uno::RuntimeException
) = 0;
513 virtual sal_Bool SAL_CALL
supportsService(const ::rtl::OUString
& ServiceName
) throw(::com::sun::star::uno::RuntimeException
);
514 virtual ::com::sun::star::uno::Sequence
< ::rtl::OUString
> SAL_CALL
getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException
) = 0;
516 // XDispatchInformationProvider
517 virtual ::com::sun::star::uno::Sequence
< ::sal_Int16
> SAL_CALL
getSupportedCommandGroups() throw (::com::sun::star::uno::RuntimeException
);
518 virtual ::com::sun::star::uno::Sequence
< ::com::sun::star::frame::DispatchInformation
> SAL_CALL
getConfigurableDispatchInformation( ::sal_Int16
) throw (::com::sun::star::uno::RuntimeException
);
521 virtual ::rtl::OUString SAL_CALL
getTitle( ) throw (::com::sun::star::uno::RuntimeException
);
522 virtual void SAL_CALL
setTitle( const ::rtl::OUString
& sTitle
) throw (::com::sun::star::uno::RuntimeException
);
524 // XTitleChangeBroadcaster
525 virtual void SAL_CALL
addTitleChangeListener( const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XTitleChangeListener
>& xListener
) throw (::com::sun::star::uno::RuntimeException
);
526 virtual void SAL_CALL
removeTitleChangeListener( const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XTitleChangeListener
>& xListener
) throw (::com::sun::star::uno::RuntimeException
);
528 // XUserInputInterception
529 virtual void SAL_CALL
addKeyHandler( const ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XKeyHandler
>& xHandler
) throw (::com::sun::star::uno::RuntimeException
);
530 virtual void SAL_CALL
removeKeyHandler( const ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XKeyHandler
>& xHandler
) throw (::com::sun::star::uno::RuntimeException
);
531 virtual void SAL_CALL
addMouseClickHandler( const ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XMouseClickHandler
>& xHandler
) throw (::com::sun::star::uno::RuntimeException
);
532 virtual void SAL_CALL
removeMouseClickHandler( const ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XMouseClickHandler
>& xHandler
) throw (::com::sun::star::uno::RuntimeException
);
536 OGenericUnoController(); // never implemented
541 #endif //DBAUI_GENERICCONTROLLER_HXX
544 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */