LCOV - code coverage report
Current view: top level - dbaccess/source/ui/inc - FieldControls.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 16 0.0 %
Date: 2014-04-14 Functions: 0 20 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_FIELDCONTROLS_HXX
      20             : #define INCLUDED_DBACCESS_SOURCE_UI_INC_FIELDCONTROLS_HXX
      21             : 
      22             : #include <vcl/field.hxx>
      23             : #include <vcl/lstbox.hxx>
      24             : #include <vcl/svapp.hxx>
      25             : #include "SqlNameEdit.hxx"
      26             : #include "moduledbu.hxx"
      27             : 
      28             : namespace dbaui
      29             : {
      30             : 
      31           0 :     class OPropColumnEditCtrl : public OSQLNameEdit
      32             :     {
      33             :         OModuleClient m_aModuleClient;
      34             :         short                m_nPos;
      35             :         OUString             m_strHelpText;
      36             :     public:
      37             :         OPropColumnEditCtrl(Window* pParent, OUString& _rAllowedChars, sal_uInt16 nHelpId, short nPosition = -1, WinBits nWinStyle = 0);
      38             : 
      39           0 :         virtual bool IsModified() const SAL_OVERRIDE { return GetText() != GetSavedValue(); }
      40             : 
      41           0 :         short GetPos() const { return m_nPos; }
      42           0 :         OUString GetHelp() const { return m_strHelpText; }
      43             : 
      44             :         virtual void SetSpecialReadOnly(sal_Bool _bReadOnly);
      45             : 
      46             :     };
      47             : 
      48           0 :     class OPropEditCtrl :   public Edit
      49             :     {
      50             :         OModuleClient m_aModuleClient;
      51             :         short                m_nPos;
      52             :         OUString             m_strHelpText;
      53             : 
      54             :     public:
      55             :         OPropEditCtrl(Window* pParent, sal_uInt16 nHelpId, short nPosition = -1, WinBits nWinStyle = 0);
      56             : 
      57           0 :         virtual bool IsModified() const SAL_OVERRIDE { return GetText() != GetSavedValue(); }
      58             : 
      59           0 :         short GetPos() const { return m_nPos; }
      60           0 :         OUString GetHelp() const { return m_strHelpText; }
      61             : 
      62             :         virtual void SetSpecialReadOnly(sal_Bool _bReadOnly);
      63             :     };
      64             : 
      65           0 :     class OPropNumericEditCtrl : public NumericField
      66             :     {
      67             :         short     m_nPos;
      68             :         OUString  m_strHelpText;
      69             : 
      70             :     public:
      71             :         OPropNumericEditCtrl(Window* pParent, sal_uInt16 nHelpId, short nPosition = -1, WinBits nWinStyle = 0);
      72             : 
      73           0 :         virtual bool IsModified() const SAL_OVERRIDE { return GetText() != GetSavedValue(); }
      74             : 
      75           0 :         short GetPos() const { return m_nPos; }
      76           0 :         OUString GetHelp() const { return m_strHelpText; }
      77             : 
      78             :         virtual void SetSpecialReadOnly(sal_Bool _bReadOnly);
      79             : 
      80             :     };
      81             : 
      82           0 :     class OPropListBoxCtrl : public ListBox
      83             :     {
      84             :         short     m_nPos;
      85             :         OUString  m_strHelpText;
      86             : 
      87             :     public:
      88             :         OPropListBoxCtrl(Window* pParent, sal_uInt16 nHelpId, short nPosition = -1, WinBits nWinStyle = 0);
      89             : 
      90           0 :         sal_Bool IsModified() const { return GetSelectEntryPos() != GetSavedValue(); }
      91             : 
      92           0 :         short GetPos() const { return m_nPos; }
      93           0 :         OUString GetHelp() const { return m_strHelpText; }
      94             : 
      95             :         virtual void SetSpecialReadOnly(sal_Bool _bReadOnly);
      96             : 
      97             :     };
      98             : 
      99             : }
     100             : #endif // INCLUDED_DBACCESS_SOURCE_UI_INC_FIELDCONTROLS_HXX
     101             : 
     102             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10