LCOV - code coverage report
Current view: top level - vbahelper/source/msforms - vbabutton.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 48 0.0 %
Date: 2012-08-25 Functions: 0 20 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                 :            : 
      20                 :            : #include "vbabutton.hxx"
      21                 :            : #include "vbanewfont.hxx"
      22                 :            : 
      23                 :            : using namespace com::sun::star;
      24                 :            : using namespace ooo::vba;
      25                 :            : 
      26                 :            : 
      27                 :          0 : const static rtl::OUString LABEL( RTL_CONSTASCII_USTRINGPARAM("Label") );
      28                 :          0 : ScVbaButton::ScVbaButton( const uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext, const uno::Reference< uno::XInterface >& xControl, const uno::Reference< frame::XModel >& xModel, AbstractGeometryAttributes* pGeomHelper ) : ButtonImpl_BASE( xParent, xContext, xControl, xModel, pGeomHelper )
      29                 :            : {
      30                 :          0 : }
      31                 :            : 
      32                 :            : // Attributes
      33                 :            : rtl::OUString SAL_CALL
      34                 :          0 : ScVbaButton::getCaption() throw (css::uno::RuntimeException)
      35                 :            : {
      36                 :          0 :     rtl::OUString Label;
      37                 :          0 :     m_xProps->getPropertyValue( LABEL ) >>= Label;
      38                 :          0 :     return Label;
      39                 :            : }
      40                 :            : 
      41                 :            : void SAL_CALL
      42                 :          0 : ScVbaButton::setCaption( const rtl::OUString& _caption ) throw (::com::sun::star::uno::RuntimeException)
      43                 :            : {
      44                 :          0 :     m_xProps->setPropertyValue( LABEL, uno::makeAny( _caption ) );
      45                 :          0 : }
      46                 :            : 
      47                 :          0 : sal_Bool SAL_CALL ScVbaButton::getAutoSize() throw (uno::RuntimeException)
      48                 :            : {
      49                 :          0 :     return ScVbaControl::getAutoSize();
      50                 :            : }
      51                 :            : 
      52                 :          0 : void SAL_CALL ScVbaButton::setAutoSize( sal_Bool bAutoSize ) throw (uno::RuntimeException)
      53                 :            : {
      54                 :          0 :     ScVbaControl::setAutoSize( bAutoSize );
      55                 :          0 : }
      56                 :            : 
      57                 :          0 : sal_Bool SAL_CALL ScVbaButton::getLocked() throw (uno::RuntimeException)
      58                 :            : {
      59                 :          0 :     return ScVbaControl::getLocked();
      60                 :            : }
      61                 :            : 
      62                 :          0 : void SAL_CALL ScVbaButton::setLocked( sal_Bool bLocked ) throw (uno::RuntimeException)
      63                 :            : {
      64                 :          0 :     ScVbaControl::setLocked( bLocked );
      65                 :          0 : }
      66                 :            : 
      67                 :          0 : sal_Bool SAL_CALL ScVbaButton::getCancel() throw (uno::RuntimeException)
      68                 :            : {
      69                 :          0 :     return sal_False;
      70                 :            : }
      71                 :            : 
      72                 :          0 : void SAL_CALL ScVbaButton::setCancel( sal_Bool /*bCancel*/ ) throw (uno::RuntimeException)
      73                 :            : {
      74                 :          0 : }
      75                 :            : 
      76                 :          0 : sal_Bool SAL_CALL ScVbaButton::getDefault() throw (uno::RuntimeException)
      77                 :            : {
      78                 :          0 :     return sal_False;
      79                 :            : }
      80                 :            : 
      81                 :          0 : void SAL_CALL ScVbaButton::setDefault( sal_Bool /*bDefault*/ ) throw (uno::RuntimeException)
      82                 :            : {
      83                 :          0 : }
      84                 :            : 
      85                 :          0 : sal_Int32 SAL_CALL ScVbaButton::getBackColor() throw (uno::RuntimeException)
      86                 :            : {
      87                 :          0 :     return ScVbaControl::getBackColor();
      88                 :            : }
      89                 :            : 
      90                 :          0 : void SAL_CALL ScVbaButton::setBackColor( sal_Int32 nBackColor ) throw (uno::RuntimeException)
      91                 :            : {
      92                 :          0 :     ScVbaControl::setBackColor( nBackColor );
      93                 :          0 : }
      94                 :            : 
      95                 :          0 : sal_Int32 SAL_CALL ScVbaButton::getForeColor() throw (uno::RuntimeException)
      96                 :            : {
      97                 :          0 :     return ScVbaControl::getForeColor();
      98                 :            : }
      99                 :            : 
     100                 :          0 : void SAL_CALL ScVbaButton::setForeColor( sal_Int32 /*nForeColor*/ ) throw (uno::RuntimeException)
     101                 :            : {
     102                 :          0 : }
     103                 :            : 
     104                 :          0 : uno::Reference< msforms::XNewFont > SAL_CALL ScVbaButton::getFont() throw (uno::RuntimeException)
     105                 :            : {
     106                 :          0 :     return new VbaNewFont( this, mxContext, m_xProps );
     107                 :            : }
     108                 :            : 
     109                 :            : rtl::OUString
     110                 :          0 : ScVbaButton::getServiceImplName()
     111                 :            : {
     112                 :          0 :     return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ScVbaButton"));
     113                 :            : }
     114                 :            : 
     115                 :            : uno::Sequence< rtl::OUString >
     116                 :          0 : ScVbaButton::getServiceNames()
     117                 :            : {
     118                 :          0 :     static uno::Sequence< rtl::OUString > aServiceNames;
     119                 :          0 :     if ( aServiceNames.getLength() == 0 )
     120                 :            :     {
     121                 :          0 :         aServiceNames.realloc( 1 );
     122                 :          0 :         aServiceNames[ 0 ] = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("ooo.vba.msforms.Button" ) );
     123                 :            :     }
     124                 :          0 :     return aServiceNames;
     125                 :          0 : }
     126                 :            : 
     127                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10