LCOV - code coverage report
Current view: top level - svx/source/inc - tbxform.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 1 3 33.3 %
Date: 2014-11-03 Functions: 2 6 33.3 %
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_SOURCE_INC_TBXFORM_HXX
      20             : #define INCLUDED_SVX_SOURCE_INC_TBXFORM_HXX
      21             : 
      22             : #include <sfx2/tbxctrl.hxx>
      23             : #include <vcl/field.hxx>
      24             : #include <vcl/dialog.hxx>
      25             : 
      26             : #include <vcl/button.hxx>
      27             : 
      28             : 
      29             : class SvxFmAbsRecWin : public NumericField
      30             : {
      31             :     SfxToolBoxControl*  m_pController;
      32             :         // for invalidating our content whe losing the focus
      33             : public:
      34             :     SvxFmAbsRecWin( vcl::Window* _pParent, SfxToolBoxControl* _pController );
      35             :     virtual ~SvxFmAbsRecWin();
      36             : 
      37             :     virtual void KeyInput( const KeyEvent& rKeyEvt ) SAL_OVERRIDE;
      38             :     virtual void LoseFocus() SAL_OVERRIDE;
      39             : 
      40             : protected:
      41             :     virtual void FirePosition( bool _bForce );
      42             : };
      43             : 
      44             : 
      45             : class SvxFmTbxCtlConfig : public SfxToolBoxControl
      46             : {
      47             : private:
      48             :     sal_uInt16 nLastSlot;
      49             : 
      50             : protected:
      51             : 
      52             : public:
      53             :     SFX_DECL_TOOLBOX_CONTROL();
      54             : 
      55             :     SvxFmTbxCtlConfig( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
      56         260 :     virtual ~SvxFmTbxCtlConfig() {}
      57             : 
      58             :     virtual void                Select( sal_uInt16 nSelectModifier ) SAL_OVERRIDE;
      59             :     virtual void                StateChanged( sal_uInt16 nSID, SfxItemState eState,
      60             :                                               const SfxPoolItem* pState ) SAL_OVERRIDE;
      61             :     virtual SfxPopupWindowType  GetPopupWindowType() const SAL_OVERRIDE;
      62             :     virtual SfxPopupWindow*     CreatePopupWindow() SAL_OVERRIDE;
      63             : };
      64             : 
      65             : 
      66             : class FixedText;
      67             : class SvxFmTbxCtlAbsRec : public SfxToolBoxControl
      68             : {
      69             : public:
      70             :     SFX_DECL_TOOLBOX_CONTROL();
      71             : 
      72             :     SvxFmTbxCtlAbsRec( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
      73             :     virtual ~SvxFmTbxCtlAbsRec();
      74             : 
      75             :     virtual vcl::Window* CreateItemWindow( vcl::Window* pParent ) SAL_OVERRIDE;
      76             : 
      77             :     virtual void    StateChanged( sal_uInt16 nSID, SfxItemState eState,
      78             :                                   const SfxPoolItem* pState ) SAL_OVERRIDE;
      79             : };
      80             : 
      81             : 
      82             : class SvxFmTbxCtlRecText : public SfxToolBoxControl
      83             : {
      84             : public:
      85             :     SFX_DECL_TOOLBOX_CONTROL();
      86             : 
      87             :     SvxFmTbxCtlRecText( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
      88             :     virtual ~SvxFmTbxCtlRecText();
      89             : 
      90             :     virtual vcl::Window* CreateItemWindow( vcl::Window* pParent ) SAL_OVERRIDE;
      91             : };
      92             : 
      93             : 
      94             : class SvxFmTbxCtlRecFromText : public SfxToolBoxControl
      95             : {
      96             : public:
      97             :     SFX_DECL_TOOLBOX_CONTROL();
      98             : 
      99             :     SvxFmTbxCtlRecFromText( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
     100             :     virtual ~SvxFmTbxCtlRecFromText();
     101             : 
     102             :     virtual vcl::Window* CreateItemWindow( vcl::Window* pParent ) SAL_OVERRIDE;
     103             : };
     104             : 
     105             : 
     106             : class SvxFmTbxCtlRecTotal : public SfxToolBoxControl
     107             : {
     108             :     FixedText* pFixedText;
     109             : 
     110             : public:
     111             :     SFX_DECL_TOOLBOX_CONTROL();
     112             : 
     113             :     SvxFmTbxCtlRecTotal( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
     114             :     virtual ~SvxFmTbxCtlRecTotal();
     115             : 
     116             :     virtual vcl::Window* CreateItemWindow( vcl::Window* pParent ) SAL_OVERRIDE;
     117             :     virtual void    StateChanged( sal_uInt16 nSID, SfxItemState eState,
     118             :                                   const SfxPoolItem* pState ) SAL_OVERRIDE;
     119             : };
     120             : 
     121             : 
     122           0 : class SvxFmTbxNextRec : public SfxToolBoxControl
     123             : {
     124             : public:
     125             :     SFX_DECL_TOOLBOX_CONTROL();
     126             :     SvxFmTbxNextRec( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
     127             : };
     128             : 
     129             : 
     130           0 : class SvxFmTbxPrevRec : public SfxToolBoxControl
     131             : {
     132             : public:
     133             :     SFX_DECL_TOOLBOX_CONTROL();
     134             :     SvxFmTbxPrevRec( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
     135             : };
     136             : 
     137             : 
     138             : #endif
     139             : 
     140             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10