LCOV - code coverage report
Current view: top level - reportdesign/source/core/api - FixedLine.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 203 0.0 %
Date: 2012-08-25 Functions: 0 201 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 638 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 "FixedLine.hxx"
      29                 :            : #include <com/sun/star/beans/PropertyAttribute.hpp>
      30                 :            : #include "corestrings.hrc"
      31                 :            : #include "core_resource.hrc"
      32                 :            : #include "core_resource.hxx"
      33                 :            : #include <comphelper/sequence.hxx>
      34                 :            : #include <tools/debug.hxx>
      35                 :            : #include <comphelper/property.hxx>
      36                 :            : #include "Tools.hxx"
      37                 :            : #include "FormatCondition.hxx"
      38                 :            : #include <com/sun/star/beans/XPropertyState.hpp>
      39                 :            : #include <com/sun/star/text/ParagraphVertAlign.hpp>
      40                 :            : #include "ReportHelperImpl.hxx"
      41                 :            : 
      42                 :            : #define MIN_WIDTH   80
      43                 :            : #define MIN_HEIGHT  20
      44                 :            : // =============================================================================
      45                 :            : namespace reportdesign
      46                 :            : {
      47                 :            : // =============================================================================
      48                 :            :     using namespace com::sun::star;
      49                 :            :     using namespace comphelper;
      50                 :          0 : uno::Sequence< ::rtl::OUString > lcl_getLineOptionals()
      51                 :            : {
      52                 :            :     ::rtl::OUString pProps[] = {
      53                 :            :              PROPERTY_DATAFIELD
      54                 :            :             ,PROPERTY_DEFAULTCONTROL
      55                 :            :             ,PROPERTY_CONTROLBORDER
      56                 :            :             ,PROPERTY_CONTROLBORDERCOLOR
      57                 :            :             ,PROPERTY_CHARCOLOR
      58                 :            :             ,PROPERTY_CHAREMPHASIS
      59                 :            :             ,PROPERTY_CHARFONTCHARSET
      60                 :            :             ,PROPERTY_CHARFONTFAMILY
      61                 :            :             ,PROPERTY_CHARFONTNAME
      62                 :            :             ,PROPERTY_CHARFONTPITCH
      63                 :            :             ,PROPERTY_CHARFONTSTYLENAME
      64                 :            :             ,PROPERTY_CHARHEIGHT
      65                 :            :             ,PROPERTY_CHARPOSTURE
      66                 :            :             ,PROPERTY_CHARRELIEF
      67                 :            :             ,PROPERTY_FONTDESCRIPTOR
      68                 :            :             ,PROPERTY_FONTDESCRIPTORASIAN
      69                 :            :             ,PROPERTY_FONTDESCRIPTORCOMPLEX
      70                 :            :             ,PROPERTY_CONTROLTEXTEMPHASISMARK
      71                 :            :             ,PROPERTY_CHARROTATION
      72                 :            :             ,PROPERTY_CHARSCALEWIDTH
      73                 :            :             ,PROPERTY_CHARSTRIKEOUT
      74                 :            :             ,PROPERTY_CHARUNDERLINECOLOR
      75                 :            :             ,PROPERTY_CHARUNDERLINE
      76                 :            :             ,PROPERTY_CHARWEIGHT
      77                 :            :             ,PROPERTY_CHARWORDMODE
      78                 :            :             ,PROPERTY_CONTROLBACKGROUND
      79                 :            :             ,PROPERTY_CONTROLBACKGROUNDTRANSPARENT
      80                 :            :             ,PROPERTY_CHARFLASH
      81                 :            :             ,PROPERTY_CHARAUTOKERNING
      82                 :            :             ,PROPERTY_CHARESCAPEMENTHEIGHT
      83                 :            :             ,PROPERTY_CHARLOCALE
      84                 :            :             ,PROPERTY_CHARESCAPEMENT
      85                 :            :             ,PROPERTY_CHARCASEMAP
      86                 :            :             ,PROPERTY_CHARCOMBINEISON
      87                 :            :             ,PROPERTY_CHARCOMBINEPREFIX
      88                 :            :             ,PROPERTY_CHARCOMBINESUFFIX
      89                 :            :             ,PROPERTY_CHARHIDDEN
      90                 :            :             ,PROPERTY_CHARSHADOWED
      91                 :            :             ,PROPERTY_CHARCONTOURED
      92                 :            :             ,PROPERTY_HYPERLINKURL
      93                 :            :             ,PROPERTY_HYPERLINKTARGET
      94                 :            :             ,PROPERTY_HYPERLINKNAME
      95                 :            :             ,PROPERTY_VISITEDCHARSTYLENAME
      96                 :            :             ,PROPERTY_UNVISITEDCHARSTYLENAME
      97                 :            :             ,PROPERTY_CHARKERNING
      98                 :            :             ,PROPERTY_PRINTREPEATEDVALUES
      99                 :            :             ,PROPERTY_CONDITIONALPRINTEXPRESSION
     100                 :            :             ,PROPERTY_PRINTWHENGROUPCHANGE
     101                 :            :             ,PROPERTY_MASTERFIELDS
     102                 :            :             ,PROPERTY_DETAILFIELDS
     103                 :            :             ,PROPERTY_PARAADJUST
     104                 :            : 
     105                 :            :             , PROPERTY_CHAREMPHASISASIAN
     106                 :            :             , PROPERTY_CHARFONTNAMEASIAN
     107                 :            :             , PROPERTY_CHARFONTSTYLENAMEASIAN
     108                 :            :             , PROPERTY_CHARFONTFAMILYASIAN
     109                 :            :             , PROPERTY_CHARFONTCHARSETASIAN
     110                 :            :             , PROPERTY_CHARFONTPITCHASIAN
     111                 :            :             , PROPERTY_CHARHEIGHTASIAN
     112                 :            :             , PROPERTY_CHARUNDERLINEASIAN
     113                 :            :             , PROPERTY_CHARWEIGHTASIAN
     114                 :            :             , PROPERTY_CHARPOSTUREASIAN
     115                 :            :             , PROPERTY_CHARWORDMODEASIAN
     116                 :            :             , PROPERTY_CHARROTATIONASIAN
     117                 :            :             , PROPERTY_CHARSCALEWIDTHASIAN
     118                 :            :             , PROPERTY_CHARLOCALEASIAN
     119                 :            :             , PROPERTY_CHAREMPHASISCOMPLEX
     120                 :            :             , PROPERTY_CHARFONTNAMECOMPLEX
     121                 :            :             , PROPERTY_CHARFONTSTYLENAMECOMPLEX
     122                 :            :             , PROPERTY_CHARFONTFAMILYCOMPLEX
     123                 :            :             , PROPERTY_CHARFONTCHARSETCOMPLEX
     124                 :            :             , PROPERTY_CHARFONTPITCHCOMPLEX
     125                 :            :             , PROPERTY_CHARHEIGHTCOMPLEX
     126                 :            :             , PROPERTY_CHARUNDERLINECOMPLEX
     127                 :            :             , PROPERTY_CHARWEIGHTCOMPLEX
     128                 :            :             , PROPERTY_CHARPOSTURECOMPLEX
     129                 :            :             , PROPERTY_CHARWORDMODECOMPLEX
     130                 :            :             , PROPERTY_CHARROTATIONCOMPLEX
     131                 :            :             , PROPERTY_CHARSCALEWIDTHCOMPLEX
     132                 :            :             , PROPERTY_CHARLOCALECOMPLEX
     133                 :            : 
     134                 :            : 
     135 [ #  # ][ #  # ]:          0 :     };
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
                 [ #  # ]
           [ #  #  #  # ]
     136 [ #  # ][ #  # ]:          0 :     return uno::Sequence< ::rtl::OUString >(pProps,sizeof(pProps)/sizeof(pProps[0]));
                 [ #  # ]
     137                 :            : }
     138                 :            : DBG_NAME(rpt_OFixedLine)
     139                 :            : // -----------------------------------------------------------------------------
     140                 :          0 : OFixedLine::OFixedLine(uno::Reference< uno::XComponentContext > const & _xContext)
     141                 :            : :FixedLineBase(m_aMutex)
     142                 :            : ,FixedLinePropertySet(_xContext,static_cast< Implements >(IMPLEMENTS_PROPERTY_SET),lcl_getLineOptionals())
     143                 :            : ,m_aProps(m_aMutex,static_cast< container::XContainer*>( this ),_xContext)
     144                 :            : ,m_nOrientation(1)
     145                 :            : ,m_LineColor(0)
     146                 :            : ,m_LineTransparence(0)
     147 [ #  # ][ #  # ]:          0 : ,m_LineWidth(0)
         [ #  # ][ #  # ]
     148                 :            : {
     149                 :            :     DBG_CTOR(rpt_OFixedLine,NULL);
     150 [ #  # ][ #  # ]:          0 :     m_aProps.aComponent.m_sName  = RPT_RESSTRING(RID_STR_FIXEDLINE,m_aProps.aComponent.m_xContext->getServiceManager());
                 [ #  # ]
     151                 :          0 :     m_aProps.aComponent.m_nWidth = MIN_WIDTH;
     152                 :          0 : }
     153                 :            : // -----------------------------------------------------------------------------
     154                 :          0 : OFixedLine::OFixedLine(uno::Reference< uno::XComponentContext > const & _xContext
     155                 :            :                        ,const uno::Reference< lang::XMultiServiceFactory>& _xFactory
     156                 :            :                        ,uno::Reference< drawing::XShape >& _xShape
     157                 :            :                        ,sal_Int32 _nOrientation)
     158                 :            : :FixedLineBase(m_aMutex)
     159                 :            : ,FixedLinePropertySet(_xContext,static_cast< Implements >(IMPLEMENTS_PROPERTY_SET),lcl_getLineOptionals())
     160                 :            : ,m_aProps(m_aMutex,static_cast< container::XContainer*>( this ),_xContext)
     161                 :            : ,m_nOrientation(_nOrientation)
     162                 :            : ,m_LineColor(0)
     163                 :            : ,m_LineTransparence(0)
     164 [ #  # ][ #  # ]:          0 : ,m_LineWidth(0)
         [ #  # ][ #  # ]
     165                 :            : {
     166                 :            :     DBG_CTOR(rpt_OFixedLine,NULL);
     167 [ #  # ][ #  # ]:          0 :     m_aProps.aComponent.m_sName  = RPT_RESSTRING(RID_STR_FIXEDLINE,m_aProps.aComponent.m_xContext->getServiceManager());
                 [ #  # ]
     168         [ #  # ]:          0 :     m_aProps.aComponent.m_xFactory = _xFactory;
     169         [ #  # ]:          0 :     osl_incrementInterlockedCount( &m_refCount );
     170                 :            :     try
     171                 :            :     {
     172 [ #  # ][ #  # ]:          0 :         awt::Size aSize = _xShape->getSize();
     173         [ #  # ]:          0 :         if ( m_nOrientation == 1 )
     174                 :            :         {
     175         [ #  # ]:          0 :             if ( aSize.Width < MIN_WIDTH )
     176                 :            :             {
     177                 :          0 :                 aSize.Width = MIN_WIDTH;
     178 [ #  # ][ #  # ]:          0 :                 _xShape->setSize(aSize);
     179                 :            :             }
     180                 :            :         }
     181         [ #  # ]:          0 :         else if ( MIN_HEIGHT > aSize.Height )
     182                 :            :         {
     183                 :          0 :             aSize.Height = MIN_HEIGHT;
     184 [ #  # ][ #  # ]:          0 :             _xShape->setSize(aSize);
     185                 :            :         }
     186 [ #  # ][ #  # ]:          0 :         m_aProps.aComponent.setShape(_xShape,this,m_refCount);
                 [ #  # ]
     187                 :            :     }
     188         [ #  # ]:          0 :     catch(uno::Exception&)
     189                 :            :     {
     190                 :            :         OSL_FAIL("OFixedLine::OFixedLine: Exception caught!");
     191                 :            :     }
     192         [ #  # ]:          0 :     osl_decrementInterlockedCount( &m_refCount );
     193                 :          0 : }
     194                 :            : // -----------------------------------------------------------------------------
     195 [ #  # ][ #  # ]:          0 : OFixedLine::~OFixedLine()
                 [ #  # ]
     196                 :            : {
     197                 :            :     DBG_DTOR(rpt_OFixedLine,NULL);
     198         [ #  # ]:          0 : }
     199                 :            : // -----------------------------------------------------------------------------
     200                 :          0 : IMPLEMENT_FORWARD_REFCOUNT( OFixedLine, FixedLineBase )
     201                 :            : // --------------------------------------------------------------------------------
     202                 :          0 : uno::Any SAL_CALL OFixedLine::queryInterface( const uno::Type& _rType ) throw (uno::RuntimeException)
     203                 :            : {
     204         [ #  # ]:          0 :     uno::Any aReturn = FixedLineBase::queryInterface(_rType);
     205         [ #  # ]:          0 :     if ( !aReturn.hasValue() )
     206         [ #  # ]:          0 :         aReturn = FixedLinePropertySet::queryInterface(_rType);
     207 [ #  # ][ #  # ]:          0 :     if ( !aReturn.hasValue() && OReportControlModel::isInterfaceForbidden(_rType) )
         [ #  # ][ #  # ]
     208                 :          0 :         return aReturn;
     209                 :            : 
     210 [ #  # ][ #  # ]:          0 :     return aReturn.hasValue() ? aReturn : (m_aProps.aComponent.m_xProxy.is() ? m_aProps.aComponent.m_xProxy->queryAggregation(_rType) : aReturn);
         [ #  # ][ #  # ]
     211                 :            : }
     212                 :            : // -----------------------------------------------------------------------------
     213                 :          0 : void SAL_CALL OFixedLine::dispose() throw(uno::RuntimeException)
     214                 :            : {
     215                 :          0 :     FixedLinePropertySet::dispose();
     216                 :          0 :     cppu::WeakComponentImplHelperBase::dispose();
     217                 :          0 : }
     218                 :            : // -----------------------------------------------------------------------------
     219                 :          0 : ::rtl::OUString OFixedLine::getImplementationName_Static(  ) throw(uno::RuntimeException)
     220                 :            : {
     221                 :          0 :     return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.comp.report.OFixedLine"));
     222                 :            : }
     223                 :            : 
     224                 :            : //--------------------------------------------------------------------------
     225                 :          0 : ::rtl::OUString SAL_CALL OFixedLine::getImplementationName(  ) throw(uno::RuntimeException)
     226                 :            : {
     227                 :          0 :     return getImplementationName_Static();
     228                 :            : }
     229                 :            : //--------------------------------------------------------------------------
     230                 :          0 : uno::Sequence< ::rtl::OUString > OFixedLine::getSupportedServiceNames_Static(  ) throw(uno::RuntimeException)
     231                 :            : {
     232                 :          0 :     uno::Sequence< ::rtl::OUString > aServices(1);
     233 [ #  # ][ #  # ]:          0 :     aServices.getArray()[0] = SERVICE_FIXEDLINE;
     234                 :            : 
     235                 :          0 :     return aServices;
     236                 :            : }
     237                 :            : //------------------------------------------------------------------------------
     238                 :          0 : uno::Reference< uno::XInterface > OFixedLine::create(uno::Reference< uno::XComponentContext > const & xContext)
     239                 :            : {
     240         [ #  # ]:          0 :     return *(new OFixedLine(xContext));
     241                 :            : }
     242                 :            : 
     243                 :            : //--------------------------------------------------------------------------
     244                 :          0 : uno::Sequence< ::rtl::OUString > SAL_CALL OFixedLine::getSupportedServiceNames(  ) throw(uno::RuntimeException)
     245                 :            : {
     246                 :          0 :     return getSupportedServiceNames_Static();
     247                 :            : }
     248                 :            : //------------------------------------------------------------------------------
     249                 :          0 : sal_Bool SAL_CALL OFixedLine::supportsService(const ::rtl::OUString& ServiceName) throw( uno::RuntimeException )
     250                 :            : {
     251         [ #  # ]:          0 :     return ::comphelper::existsValue(ServiceName,getSupportedServiceNames_Static());
     252                 :            : }
     253                 :            : // -----------------------------------------------------------------------------
     254                 :            : // XReportComponent
     255 [ #  # ][ #  # ]:          0 : REPORTCOMPONENT_IMPL3(OFixedLine,m_aProps.aComponent)
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
     256 [ #  # ][ #  # ]:          0 : REPORTCOMPONENT_NOMASTERDETAIL(OFixedLine)
         [ #  # ][ #  # ]
     257                 :            : // -----------------------------------------------------------------------------
     258                 :          0 : ::sal_Int16  SAL_CALL OFixedLine::getControlBorder( ) throw (beans::UnknownPropertyException, uno::RuntimeException)
     259                 :            : {
     260         [ #  # ]:          0 :     throw beans::UnknownPropertyException();
     261                 :            : }
     262                 :            : // -----------------------------------------------------------------------------
     263                 :          0 : void SAL_CALL OFixedLine::setControlBorder( ::sal_Int16 /*_border*/ ) throw (lang::IllegalArgumentException, beans::UnknownPropertyException, uno::RuntimeException)
     264                 :            : {
     265         [ #  # ]:          0 :     throw beans::UnknownPropertyException();
     266                 :            : }
     267                 :            : // -----------------------------------------------------------------------------
     268                 :          0 : ::sal_Int32 SAL_CALL OFixedLine::getControlBorderColor() throw (beans::UnknownPropertyException,uno::RuntimeException)
     269                 :            : {
     270         [ #  # ]:          0 :     throw beans::UnknownPropertyException();
     271                 :            : }
     272                 :            : // -----------------------------------------------------------------------------
     273                 :          0 : void SAL_CALL OFixedLine::setControlBorderColor( ::sal_Int32 /*_bordercolor*/ ) throw (beans::UnknownPropertyException,lang::IllegalArgumentException,uno::RuntimeException)
     274                 :            : {
     275         [ #  # ]:          0 :     throw beans::UnknownPropertyException();
     276                 :            : }
     277                 :            : // -----------------------------------------------------------------------------
     278                 :          0 : uno::Reference< beans::XPropertySetInfo > SAL_CALL OFixedLine::getPropertySetInfo(  ) throw(uno::RuntimeException)
     279                 :            : {
     280                 :          0 :     return FixedLinePropertySet::getPropertySetInfo();
     281                 :            : }
     282                 :            : // -----------------------------------------------------------------------------
     283                 :          0 : void SAL_CALL OFixedLine::setPropertyValue( const ::rtl::OUString& aPropertyName, const uno::Any& aValue ) throw (beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException)
     284                 :            : {
     285                 :          0 :     FixedLinePropertySet::setPropertyValue( aPropertyName, aValue );
     286                 :          0 : }
     287                 :            : // -----------------------------------------------------------------------------
     288                 :          0 : uno::Any SAL_CALL OFixedLine::getPropertyValue( const ::rtl::OUString& PropertyName ) throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
     289                 :            : {
     290                 :          0 :     return FixedLinePropertySet::getPropertyValue( PropertyName);
     291                 :            : }
     292                 :            : // -----------------------------------------------------------------------------
     293                 :          0 : void SAL_CALL OFixedLine::addPropertyChangeListener( const ::rtl::OUString& aPropertyName, const uno::Reference< beans::XPropertyChangeListener >& xListener ) throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
     294                 :            : {
     295                 :          0 :     FixedLinePropertySet::addPropertyChangeListener( aPropertyName, xListener );
     296                 :          0 : }
     297                 :            : // -----------------------------------------------------------------------------
     298                 :          0 : void SAL_CALL OFixedLine::removePropertyChangeListener( const ::rtl::OUString& aPropertyName, const uno::Reference< beans::XPropertyChangeListener >& aListener ) throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
     299                 :            : {
     300                 :          0 :     FixedLinePropertySet::removePropertyChangeListener( aPropertyName, aListener );
     301                 :          0 : }
     302                 :            : // -----------------------------------------------------------------------------
     303                 :          0 : void SAL_CALL OFixedLine::addVetoableChangeListener( const ::rtl::OUString& PropertyName, const uno::Reference< beans::XVetoableChangeListener >& aListener ) throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
     304                 :            : {
     305                 :          0 :     FixedLinePropertySet::addVetoableChangeListener( PropertyName, aListener );
     306                 :          0 : }
     307                 :            : // -----------------------------------------------------------------------------
     308                 :          0 : void SAL_CALL OFixedLine::removeVetoableChangeListener( const ::rtl::OUString& PropertyName, const uno::Reference< beans::XVetoableChangeListener >& aListener ) throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException)
     309                 :            : {
     310                 :          0 :     FixedLinePropertySet::removeVetoableChangeListener( PropertyName, aListener );
     311                 :          0 : }
     312                 :            : // -----------------------------------------------------------------------------
     313                 :            : // XReportControlModel
     314                 :          0 : ::rtl::OUString SAL_CALL OFixedLine::getDataField() throw (beans::UnknownPropertyException, uno::RuntimeException)
     315                 :            : {
     316         [ #  # ]:          0 :     throw beans::UnknownPropertyException();
     317                 :            : }
     318                 :            : // -----------------------------------------------------------------------------
     319                 :          0 : void SAL_CALL OFixedLine::setDataField( const ::rtl::OUString& /*_datafield*/ ) throw (lang::IllegalArgumentException, beans::UnknownPropertyException, uno::RuntimeException)
     320                 :            : {
     321         [ #  # ]:          0 :     throw beans::UnknownPropertyException();
     322                 :            : }
     323                 :            : // -----------------------------------------------------------------------------
     324                 :          0 : ::sal_Int32 SAL_CALL OFixedLine::getControlBackground() throw (beans::UnknownPropertyException, uno::RuntimeException)
     325                 :            : {
     326         [ #  # ]:          0 :     throw beans::UnknownPropertyException();
     327                 :            : }
     328                 :            : // -----------------------------------------------------------------------------
     329                 :          0 : void SAL_CALL OFixedLine::setControlBackground( ::sal_Int32 /*_backgroundcolor*/ ) throw (uno::RuntimeException,beans::UnknownPropertyException)
     330                 :            : {
     331         [ #  # ]:          0 :     throw beans::UnknownPropertyException();
     332                 :            : }
     333                 :            : // -----------------------------------------------------------------------------
     334                 :          0 : ::sal_Bool SAL_CALL OFixedLine::getControlBackgroundTransparent() throw (beans::UnknownPropertyException, uno::RuntimeException)
     335                 :            : {
     336         [ #  # ]:          0 :     throw beans::UnknownPropertyException();
     337                 :            : }
     338                 :            : // -----------------------------------------------------------------------------
     339                 :          0 : void SAL_CALL OFixedLine::setControlBackgroundTransparent( ::sal_Bool /*_controlbackgroundtransparent*/ ) throw (beans::UnknownPropertyException, uno::RuntimeException)
     340                 :            : {
     341         [ #  # ]:          0 :     throw beans::UnknownPropertyException();
     342                 :            : }
     343                 :            : // -----------------------------------------------------------------------------
     344                 :          0 : ::sal_Bool SAL_CALL OFixedLine::getPrintWhenGroupChange() throw (beans::UnknownPropertyException, uno::RuntimeException)
     345                 :            : {
     346         [ #  # ]:          0 :     throw beans::UnknownPropertyException();
     347                 :            : }
     348                 :            : // -----------------------------------------------------------------------------
     349                 :          0 : void SAL_CALL OFixedLine::setPrintWhenGroupChange( ::sal_Bool /*_printwhengroupchange*/ ) throw (beans::UnknownPropertyException, uno::RuntimeException)
     350                 :            : {
     351         [ #  # ]:          0 :     throw beans::UnknownPropertyException();
     352                 :            : }
     353                 :            : // -----------------------------------------------------------------------------
     354                 :          0 : ::rtl::OUString SAL_CALL OFixedLine::getConditionalPrintExpression() throw (beans::UnknownPropertyException, uno::RuntimeException)
     355                 :            : {
     356         [ #  # ]:          0 :     throw beans::UnknownPropertyException();
     357                 :            : }
     358                 :            : // -----------------------------------------------------------------------------
     359                 :          0 : void SAL_CALL OFixedLine::setConditionalPrintExpression( const ::rtl::OUString& /*_conditionalprintexpression*/ ) throw (beans::UnknownPropertyException, uno::RuntimeException)
     360                 :            : {
     361         [ #  # ]:          0 :     throw beans::UnknownPropertyException();
     362                 :            : }
     363                 :            : // -----------------------------------------------------------------------------
     364                 :            : // XCloneable
     365                 :          0 : uno::Reference< util::XCloneable > SAL_CALL OFixedLine::createClone(  ) throw (uno::RuntimeException)
     366                 :            : {
     367         [ #  # ]:          0 :     uno::Reference< report::XReportComponent> xSource = this;
     368 [ #  # ][ #  # ]:          0 :     uno::Reference< report::XFixedLine> xSet(cloneObject(xSource,m_aProps.aComponent.m_xFactory,SERVICE_FIXEDLINE),uno::UNO_QUERY_THROW);
                 [ #  # ]
     369 [ #  # ][ #  # ]:          0 :     return xSet.get();
     370                 :            : }
     371                 :            : // -----------------------------------------------------------------------------
     372                 :            : 
     373                 :            : // XFixedLine
     374                 :            : // -----------------------------------------------------------------------------
     375                 :          0 : ::sal_Int32 SAL_CALL OFixedLine::getOrientation() throw (beans::UnknownPropertyException,uno::RuntimeException)
     376                 :            : {
     377         [ #  # ]:          0 :     ::osl::MutexGuard aGuard(m_aMutex);
     378         [ #  # ]:          0 :     return m_nOrientation;
     379                 :            : }
     380                 :            : // -----------------------------------------------------------------------------
     381                 :          0 : void SAL_CALL OFixedLine::setOrientation( ::sal_Int32 _orientation ) throw (beans::UnknownPropertyException,uno::RuntimeException)
     382                 :            : {
     383         [ #  # ]:          0 :     set(PROPERTY_ORIENTATION,_orientation,m_nOrientation);
     384                 :          0 : }
     385                 :            : // -----------------------------------------------------------------------------
     386                 :          0 : drawing::LineStyle SAL_CALL OFixedLine::getLineStyle() throw (uno::RuntimeException)
     387                 :            : {
     388         [ #  # ]:          0 :     ::osl::MutexGuard aGuard(m_aMutex);
     389         [ #  # ]:          0 :     return m_LineStyle;
     390                 :            : }
     391                 :            : // -----------------------------------------------------------------------------
     392                 :          0 : void SAL_CALL OFixedLine::setLineStyle( drawing::LineStyle _linestyle ) throw (uno::RuntimeException)
     393                 :            : {
     394         [ #  # ]:          0 :     set(PROPERTY_LINESTYLE,_linestyle,m_LineStyle);
     395                 :          0 : }
     396                 :            : // -----------------------------------------------------------------------------
     397                 :          0 : drawing::LineDash SAL_CALL OFixedLine::getLineDash() throw (uno::RuntimeException)
     398                 :            : {
     399         [ #  # ]:          0 :     ::osl::MutexGuard aGuard(m_aMutex);
     400         [ #  # ]:          0 :     return m_LineDash;
     401                 :            : }
     402                 :            : // -----------------------------------------------------------------------------
     403                 :          0 : void SAL_CALL OFixedLine::setLineDash( const drawing::LineDash& _linedash ) throw (uno::RuntimeException)
     404                 :            : {
     405         [ #  # ]:          0 :     set(PROPERTY_LINEDASH,_linedash,m_LineDash);
     406                 :          0 : }
     407                 :            : // -----------------------------------------------------------------------------
     408                 :          0 : ::sal_Int32 SAL_CALL OFixedLine::getLineColor() throw (uno::RuntimeException)
     409                 :            : {
     410         [ #  # ]:          0 :     ::osl::MutexGuard aGuard(m_aMutex);
     411         [ #  # ]:          0 :     return m_LineColor;
     412                 :            : }
     413                 :            : // -----------------------------------------------------------------------------
     414                 :          0 : void SAL_CALL OFixedLine::setLineColor( ::sal_Int32 _linecolor ) throw (uno::RuntimeException)
     415                 :            : {
     416         [ #  # ]:          0 :     set(PROPERTY_LINECOLOR,_linecolor,m_LineColor);
     417                 :          0 : }
     418                 :            : // -----------------------------------------------------------------------------
     419                 :          0 : ::sal_Int16 SAL_CALL OFixedLine::getLineTransparence() throw (uno::RuntimeException)
     420                 :            : {
     421         [ #  # ]:          0 :     ::osl::MutexGuard aGuard(m_aMutex);
     422         [ #  # ]:          0 :     return m_LineTransparence;
     423                 :            : }
     424                 :            : // -----------------------------------------------------------------------------
     425                 :          0 : void SAL_CALL OFixedLine::setLineTransparence( ::sal_Int16 _linetransparence ) throw (uno::RuntimeException)
     426                 :            : {
     427         [ #  # ]:          0 :     set(PROPERTY_LINETRANSPARENCE,_linetransparence,m_LineTransparence);
     428                 :          0 : }
     429                 :            : // -----------------------------------------------------------------------------
     430                 :          0 : ::sal_Int32 SAL_CALL OFixedLine::getLineWidth() throw (uno::RuntimeException)
     431                 :            : {
     432         [ #  # ]:          0 :     ::osl::MutexGuard aGuard(m_aMutex);
     433         [ #  # ]:          0 :     return m_LineWidth;
     434                 :            : }
     435                 :            : // -----------------------------------------------------------------------------
     436                 :          0 : void SAL_CALL OFixedLine::setLineWidth( ::sal_Int32 _linewidth ) throw (uno::RuntimeException)
     437                 :            : {
     438         [ #  # ]:          0 :     set(PROPERTY_LINEWIDTH,_linewidth,m_LineWidth);
     439                 :          0 : }
     440                 :            : // -----------------------------------------------------------------------------
     441                 :            : // -----------------------------------------------------------------------------
     442                 :            : // XChild
     443                 :          0 : uno::Reference< uno::XInterface > SAL_CALL OFixedLine::getParent(  ) throw (uno::RuntimeException)
     444                 :            : {
     445                 :          0 :     return OShapeHelper::getParent(this);
     446                 :            : }
     447                 :            : // -----------------------------------------------------------------------------
     448                 :          0 : void SAL_CALL OFixedLine::setParent( const uno::Reference< uno::XInterface >& Parent ) throw (lang::NoSupportException, uno::RuntimeException)
     449                 :            : {
     450                 :          0 :     OShapeHelper::setParent(Parent,this);
     451                 :          0 : }
     452                 :            : // -----------------------------------------------------------------------------
     453                 :          0 : uno::Reference< report::XFormatCondition > SAL_CALL OFixedLine::createFormatCondition(  ) throw (uno::Exception, uno::RuntimeException)
     454                 :            : {
     455 [ #  # ][ #  # ]:          0 :     return new OFormatCondition(m_aProps.aComponent.m_xContext);
     456                 :            : }
     457                 :            : // -----------------------------------------------------------------------------
     458                 :            : // XContainer
     459                 :          0 : void SAL_CALL OFixedLine::addContainerListener( const uno::Reference< container::XContainerListener >& xListener ) throw (uno::RuntimeException)
     460                 :            : {
     461                 :          0 :     m_aProps.addContainerListener(xListener);
     462                 :          0 : }
     463                 :            : // -----------------------------------------------------------------------------
     464                 :          0 : void SAL_CALL OFixedLine::removeContainerListener( const uno::Reference< container::XContainerListener >& xListener ) throw (uno::RuntimeException)
     465                 :            : {
     466                 :          0 :     m_aProps.removeContainerListener(xListener);
     467                 :          0 : }
     468                 :            : // -----------------------------------------------------------------------------
     469                 :            : // XElementAccess
     470                 :          0 : uno::Type SAL_CALL OFixedLine::getElementType(  ) throw (uno::RuntimeException)
     471                 :            : {
     472                 :          0 :     return ::getCppuType(static_cast< uno::Reference<report::XFormatCondition>*>(NULL));
     473                 :            : }
     474                 :            : // -----------------------------------------------------------------------------
     475                 :          0 : ::sal_Bool SAL_CALL OFixedLine::hasElements(  ) throw (uno::RuntimeException)
     476                 :            : {
     477                 :          0 :     return m_aProps.hasElements();
     478                 :            : }
     479                 :            : // -----------------------------------------------------------------------------
     480                 :            : // XIndexContainer
     481                 :          0 : void SAL_CALL OFixedLine::insertByIndex( ::sal_Int32 Index, const uno::Any& Element ) throw (lang::IllegalArgumentException, lang::IndexOutOfBoundsException, lang::WrappedTargetException, uno::RuntimeException)
     482                 :            : {
     483                 :          0 :     m_aProps.insertByIndex(Index,Element);
     484                 :          0 : }
     485                 :            : // -----------------------------------------------------------------------------
     486                 :          0 : void SAL_CALL OFixedLine::removeByIndex( ::sal_Int32 Index ) throw (lang::IndexOutOfBoundsException, lang::WrappedTargetException, uno::RuntimeException)
     487                 :            : {
     488                 :          0 :     m_aProps.removeByIndex(Index);
     489                 :          0 : }
     490                 :            : // -----------------------------------------------------------------------------
     491                 :            : // XIndexReplace
     492                 :          0 : void SAL_CALL OFixedLine::replaceByIndex( ::sal_Int32 Index, const uno::Any& Element ) throw (lang::IllegalArgumentException, lang::IndexOutOfBoundsException, lang::WrappedTargetException, uno::RuntimeException)
     493                 :            : {
     494                 :          0 :     m_aProps.replaceByIndex(Index,Element);
     495                 :          0 : }
     496                 :            : // -----------------------------------------------------------------------------
     497                 :            : // XIndexAccess
     498                 :          0 : ::sal_Int32 SAL_CALL OFixedLine::getCount(  ) throw (uno::RuntimeException)
     499                 :            : {
     500                 :          0 :     return m_aProps.getCount();
     501                 :            : }
     502                 :            : // -----------------------------------------------------------------------------
     503                 :          0 : uno::Any SAL_CALL OFixedLine::getByIndex( ::sal_Int32 Index ) throw (lang::IndexOutOfBoundsException, lang::WrappedTargetException, uno::RuntimeException)
     504                 :            : {
     505                 :          0 :     return m_aProps.getByIndex( Index );
     506                 :            : }
     507                 :            : // -----------------------------------------------------------------------------
     508                 :            : // XShape
     509                 :          0 : awt::Point SAL_CALL OFixedLine::getPosition(  ) throw (uno::RuntimeException)
     510                 :            : {
     511                 :          0 :     return OShapeHelper::getPosition(this);
     512                 :            : }
     513                 :            : // -----------------------------------------------------------------------------
     514                 :          0 : void SAL_CALL OFixedLine::setPosition( const awt::Point& aPosition ) throw (uno::RuntimeException)
     515                 :            : {
     516                 :          0 :     OShapeHelper::setPosition(aPosition,this);
     517                 :          0 : }
     518                 :            : // -----------------------------------------------------------------------------
     519                 :          0 : awt::Size SAL_CALL OFixedLine::getSize(  ) throw (uno::RuntimeException)
     520                 :            : {
     521                 :          0 :     return OShapeHelper::getSize(this);
     522                 :            : }
     523                 :            : // -----------------------------------------------------------------------------
     524                 :          0 : void SAL_CALL OFixedLine::setSize( const awt::Size& aSize ) throw (beans::PropertyVetoException, uno::RuntimeException)
     525                 :            : {
     526 [ #  # ][ #  # ]:          0 :     if ( (aSize.Width < MIN_WIDTH && m_nOrientation == 1) || (aSize.Height < MIN_HEIGHT && m_nOrientation == 0) )
         [ #  # ][ #  # ]
     527         [ #  # ]:          0 :         throw beans::PropertyVetoException();
     528                 :          0 :     OShapeHelper::setSize(aSize,this);
     529                 :          0 : }
     530                 :            : // -----------------------------------------------------------------------------
     531                 :            : // XShapeDescriptor
     532                 :          0 : ::rtl::OUString SAL_CALL OFixedLine::getShapeType(  ) throw (uno::RuntimeException)
     533                 :            : {
     534                 :          0 :    return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.drawing.ControlShape"));
     535                 :            : }
     536                 :            : // -----------------------------------------------------------------------------
     537                 :          0 : ::rtl::OUString SAL_CALL OFixedLine::getHyperLinkURL() throw (uno::RuntimeException, beans::UnknownPropertyException)
     538                 :            : {
     539         [ #  # ]:          0 :     throw beans::UnknownPropertyException();
     540                 :            : }
     541                 :          0 : void SAL_CALL OFixedLine::setHyperLinkURL(const ::rtl::OUString & /*the_value*/) throw (uno::RuntimeException, beans::UnknownPropertyException)
     542                 :            : {
     543         [ #  # ]:          0 :     throw beans::UnknownPropertyException();
     544                 :            : }
     545                 :          0 : ::rtl::OUString SAL_CALL OFixedLine::getHyperLinkTarget() throw (uno::RuntimeException, beans::UnknownPropertyException)
     546                 :            : {
     547         [ #  # ]:          0 :     throw beans::UnknownPropertyException();
     548                 :            : }
     549                 :          0 : void SAL_CALL OFixedLine::setHyperLinkTarget(const ::rtl::OUString & /*the_value*/) throw (uno::RuntimeException, beans::UnknownPropertyException)
     550                 :            : {
     551         [ #  # ]:          0 :     throw beans::UnknownPropertyException();
     552                 :            : }
     553                 :          0 : ::rtl::OUString SAL_CALL OFixedLine::getHyperLinkName() throw (uno::RuntimeException, beans::UnknownPropertyException)
     554                 :            : {
     555         [ #  # ]:          0 :     throw beans::UnknownPropertyException();
     556                 :            : }
     557                 :          0 : void SAL_CALL OFixedLine::setHyperLinkName(const ::rtl::OUString & /*the_value*/) throw (uno::RuntimeException, beans::UnknownPropertyException)
     558                 :            : {
     559         [ #  # ]:          0 :     throw beans::UnknownPropertyException();
     560                 :            : }
     561                 :            : 
     562 [ #  # ][ #  # ]:          0 : NO_REPORTCONTROLFORMAT_IMPL(OFixedLine)
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
                 [ #  # ]
     563                 :            : 
     564                 :          0 : ::sal_Bool SAL_CALL OFixedLine::getPrintRepeatedValues() throw (beans::UnknownPropertyException, uno::RuntimeException)
     565                 :            : {
     566         [ #  # ]:          0 :     throw beans::UnknownPropertyException();
     567                 :            : }
     568                 :          0 : void SAL_CALL OFixedLine::setPrintRepeatedValues( ::sal_Bool /*_printrepeatedvalues*/ ) throw (beans::UnknownPropertyException, uno::RuntimeException)
     569                 :            : {
     570         [ #  # ]:          0 :     throw beans::UnknownPropertyException();
     571                 :            : }
     572                 :            : 
     573                 :            : // -----------------------------------------------------------------------------
     574                 :            : // =============================================================================
     575                 :            : } // namespace reportdesign
     576                 :            : // =============================================================================
     577                 :            : 
     578                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10