LCOV - code coverage report
Current view: top level - include/svx - itemwin.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 3 0.0 %
Date: 2014-11-03 Functions: 0 3 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_SVX_ITEMWIN_HXX
      20             : #define INCLUDED_SVX_ITEMWIN_HXX
      21             : 
      22             : #include <vcl/bitmap.hxx>
      23             : 
      24             : #include <svx/dlgctrl.hxx>
      25             : #include <svx/svxdllapi.h>
      26             : 
      27             : // forward ---------------------------------------------------------------
      28             : 
      29             : class XLineColorItem;
      30             : class XLineWidthItem;
      31             : class SfxObjectShell;
      32             : 
      33             : // class SvxLineBox ------------------------------------------------------
      34             : 
      35             : class SvxLineBox : public LineLB
      36             : {
      37             :     sal_uInt16      nCurPos;
      38             :     Timer           aDelayTimer;
      39             :     Size            aLogicalSize;
      40             :     bool            bRelease;
      41             :     SfxObjectShell* mpSh;
      42             :     ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > mxFrame;
      43             : 
      44             :                     DECL_LINK(DelayHdl_Impl, void *);
      45             : 
      46             :     void            ReleaseFocus_Impl();
      47             : 
      48             : public:
      49             :     SvxLineBox( vcl::Window* pParent,
      50             :                 const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame,
      51             :                 WinBits nBits = WB_BORDER | WB_DROPDOWN | WB_AUTOHSCROLL );
      52             :     virtual ~SvxLineBox();
      53             : 
      54             :     void FillControl();
      55             : 
      56             : protected:
      57             :     virtual void    Select() SAL_OVERRIDE;
      58             :     virtual bool    PreNotify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
      59             :     virtual bool    Notify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
      60             :     virtual void    DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE;
      61             : 
      62             : };
      63             : 
      64             : // class SvxMetricField --------------------------------------------------
      65             : class SVX_DLLPUBLIC SvxMetricField : public MetricField
      66             : {
      67             :     using Window::Update;
      68             : 
      69             :     OUString        aCurTxt;
      70             :     SfxMapUnit      ePoolUnit;
      71             :     FieldUnit       eDlgUnit;
      72             :     Size            aLogicalSize;
      73             :     ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > mxFrame;
      74             : 
      75             :     void            ReleaseFocus_Impl();
      76             : 
      77             : protected:
      78             :     virtual void    Modify() SAL_OVERRIDE;
      79             :     virtual void    Down() SAL_OVERRIDE;
      80             :     virtual void    Up() SAL_OVERRIDE;       // just to be sure
      81             : 
      82             :     virtual bool    PreNotify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
      83             :     virtual bool    Notify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
      84             :     virtual void    DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE;
      85             : 
      86             : public:
      87             :     SvxMetricField( vcl::Window* pParent,
      88             :                     const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame,
      89             :                     WinBits nBits = WB_BORDER | WB_SPIN | WB_REPEAT );
      90             :     virtual ~SvxMetricField();
      91             : 
      92             :     void            Update( const XLineWidthItem* pItem );
      93             :     void            SetCoreUnit( SfxMapUnit eUnit );
      94             :     void            RefreshDlgUnit();
      95             : };
      96             : 
      97             : // class SvxFillTypeBox --------------------------------------------------
      98             : 
      99             : class SvxFillTypeBox : public FillTypeLB
     100             : {
     101             : public:
     102             :     SvxFillTypeBox( vcl::Window* pParent, WinBits nBits = WB_BORDER | WB_DROPDOWN | WB_AUTOHSCROLL );
     103             :     virtual ~SvxFillTypeBox();
     104             : 
     105           0 :     void            Selected() { bSelect = true; }
     106           0 :     bool            IsRelease() { return bRelease;}
     107             : 
     108             : protected:
     109             :     virtual bool    PreNotify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
     110             :     virtual bool    Notify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
     111             : 
     112             : private:
     113             :     sal_uInt16      nCurPos;
     114             :     bool            bSelect;
     115             :     bool            bRelease;
     116             : 
     117             :     void            ReleaseFocus_Impl();
     118             : };
     119             : 
     120             : // class SvxFillAttrBox --------------------------------------------------
     121             : 
     122             : class SvxFillAttrBox : public FillAttrLB
     123             : {
     124             : public:
     125             :     SvxFillAttrBox( vcl::Window* pParent, WinBits nBits = WB_BORDER | WB_DROPDOWN | WB_AUTOHSCROLL );
     126             :     virtual ~SvxFillAttrBox();
     127             : 
     128           0 :     bool            IsRelease() { return bRelease;}
     129             : 
     130             : protected:
     131             :     virtual bool    PreNotify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
     132             :     virtual bool    Notify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
     133             :     virtual void    Select() SAL_OVERRIDE;
     134             : 
     135             : private:
     136             :     sal_uInt16      nCurPos;
     137             :     bool            bRelease;
     138             : 
     139             :     void            ReleaseFocus_Impl();
     140             : };
     141             : 
     142             : #endif // INCLUDED_SVX_ITEMWIN_HXX
     143             : 
     144             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10