LCOV - code coverage report
Current view: top level - svx/inc/svx - grafctrl.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 1 8 12.5 %
Date: 2012-08-25 Functions: 3 17 17.6 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1 16 6.2 %

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : 
      29                 :            : #ifndef _SVX_GRAFCTRL_HXX
      30                 :            : #define _SVX_GRAFCTRL_HXX
      31                 :            : 
      32                 :            : #include <svl/lstner.hxx>
      33                 :            : #include <svl/intitem.hxx>
      34                 :            : #include <sfx2/tbxctrl.hxx>
      35                 :            : #include "svx/svxdllapi.h"
      36                 :            : 
      37                 :            : // ----------------
      38                 :            : // - TbxImageItem -
      39                 :            : // ----------------
      40                 :            : 
      41         [ -  + ]:      16497 : class SVX_DLLPUBLIC TbxImageItem : public SfxUInt16Item
      42                 :            : {
      43                 :            : public:
      44                 :            :                             TYPEINFO();
      45                 :            :                             TbxImageItem( sal_uInt16 nWhich = 0, sal_uInt16 nImage = 0 );
      46                 :            : 
      47                 :            :     virtual SfxPoolItem*    Clone( SfxItemPool* pPool = 0 ) const;
      48                 :            :     virtual int             operator==( const SfxPoolItem& ) const;
      49                 :            : };
      50                 :            : 
      51                 :            : // -------------------------------
      52                 :            : // - SvxGrafFilterToolBoxControl -
      53                 :            : // -------------------------------
      54                 :            : 
      55                 :            : class SVX_DLLPUBLIC SvxGrafFilterToolBoxControl : public SfxToolBoxControl
      56                 :            : {
      57                 :            : public:
      58                 :            : 
      59                 :            :                                 SFX_DECL_TOOLBOX_CONTROL();
      60                 :            : 
      61                 :            :                                 SvxGrafFilterToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
      62                 :            :                                 ~SvxGrafFilterToolBoxControl();
      63                 :            : 
      64                 :            :     virtual void                StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState );
      65                 :            :     virtual SfxPopupWindowType  GetPopupWindowType() const;
      66                 :            :     virtual SfxPopupWindow*     CreatePopupWindow();
      67                 :            : };
      68                 :            : 
      69                 :            : // -------------------------
      70                 :            : // - SvxGrafToolBoxControl -
      71                 :            : // -------------------------
      72                 :            : 
      73                 :            : class SvxGrafToolBoxControl : public SfxToolBoxControl
      74                 :            : {
      75                 :            : public:
      76                 :            :     SvxGrafToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
      77                 :            :     ~SvxGrafToolBoxControl();
      78                 :            : 
      79                 :            :     virtual void        StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState );
      80                 :            :     virtual Window*     CreateItemWindow( Window *pParent );
      81                 :            : };
      82                 :            : 
      83                 :            : // ----------------------------
      84                 :            : // - SvxGrafRedToolBoxControl -
      85                 :            : // ----------------------------
      86                 :            : 
      87         [ #  # ]:          0 : class SVX_DLLPUBLIC SvxGrafRedToolBoxControl : public SvxGrafToolBoxControl
      88                 :            : {
      89                 :            : public:
      90                 :            :                         SFX_DECL_TOOLBOX_CONTROL();
      91                 :            :                         SvxGrafRedToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
      92                 :            : };
      93                 :            : 
      94                 :            : // ------------------------------
      95                 :            : // - SvxGrafGreenToolBoxControl -
      96                 :            : // ------------------------------
      97                 :            : 
      98         [ #  # ]:          0 : class SVX_DLLPUBLIC SvxGrafGreenToolBoxControl : public SvxGrafToolBoxControl
      99                 :            : {
     100                 :            : public:
     101                 :            :                         SFX_DECL_TOOLBOX_CONTROL();
     102                 :            :                         SvxGrafGreenToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
     103                 :            : };
     104                 :            : 
     105                 :            : // -----------------------------
     106                 :            : // - SvxGrafBlueToolBoxControl -
     107                 :            : // -----------------------------
     108                 :            : 
     109         [ #  # ]:          0 : class SVX_DLLPUBLIC SvxGrafBlueToolBoxControl : public SvxGrafToolBoxControl
     110                 :            : {
     111                 :            : public:
     112                 :            :                         SFX_DECL_TOOLBOX_CONTROL();
     113                 :            :                         SvxGrafBlueToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
     114                 :            : };
     115                 :            : 
     116                 :            : // ----------------------------------
     117                 :            : // - SvxGrafLuminanceToolBoxControl -
     118                 :            : // ----------------------------------
     119                 :            : 
     120         [ #  # ]:          0 : class SVX_DLLPUBLIC SvxGrafLuminanceToolBoxControl : public SvxGrafToolBoxControl
     121                 :            : {
     122                 :            : public:
     123                 :            :                         SFX_DECL_TOOLBOX_CONTROL();
     124                 :            :                         SvxGrafLuminanceToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
     125                 :            : };
     126                 :            : 
     127                 :            : // ---------------------------------
     128                 :            : // - SvxGrafContrastToolBoxControl -
     129                 :            : // ---------------------------------
     130                 :            : 
     131         [ #  # ]:          0 : class SVX_DLLPUBLIC SvxGrafContrastToolBoxControl : public SvxGrafToolBoxControl
     132                 :            : {
     133                 :            : public:
     134                 :            :                         SFX_DECL_TOOLBOX_CONTROL();
     135                 :            :                         SvxGrafContrastToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
     136                 :            : };
     137                 :            : 
     138                 :            : // ------------------------------
     139                 :            : // - SvxGrafGammaToolBoxControl -
     140                 :            : // ------------------------------
     141                 :            : 
     142         [ #  # ]:          0 : class SVX_DLLPUBLIC SvxGrafGammaToolBoxControl : public SvxGrafToolBoxControl
     143                 :            : {
     144                 :            : public:
     145                 :            :                         SFX_DECL_TOOLBOX_CONTROL();
     146                 :            :                         SvxGrafGammaToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
     147                 :            : };
     148                 :            : 
     149                 :            : // -------------------------------------
     150                 :            : // - SvxGrafTransparenceToolBoxControl -
     151                 :            : // -------------------------------------
     152                 :            : 
     153         [ #  # ]:          0 : class SVX_DLLPUBLIC SvxGrafTransparenceToolBoxControl : public SvxGrafToolBoxControl
     154                 :            : {
     155                 :            : public:
     156                 :            :                         SFX_DECL_TOOLBOX_CONTROL();
     157                 :            :                         SvxGrafTransparenceToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
     158                 :            : };
     159                 :            : 
     160                 :            : // -----------------------------
     161                 :            : // - SvxGrafModeToolBoxControl -
     162                 :            : // -----------------------------
     163                 :            : 
     164                 :            : class SVX_DLLPUBLIC SvxGrafModeToolBoxControl : public SfxToolBoxControl, public SfxListener
     165                 :            : {
     166                 :            : public:
     167                 :            :                         SFX_DECL_TOOLBOX_CONTROL();
     168                 :            :                         SvxGrafModeToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
     169                 :            :                         ~SvxGrafModeToolBoxControl();
     170                 :            : 
     171                 :            :     virtual void        StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState );
     172                 :            :     virtual Window*     CreateItemWindow( Window *pParent );
     173                 :            : };
     174                 :            : 
     175                 :            : // ---------------------
     176                 :            : // - SvxGrafAttrHelper -
     177                 :            : // ---------------------
     178                 :            : 
     179                 :            : class SdrView;
     180                 :            : class SfxRequest;
     181                 :            : 
     182                 :            : class SVX_DLLPUBLIC SvxGrafAttrHelper
     183                 :            : {
     184                 :            : public:
     185                 :            : 
     186                 :            :     static void     ExecuteGrafAttr( SfxRequest& rReq, SdrView& rView );
     187                 :            :     static void     GetGrafAttrState( SfxItemSet& rSet, SdrView& rView );
     188                 :            : };
     189                 :            : 
     190                 :            : #endif // _SVX_GRAFCTRL_HXX
     191                 :            : 
     192                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10