LCOV - code coverage report
Current view: top level - dbaccess/source/ui/inc - TableRow.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 6 0.0 %
Date: 2014-04-14 Functions: 0 6 0.0 %
Legend: Lines: hit not hit

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

Generated by: LCOV version 1.10