LCOV - code coverage report
Current view: top level - svx/source/inc - tbxform.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 1 3 33.3 %
Date: 2012-08-25 Functions: 2 6 33.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1 6 16.7 %

           Branch data     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 _SVX_TBXFORM_HXX
      20                 :            : #define _SVX_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                 :            :     ~SvxFmAbsRecWin();
      36                 :            : 
      37                 :            :     virtual void KeyInput( const KeyEvent& rKeyEvt );
      38                 :            :     virtual void LoseFocus();
      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                 :            :     ~SvxFmConfigWin();
      54                 :            : 
      55                 :            :     void            Update();
      56                 :            :     virtual void    PopupModeEnd();
      57                 :            : };
      58                 :            : 
      59                 :            : 
      60                 :            : //========================================================================
      61                 :            : class SvxFmTbxCtlConfig : public SfxToolBoxControl
      62                 :            : {
      63                 :            : private:
      64                 :            :     sal_uInt16 nLastSlot;
      65                 :            : 
      66                 :            : protected:
      67                 :            :     using SfxToolBoxControl::Select;
      68                 :            : 
      69                 :            : public:
      70                 :            :     SFX_DECL_TOOLBOX_CONTROL();
      71                 :            : 
      72                 :            :     SvxFmTbxCtlConfig( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
      73         [ -  + ]:        266 :     ~SvxFmTbxCtlConfig() {}
      74                 :            : 
      75                 :            :     virtual void                Select( sal_uInt16 nModifier );
      76                 :            :     virtual void                StateChanged( sal_uInt16 nSID, SfxItemState eState,
      77                 :            :                                               const SfxPoolItem* pState );
      78                 :            :     virtual SfxPopupWindowType  GetPopupWindowType() const;
      79                 :            :     virtual SfxPopupWindow*     CreatePopupWindow();
      80                 :            : };
      81                 :            : 
      82                 :            : //========================================================================
      83                 :            : class FixedText;
      84                 :            : class SvxFmTbxCtlAbsRec : public SfxToolBoxControl
      85                 :            : {
      86                 :            : public:
      87                 :            :     SFX_DECL_TOOLBOX_CONTROL();
      88                 :            : 
      89                 :            :     SvxFmTbxCtlAbsRec( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
      90                 :            :     ~SvxFmTbxCtlAbsRec();
      91                 :            : 
      92                 :            :     virtual Window* CreateItemWindow( Window* pParent );
      93                 :            : 
      94                 :            :     virtual void    StateChanged( sal_uInt16 nSID, SfxItemState eState,
      95                 :            :                                   const SfxPoolItem* pState );
      96                 :            : };
      97                 :            : 
      98                 :            : //========================================================================
      99                 :            : class SvxFmTbxCtlRecText : public SfxToolBoxControl
     100                 :            : {
     101                 :            : public:
     102                 :            :     SFX_DECL_TOOLBOX_CONTROL();
     103                 :            : 
     104                 :            :     SvxFmTbxCtlRecText( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
     105                 :            :     ~SvxFmTbxCtlRecText();
     106                 :            : 
     107                 :            :     virtual Window* CreateItemWindow( Window* pParent );
     108                 :            : };
     109                 :            : 
     110                 :            : //========================================================================
     111                 :            : class SvxFmTbxCtlRecFromText : public SfxToolBoxControl
     112                 :            : {
     113                 :            : public:
     114                 :            :     SFX_DECL_TOOLBOX_CONTROL();
     115                 :            : 
     116                 :            :     SvxFmTbxCtlRecFromText( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
     117                 :            :     ~SvxFmTbxCtlRecFromText();
     118                 :            : 
     119                 :            :     virtual Window* CreateItemWindow( Window* pParent );
     120                 :            : };
     121                 :            : 
     122                 :            : //========================================================================
     123                 :            : class SvxFmTbxCtlRecTotal : public SfxToolBoxControl
     124                 :            : {
     125                 :            :     FixedText* pFixedText;
     126                 :            : 
     127                 :            : public:
     128                 :            :     SFX_DECL_TOOLBOX_CONTROL();
     129                 :            : 
     130                 :            :     SvxFmTbxCtlRecTotal( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
     131                 :            :     ~SvxFmTbxCtlRecTotal();
     132                 :            : 
     133                 :            :     virtual Window* CreateItemWindow( Window* pParent );
     134                 :            :     virtual void    StateChanged( sal_uInt16 nSID, SfxItemState eState,
     135                 :            :                                   const SfxPoolItem* pState );
     136                 :            : };
     137                 :            : 
     138                 :            : //========================================================================
     139         [ #  # ]:          0 : class SvxFmTbxNextRec : public SfxToolBoxControl
     140                 :            : {
     141                 :            : public:
     142                 :            :     SFX_DECL_TOOLBOX_CONTROL();
     143                 :            :     SvxFmTbxNextRec( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
     144                 :            : };
     145                 :            : 
     146                 :            : //========================================================================
     147         [ #  # ]:          0 : class SvxFmTbxPrevRec : public SfxToolBoxControl
     148                 :            : {
     149                 :            : public:
     150                 :            :     SFX_DECL_TOOLBOX_CONTROL();
     151                 :            :     SvxFmTbxPrevRec( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
     152                 :            : };
     153                 :            : 
     154                 :            : 
     155                 :            : #endif
     156                 :            : 
     157                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10