LCOV - code coverage report
Current view: top level - dbaccess/source/ui/uno - ColumnModel.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 1 0.0 %
Date: 2012-08-25 Functions: 0 1 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                 :            :  * 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                 :            : #ifndef DBAUI_COLUMNMODEL_HXX
      20                 :            : #define DBAUI_COLUMNMODEL_HXX
      21                 :            : 
      22                 :            : #include <com/sun/star/awt/XControlModel.hpp>
      23                 :            : #include <com/sun/star/lang/XServiceInfo.hpp>
      24                 :            : #include <com/sun/star/util/XCloneable.hpp>
      25                 :            : #include <com/sun/star/io/XPersistObject.hpp>
      26                 :            : #include <com/sun/star/sdbc/XConnection.hpp>
      27                 :            : #include <comphelper/proparrhlp.hxx>
      28                 :            : #include <comphelper/propertycontainer.hxx>
      29                 :            : #include <comphelper/broadcasthelper.hxx>
      30                 :            : #include <comphelper/uno3.hxx>
      31                 :            : #include <cppuhelper/compbase4.hxx>
      32                 :            : #include "apitools.hxx"
      33                 :            : 
      34                 :            : //.........................................................................
      35                 :            : namespace dbaui
      36                 :            : {
      37                 :            : //.........................................................................
      38                 :            : 
      39                 :            : //==================================================================
      40                 :            : // OColumnControlModel
      41                 :            : //==================================================================
      42                 :            : typedef ::cppu::WeakAggComponentImplHelper4 <   ::com::sun::star::awt::XControlModel
      43                 :            :                                         ,   ::com::sun::star::lang::XServiceInfo
      44                 :            :                                         ,   ::com::sun::star::util::XCloneable
      45                 :            :                                         ,   ::com::sun::star::io::XPersistObject
      46                 :            :                                         >   OColumnControlModel_BASE;
      47                 :            : 
      48                 :            : class OColumnControlModel;
      49                 :            : 
      50                 :            : class OColumnControlModel :  public ::comphelper::OMutexAndBroadcastHelper
      51                 :            :                             ,public ::comphelper::OPropertyContainer
      52                 :            :                             ,public ::comphelper::OPropertyArrayUsageHelper< OColumnControlModel >
      53                 :            :                             ,public OColumnControlModel_BASE
      54                 :            : {
      55                 :            : 
      56                 :            :     ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory> m_xORB;
      57                 :            : // [properties]
      58                 :            :     ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XConnection>          m_xConnection;
      59                 :            :     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >       m_xColumn;
      60                 :            :     ::rtl::OUString                 m_sDefaultControl;
      61                 :            :     ::com::sun::star::uno::Any      m_aTabStop;
      62                 :            :     sal_Bool                        m_bEnable;
      63                 :            :     sal_Int16                       m_nBorder;
      64                 :            :     sal_Int32                       m_nWidth;
      65                 :            : // [properties]
      66                 :            : 
      67                 :          0 :     inline ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory> getORB() const { return m_xORB; }
      68                 :            :     void registerProperties();
      69                 :            : protected:
      70                 :            : 
      71                 :            :     virtual ~OColumnControlModel();
      72                 :            :     OColumnControlModel(const OColumnControlModel* _pSource
      73                 :            :                         ,const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory>& _rxFactory);
      74                 :            : public:
      75                 :            :     OColumnControlModel(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory>& _rxFactory);
      76                 :            : 
      77                 :            : // UNO Anbindung
      78                 :            :     DECLARE_XINTERFACE( )
      79                 :            : 
      80                 :            : // ::com::sun::star::lang::XServiceInfo
      81                 :            :     DECLARE_SERVICE_INFO_STATIC();
      82                 :            : 
      83                 :            : // XTypeProvider
      84                 :            :     DECLARE_TYPEPROVIDER( );
      85                 :            : 
      86                 :            : // com::sun::star::uno::XAggregation
      87                 :            :     virtual ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type& aType ) throw(::com::sun::star::uno::RuntimeException);
      88                 :            : 
      89                 :            : //  ::com::sun::star::io::XPersistObject
      90                 :            :     virtual ::rtl::OUString SAL_CALL getServiceName() throw ( ::com::sun::star::uno::RuntimeException);
      91                 :            :     virtual void SAL_CALL write(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectOutputStream>& _rxOutStream) throw ( ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
      92                 :            :     virtual void SAL_CALL read(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectInputStream>& _rxInStream) throw ( ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
      93                 :            : 
      94                 :            : 
      95                 :            : // OPropertyArrayUsageHelper
      96                 :            :     DECLARE_PROPERTYCONTAINER_DEFAULTS( );
      97                 :            : 
      98                 :            :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloneable > SAL_CALL createClone(  ) throw (::com::sun::star::uno::RuntimeException);
      99                 :            : };
     100                 :            : 
     101                 :            : //.........................................................................
     102                 :            : }   // namespace dbaui
     103                 :            : //.........................................................................
     104                 :            : #endif // DBAUI_COLUMNMODEL_HXX
     105                 :            : 
     106                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10