LCOV - code coverage report
Current view: top level - svx/source/inc - tbxform.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 3 0.0 %
Date: 2014-04-14 Functions: 0 6 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_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( 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( sal_Bool _bForce );
      42             : };
      43             : 
      44             : 
      45             : 
      46             : class SvxFmConfigWin : public SfxPopupWindow
      47             : {
      48             : private:
      49             :     DECL_LINK( TbxSelectHdl, ToolBox* );
      50             : 
      51             : public:
      52             :     SvxFmConfigWin( sal_uInt16 nId, ResId aRIdWin, ResId aRIdTbx );
      53             :     virtual ~SvxFmConfigWin();
      54             : 
      55             :     void            Update();
      56             :     virtual void    PopupModeEnd() SAL_OVERRIDE;
      57             : };
      58             : 
      59             : 
      60             : 
      61             : class SvxFmTbxCtlConfig : public SfxToolBoxControl
      62             : {
      63             : private:
      64             :     sal_uInt16 nLastSlot;
      65             : 
      66             : protected:
      67             : 
      68             : public:
      69             :     SFX_DECL_TOOLBOX_CONTROL();
      70             : 
      71             :     SvxFmTbxCtlConfig( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
      72           0 :     virtual ~SvxFmTbxCtlConfig() {}
      73             : 
      74             :     virtual void                Select( sal_uInt16 nSelectModifier ) SAL_OVERRIDE;
      75             :     virtual void                StateChanged( sal_uInt16 nSID, SfxItemState eState,
      76             :                                               const SfxPoolItem* pState ) SAL_OVERRIDE;
      77             :     virtual SfxPopupWindowType  GetPopupWindowType() const SAL_OVERRIDE;
      78             :     virtual SfxPopupWindow*     CreatePopupWindow() SAL_OVERRIDE;
      79             : };
      80             : 
      81             : 
      82             : class FixedText;
      83             : class SvxFmTbxCtlAbsRec : public SfxToolBoxControl
      84             : {
      85             : public:
      86             :     SFX_DECL_TOOLBOX_CONTROL();
      87             : 
      88             :     SvxFmTbxCtlAbsRec( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
      89             :     virtual ~SvxFmTbxCtlAbsRec();
      90             : 
      91             :     virtual Window* CreateItemWindow( Window* pParent ) SAL_OVERRIDE;
      92             : 
      93             :     virtual void    StateChanged( sal_uInt16 nSID, SfxItemState eState,
      94             :                                   const SfxPoolItem* pState ) SAL_OVERRIDE;
      95             : };
      96             : 
      97             : 
      98             : class SvxFmTbxCtlRecText : public SfxToolBoxControl
      99             : {
     100             : public:
     101             :     SFX_DECL_TOOLBOX_CONTROL();
     102             : 
     103             :     SvxFmTbxCtlRecText( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
     104             :     virtual ~SvxFmTbxCtlRecText();
     105             : 
     106             :     virtual Window* CreateItemWindow( Window* pParent ) SAL_OVERRIDE;
     107             : };
     108             : 
     109             : 
     110             : class SvxFmTbxCtlRecFromText : public SfxToolBoxControl
     111             : {
     112             : public:
     113             :     SFX_DECL_TOOLBOX_CONTROL();
     114             : 
     115             :     SvxFmTbxCtlRecFromText( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
     116             :     virtual ~SvxFmTbxCtlRecFromText();
     117             : 
     118             :     virtual Window* CreateItemWindow( Window* pParent ) SAL_OVERRIDE;
     119             : };
     120             : 
     121             : 
     122             : class SvxFmTbxCtlRecTotal : public SfxToolBoxControl
     123             : {
     124             :     FixedText* pFixedText;
     125             : 
     126             : public:
     127             :     SFX_DECL_TOOLBOX_CONTROL();
     128             : 
     129             :     SvxFmTbxCtlRecTotal( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
     130             :     virtual ~SvxFmTbxCtlRecTotal();
     131             : 
     132             :     virtual Window* CreateItemWindow( Window* pParent ) SAL_OVERRIDE;
     133             :     virtual void    StateChanged( sal_uInt16 nSID, SfxItemState eState,
     134             :                                   const SfxPoolItem* pState ) SAL_OVERRIDE;
     135             : };
     136             : 
     137             : 
     138           0 : class SvxFmTbxNextRec : public SfxToolBoxControl
     139             : {
     140             : public:
     141             :     SFX_DECL_TOOLBOX_CONTROL();
     142             :     SvxFmTbxNextRec( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
     143             : };
     144             : 
     145             : 
     146           0 : class SvxFmTbxPrevRec : public SfxToolBoxControl
     147             : {
     148             : public:
     149             :     SFX_DECL_TOOLBOX_CONTROL();
     150             :     SvxFmTbxPrevRec( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
     151             : };
     152             : 
     153             : 
     154             : #endif
     155             : 
     156             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10