LCOV - code coverage report
Current view: top level - vbahelper/source/msforms - vbalabel.cxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 42 0.0 %
Date: 2014-04-14 Functions: 0 16 0.0 %
Legend: Lines: hit not hit

          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 "vbalabel.hxx"
      21             : #include "vbanewfont.hxx"
      22             : 
      23             : using namespace com::sun::star;
      24             : using namespace ooo::vba;
      25             : 
      26             : 
      27           0 : const static OUString LABEL( "Label" );
      28           0 : ScVbaLabel::ScVbaLabel(  const css::uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext, const uno::Reference< uno::XInterface >& xControl, const uno::Reference< frame::XModel >& xModel, ov::AbstractGeometryAttributes* pGeomHelper ) : LabelImpl_BASE( xParent, xContext, xControl, xModel, pGeomHelper )
      29             : {
      30           0 : }
      31             : 
      32             : // Attributes
      33             : OUString SAL_CALL
      34           0 : ScVbaLabel::getCaption() throw (css::uno::RuntimeException, std::exception)
      35             : {
      36           0 :     OUString Label;
      37           0 :     m_xProps->getPropertyValue( LABEL ) >>= Label;
      38           0 :     return Label;
      39             : }
      40             : 
      41             : void SAL_CALL
      42           0 : ScVbaLabel::setCaption( const OUString& _caption ) throw (::com::sun::star::uno::RuntimeException, std::exception)
      43             : {
      44           0 :     m_xProps->setPropertyValue( LABEL, uno::makeAny( _caption ) );
      45           0 : }
      46             : uno::Any SAL_CALL
      47           0 : ScVbaLabel::getValue() throw (css::uno::RuntimeException, std::exception)
      48             : {
      49           0 :     return uno::makeAny( getCaption() );
      50             : }
      51             : 
      52             : void SAL_CALL
      53           0 : ScVbaLabel::setValue( const uno::Any& _value ) throw (::com::sun::star::uno::RuntimeException, std::exception)
      54             : {
      55           0 :     OUString sCaption;
      56           0 :     _value >>= sCaption;
      57           0 :     setCaption( sCaption );
      58           0 : }
      59             : 
      60             : OUString SAL_CALL
      61           0 : ScVbaLabel::getAccelerator() throw (css::uno::RuntimeException, std::exception)
      62             : {
      63             :     // #STUB
      64           0 :     return OUString();
      65             : }
      66             : 
      67             : void SAL_CALL
      68           0 : ScVbaLabel::setAccelerator( const OUString& /*_accelerator*/ ) throw (::com::sun::star::uno::RuntimeException, std::exception)
      69             : {
      70             :     // #STUB
      71           0 : }
      72             : 
      73           0 : uno::Reference< msforms::XNewFont > SAL_CALL ScVbaLabel::getFont() throw (uno::RuntimeException, std::exception)
      74             : {
      75           0 :     return new VbaNewFont( this, mxContext, m_xProps );
      76             : }
      77             : 
      78           0 : OUString ScVbaLabel::getServiceImplName()
      79             : {
      80           0 :     return OUString( "ScVbaLabel" );
      81             : }
      82             : 
      83           0 : sal_Int32 SAL_CALL ScVbaLabel::getBackColor() throw (uno::RuntimeException, std::exception)
      84             : {
      85           0 :     return ScVbaControl::getBackColor();
      86             : }
      87             : 
      88           0 : void SAL_CALL ScVbaLabel::setBackColor( sal_Int32 nBackColor ) throw (uno::RuntimeException, std::exception)
      89             : {
      90           0 :     ScVbaControl::setBackColor( nBackColor );
      91           0 : }
      92             : 
      93           0 : sal_Bool SAL_CALL ScVbaLabel::getAutoSize() throw (uno::RuntimeException, std::exception)
      94             : {
      95           0 :     return ScVbaControl::getAutoSize();
      96             : }
      97             : 
      98           0 : void SAL_CALL ScVbaLabel::setAutoSize( sal_Bool bAutoSize ) throw (uno::RuntimeException, std::exception)
      99             : {
     100           0 :     ScVbaControl::setAutoSize( bAutoSize );
     101           0 : }
     102             : 
     103             : uno::Sequence< OUString >
     104           0 : ScVbaLabel::getServiceNames()
     105             : {
     106           0 :     static uno::Sequence< OUString > aServiceNames;
     107           0 :     if ( aServiceNames.getLength() == 0 )
     108             :     {
     109           0 :         aServiceNames.realloc( 1 );
     110           0 :         aServiceNames[ 0 ] = "ooo.vba.msforms.Label";
     111             :     }
     112           0 :     return aServiceNames;
     113           0 : }
     114             : 
     115             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10