LCOV - code coverage report
Current view: top level - extensions/source/bibliography - framectr.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 4 0.0 %
Date: 2012-08-25 Functions: 0 2 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      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.
      15                 :            :  *
      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).
      21                 :            :  *
      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.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : 
      29                 :            : #ifndef _BIB_FRAMECTR_HXX
      30                 :            : #define _BIB_FRAMECTR_HXX
      31                 :            : #include <com/sun/star/beans/XPropertyChangeListener.hpp>
      32                 :            : #include <com/sun/star/frame/XDispatchProvider.hpp>
      33                 :            : #include <com/sun/star/frame/XController.hpp>
      34                 :            : #include <com/sun/star/frame/XDispatch.hpp>
      35                 :            : #include <com/sun/star/form/XLoadable.hpp>
      36                 :            : #include <com/sun/star/lang/XServiceInfo.hpp>
      37                 :            : #include <com/sun/star/frame/XDispatchInformationProvider.hpp>
      38                 :            : #include <cppuhelper/implbase5.hxx>
      39                 :            : #include <boost/ptr_container/ptr_vector.hpp>
      40                 :            : 
      41                 :            : #include "bibmod.hxx"
      42                 :            : class BibDataManager;
      43                 :            : class BibFrameCtrl_Impl;
      44                 :            : namespace com{namespace sun{namespace star{
      45                 :            :     namespace form { namespace runtime {
      46                 :            :         class XFormController;
      47                 :            :     } }
      48                 :            : }}}
      49                 :          0 : class BibStatusDispatch
      50                 :            : {
      51                 :            : public:
      52                 :            :     ::com::sun::star::util::URL                 aURL;
      53                 :            :     ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener >    xListener;
      54                 :          0 :                         BibStatusDispatch( const ::com::sun::star::util::URL& rURL, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener >  xRef )
      55                 :            :                             : aURL( rURL )
      56                 :          0 :                             , xListener( xRef )
      57                 :          0 :                         {}
      58                 :            : };
      59                 :            : 
      60                 :            : typedef boost::ptr_vector<BibStatusDispatch> BibStatusDispatchArr;
      61                 :            : 
      62                 :            : class BibFrameController_Impl : public cppu::WeakImplHelper5 <
      63                 :            :     ::com::sun::star::lang::XServiceInfo,
      64                 :            :     ::com::sun::star::frame::XController,
      65                 :            :     ::com::sun::star::frame::XDispatch,
      66                 :            :     ::com::sun::star::frame::XDispatchProvider,
      67                 :            :     ::com::sun::star::frame::XDispatchInformationProvider
      68                 :            : >
      69                 :            : {
      70                 :            : friend class BibFrameCtrl_Impl;
      71                 :            :     BibFrameCtrl_Impl*          pImp;
      72                 :            :     BibStatusDispatchArr        aStatusListeners;
      73                 :            :     ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow >                  xWindow;
      74                 :            :     ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >                 xFrame;
      75                 :            :     sal_Bool                        bDisposing;
      76                 :            :     sal_Bool                        bHierarchical;
      77                 :            :     ::com::sun::star::uno::Reference< ::com::sun::star::form::XLoadable >               m_xDatMan;
      78                 :            :     BibDataManager*             pDatMan;
      79                 :            :     HdlBibModul                 pBibMod;
      80                 :            : 
      81                 :            :     DECL_STATIC_LINK( BibFrameController_Impl, DisposeHdl, void* );
      82                 :            : 
      83                 :            :     sal_Bool                    SaveModified(const ::com::sun::star::uno::Reference< ::com::sun::star::form::runtime::XFormController>& xController);
      84                 :            : public:
      85                 :            :                                 BibFrameController_Impl( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > & xComponent,
      86                 :            :                                                         BibDataManager* pDatMan);
      87                 :            :                                 ~BibFrameController_Impl();
      88                 :            : 
      89                 :            : 
      90                 :            :     void                        activate();
      91                 :            :     void                        deactivate();
      92                 :            : 
      93                 :            :     void                        ChangeDataSource(const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aArgs);
      94                 :            :     void                        RemoveFilter();
      95                 :            : 
      96                 :            :                                 // ::com::sun::star::lang::XServiceInfo
      97                 :            :     virtual ::rtl::OUString SAL_CALL getImplementationName() throw (::com::sun::star::uno::RuntimeException);
      98                 :            :     virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& sServiceName ) throw (::com::sun::star::uno::RuntimeException);
      99                 :            :     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw (::com::sun::star::uno::RuntimeException);
     100                 :            : 
     101                 :            :                                 // ::com::sun::star::frame::XController
     102                 :            :     virtual void                SAL_CALL attachFrame( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > & xFrame ) throw (::com::sun::star::uno::RuntimeException);
     103                 :            :     virtual sal_Bool            SAL_CALL attachModel( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > & xModel ) throw (::com::sun::star::uno::RuntimeException);
     104                 :            :     virtual sal_Bool            SAL_CALL suspend( sal_Bool bSuspend ) throw (::com::sun::star::uno::RuntimeException);
     105                 :            :     virtual ::com::sun::star::uno::Any  SAL_CALL    getViewData() throw (::com::sun::star::uno::RuntimeException);
     106                 :            :     virtual void SAL_CALL                           restoreViewData( const ::com::sun::star::uno::Any& Value ) throw (::com::sun::star::uno::RuntimeException);
     107                 :            :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > SAL_CALL getFrame() throw (::com::sun::star::uno::RuntimeException);
     108                 :            :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > SAL_CALL getModel() throw (::com::sun::star::uno::RuntimeException);
     109                 :            : 
     110                 :            :                                 // ::com::sun::star::lang::XComponent
     111                 :            :     virtual void                SAL_CALL dispose() throw (::com::sun::star::uno::RuntimeException);
     112                 :            :     virtual void                SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > & aListener ) throw (::com::sun::star::uno::RuntimeException);
     113                 :            :     virtual void                SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > & aListener ) throw (::com::sun::star::uno::RuntimeException);
     114                 :            : 
     115                 :            :                                 // ::com::sun::star::frame::XDispatchProvider
     116                 :            :     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);
     117                 :            :     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);
     118                 :            : 
     119                 :            :                                 //class ::com::sun::star::frame::XDispatch
     120                 :            :     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);
     121                 :            :     virtual void                SAL_CALL addStatusListener(const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener > & xControl, const ::com::sun::star::util::URL& aURL) throw (::com::sun::star::uno::RuntimeException);
     122                 :            :     virtual void                SAL_CALL removeStatusListener(const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener > & xControl, const ::com::sun::star::util::URL& aURL) throw (::com::sun::star::uno::RuntimeException);
     123                 :            : 
     124                 :            :                                 // ::com::sun::star::frame::XDispatchInformationProvider
     125                 :            :     virtual ::com::sun::star::uno::Sequence< ::sal_Int16 > SAL_CALL getSupportedCommandGroups(  ) throw (::com::sun::star::uno::RuntimeException);
     126                 :            :     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::frame::DispatchInformation > SAL_CALL getConfigurableDispatchInformation( ::sal_Int16 CommandGroup ) throw (::com::sun::star::uno::RuntimeException);
     127                 :            :  };
     128                 :            : 
     129                 :            : #endif
     130                 :            : 
     131                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10