LCOV - code coverage report
Current view: top level - forms/source/component - RadioButton.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 2 3 66.7 %
Date: 2012-08-25 Functions: 3 4 75.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 2 6 33.3 %

           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 _FORMS_RADIOBUTTON_HXX_
      30                 :            : #define _FORMS_RADIOBUTTON_HXX_
      31                 :            : 
      32                 :            : #include "refvaluecomponent.hxx"
      33                 :            : 
      34                 :            : //.........................................................................
      35                 :            : namespace frm
      36                 :            : {
      37                 :            : 
      38                 :            : //==================================================================
      39                 :            : // ORadioButtonModel
      40                 :            : //==================================================================
      41                 :            : class ORadioButtonModel     :public OReferenceValueComponent
      42                 :            : {
      43                 :            : public:
      44                 :            :     DECLARE_DEFAULT_LEAF_XTOR( ORadioButtonModel );
      45                 :            : 
      46                 :            :     // XServiceInfo
      47         [ +  - ]:         14 :     IMPLEMENTATION_NAME(ORadioButtonModel);
      48                 :            :     virtual StringSequence SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
      49                 :            : 
      50                 :            :     // OPropertySetHelper
      51                 :            :     virtual void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const ::com::sun::star::uno::Any& rValue )
      52                 :            :                 throw (::com::sun::star::uno::Exception);
      53                 :            : 
      54                 :            :     // XPersistObject
      55                 :            :     virtual ::rtl::OUString SAL_CALL    getServiceName() throw(::com::sun::star::uno::RuntimeException);
      56                 :            :     virtual void SAL_CALL
      57                 :            :         write(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectOutputStream>& _rxOutStream) throw(::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
      58                 :            :     virtual void SAL_CALL
      59                 :            :         read(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectInputStream>& _rxInStream) throw(::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
      60                 :            : 
      61                 :            :     // OPropertyChangeListener
      62                 :            :     virtual void _propertyChanged(const ::com::sun::star::beans::PropertyChangeEvent& evt) throw(::com::sun::star::uno::RuntimeException);
      63                 :            : 
      64                 :            :     // OControlModel's property handling
      65                 :            :     virtual void describeFixedProperties(
      66                 :            :         ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property >& /* [out] */ _rProps
      67                 :            :     ) const;
      68                 :            : 
      69                 :            : protected:
      70                 :            :     // OBoundControlModel overridables
      71                 :            :     virtual ::com::sun::star::uno::Any
      72                 :            :                             translateDbColumnToControlValue( );
      73                 :            :     virtual sal_Bool        commitControlValueToDbColumn( bool _bPostReset );
      74                 :            :     virtual ::com::sun::star::uno::Any
      75                 :            :                             translateExternalValueToControlValue( const ::com::sun::star::uno::Any& _rExternalValue ) const;
      76                 :            : 
      77                 :            : protected:
      78                 :            :     void SetSiblingPropsTo(const ::rtl::OUString& rPropName, const ::com::sun::star::uno::Any& rValue);
      79                 :            : 
      80                 :            :     DECLARE_XCLONEABLE( );
      81                 :            : 
      82                 :            : private:
      83                 :            :     /** sets the given value as new State at the aggregate
      84                 :            :         @precond
      85                 :            :             our mutex is aquired exactly once
      86                 :            :     */
      87                 :            :     void    setNewAggregateState( const ::com::sun::star::uno::Any& _rValue );
      88                 :            : 
      89                 :            :     void setControlSource();
      90                 :            : };
      91                 :            : 
      92                 :            : //==================================================================
      93                 :            : // ORadioButtonControl
      94                 :            : //==================================================================
      95         [ -  + ]:         24 : class ORadioButtonControl: public OBoundControl
      96                 :            : {
      97                 :            : public:
      98                 :            :     ORadioButtonControl(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory>& _rxFactory);
      99                 :            : 
     100                 :            :     // XServiceInfo
     101         [ #  # ]:          0 :     IMPLEMENTATION_NAME(ORadioButtonControl);
     102                 :            :     virtual StringSequence SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
     103                 :            : 
     104                 :            : protected:
     105                 :            :     // XControl
     106                 :            :     virtual void SAL_CALL createPeer(const ::com::sun::star::uno::Reference<starawt::XToolkit>& Toolkit, const ::com::sun::star::uno::Reference<starawt::XWindowPeer>& Parent) throw (::com::sun::star::uno::RuntimeException);
     107                 :            : };
     108                 :            : 
     109                 :            : //.........................................................................
     110                 :            : }
     111                 :            : //.........................................................................
     112                 :            : 
     113                 :            : #endif // _FORMS_RADIOBUTTON_HXX_
     114                 :            : 
     115                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10