LCOV - code coverage report
Current view: top level - include/dbaccess - genericcontroller.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 35 36 97.2 %
Date: 2015-06-13 12:38:46 Functions: 37 40 92.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/AsynchronousLink.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             : #include <vcl/vclptr.hxx>
      63             : 
      64             : namespace dbtools
      65             : {
      66             :     class SQLExceptionInfo;
      67             : }
      68             : 
      69             : namespace vcl { class Window; }
      70             : namespace dbaui
      71             : {
      72             :     class ODataView;
      73             : 
      74             : 
      75             :     // = optional
      76             : 
      77             :     /** convenience wrapper around boost::optional, allowing typed assignments
      78             :     */
      79             :     template < typename T >
      80        4101 :     class optional : public ::boost::optional< T >
      81             :     {
      82             :         typedef ::boost::optional< T >  base_type;
      83             : 
      84             :     public:
      85        3462 :                  optional ( ) : base_type( ) { }
      86           0 :         explicit optional ( T const& val ) : base_type( val ) { }
      87         639 :                  optional ( optional const& rhs ) : base_type( static_cast<base_type const&>(rhs) ) { }
      88             : 
      89             :     public:
      90         143 :         optional& operator= ( T const& rhs )
      91             :         {
      92         143 :             base_type::reset( rhs );
      93         143 :             return *this;
      94             :         }
      95        2076 :         optional& operator= ( optional< T > const& rhs )
      96             :         {
      97        2076 :             if ( rhs.is_initialized() )
      98         133 :                 base_type::reset( rhs.get() );
      99             :             else
     100        1943 :                 base_type::reset();
     101        2076 :             return *this;
     102             :         }
     103             :     };
     104             : 
     105             :     template< typename T >
     106           7 :     inline bool SAL_CALL operator >>= ( const ::com::sun::star::uno::Any & _any, optional< T >& _value )
     107             :     {
     108           7 :         _value.reset();  // de-init the optional value
     109             : 
     110           7 :         T directValue = T();
     111           7 :         if ( _any >>= directValue )
     112           7 :             _value.reset( directValue );
     113             : 
     114           7 :         return !!_value;
     115             :     }
     116             : 
     117             : 
     118             :     // = FeatureState
     119             : 
     120             :     /** describes the state of a feature
     121             : 
     122             :         In opposite to the FeatureStateEvent in css.frame, this one allows for multiple states to be specified at once.
     123             :         With this, you can for instance specify that a toolbox item is checked, and has a certain title, at the same
     124             :         time.
     125             :     */
     126        2272 :     struct FeatureState
     127             :     {
     128             :         bool                        bEnabled;
     129             : 
     130             :         optional< bool >            bChecked;
     131             :         optional< bool >            bInvisible;
     132             :         ::com::sun::star::uno::Any  aValue;
     133             :         optional< OUString > sTitle;
     134             : 
     135        1154 :         FeatureState() : bEnabled(false) { }
     136             :     };
     137             : 
     138             : 
     139             :     // = helper
     140             : 
     141             : 
     142             : 
     143        2716 :     struct ControllerFeature : public ::com::sun::star::frame::DispatchInformation
     144             :     {
     145             :         sal_uInt16 nFeatureId;
     146             :     };
     147             : 
     148             : 
     149             :     typedef ::std::map  <   OUString
     150             :                         ,   ControllerFeature
     151             :                         ,   ::std::less< OUString >
     152             :                         >   SupportedFeatures;
     153             : 
     154             : 
     155             :     struct CompareFeatureById : ::std::binary_function< SupportedFeatures::value_type, sal_Int32, bool >
     156             :     {
     157             : 
     158        2049 :         inline bool operator()( const SupportedFeatures::value_type& _aType, const sal_Int32& _nId ) const
     159             :         {
     160        2049 :             return !!( _nId == _aType.second.nFeatureId );
     161             :         }
     162             :     };
     163             : 
     164             : 
     165         600 :     struct FeatureListener
     166             :     {
     167             :         ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener >
     168             :                     xListener;
     169             :         sal_Int32   nId;
     170             :         bool        bForceBroadcast;
     171             :     };
     172             : 
     173             : 
     174             :     typedef ::std::deque< FeatureListener > FeatureListeners;
     175             : 
     176             : 
     177             :     struct FindFeatureListener : ::std::binary_function< FeatureListener, ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener >, bool >
     178             :     {
     179             : 
     180          82 :         inline bool operator()( const FeatureListener& lhs, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener >& rhs ) const
     181             :         {
     182          82 :             return !!( lhs.xListener == rhs );
     183             :         }
     184             :     };
     185             : 
     186             : 
     187             :     typedef ::comphelper::SharedMutexBase   OGenericUnoController_MBASE;
     188             : 
     189             :     typedef ::cppu::WeakComponentImplHelper11   <   ::com::sun::star::frame::XDispatch
     190             :                                                 ,   ::com::sun::star::frame::XDispatchProviderInterceptor
     191             :                                                 ,   ::com::sun::star::util::XModifyListener
     192             :                                                 ,   ::com::sun::star::frame::XFrameActionListener
     193             :                                                 ,   ::com::sun::star::lang::XInitialization
     194             :                                                 ,   ::com::sun::star::lang::XServiceInfo
     195             :                                                 ,   ::com::sun::star::frame::XDispatchInformationProvider
     196             :                                                 ,   ::com::sun::star::frame::XController2
     197             :                                                 ,   ::com::sun::star::frame::XTitle
     198             :                                                 ,   ::com::sun::star::frame::XTitleChangeBroadcaster
     199             :                                                 ,   ::com::sun::star::awt::XUserInputInterception
     200             :                                                 >   OGenericUnoController_Base;
     201             : 
     202             :     struct OGenericUnoController_Data;
     203             : 
     204             :     class DBACCESS_DLLPUBLIC OGenericUnoController
     205             :                                 :public OGenericUnoController_MBASE
     206             :                                 ,public OGenericUnoController_Base
     207             :                                 ,public IController
     208             :     {
     209             :     private:
     210             :         SupportedFeatures               m_aSupportedFeatures;
     211             :         ::comphelper::NamedValueCollection
     212             :                                         m_aInitParameters;
     213             : 
     214             :         ::std::unique_ptr< OGenericUnoController_Data >
     215             :                                         m_pData;
     216             :         VclPtr<ODataView>               m_pView;                // our (VCL) "main window"
     217             : 
     218             : #ifdef DBG_UTIL
     219             :         bool                            m_bDescribingSupportedFeatures;
     220             : #endif
     221             : 
     222             :     protected:
     223             : 
     224             :         // attributes
     225        6142 :         struct DispatchTarget
     226             :         {
     227             :             ::com::sun::star::util::URL                 aURL;
     228             :             ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener >    xListener;
     229             : 
     230             :             DispatchTarget() { }
     231          32 :             DispatchTarget(const ::com::sun::star::util::URL& rURL, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener >& rRef) : aURL(rURL), xListener(rRef) { }
     232             :         };
     233             : 
     234             :         typedef std::map<sal_uInt16, FeatureState> StateCache;
     235             :         typedef std::vector<DispatchTarget> Dispatch;
     236             : 
     237             :         FeatureListeners        m_aFeaturesToInvalidate;
     238             : 
     239             :         ::osl::Mutex            m_aFeatureMutex;        // locked when features are append to or remove from deque
     240             :         StateCache              m_aStateCache;          // save the current status of feature state
     241             :         Dispatch                m_arrStatusListener;    // all our listeners where we dispatch status changes
     242             :         OAsynchronousLink        m_aAsyncInvalidateAll;
     243             :         OAsynchronousLink        m_aAsyncCloseTask;      // called when a task should be closed
     244             : 
     245             :         ::com::sun::star::uno::Reference< ::com::sun::star::util::XURLTransformer >         m_xUrlTransformer;      // needed sometimes
     246             :         ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >        m_xContext;
     247             :         ControllerFrame                                                                     m_aCurrentFrame;
     248             :         ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProvider >      m_xSlaveDispatcher;     // for intercepting dispatches
     249             :         ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProvider >      m_xMasterDispatcher;    // dito
     250             :         ::com::sun::star::uno::Reference< ::com::sun::star::sdb::XDatabaseContext >         m_xDatabaseContext;
     251             :         ::com::sun::star::uno::Reference< ::com::sun::star::frame::XTitle >                 m_xTitleHelper;
     252             : 
     253             :         bool                    m_bPreview;
     254             :         bool                    m_bReadOnly;
     255             : 
     256             :         bool                    m_bCurrentlyModified : 1;
     257             :         bool                    m_bExternalTitle : 1;
     258             : 
     259             : 
     260             : 
     261             : 
     262             :         // attribute access
     263         233 :         ::osl::Mutex&               getMutex() const            { return OGenericUnoController_MBASE::getMutex(); }
     264           2 :         ::cppu::OBroadcastHelper&   getBroadcastHelper()        { return OGenericUnoController_Base::rBHelper; }
     265             : 
     266             : 
     267             :         // methods
     268             :         OGenericUnoController( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rM );
     269             :         const ::comphelper::NamedValueCollection&
     270           1 :                                     getInitParams() const   { return m_aInitParameters; }
     271             : 
     272             : 
     273             :         /** open the help agent for the given help id.
     274             :             @param  _nHelpId
     275             :                 The help id to dispatch.
     276             :         */
     277             :         void openHelpAgent( const OString& _sHelpId );
     278             : 
     279             :         /** open the help agent for the given help url.
     280             :             @param  _pHelpStringURL
     281             :                 The help url to dispatch.
     282             :         */
     283             :         void openHelpAgent( const OUString& _suHelpStringURL );
     284             : 
     285             :         /** opens the given Help URL in the help agent
     286             : 
     287             :             The URL does not need to be parsed already, it is passed through
     288             :             XURLTransformer::parseStrict before it is used.
     289             :         */
     290             :         void openHelpAgent( const ::com::sun::star::util::URL& _rURL );
     291             : 
     292             :         // closes the task when possible
     293             :         void closeTask();
     294             : 
     295             :         // if getMenu returns a non empty string than this will be dispatched at the frame
     296             :         virtual void            loadMenu(const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& _xFrame);
     297             : 
     298             :         /** called when our menu has been loaded into our frame, can be used to load sub toolbars
     299             : 
     300             :             @param _xLayoutManager
     301             :                 The layout manager.
     302             :         */
     303             :         virtual void            onLoadedMenu(const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XLayoutManager >& _xLayoutManager);
     304             : 
     305             :         // all the features which should be handled by this class
     306             :         virtual void            describeSupportedFeatures();
     307             : 
     308             :         // state of a feature. 'feature' may be the handle of a ::com::sun::star::util::URL somebody requested a dispatch interface for OR a toolbar slot.
     309             :         virtual FeatureState    GetState(sal_uInt16 nId) const;
     310             :         // execute a feature
     311             :         virtual void            Execute(sal_uInt16 nId , const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue>& aArgs);
     312             : 
     313             :         /** describes a feature supported by the controller
     314             : 
     315             :             Must not be called outside <member>describeSupportedFeatures</member>.
     316             : 
     317             :             @param _pAsciiCommandURL
     318             :                 the URL of the feature command
     319             :             @param _nFeatureId
     320             :                 the id of the feature. Later references to this feature usually happen by id, not by
     321             :                 URL
     322             :             @param _nCommandGroup
     323             :                 the command group of the feature. This is important for configuring the controller UI
     324             :                 by the user, see also <type scope="com::sun::star::frame">CommandGroup</type>.
     325             :         */
     326             :         void    implDescribeSupportedFeature(
     327             :                     const sal_Char* _pAsciiCommandURL,
     328             :                     sal_uInt16 _nFeatureId,
     329             :                     sal_Int16 _nCommandGroup = ::com::sun::star::frame::CommandGroup::INTERNAL
     330             :                 );
     331             : 
     332             :         /** returns <TRUE/> if the feature is supported, otherwise <FALSE/>
     333             :             @param  _nId
     334             :                 The ID of the feature.
     335             :         */
     336             :         bool isFeatureSupported( sal_Int32 _nId );
     337             : 
     338             :         // gets the URL which the given id is assigned to
     339             :         ::com::sun::star::util::URL getURLForId(sal_Int32 _nId) const;
     340             : 
     341             :         /** determines whether the given feature ID denotes a user-defined feature
     342             : 
     343             :             @see IController::registerCommandURL
     344             :         */
     345             :         static bool isUserDefinedFeature( const sal_uInt16 nFeatureId );
     346             : 
     347             :         /** determines whether the given feature URL denotes a user-defined feature
     348             : 
     349             :             @see IController::registerCommandURL
     350             :         */
     351             :         bool    isUserDefinedFeature( const OUString& _rFeatureURL ) const;
     352             : 
     353             :         // connect to a datasource
     354             :         ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > connect(
     355             :             const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDataSource>& _xDataSource,
     356             :             ::dbtools::SQLExceptionInfo* _pErrorInfo
     357             :         );
     358             : 
     359             :         // connect to a datasource
     360             :         ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection > connect(
     361             :             const OUString& _rsDataSourceName,
     362             :             const OUString& _rContextInformation,
     363             :             ::dbtools::SQLExceptionInfo* _pErrorInfo
     364             :         );
     365             : 
     366             :         void startConnectionListening(const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _rxConnection);
     367             :         void stopConnectionListening(const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection >& _rxConnection);
     368             : 
     369             :         /** return the container window of the top most frame
     370             :             @return
     371             :                 The top most container window, nmay be <NULL/>.
     372             :         */
     373             :         ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow> getTopMostContainerWindow() const;
     374             : 
     375             :         // XInitialize will be called inside initialize
     376             :         virtual void impl_initialize();
     377             : 
     378          24 :         virtual OUString getPrivateTitle() const { return OUString(); }
     379             : 
     380             :         ::com::sun::star::uno::Reference< ::com::sun::star::frame::XTitle > impl_getTitleHelper_throw();
     381           3 :         virtual ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > getPrivateModel() const
     382             :         {
     383           3 :             return ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >();
     384             :         }
     385             : 
     386             :         virtual void    startFrameListening( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& _rxFrame );
     387             :         virtual void    stopFrameListening( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& _rxFrame );
     388             : 
     389             :         void releaseNumberForComponent();
     390             : 
     391             :         virtual ~OGenericUnoController();
     392             : 
     393             :     private:
     394             :         void fillSupportedFeatures();
     395             : 
     396             :         void InvalidateAll_Impl();
     397             :         void InvalidateFeature_Impl();
     398             : 
     399             :         void ImplInvalidateFeature( sal_Int32 _nId, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener >& _xListener, bool _bForceBroadcast );
     400             : 
     401             :         bool ImplInvalidateTBItem(sal_uInt16 nId, const FeatureState& rState);
     402             :         void ImplBroadcastFeatureState(const OUString& _rFeature, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener > & xListener, bool _bIgnoreCache);
     403             : 
     404             :         // link methods
     405             :         DECL_LINK(OnAsyncInvalidateAll, void*);
     406             :         DECL_LINK(OnAsyncCloseTask, void*);
     407             : 
     408             :     public:
     409          26 :         ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >  getORB() const { return m_xContext; }
     410        1885 :         ODataView*  getView() const { return m_pView; }
     411             :         void        setView( const VclPtr<ODataView>& i_rView );
     412             :         void        clearView();
     413             :         // shows a error box if the SQLExceptionInfo is valid
     414             :         void showError(const ::dbtools::SQLExceptionInfo& _rInfo);
     415             : 
     416             :         // if there is an ::com::sun::star::util::URL translation for the id
     417             :         // ('handle') then if if xListener is NULL the change will be forwarded
     418             :         // to all listeners to the given ::com::sun::star::util::URL
     419             :         // if there is a toolbar slot with the given id it is updated (the new state is determined via GetState)
     420             :         // if _bForceBroadcast is sal_True, the current feature state is broadcasted no matter if it is the same as the cached state
     421             :         void InvalidateFeature(sal_uInt16 nId, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener > & xListener = NULL, bool _bForceBroadcast = false);
     422             : 
     423             :         /** InvalidateAll invalidates all features currently known
     424             :         */
     425             :         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             :         static ::com::sun::star::uno::Reference< ::com::sun::star::frame::XLayoutManager > getLayoutManager(const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& _xFrame);
     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             :         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() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     473             :         virtual void SAL_CALL restoreViewData(const ::com::sun::star::uno::Any& Data) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     474             :         virtual ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >  SAL_CALL getModel() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     475             :         virtual ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >  SAL_CALL getFrame() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     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() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     484             :         virtual void SAL_CALL setSlaveDispatchProvider(const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProvider > & _xNewProvider) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     485             :         virtual ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProvider >  SAL_CALL getMasterDispatchProvider() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     486             :         virtual void SAL_CALL setMasterDispatchProvider(const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProvider > & _xNewProvider) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     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.11