LCOV - code coverage report
Current view: top level - include/svx - itemwin.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 2 5 40.0 %
Date: 2015-06-13 12:38:46 Functions: 4 9 44.4 %
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           0 : 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_TYPED(DelayHdl_Impl, Timer *, 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             : 
      53             :     void FillControl();
      54             : 
      55             : protected:
      56             :     virtual void    Select() SAL_OVERRIDE;
      57             :     virtual bool    PreNotify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
      58             :     virtual bool    Notify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
      59             :     virtual void    DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE;
      60             : 
      61             : };
      62             : 
      63             : // class SvxMetricField --------------------------------------------------
      64           0 : class SVX_DLLPUBLIC SvxMetricField : public MetricField
      65             : {
      66             :     using Window::Update;
      67             : 
      68             :     OUString        aCurTxt;
      69             :     SfxMapUnit      ePoolUnit;
      70             :     FieldUnit       eDlgUnit;
      71             :     Size            aLogicalSize;
      72             :     ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > mxFrame;
      73             : 
      74             :     static void     ReleaseFocus_Impl();
      75             : 
      76             : protected:
      77             :     virtual void    Modify() SAL_OVERRIDE;
      78             :     virtual void    Down() SAL_OVERRIDE;
      79             :     virtual void    Up() SAL_OVERRIDE;       // just to be sure
      80             : 
      81             :     virtual bool    PreNotify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
      82             :     virtual bool    Notify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
      83             :     virtual void    DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE;
      84             : 
      85             : public:
      86             :     SvxMetricField( vcl::Window* pParent,
      87             :                     const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame,
      88             :                     WinBits nBits = WB_BORDER | WB_SPIN | WB_REPEAT );
      89             : 
      90             :     void            Update( const XLineWidthItem* pItem );
      91             :     void            SetCoreUnit( SfxMapUnit eUnit );
      92             :     void            RefreshDlgUnit();
      93             : };
      94             : 
      95             : // class SvxFillTypeBox --------------------------------------------------
      96             : 
      97         102 : class SvxFillTypeBox : public FillTypeLB
      98             : {
      99             : public:
     100             :     SvxFillTypeBox( vcl::Window* pParent, WinBits nBits = WB_BORDER | WB_DROPDOWN | WB_AUTOHSCROLL );
     101             : 
     102           0 :     void            Selected() { bSelect = true; }
     103             :     bool            IsRelease() { return bRelease;}
     104             : 
     105             : protected:
     106             :     virtual bool    PreNotify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
     107             :     virtual bool    Notify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
     108             : 
     109             : private:
     110             :     sal_uInt16      nCurPos;
     111             :     bool            bSelect;
     112             :     bool            bRelease;
     113             : 
     114             :     static void     ReleaseFocus_Impl();
     115             : };
     116             : 
     117             : // class SvxFillAttrBox --------------------------------------------------
     118             : 
     119         102 : class SvxFillAttrBox : public FillAttrLB
     120             : {
     121             : public:
     122             :     SvxFillAttrBox( vcl::Window* pParent, WinBits nBits = WB_BORDER | WB_DROPDOWN | WB_AUTOHSCROLL );
     123             : 
     124             :     bool            IsRelease() { return bRelease;}
     125             : 
     126             : protected:
     127             :     virtual bool    PreNotify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
     128             :     virtual bool    Notify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
     129             :     virtual void    Select() SAL_OVERRIDE;
     130             : 
     131             : private:
     132             :     sal_uInt16      nCurPos;
     133             :     bool            bRelease;
     134             : 
     135             :     static void     ReleaseFocus_Impl();
     136             : };
     137             : 
     138             : #endif // INCLUDED_SVX_ITEMWIN_HXX
     139             : 
     140             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11