LCOV - code coverage report
Current view: top level - dbaccess/source/ui/querydesign - ConnectionLineData.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 26 0.0 %
Date: 2012-08-25 Functions: 0 9 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 8 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 "ConnectionLineData.hxx"
      21                 :            : #include <tools/debug.hxx>
      22                 :            : 
      23                 :            : 
      24                 :            : using namespace dbaui;
      25                 :            : DBG_NAME(OConnectionLineData)
      26                 :            : //==================================================================
      27                 :            : //class OConnectionLineData
      28                 :            : //==================================================================
      29                 :            : //------------------------------------------------------------------------
      30                 :          0 : OConnectionLineData::OConnectionLineData()
      31                 :            : {
      32                 :            :     DBG_CTOR(OConnectionLineData,NULL);
      33                 :          0 : }
      34                 :            : 
      35                 :            : //------------------------------------------------------------------------
      36                 :          0 : OConnectionLineData::OConnectionLineData( const ::rtl::OUString& rSourceFieldName, const ::rtl::OUString& rDestFieldName )
      37                 :            :     :m_aSourceFieldName( rSourceFieldName )
      38                 :          0 :     ,m_aDestFieldName( rDestFieldName )
      39                 :            : {
      40                 :            :     DBG_CTOR(OConnectionLineData,NULL);
      41                 :          0 : }
      42                 :            : 
      43                 :            : //------------------------------------------------------------------------
      44                 :          0 : OConnectionLineData::OConnectionLineData( const OConnectionLineData& rConnLineData )
      45                 :          0 :     : ::salhelper::SimpleReferenceObject()
      46                 :            : {
      47                 :            :     DBG_CTOR(OConnectionLineData,NULL);
      48                 :          0 :     *this = rConnLineData;
      49                 :          0 : }
      50                 :            : 
      51                 :            : //------------------------------------------------------------------------
      52                 :          0 : OConnectionLineData::~OConnectionLineData()
      53                 :            : {
      54                 :            :     DBG_DTOR(OConnectionLineData,NULL);
      55         [ #  # ]:          0 : }
      56                 :            : 
      57                 :            : //------------------------------------------------------------------------
      58                 :          0 : void OConnectionLineData::CopyFrom(const OConnectionLineData& rSource)
      59                 :            : {
      60                 :          0 :     *this = rSource;
      61                 :            :     // hier ziehe ich mich auf das (nicht-virtuelle) operator= zurueck, das nur meine Members kopiert
      62                 :          0 : }
      63                 :            : 
      64                 :            : //------------------------------------------------------------------------
      65                 :          0 : OConnectionLineData& OConnectionLineData::operator=( const OConnectionLineData& rConnLineData )
      66                 :            : {
      67         [ #  # ]:          0 :     if (&rConnLineData == this)
      68                 :          0 :         return *this;
      69                 :            : 
      70                 :          0 :     m_aSourceFieldName = rConnLineData.GetSourceFieldName();
      71                 :          0 :     m_aDestFieldName = rConnLineData.GetDestFieldName();
      72                 :            : 
      73                 :          0 :     return *this;
      74                 :            : }
      75                 :            : 
      76                 :            : //------------------------------------------------------------------------
      77                 :          0 : bool OConnectionLineData::Reset()
      78                 :            : {
      79                 :          0 :     m_aDestFieldName = m_aSourceFieldName = ::rtl::OUString();
      80                 :          0 :     return true;
      81                 :            : }
      82                 :            : // -----------------------------------------------------------------------------
      83                 :            : namespace dbaui
      84                 :            : {
      85                 :            : //-------------------------------------------------------------------------
      86                 :          0 : bool operator==(const OConnectionLineData& lhs, const OConnectionLineData& rhs)
      87                 :            : {
      88                 :          0 :     return (lhs.m_aSourceFieldName == rhs.m_aSourceFieldName)
      89 [ #  # ][ #  # ]:          0 :         && (lhs.m_aDestFieldName == rhs.m_aDestFieldName);
      90                 :            : }
      91                 :            : }
      92                 :            : 
      93                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10