LCOV - code coverage report
Current view: top level - include/dbaccess - genericcontroller.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 36 38 94.7 %
Date: 2014-11-03 Functions: 38 42 90.5 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       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/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      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 .
      18             :  */
      19             : 
      20             : #ifndef INCLUDED_DBACCESS_GENERICCONTROLLER_HXX
      21             : #define INCLUDED_DBACCESS_GENERICCONTROLLER_HXX
      22             : 
      23             : #include <sal/config.h>
      24             : 
      25             : #include <deque>
      26             : #include <map>
      27             : #include <vector>
      28             : 
      29             : #include <dbaccess/AsyncronousLink.hxx>
      30             : #include <dbaccess/controllerframe.hxx>
      31             : #include <dbaccess/dbaccessdllapi.h>
      32             : #include <dbaccess/IController.hxx>
      33             : 
      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>
      52             : 
      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>
      59             : 
      60             : #include <boost/optional.hpp>
      61             : #include <sfx2/userinputinterception.hxx>
      62             : 
      63             : namespace dbtools
      64             : {
      65             :     class SQLExceptionInfo;
      66             : }
      67             : 
      68             : namespace vcl { class Window; }
      69             : namespace dbaui
      70             : {
      71             :     class ODataView;
      72             : 
      73             : 
      74             :     // = optional
      75             : 
      76             :     /** convenience wrapper around boost::optional, allowing typed assignments
      77             :     */
      78             :     template < typename T >
      79        8241 :     class optional : public ::boost::optional< T >
      80             :     {
      81             :         typedef ::boost::optional< T >  base_type;
      82             : 
      83             :     public:
      84        6963 :                  optional ( ) : base_type( ) { }
      85           0 :         explicit optional ( T const& val ) : base_type( val ) { }
      86        1278 :                  optional ( optional const& rhs ) : base_type( (base_type const&)rhs ) { }
      87             : 
      88             :     public:
      89         290 :         optional& operator= ( T const& rhs )
      90             :         {
      91         290 :             base_type::reset( rhs );
      92         290 :             return *this;
      93             :         }
      94        4155 :         optional& operator= ( optional< T > const& rhs )
      95             :         {
      96        4155 :             if ( rhs.is_initialized() )
      97         272 :                 base_type::reset( rhs.get() );
      98             :             else
      99        3883 :                 base_type::reset();
     100        4155 :             return *this;
     101             :         }
     102             :     };
     103             : 
     104             :     template< typename T >
     105          14 :     inline bool SAL_CALL operator >>= ( const ::com::sun::star::uno::Any & _any, optional< T >& _value )
     106             :     {
     107          14 :         _value.reset();  // de-init the optional value
     108             : 
     109          14 :         T directValue = T();
     110          14 :         if ( _any >>= directValue )
     111          14 :             _value.reset( directValue );
     112             : 
     113          14 :         return !!_value;
     114             :     }
     115             : 
     116             : 
     117             :     // = FeatureState
     118             : 
     119             :     /** describes the state of a feature
     120             : 
     121             :         In opposite to the FeatureStateEvent in css.frame, this one allows for multiple states to be specified at once.
     122             :         With this, you can for instance specify that a toolbox item is checked, and has a certain title, at the same
     123             :         time.
     124             :     */
     125        4558 :     struct FeatureState
     126             :     {
     127             :         bool                        bEnabled;
     128             : 
     129             :         optional< bool >            bChecked;
     130             :         optional< bool >            bInvisible;
     131             :         ::com::sun::star::uno::Any  aValue;
     132             :         optional< OUString > sTitle;
     133             : 
     134        2321 :         FeatureState() : bEnabled(false) { }
     135             :     };
     136             : 
     137             : 
     138             :     // = helper
     139             : 
     140             : 
     141             : 
     142        6202 :     struct ControllerFeature : public ::com::sun::star::frame::DispatchInformation
     143             :     {
     144             :         sal_uInt16 nFeatureId;
     145             :     };
     146             : 
     147             : 
     148             :     typedef ::std::map  <   OUString
     149             :                         ,   ControllerFeature
     150             :                         ,   ::std::less< OUString >
     151             :                         >   SupportedFeatures;
     152             : 
     153             : 
     154             :     struct CompareFeatureById : ::std::binary_function< SupportedFeatures::value_type, sal_Int32, bool >
     155             :     {
     156             : 
     157        4098 :         inline bool operator()( const SupportedFeatures::value_type& _aType, const sal_Int32& _nId ) const
     158             :         {
     159        4098 :             return !!( _nId == _aType.second.nFeatureId );
     160             :         }
     161             :     };
     162             : 
     163             : 
     164        1152 :     struct FeatureListener
     165             :     {
     166             :         ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener >
     167             :                     xListener;
     168             :         sal_Int32   nId;
     169             :         bool        bForceBroadcast;
     170             :     };
     171             : 
     172             : 
     173             :     typedef ::std::deque< FeatureListener > FeatureListeners;
     174             : 
     175             : 
     176             :     struct FindFeatureListener : ::std::binary_function< FeatureListener, ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener >, bool >
     177             :     {
     178             : 
     179          80 :         inline bool operator()( const FeatureListener& lhs, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener >& rhs ) const
     180             :         {
     181          80 :             return !!( lhs.xListener == rhs );
     182             :         }
     183             :     };
     184             : 
     185             : 
     186             :     typedef ::comphelper::SharedMutexBase   OGenericUnoController_MBASE;
     187             : 
     188             :     typedef ::cppu::WeakComponentImplHelper11   <   ::com::sun::star::frame::XDispatch
     189             :                                                 ,   ::com::sun::star::frame::XDispatchProviderInterceptor
     190             :                                                 ,   ::com::sun::star::util::XModifyListener
     191             :                                                 ,   ::com::sun::star::frame::XFrameActionListener
     192             :                                                 ,   ::com::sun::star::lang::XInitialization
     193             :                                                 ,   ::com::sun::star::lang::XServiceInfo
     194             :                                                 ,   ::com::sun::star::frame::XDispatchInformationProvider
     195             :                                                 ,   ::com::sun::star::frame::XController2
     196             :                                                 ,   ::com::sun::star::frame::XTitle
     197             :                                                 ,   ::com::sun::star::frame::XTitleChangeBroadcaster
     198             :                                                 ,   ::com::sun::star::awt::XUserInputInterception
     199             :                                                 >   OGenericUnoController_Base;
     200             : 
     201             :     struct OGenericUnoController_Data;
     202             : 
     203             :     class DBACCESS_DLLPUBLIC OGenericUnoController
     204             :                                 :public OGenericUnoController_MBASE
     205             :                                 ,public OGenericUnoController_Base
     206             :                                 ,public IController
     207             :     {
     208             :     private:
     209             :         SupportedFeatures               m_aSupportedFeatures;
     210             :         ::comphelper::NamedValueCollection
     211             :                                         m_aInitParameters;
     212             : 
     213             :         ::std::unique_ptr< OGenericUnoController_Data >
     214             :                                         m_pData;
     215             :         ODataView*                      m_pView;                // our (VCL) "main window"
     216             : 
     217             : #ifdef DBG_UTIL
     218             :         bool                            m_bDescribingSupportedFeatures;
     219             : #endif
     220             : 
     221             :     protected:
     222             : 
     223             :         // attributes
     224        9426 :         struct DispatchTarget
     225             :         {
     226             :             ::com::sun::star::util::URL                 aURL;
     227             :             ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener >    xListener;
     228             : 
     229             :             DispatchTarget() { }
     230          64 :             DispatchTarget(const ::com::sun::star::util::URL& rURL, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener >  xRef) : aURL(rURL), xListener(xRef) { }
     231             :         };
     232             : 
     233             :         typedef std::map<sal_uInt16, FeatureState> StateCache;
     234             :         typedef std::vector<DispatchTarget> Dispatch;
     235             : 
     236             :         FeatureListeners        m_aFeaturesToInvalidate;
     237             : 
     238             :         ::osl::Mutex            m_aFeatureMutex;        // locked when features are append to or remove from deque
     239             :         StateCache              m_aStateCache;          // save the current status of feature state
     240             :         Dispatch                m_arrStatusListener;    // all our listeners where we dispatch status changes
     241             :         OAsyncronousLink        m_aAsyncInvalidateAll;
     242             :         OAsyncronousLink        m_aAsyncCloseTask;      // called when a task should be closed
     243             : 
     244             :         ::com::sun::star::uno::Reference< ::com::sun::star::util::XURLTransformer >         m_xUrlTransformer;      // needed sometimes
     245             :         ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >        m_xContext;
     246             :         ControllerFrame                                                                     m_aCurrentFrame;
     247             :         ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProvider >      m_xSlaveDispatcher;     // for intercepting dispatches
     248             :         ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProvider >      m_xMasterDispatcher;    // dito
     249             :         ::com::sun::star::uno::Reference< ::com::sun::star::sdb::XDatabaseContext >         m_xDatabaseContext;
     250             :         ::com::sun::star::uno::Reference< ::com::sun::star::frame::XTitle >                 m_xTitleHelper;
     251             : 
     252             :         bool                    m_bPreview;
     253             :         bool                    m_bReadOnly;
     254             : 
     255             :         bool                    m_bCurrentlyModified : 1;
     256             :         bool                    m_bExternalTitle : 1;
     257             : 
     258             : 
     259             : 
     260             : 
     261             :         // attribute access
     262         458 :         ::osl::Mutex&               getMutex() const            { return OGenericUnoController_MBASE::getMutex(); }
     263           0 :         ::cppu::OBroadcastHelper&   getBroadcastHelper()        { return OGenericUnoController_Base::rBHelper; }
     264             : 
     265             : 
     266             :         // methods
     267             :         OGenericUnoController( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rM );
     268             :         const ::comphelper::NamedValueCollection&
     269           2 :                                     getInitParams() const   { return m_aInitParameters; }
     270             : 
     271             : 
     272             :         /** open the help agent for the given help id.
     273             :             @param  _nHelpId
     274             :                 The help id to dispatch.
     275             :         */
     276             :         void openHelpAgent( const OString& _sHelpId );
     277             : 
     278             :         /** open the help agent for the given help url.
     279             :             @param  _pHelpStringURL
     280             :                 The help url to dispatch.
     281             :         */
     282             :         void openHelpAgent( const OUString& _suHelpStringURL );
     283             : 
     284             :         /** opens the given Help URL in the help agent
     285             : 
     286             :             The URL does not need to be parsed already, it is passed through
     287             :             XURLTransformer::parseStrict before it is used.
     288             :         */
     289             :         void openHelpAgent( const ::com::sun::star::util::URL& _rURL );
     290             : 
     291             :         // closes the task when possible
     292             :         void closeTask();
     293             : 
     294             :         // if getMenu returns a non empty string than this will be dispatched at the frame
     295             :         virtual void            loadMenu(const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& _xFrame);
     296             : 
     297             :         /** called when our menu has been loaded into our frame, can be used to load sub toolbars
     298             : 
     299             :             @param _xLayoutManager
     300             :                 The layout manager.
     301             :         */
     302             :         virtual void            onLoadedMenu(const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XLayoutManager >& _xLayoutManager);
     303             : 
     304             :         // all the features which should be handled by this class
     305             :         virtual void            describeSupportedFeatures();
     306             : 
     307             :         // 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.
     308             :         virtual FeatureState    GetState(sal_uInt16 nId) const;
     309             :         // execute a feature
     310             :         virtual void            Execute(sal_uInt16 nId , const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue>& aArgs);
     311             : 
     312             :         /** describes a feature supported by the controller
     313             : 
     314             :             Must not be called outside <member>describeSupportedFeatures</member>.
     315             : 
     316             :             @param _pAsciiCommandURL
     317             :                 the URL of the feature command
     318             :             @param _nFeatureId
     319             :                 the id of the feature. Later references to this feature usually happen by id, not by
     320             :                 URL
     321             :             @param _nCommandGroup
     322             :                 the command group of the feature. This is important for configuring the controller UI
     323             :                 by the user, see also <type scope="com::sun::star::frame">CommandGroup</type>.
     324             :         */
     325             :         void    implDescribeSupportedFeature(
     326             :                     const sal_Char* _pAsciiCommandURL,
     327             :                     sal_uInt16 _nFeatureId,
     328             :                     sal_Int16 _nCommandGroup = ::com::sun::star::frame::CommandGroup::INTERNAL
     329             :                 );
     330             : 
     331             :         /** returns <TRUE/> if the feature is supported, otherwise <FALSE/>
     332             :             @param  _nId
     333             :                 The ID of the feature.
     334             :         */
     335             :         bool isFeatureSupported( sal_Int32 _nId );
     336             : 
     337             :         // gets the URL which the given id is assigned to
     338             :         ::com::sun::star::util::URL getURLForId(sal_Int32 _nId) const;
     339             : 
     340             :         /** determines whether the given feature ID denotes a user-defined feature
     341             : 
     342             :             @see IController::registerCommandURL
     343             :         */
     344             :         bool    isUserDefinedFeature( const sal_uInt16 nFeatureId ) const;
     345             : 
     346             :         /** determines whether the given feature URL denotes a user-defined feature
     347             : 
     348             :             @see IController::registerCommandURL
     349             :         */
     350             :         bool    isUserDefinedFeature( const OUString& _rFeatureURL ) const;
     351             : 
     352             :         // connect to a datasource
     353             :         ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > connect(
     354             :             const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDataSource>& _xDataSource,
     355             :             ::dbtools::SQLExceptionInfo* _pErrorInfo
     356             :         );
     357             : 
     358             :         // connect to a datasource
     359             :         ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > connect(
     360             :             const OUString& _rsDataSourceName,
     361             :             const OUString& _rContextInformation,
     362             :             ::dbtools::SQLExceptionInfo* _pErrorInfo
     363             :         );
     364             : 
     365             :         void startConnectionListening(const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _rxConnection);
     366             :         void stopConnectionListening(const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _rxConnection);
     367             : 
     368             :         /** return the container window of the top most frame
     369             :             @return
     370             :                 The top most container window, nmay be <NULL/>.
     371             :         */
     372             :         ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow> getTopMostContainerWindow() const;
     373             : 
     374             :         // XInitialize will be called inside initialize
     375             :         virtual void impl_initialize();
     376             : 
     377          56 :         virtual OUString getPrivateTitle() const { return OUString(); }
     378             : 
     379             :         ::com::sun::star::uno::Reference< ::com::sun::star::frame::XTitle > impl_getTitleHelper_throw();
     380           4 :         virtual ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > getPrivateModel() const
     381             :         {
     382           4 :             return ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >();
     383             :         }
     384             : 
     385             :         virtual void    startFrameListening( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& _rxFrame );
     386             :         virtual void    stopFrameListening( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& _rxFrame );
     387             : 
     388             :         void releaseNumberForComponent();
     389             : 
     390             :         virtual ~OGenericUnoController();
     391             : 
     392             :     private:
     393             :         void fillSupportedFeatures();
     394             : 
     395             :         void InvalidateAll_Impl();
     396             :         void InvalidateFeature_Impl();
     397             : 
     398             :         void ImplInvalidateFeature( sal_Int32 _nId, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener >& _xListener, bool _bForceBroadcast );
     399             : 
     400             :         bool ImplInvalidateTBItem(sal_uInt16 nId, const FeatureState& rState);
     401             :         void ImplBroadcastFeatureState(const OUString& _rFeature, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener > & xListener, bool _bIgnoreCache);
     402             : 
     403             :         // link methods
     404             :         DECL_LINK(OnAsyncInvalidateAll, void*);
     405             :         DECL_LINK(OnAsyncCloseTask, void*);
     406             : 
     407             :     public:
     408          56 :         ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >  getORB() const { return m_xContext; }
     409        3852 :         ODataView*  getView() const { return m_pView; }
     410          18 :         void        setView( ODataView& i_rView ) { m_pView = &i_rView; }
     411          28 :         void        clearView() { m_pView = NULL; }
     412             :         // shows a error box if the SQLExceptionInfo is valid
     413             :         void showError(const ::dbtools::SQLExceptionInfo& _rInfo);
     414             : 
     415             :         // if xListener is NULL the change will be forwarded to all listeners to the given ::com::sun::star::util::URL
     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(const OUString& rURLPath, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener > & xListener = NULL, bool _bForceBroadcast = false);
     418             :         // if there is an ::com::sun::star::util::URL translation for the id ('handle') the preceding InvalidateFeature is used.
     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             :         virtual void InvalidateFeature(sal_uInt16 nId, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener > & xListener = NULL, bool _bForceBroadcast = false);
     422             : 
     423             :         /** InvalidateAll invalidates all features currently known
     424             :         */
     425             :         virtual void InvalidateAll();
     426             :         // late construction
     427             :         virtual bool Construct(vcl::Window* pParent);
     428             : 
     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.
     434             :         */
     435             :         ::com::sun::star::uno::Reference< ::com::sun::star::frame::XLayoutManager > getLayoutManager(const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& _xFrame) const;
     436             : 
     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;
     449             : 
     450             :         // misc
     451             :         virtual bool isCommandChecked(sal_uInt16 _nCommandId) const;
     452             : 
     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;
     455             : 
     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;
     458             : 
     459             :         // XInterface
     460             :         virtual void SAL_CALL acquire(  ) throw () SAL_OVERRIDE;
     461             :         virtual void SAL_CALL release(  ) throw () SAL_OVERRIDE;
     462             : 
     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;
     467             : 
     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(void) 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(void) 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(void) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     476             : 
     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;
     481             : 
     482             :         // ::com::sun::star::frame::XDispatchProviderInterceptor
     483             :         virtual ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProvider >  SAL_CALL getSlaveDispatchProvider(void) 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(void) 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;
     487             : 
     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;
     491             : 
     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;
     497             : 
     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;
     502             : 
     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;
     507             : 
     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;
     511             : 
     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;
     515             : 
     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;
     519             : 
     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;
     525             : 
     526             :     protected:
     527             : #ifdef _MSC_VER
     528             :         OGenericUnoController();    // never implemented
     529             : #endif
     530             :     };
     531             : }
     532             : 
     533             : #endif // INCLUDED_DBACCESS_GENERICCONTROLLER_HXX
     534             : 
     535             : 
     536             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10