LCOV - code coverage report
Current view: top level - basctl/source/basicide - sbxitem.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 29 0.0 %
Date: 2012-08-25 Functions: 0 10 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*
       3                 :            :  * This file is part of the LibreOffice project.
       4                 :            :  *
       5                 :            :  * This Source Code Form is subject to the terms of the Mozilla Public
       6                 :            :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7                 :            :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8                 :            :  *
       9                 :            :  * This file incorporates work covered by the following license notice:
      10                 :            :  *
      11                 :            :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12                 :            :  *   contributor license agreements. See the NOTICE file distributed
      13                 :            :  *   with this work for additional information regarding copyright
      14                 :            :  *   ownership. The ASF licenses this file to you under the Apache
      15                 :            :  *   License, Version 2.0 (the "License"); you may not use this file
      16                 :            :  *   except in compliance with the License. You may obtain a copy of
      17                 :            :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18                 :            :  */
      19                 :            : 
      20                 :            : #include "sbxitem.hxx"
      21                 :            : 
      22                 :          0 : SbxItem::SbxItem(sal_uInt16 nWhich_, const ScriptDocument& rDocument, const ::rtl::OUString& aLibName, const ::rtl::OUString& aName, BasicIDEType nType)
      23                 :            :     :SfxPoolItem( nWhich_ )
      24                 :            :     ,m_aDocument(rDocument)
      25                 :            :     ,m_aLibName(aLibName)
      26                 :            :     ,m_aName(aName)
      27                 :          0 :     ,m_nType(nType)
      28                 :            : {
      29                 :          0 : }
      30                 :            : 
      31                 :          0 : SbxItem::SbxItem(sal_uInt16 nWhich_, const ScriptDocument& rDocument, const ::rtl::OUString& aLibName, const ::rtl::OUString& aName, const ::rtl::OUString& aMethodName, BasicIDEType nType)
      32                 :            :     :SfxPoolItem( nWhich_ )
      33                 :            :     ,m_aDocument(rDocument)
      34                 :            :     ,m_aLibName(aLibName)
      35                 :            :     ,m_aName(aName)
      36                 :            :     ,m_aMethodName(aMethodName)
      37                 :          0 :     ,m_nType(nType)
      38                 :            : {
      39                 :          0 : }
      40                 :            : 
      41                 :          0 : SbxItem::SbxItem(const SbxItem& rCopy)
      42                 :            :     :SfxPoolItem(rCopy)
      43                 :            :     ,m_aDocument(rCopy.m_aDocument)
      44                 :            :     ,m_aLibName(rCopy.m_aLibName)
      45                 :            :     ,m_aName(rCopy.m_aName)
      46                 :            :     ,m_aMethodName(rCopy.m_aMethodName)
      47                 :          0 :     ,m_nType(rCopy.m_nType)
      48                 :            : {
      49                 :          0 : }
      50                 :            : 
      51                 :          0 : SfxPoolItem *SbxItem::Clone(SfxItemPool*) const
      52                 :            : {
      53                 :          0 :     return new SbxItem(*this);
      54                 :            : }
      55                 :            : 
      56                 :          0 : int SbxItem::operator==(const SfxPoolItem& rCmp) const
      57                 :            : {
      58                 :          0 :     SbxItem const* pSbxItem = dynamic_cast<SbxItem const*>(&rCmp);
      59                 :            :     DBG_ASSERT(pSbxItem, "==: no SbxItem!" );
      60                 :            :     return
      61                 :          0 :         SfxPoolItem::operator==(rCmp) &&
      62                 :          0 :         m_aDocument == pSbxItem->m_aDocument &&
      63                 :          0 :         m_aLibName == pSbxItem->m_aLibName &&
      64                 :          0 :         m_aName == pSbxItem->m_aName &&
      65                 :          0 :         m_aMethodName == pSbxItem->m_aMethodName &&
      66                 :          0 :         m_nType == pSbxItem->m_nType;
      67                 :            : }
      68                 :            : 
      69                 :          0 : const ScriptDocument& SbxItem::GetDocument() const
      70                 :            : {
      71                 :          0 :     return m_aDocument;
      72                 :            : }
      73                 :            : 
      74                 :          0 : const ::rtl::OUString& SbxItem::GetLibName() const
      75                 :            : {
      76                 :          0 :     return m_aLibName;
      77                 :            : }
      78                 :            : 
      79                 :          0 : const ::rtl::OUString& SbxItem::GetName() const
      80                 :            : {
      81                 :          0 :     return m_aName;
      82                 :            : }
      83                 :            : 
      84                 :          0 : const ::rtl::OUString& SbxItem::GetMethodName() const
      85                 :            : {
      86                 :          0 :     return m_aMethodName;
      87                 :            : }
      88                 :            : 
      89                 :          0 : BasicIDEType SbxItem::GetType() const
      90                 :            : {
      91                 :          0 :     return m_nType;
      92                 :            : }
      93                 :            : 
      94                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10