LCOV - code coverage report
Current view: top level - dbaccess/source/ui/inc - TableRow.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 6 0.0 %
Date: 2012-08-25 Functions: 0 6 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                 :            : #ifndef DBAUI_TABLEROW_HXX
      20                 :            : #define DBAUI_TABLEROW_HXX
      21                 :            : 
      22                 :            : #include <comphelper/stl_types.hxx>
      23                 :            : #include <tools/stream.hxx>
      24                 :            : #include <com/sun/star/beans/XPropertySet.hpp>
      25                 :            : #include "TypeInfo.hxx"
      26                 :            : 
      27                 :            : 
      28                 :            : namespace dbaui
      29                 :            : {
      30                 :            :     class OFieldDescription;
      31                 :            :     class OTableRow
      32                 :            :     {
      33                 :            :     private:
      34                 :            :         OFieldDescription*      m_pActFieldDescr;
      35                 :            :         sal_Int32               m_nPos;
      36                 :            :         bool                    m_bReadOnly;
      37                 :            :         bool                    m_bOwnsDescriptions;
      38                 :            : 
      39                 :            :     protected:
      40                 :            :     public:
      41                 :            :         OTableRow();
      42                 :            :         OTableRow(const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xAffectedCol);
      43                 :            :         OTableRow( const OTableRow& rRow, long nPosition = -1 );
      44                 :            :         ~OTableRow();
      45                 :            : 
      46                 :          0 :         inline OFieldDescription* GetActFieldDescr() const { return m_pActFieldDescr; }
      47                 :          0 :         inline bool isValid() const { return GetActFieldDescr() != NULL; }
      48                 :            : 
      49                 :            :         void SetFieldType( const TOTypeInfoSP& _pType, sal_Bool _bForce = sal_False );
      50                 :            : 
      51                 :            :         void SetPrimaryKey( sal_Bool bSet );
      52                 :            :         sal_Bool IsPrimaryKey() const;
      53                 :            : 
      54                 :            :         /** returns the current position in the table.
      55                 :            :             @return
      56                 :            :                 the current position in the table
      57                 :            :         */
      58                 :          0 :         inline sal_Int32 GetPos() const { return m_nPos; }
      59                 :          0 :         inline void SetPos(sal_Int32 _nPos) { m_nPos = _nPos; }
      60                 :            : 
      61                 :            :         /** set the row readonly
      62                 :            :             @param  _bRead
      63                 :            :                 if <TRUE/> then the row is redonly, otherwise not
      64                 :            :         */
      65                 :          0 :         inline void SetReadOnly( bool _bRead=true ){ m_bReadOnly = _bRead; }
      66                 :            : 
      67                 :            :         /** returns if the row is readonly
      68                 :            :             @return
      69                 :            :                 <TRUE/> if readonly, otherwise <FALSE/>
      70                 :            :         */
      71                 :          0 :         inline bool IsReadOnly() const { return m_bReadOnly; }
      72                 :            : 
      73                 :            :         friend SvStream& operator<<( SvStream& rStr,const OTableRow& _rRow );
      74                 :            :         friend SvStream& operator>>( SvStream& rStr, OTableRow& _rRow );
      75                 :            :     };
      76                 :            : }
      77                 :            : #endif // DBAUI_TABLEROW_HXX
      78                 :            : 
      79                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10