LCOV - code coverage report
Current view: top level - dbaccess/source/ui/control - FieldControls.cxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 1 27 3.7 %
Date: 2015-06-13 12:38:46 Functions: 2 8 25.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             : 
      20             : #include "FieldControls.hxx"
      21             : #include "SqlNameEdit.hxx"
      22             : 
      23             : #include <vcl/settings.hxx>
      24             : 
      25             : namespace dbaui {
      26             : 
      27             : namespace {
      28             : 
      29           0 : void lcl_setSpecialReadOnly( bool _bReadOnly, vcl::Window* _pWin )
      30             : {
      31           0 :     StyleSettings aSystemStyle = Application::GetSettings().GetStyleSettings();
      32           0 :     const Color& rNewColor = _bReadOnly ? aSystemStyle.GetDialogColor() : aSystemStyle.GetFieldColor();
      33           0 :     _pWin->SetBackground(Wallpaper(rNewColor));
      34           0 :     _pWin->SetControlBackground(rNewColor);
      35           0 : }
      36             : 
      37             : }
      38             : 
      39           0 : OPropColumnEditCtrl::OPropColumnEditCtrl(vcl::Window* pParent,
      40             :                                                 rtl::OUString& _rAllowedChars,
      41             :                                                 sal_uInt16 nHelpId,
      42             :                                                 short nPosition,
      43             :                                                 WinBits nWinStyle)
      44             :     :OSQLNameEdit(pParent, nWinStyle, _rAllowedChars)
      45           0 :     ,m_nPos(nPosition)
      46             : {
      47           0 :     m_strHelpText = ModuleRes(nHelpId);
      48           0 : }
      49             : 
      50           0 : OPropEditCtrl::OPropEditCtrl(vcl::Window* pParent, sal_uInt16 nHelpId, short nPosition, WinBits nWinStyle)
      51             :     :Edit(pParent, nWinStyle)
      52           0 :     ,m_nPos(nPosition)
      53             : {
      54           0 :     m_strHelpText = ModuleRes(nHelpId);
      55           0 : }
      56             : 
      57             : void
      58           0 : OPropNumericEditCtrl::SetSpecialReadOnly(bool _bReadOnly)
      59             : {
      60           0 :     SetReadOnly(_bReadOnly);
      61           0 :     lcl_setSpecialReadOnly(_bReadOnly,this);
      62           0 : }
      63             : 
      64             : 
      65           0 : OPropNumericEditCtrl::OPropNumericEditCtrl(vcl::Window* pParent, sal_uInt16 nHelpId, short nPosition, WinBits nWinStyle)
      66             :     :NumericField(pParent, nWinStyle)
      67           0 :     ,m_nPos(nPosition)
      68             : {
      69           0 :     m_strHelpText = ModuleRes(nHelpId);
      70           0 : }
      71             : 
      72           0 : OPropListBoxCtrl::OPropListBoxCtrl(vcl::Window* pParent, sal_uInt16 nHelpId, short nPosition, WinBits nWinStyle)
      73             :     :ListBox(pParent, nWinStyle)
      74           0 :     ,m_nPos(nPosition)
      75             : {
      76           0 :     m_strHelpText = ModuleRes(nHelpId);
      77           0 : }
      78             : 
      79          36 : } // end namespace dbaui

Generated by: LCOV version 1.11