LCOV - code coverage report
Current view: top level - dbaccess/source/core/dataaccess - commanddefinition.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 2 2 100.0 %
Date: 2012-08-25 Functions: 4 4 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 4 8 50.0 %

           Branch data     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 _DBA_COREDATAACESS_COMMANDDEFINITION_HXX_
      21                 :            : #define _DBA_COREDATAACESS_COMMANDDEFINITION_HXX_
      22                 :            : 
      23                 :            : #include "commandbase.hxx"
      24                 :            : #include <comphelper/propertycontainer.hxx>
      25                 :            : #include "apitools.hxx"
      26                 :            : #include <comphelper/uno3.hxx>
      27                 :            : #include <com/sun/star/sdbcx/XRename.hpp>
      28                 :            : #include <cppuhelper/implbase1.hxx>
      29                 :            : #include <comphelper/proparrhlp.hxx>
      30                 :            : #include "datasettings.hxx"
      31                 :            : #include <com/sun/star/container/XNameAccess.hpp>
      32                 :            : #include "ContentHelper.hxx"
      33                 :            : #include "ComponentDefinition.hxx"
      34                 :            : 
      35                 :            : 
      36                 :            : //........................................................................
      37                 :            : namespace dbaccess
      38                 :            : {
      39                 :            : //........................................................................
      40                 :            : 
      41                 :            : //=========================================================================
      42                 :            : //= OCommandDefinition - a database "document" which describes a query
      43                 :            : //=========================================================================
      44 [ +  - ][ -  + ]:          6 :     class OCommandDefinition_Impl : public OComponentDefinition_Impl
                 [ +  - ]
      45                 :            :                                   ,public OCommandBase
      46                 :            :     {
      47                 :            :     public:
      48                 :            :     };
      49                 :            : 
      50                 :            : typedef ::cppu::ImplHelper1 <   ::com::sun::star::sdbcx::XRename
      51                 :            :                                 >   OCommandDefinition_Base;
      52                 :            : class OCommandDefinition;
      53                 :            : typedef ::comphelper::OPropertyArrayUsageHelper< OCommandDefinition >
      54                 :            :                         OCommandDefinition_PROP;
      55                 :            : 
      56                 :            : class OCommandDefinition    :public OComponentDefinition
      57                 :            :                             ,public OCommandDefinition_Base
      58                 :            :                             ,public OCommandDefinition_PROP
      59                 :            : {
      60                 :            : protected:
      61                 :            :     virtual ~OCommandDefinition();
      62                 :            : 
      63                 :            :     OCommandDefinition(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >&
      64                 :            :         ,const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >&   _xParentContainer
      65                 :            :         ,const TContentPtr& _pImpl
      66                 :            :         );
      67                 :            : 
      68                 :            :     inline const OCommandDefinition_Impl& getCommandDefinition() const { return dynamic_cast< const OCommandDefinition_Impl& >( *m_pImpl.get() ); }
      69         [ +  - ]:          2 :     inline       OCommandDefinition_Impl& getCommandDefinition()       { return dynamic_cast<       OCommandDefinition_Impl& >( *m_pImpl.get() ); }
      70                 :            : 
      71                 :            : public:
      72                 :            : 
      73                 :            :     OCommandDefinition(
      74                 :            :              const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxContainer
      75                 :            :             ,const ::rtl::OUString& _rElementName
      76                 :            :             ,const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >&
      77                 :            :             ,const TContentPtr& _pImpl
      78                 :            :         );
      79                 :            : 
      80                 :            : // com::sun::star::lang::XTypeProvider
      81                 :            :     DECLARE_TYPEPROVIDER( );
      82                 :            : 
      83                 :            : // ::com::sun::star::uno::XInterface
      84                 :            :     DECLARE_XINTERFACE( )
      85                 :            : 
      86                 :            : // ::com::sun::star::lang::XServiceInfo
      87                 :            :     virtual ::rtl::OUString SAL_CALL getImplementationName(  ) throw(::com::sun::star::uno::RuntimeException);
      88                 :            :     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(  ) throw(::com::sun::star::uno::RuntimeException);
      89                 :            : 
      90                 :            : // ::com::sun::star::lang::XServiceInfo - static methods
      91                 :            :     static ::com::sun::star::uno::Sequence< ::rtl::OUString > getSupportedServiceNames_static(void) throw( ::com::sun::star::uno::RuntimeException );
      92                 :            :     static ::rtl::OUString getImplementationName_static(void) throw( ::com::sun::star::uno::RuntimeException );
      93                 :            :     static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL
      94                 :            :         Create(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >&);
      95                 :            : 
      96                 :            :     // XRename
      97                 :            :     virtual void SAL_CALL rename( const ::rtl::OUString& newName ) throw (::com::sun::star::sdbc::SQLException, ::com::sun::star::container::ElementExistException, ::com::sun::star::uno::RuntimeException);
      98                 :            : 
      99                 :            :     // OPropertySetHelper
     100                 :            :     DECLARE_PROPERTYCONTAINER_DEFAULTS( );
     101                 :            : 
     102                 :            : private:
     103                 :            :     // helper
     104                 :            :     void registerProperties();
     105                 :            : };
     106                 :            : 
     107                 :            : //........................................................................
     108                 :            : }   // namespace dbaccess
     109                 :            : //........................................................................
     110                 :            : 
     111                 :            : #endif // _DBA_COREDATAACESS_COMMANDDEFINITION_HXX_
     112                 :            : 
     113                 :            : 
     114                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10