LCOV - code coverage report
Current view: top level - reportdesign/source/core/api - FixedText.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 137 0.0 %
Date: 2012-08-25 Functions: 0 191 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 648 0.0 %

           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                 :            : #include "FixedText.hxx"
      29                 :            : #include <com/sun/star/beans/PropertyAttribute.hpp>
      30                 :            : #include "corestrings.hrc"
      31                 :            : #include <com/sun/star/beans/XPropertyState.hpp>
      32                 :            : #include "core_resource.hrc"
      33                 :            : #include "core_resource.hxx"
      34                 :            : #include <comphelper/sequence.hxx>
      35                 :            : #include "Tools.hxx"
      36                 :            : #include <tools/color.hxx>
      37                 :            : #include <tools/debug.hxx>
      38                 :            : #include <comphelper/property.hxx>
      39                 :            : #include "FormatCondition.hxx"
      40                 :            : #include <com/sun/star/text/ParagraphVertAlign.hpp>
      41                 :            : #include "ReportHelperImpl.hxx"
      42                 :            : // =============================================================================
      43                 :            : namespace reportdesign
      44                 :            : {
      45                 :            : // =============================================================================
      46                 :            :     using namespace com::sun::star;
      47                 :            :     using namespace comphelper;
      48                 :          0 : uno::Sequence< ::rtl::OUString > lcl_getFixedTextOptionals()
      49                 :            : {
      50 [ #  # ][ #  # ]:          0 :     ::rtl::OUString pProps[] = { PROPERTY_DATAFIELD,PROPERTY_MASTERFIELDS,PROPERTY_DETAILFIELDS };
                 [ #  # ]
           [ #  #  #  # ]
      51 [ #  # ][ #  # ]:          0 :     return uno::Sequence< ::rtl::OUString >(pProps,sizeof(pProps)/sizeof(pProps[0]));
                 [ #  # ]
      52                 :            : }
      53                 :            : DBG_NAME( rpt_OFixedText )
      54                 :            : // -----------------------------------------------------------------------------
      55                 :          0 : OFixedText::OFixedText(uno::Reference< uno::XComponentContext > const & _xContext)
      56                 :            : :FixedTextBase(m_aMutex)
      57                 :            : ,FixedTextPropertySet(_xContext,static_cast< Implements >(IMPLEMENTS_PROPERTY_SET),lcl_getFixedTextOptionals())
      58 [ #  # ][ #  # ]:          0 : ,m_aProps(m_aMutex,static_cast< container::XContainer*>( this ),_xContext)
         [ #  # ][ #  # ]
      59                 :            : {
      60                 :            :     DBG_CTOR( rpt_OFixedText,NULL);
      61 [ #  # ][ #  # ]:          0 :     m_aProps.aComponent.m_sName  = RPT_RESSTRING(RID_STR_FIXEDTEXT,m_aProps.aComponent.m_xContext->getServiceManager());
                 [ #  # ]
      62                 :          0 :     m_aProps.aComponent.m_nBorder = 0; // no border
      63                 :          0 : }
      64                 :            : // -----------------------------------------------------------------------------
      65                 :          0 : OFixedText::OFixedText(uno::Reference< uno::XComponentContext > const & _xContext
      66                 :            :                        ,const uno::Reference< lang::XMultiServiceFactory>& _xFactory
      67                 :            :                        ,uno::Reference< drawing::XShape >& _xShape)
      68                 :            : :FixedTextBase(m_aMutex)
      69                 :            : ,FixedTextPropertySet(_xContext,static_cast< Implements >(IMPLEMENTS_PROPERTY_SET),lcl_getFixedTextOptionals())
      70 [ #  # ][ #  # ]:          0 : ,m_aProps(m_aMutex,static_cast< container::XContainer*>( this ),_xContext)
         [ #  # ][ #  # ]
      71                 :            : {
      72                 :            :     DBG_CTOR( rpt_OFixedText,NULL);
      73 [ #  # ][ #  # ]:          0 :     m_aProps.aComponent.m_sName  = RPT_RESSTRING(RID_STR_FIXEDTEXT,m_aProps.aComponent.m_xContext->getServiceManager());
                 [ #  # ]
      74                 :          0 :     m_aProps.aComponent.m_nBorder = 0; // no border
      75         [ #  # ]:          0 :     m_aProps.aComponent.m_xFactory = _xFactory;
      76         [ #  # ]:          0 :     osl_incrementInterlockedCount( &m_refCount );
      77                 :            :     {
      78 [ #  # ][ #  # ]:          0 :         m_aProps.aComponent.setShape(_xShape,this,m_refCount);
      79                 :            :     }
      80         [ #  # ]:          0 :     osl_decrementInterlockedCount( &m_refCount );
      81                 :          0 : }
      82                 :            : // -----------------------------------------------------------------------------
      83 [ #  # ][ #  # ]:          0 : OFixedText::~OFixedText()
                 [ #  # ]
      84                 :            : {
      85                 :            :     DBG_DTOR( rpt_OFixedText,NULL);
      86         [ #  # ]:          0 : }
      87                 :            : // -----------------------------------------------------------------------------
      88                 :          0 : IMPLEMENT_FORWARD_REFCOUNT( OFixedText, FixedTextBase )
      89                 :            : // --------------------------------------------------------------------------------
      90                 :          0 : uno::Any SAL_CALL OFixedText::queryInterface( const uno::Type& _rType ) throw (uno::RuntimeException)
      91                 :            : {
      92         [ #  # ]:          0 :     uno::Any aReturn = FixedTextBase::queryInterface(_rType);
      93         [ #  # ]:          0 :     if ( !aReturn.hasValue() )
      94         [ #  # ]:          0 :         aReturn = FixedTextPropertySet::queryInterface(_rType);
      95 [ #  # ][ #  # ]:          0 :     if ( !aReturn.hasValue() && OReportControlModel::isInterfaceForbidden(_rType) )
         [ #  # ][ #  # ]
      96                 :          0 :         return aReturn;
      97                 :            : 
      98 [ #  # ][ #  # ]:          0 :     return aReturn.hasValue() ? aReturn : (m_aProps.aComponent.m_xProxy.is() ? m_aProps.aComponent.m_xProxy->queryAggregation(_rType) : aReturn);
         [ #  # ][ #  # ]
      99                 :            : }
     100                 :            : 
     101                 :            : // -----------------------------------------------------------------------------
     102                 :          0 : void SAL_CALL OFixedText::dispose() throw(uno::RuntimeException)
     103                 :            : {
     104         [ #  # ]:          0 :     FixedTextPropertySet::dispose();
     105         [ #  # ]:          0 :     cppu::WeakComponentImplHelperBase::dispose();
     106         [ #  # ]:          0 :     uno::Reference< report::XFixedText> xHoldAlive = this;
     107                 :          0 : }
     108                 :            : // -----------------------------------------------------------------------------
     109                 :          0 : ::rtl::OUString OFixedText::getImplementationName_Static(  ) throw(uno::RuntimeException)
     110                 :            : {
     111                 :          0 :     return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.comp.report.OFixedText"));
     112                 :            : }
     113                 :            : 
     114                 :            : //--------------------------------------------------------------------------
     115                 :          0 : ::rtl::OUString SAL_CALL OFixedText::getImplementationName(  ) throw(uno::RuntimeException)
     116                 :            : {
     117                 :          0 :     return getImplementationName_Static();
     118                 :            : }
     119                 :            : //--------------------------------------------------------------------------
     120                 :          0 : uno::Sequence< ::rtl::OUString > OFixedText::getSupportedServiceNames_Static(  ) throw(uno::RuntimeException)
     121                 :            : {
     122                 :          0 :     uno::Sequence< ::rtl::OUString > aServices(1);
     123 [ #  # ][ #  # ]:          0 :     aServices.getArray()[0] = SERVICE_FIXEDTEXT;
     124                 :            : 
     125                 :          0 :     return aServices;
     126                 :            : }
     127                 :            : //------------------------------------------------------------------------------
     128                 :          0 : uno::Reference< uno::XInterface > OFixedText::create(uno::Reference< uno::XComponentContext > const & xContext)
     129                 :            : {
     130         [ #  # ]:          0 :     return *(new OFixedText(xContext));
     131                 :            : }
     132                 :            : 
     133                 :            : //--------------------------------------------------------------------------
     134                 :          0 : uno::Sequence< ::rtl::OUString > SAL_CALL OFixedText::getSupportedServiceNames(  ) throw(uno::RuntimeException)
     135                 :            : {
     136                 :          0 :     return getSupportedServiceNames_Static();
     137                 :            : }
     138                 :            : //------------------------------------------------------------------------------
     139                 :          0 : sal_Bool SAL_CALL OFixedText::supportsService(const ::rtl::OUString& ServiceName) throw( uno::RuntimeException )
     140                 :            : {
     141         [ #  # ]:          0 :     return ::comphelper::existsValue(ServiceName,getSupportedServiceNames_Static());
     142                 :            : }
     143                 :            : // -----------------------------------------------------------------------------
     144                 :            : // XReportComponent
     145 [ #  # ][ #  # ]:          0 : REPORTCOMPONENT_IMPL(OFixedText,m_aProps.aComponent)
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
                 [ #  # ]
     146 [ #  # ][ #  # ]:          0 : REPORTCOMPONENT_IMPL2(OFixedText,m_aProps.aComponent)
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
     147 [ #  # ][ #  # ]:          0 : REPORTCOMPONENT_NOMASTERDETAIL(OFixedText)
         [ #  # ][ #  # ]
     148 [ #  # ][ #  # ]:          0 : REPORTCONTROLFORMAT_IMPL(OFixedText,m_aProps.aFormatProperties)
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
                 [ #  # ]
     149                 :            : // -----------------------------------------------------------------------------
     150                 :          0 : uno::Reference< beans::XPropertySetInfo > SAL_CALL OFixedText::getPropertySetInfo(  ) throw(uno::RuntimeException)
     151                 :            : {
     152                 :          0 :     return FixedTextPropertySet::getPropertySetInfo();
     153                 :            : }
     154                 :            : // -----------------------------------------------------------------------------
     155                 :          0 : void SAL_CALL OFixedText::setPropertyValue( const ::rtl::OUString& aPropertyName, const uno::Any& aValue ) throw (beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException)
     156                 :            : {
     157                 :          0 :     FixedTextPropertySet::setPropertyValue( aPropertyName, aValue );
     158                 :          0 : }
     159                 :            : // -----------------------------------------------------------------------------
     160                 :          0 : uno::Any SAL_CALL OFixedText::getPropertyValue( const ::rtl::OUString& PropertyName ) throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
     161                 :            : {
     162                 :          0 :     return FixedTextPropertySet::getPropertyValue( PropertyName);
     163                 :            : }
     164                 :            : // -----------------------------------------------------------------------------
     165                 :          0 : void SAL_CALL OFixedText::addPropertyChangeListener( const ::rtl::OUString& aPropertyName, const uno::Reference< beans::XPropertyChangeListener >& xListener ) throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
     166                 :            : {
     167                 :          0 :     FixedTextPropertySet::addPropertyChangeListener( aPropertyName, xListener );
     168                 :          0 : }
     169                 :            : // -----------------------------------------------------------------------------
     170                 :          0 : void SAL_CALL OFixedText::removePropertyChangeListener( const ::rtl::OUString& aPropertyName, const uno::Reference< beans::XPropertyChangeListener >& aListener ) throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
     171                 :            : {
     172                 :          0 :     FixedTextPropertySet::removePropertyChangeListener( aPropertyName, aListener );
     173                 :          0 : }
     174                 :            : // -----------------------------------------------------------------------------
     175                 :          0 : void SAL_CALL OFixedText::addVetoableChangeListener( const ::rtl::OUString& PropertyName, const uno::Reference< beans::XVetoableChangeListener >& aListener ) throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
     176                 :            : {
     177                 :          0 :     FixedTextPropertySet::addVetoableChangeListener( PropertyName, aListener );
     178                 :          0 : }
     179                 :            : // -----------------------------------------------------------------------------
     180                 :          0 : void SAL_CALL OFixedText::removeVetoableChangeListener( const ::rtl::OUString& PropertyName, const uno::Reference< beans::XVetoableChangeListener >& aListener ) throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
     181                 :            : {
     182                 :          0 :     FixedTextPropertySet::removeVetoableChangeListener( PropertyName, aListener );
     183                 :          0 : }
     184                 :            : // -----------------------------------------------------------------------------
     185                 :            : // XReportControlModel
     186                 :          0 : ::rtl::OUString SAL_CALL OFixedText::getDataField() throw ( beans::UnknownPropertyException, uno::RuntimeException)
     187                 :            : {
     188         [ #  # ]:          0 :     throw beans::UnknownPropertyException();
     189                 :            : }
     190                 :            : // -----------------------------------------------------------------------------
     191                 :          0 : void SAL_CALL OFixedText::setDataField( const ::rtl::OUString& /*_datafield*/ ) throw (lang::IllegalArgumentException, beans::UnknownPropertyException, uno::RuntimeException)
     192                 :            : {
     193         [ #  # ]:          0 :     throw beans::UnknownPropertyException();
     194                 :            : }
     195                 :            : // -----------------------------------------------------------------------------
     196                 :            : 
     197                 :            : // -----------------------------------------------------------------------------
     198                 :          0 : ::sal_Bool SAL_CALL OFixedText::getPrintWhenGroupChange() throw (beans::UnknownPropertyException, uno::RuntimeException)
     199                 :            : {
     200         [ #  # ]:          0 :     ::osl::MutexGuard aGuard(m_aMutex);
     201         [ #  # ]:          0 :     return m_aProps.bPrintWhenGroupChange;
     202                 :            : }
     203                 :            : // -----------------------------------------------------------------------------
     204                 :          0 : void SAL_CALL OFixedText::setPrintWhenGroupChange( ::sal_Bool _printwhengroupchange ) throw (beans::UnknownPropertyException, uno::RuntimeException)
     205                 :            : {
     206         [ #  # ]:          0 :     set(PROPERTY_PRINTWHENGROUPCHANGE,_printwhengroupchange,m_aProps.bPrintWhenGroupChange);
     207                 :          0 : }
     208                 :            : // -----------------------------------------------------------------------------
     209                 :          0 : ::rtl::OUString SAL_CALL OFixedText::getConditionalPrintExpression() throw (beans::UnknownPropertyException, uno::RuntimeException)
     210                 :            : {
     211         [ #  # ]:          0 :     ::osl::MutexGuard aGuard(m_aMutex);
     212         [ #  # ]:          0 :     return m_aProps.aConditionalPrintExpression;
     213                 :            : }
     214                 :            : // -----------------------------------------------------------------------------
     215                 :          0 : void SAL_CALL OFixedText::setConditionalPrintExpression( const ::rtl::OUString& _conditionalprintexpression ) throw (beans::UnknownPropertyException, uno::RuntimeException)
     216                 :            : {
     217         [ #  # ]:          0 :     set(PROPERTY_CONDITIONALPRINTEXPRESSION,_conditionalprintexpression,m_aProps.aConditionalPrintExpression);
     218                 :          0 : }
     219                 :            : // -----------------------------------------------------------------------------
     220                 :            : 
     221                 :            : // XCloneable
     222                 :          0 : uno::Reference< util::XCloneable > SAL_CALL OFixedText::createClone(  ) throw (uno::RuntimeException)
     223                 :            : {
     224         [ #  # ]:          0 :     uno::Reference< report::XReportComponent> xSource = this;
     225 [ #  # ][ #  # ]:          0 :     uno::Reference< report::XFixedText> xSet(cloneObject(xSource,m_aProps.aComponent.m_xFactory,SERVICE_FIXEDTEXT),uno::UNO_QUERY_THROW);
                 [ #  # ]
     226 [ #  # ][ #  # ]:          0 :     return xSet.get();
     227                 :            : }
     228                 :            : // -----------------------------------------------------------------------------
     229                 :            : 
     230                 :            : // XFixedText
     231                 :          0 : ::rtl::OUString SAL_CALL OFixedText::getLabel() throw (uno::RuntimeException)
     232                 :            : {
     233         [ #  # ]:          0 :     ::osl::MutexGuard aGuard(m_aMutex);
     234         [ #  # ]:          0 :     return m_sLabel;
     235                 :            : }
     236                 :            : // -----------------------------------------------------------------------------
     237                 :          0 : void SAL_CALL OFixedText::setLabel( const ::rtl::OUString& _label ) throw (uno::RuntimeException)
     238                 :            : {
     239         [ #  # ]:          0 :     set(PROPERTY_LABEL,_label,m_sLabel);
     240                 :          0 : }
     241                 :            : // -----------------------------------------------------------------------------
     242                 :            : // XChild
     243                 :          0 : uno::Reference< uno::XInterface > SAL_CALL OFixedText::getParent(  ) throw (uno::RuntimeException)
     244                 :            : {
     245                 :          0 :     return OShapeHelper::getParent(this);
     246                 :            : }
     247                 :            : // -----------------------------------------------------------------------------
     248                 :          0 : void SAL_CALL OFixedText::setParent( const uno::Reference< uno::XInterface >& Parent ) throw (lang::NoSupportException, uno::RuntimeException)
     249                 :            : {
     250                 :          0 :     OShapeHelper::setParent(Parent,this);
     251                 :          0 : }
     252                 :            : // -----------------------------------------------------------------------------
     253                 :          0 : uno::Reference< report::XFormatCondition > SAL_CALL OFixedText::createFormatCondition(  ) throw (uno::Exception, uno::RuntimeException)
     254                 :            : {
     255 [ #  # ][ #  # ]:          0 :     return new OFormatCondition(m_aProps.aComponent.m_xContext);
     256                 :            : }
     257                 :            : // -----------------------------------------------------------------------------
     258                 :            : // XContainer
     259                 :          0 : void SAL_CALL OFixedText::addContainerListener( const uno::Reference< container::XContainerListener >& xListener ) throw (uno::RuntimeException)
     260                 :            : {
     261                 :          0 :     m_aProps.addContainerListener(xListener);
     262                 :          0 : }
     263                 :            : // -----------------------------------------------------------------------------
     264                 :          0 : void SAL_CALL OFixedText::removeContainerListener( const uno::Reference< container::XContainerListener >& xListener ) throw (uno::RuntimeException)
     265                 :            : {
     266                 :          0 :     m_aProps.removeContainerListener(xListener);
     267                 :          0 : }
     268                 :            : // -----------------------------------------------------------------------------
     269                 :            : // XElementAccess
     270                 :          0 : uno::Type SAL_CALL OFixedText::getElementType(  ) throw (uno::RuntimeException)
     271                 :            : {
     272                 :          0 :     return ::getCppuType(static_cast< uno::Reference<report::XFormatCondition>*>(NULL));
     273                 :            : }
     274                 :            : // -----------------------------------------------------------------------------
     275                 :          0 : ::sal_Bool SAL_CALL OFixedText::hasElements(  ) throw (uno::RuntimeException)
     276                 :            : {
     277                 :          0 :     return m_aProps.hasElements();
     278                 :            : }
     279                 :            : // -----------------------------------------------------------------------------
     280                 :            : // XIndexContainer
     281                 :          0 : void SAL_CALL OFixedText::insertByIndex( ::sal_Int32 Index, const uno::Any& Element ) throw (lang::IllegalArgumentException, lang::IndexOutOfBoundsException, lang::WrappedTargetException, uno::RuntimeException)
     282                 :            : {
     283                 :          0 :     m_aProps.insertByIndex(Index,Element);
     284                 :          0 : }
     285                 :            : // -----------------------------------------------------------------------------
     286                 :          0 : void SAL_CALL OFixedText::removeByIndex( ::sal_Int32 Index ) throw (lang::IndexOutOfBoundsException, lang::WrappedTargetException, uno::RuntimeException)
     287                 :            : {
     288                 :          0 :     m_aProps.removeByIndex(Index);
     289                 :          0 : }
     290                 :            : // -----------------------------------------------------------------------------
     291                 :            : // XIndexReplace
     292                 :          0 : void SAL_CALL OFixedText::replaceByIndex( ::sal_Int32 Index, const uno::Any& Element ) throw (lang::IllegalArgumentException, lang::IndexOutOfBoundsException, lang::WrappedTargetException, uno::RuntimeException)
     293                 :            : {
     294                 :          0 :     m_aProps.replaceByIndex(Index,Element);
     295                 :          0 : }
     296                 :            : // -----------------------------------------------------------------------------
     297                 :            : // XIndexAccess
     298                 :          0 : ::sal_Int32 SAL_CALL OFixedText::getCount(  ) throw (uno::RuntimeException)
     299                 :            : {
     300                 :          0 :     return m_aProps.getCount();
     301                 :            : }
     302                 :            : // -----------------------------------------------------------------------------
     303                 :          0 : uno::Any SAL_CALL OFixedText::getByIndex( ::sal_Int32 Index ) throw (lang::IndexOutOfBoundsException, lang::WrappedTargetException, uno::RuntimeException)
     304                 :            : {
     305                 :          0 :     return m_aProps.getByIndex( Index );
     306                 :            : }
     307                 :            : // -----------------------------------------------------------------------------
     308                 :            : // XShape
     309                 :          0 : awt::Point SAL_CALL OFixedText::getPosition(  ) throw (uno::RuntimeException)
     310                 :            : {
     311                 :          0 :     return OShapeHelper::getPosition(this);
     312                 :            : }
     313                 :            : // -----------------------------------------------------------------------------
     314                 :          0 : void SAL_CALL OFixedText::setPosition( const awt::Point& aPosition ) throw (uno::RuntimeException)
     315                 :            : {
     316                 :          0 :     OShapeHelper::setPosition(aPosition,this);
     317                 :          0 : }
     318                 :            : // -----------------------------------------------------------------------------
     319                 :          0 : awt::Size SAL_CALL OFixedText::getSize(  ) throw (uno::RuntimeException)
     320                 :            : {
     321                 :          0 :     return OShapeHelper::getSize(this);
     322                 :            : }
     323                 :            : // -----------------------------------------------------------------------------
     324                 :          0 : void SAL_CALL OFixedText::setSize( const awt::Size& aSize ) throw (beans::PropertyVetoException, uno::RuntimeException)
     325                 :            : {
     326                 :          0 :     OShapeHelper::setSize(aSize,this);
     327                 :          0 : }
     328                 :            : // -----------------------------------------------------------------------------
     329                 :            : 
     330                 :            : // XShapeDescriptor
     331                 :          0 : ::rtl::OUString SAL_CALL OFixedText::getShapeType(  ) throw (uno::RuntimeException)
     332                 :            : {
     333                 :          0 :    return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.drawing.ControlShape"));
     334                 :            : }
     335                 :            : // -----------------------------------------------------------------------------
     336                 :            : // -----------------------------------------------------------------------------
     337                 :            : // =============================================================================
     338                 :            : } // namespace reportdesign
     339                 :            : // =============================================================================
     340                 :            : 
     341                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10