LCOV - code coverage report
Current view: top level - svx/source/tbxctrls - extrusioncontrols.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 8 0.0 %
Date: 2012-08-25 Functions: 0 16 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 86 0.0 %

           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                 :            : #ifndef _SVX_EXTRUSION_CONTROLS_HXX
      29                 :            : #define _SVX_EXTRUSION_CONTROLS_HXX
      30                 :            : 
      31                 :            : #include "svx/svxdllapi.h"
      32                 :            : 
      33                 :            : #include <svtools/svtreebx.hxx>
      34                 :            : #include <vcl/button.hxx>
      35                 :            : #include <vcl/dialog.hxx>
      36                 :            : #include <vcl/field.hxx>
      37                 :            : #include <vcl/fixed.hxx>
      38                 :            : 
      39                 :            : #include <svtools/toolbarmenu.hxx>
      40                 :            : #include <svtools/popupwindowcontroller.hxx>
      41                 :            : #include <svtools/popupmenucontrollerbase.hxx>
      42                 :            : 
      43                 :            : class ValueSet;
      44                 :            : 
      45                 :            : //========================================================================
      46                 :            : 
      47                 :            : namespace svx
      48                 :            : {
      49 [ #  # ][ #  # ]:          0 : class ExtrusionDirectionWindow : public svtools::ToolbarMenu
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
           [ #  #  #  # ]
      50                 :            : {
      51                 :            : public:
      52                 :            :     ExtrusionDirectionWindow( svt::ToolboxController& rController, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame, Window* pParentWindow );
      53                 :            : 
      54                 :            :     virtual void SAL_CALL statusChanged( const ::com::sun::star::frame::FeatureStateEvent& Event ) throw ( ::com::sun::star::uno::RuntimeException );
      55                 :            :     virtual void DataChanged( const DataChangedEvent& rDCEvt );
      56                 :            : 
      57                 :            : private:
      58                 :            :     svt::ToolboxController& mrController;
      59                 :            :     ValueSet* mpDirectionSet;
      60                 :            : 
      61                 :            :     Image       maImgDirection[9];
      62                 :            :     Image       maImgPerspective;
      63                 :            :     Image       maImgParallel;
      64                 :            : 
      65                 :            :     const rtl::OUString msExtrusionDirection;
      66                 :            :     const rtl::OUString msExtrusionProjection;
      67                 :            : 
      68                 :            :     DECL_LINK( SelectHdl, void * );
      69                 :            :     void            FillValueSet();
      70                 :            : 
      71                 :            :     void implSetDirection( sal_Int32 nSkew, bool bEnabled = true );
      72                 :            :     void implSetProjection( sal_Int32 nProjection, bool bEnabled = true );
      73                 :            : 
      74                 :            : };
      75                 :            : 
      76                 :            : //========================================================================
      77                 :            : 
      78         [ #  # ]:          0 : class ExtrusionDirectionControl : public svt::PopupWindowController
      79                 :            : {
      80                 :            : public:
      81                 :            :     ExtrusionDirectionControl( const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& rServiceManager );
      82                 :            : 
      83                 :            :     virtual ::Window* createPopupWindow( ::Window* pParent );
      84                 :            : 
      85                 :            :     // XServiceInfo
      86                 :            :     virtual ::rtl::OUString SAL_CALL getImplementationName() throw( ::com::sun::star::uno::RuntimeException );
      87                 :            :     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw( ::com::sun::star::uno::RuntimeException );
      88                 :            : 
      89                 :            :     using svt::PopupWindowController::createPopupWindow;
      90                 :            : };
      91                 :            : 
      92                 :            : //========================================================================
      93                 :            : 
      94 [ #  # ][ #  # ]:          0 : class ExtrusionDepthWindow : public svtools::ToolbarMenu
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
                 [ #  # ]
      95                 :            : {
      96                 :            : private:
      97                 :            :     svt::ToolboxController& mrController;
      98                 :            : 
      99                 :            :     Image maImgDepth0;
     100                 :            :     Image maImgDepth1;
     101                 :            :     Image maImgDepth2;
     102                 :            :     Image maImgDepth3;
     103                 :            :     Image maImgDepth4;
     104                 :            :     Image maImgDepthInfinity;
     105                 :            : 
     106                 :            :     FieldUnit   meUnit;
     107                 :            :     double      mfDepth;
     108                 :            : 
     109                 :            :     const rtl::OUString msExtrusionDepth;
     110                 :            :     const rtl::OUString msMetricUnit;
     111                 :            : 
     112                 :            :     DECL_LINK( SelectHdl, void * );
     113                 :            : 
     114                 :            :     void    implFillStrings( FieldUnit eUnit );
     115                 :            :     void    implSetDepth( double fDepth );
     116                 :            : 
     117                 :            : public:
     118                 :            :     ExtrusionDepthWindow( svt::ToolboxController& rController, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame, Window* pParentWindow );
     119                 :            : 
     120                 :            :     virtual void SAL_CALL statusChanged( const ::com::sun::star::frame::FeatureStateEvent& Event ) throw ( ::com::sun::star::uno::RuntimeException );
     121                 :            :     virtual void DataChanged( const DataChangedEvent& rDCEvt );
     122                 :            : };
     123                 :            : 
     124                 :            : //========================================================================
     125                 :            : 
     126         [ #  # ]:          0 : class ExtrusionDepthController : public svt::PopupWindowController
     127                 :            : {
     128                 :            : public:
     129                 :            :     ExtrusionDepthController( const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& rServiceManager );
     130                 :            : 
     131                 :            :     virtual ::Window* createPopupWindow( ::Window* pParent );
     132                 :            : 
     133                 :            :     // XServiceInfo
     134                 :            :     virtual ::rtl::OUString SAL_CALL getImplementationName() throw( ::com::sun::star::uno::RuntimeException );
     135                 :            :     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw( ::com::sun::star::uno::RuntimeException );
     136                 :            : 
     137                 :            :     using svt::PopupWindowController::createPopupWindow;
     138                 :            : };
     139                 :            : 
     140                 :            : //========================================================================
     141                 :            : 
     142 [ #  # ][ #  # ]:          0 : class ExtrusionLightingWindow : public svtools::ToolbarMenu
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  # ]
         [ #  # ][ #  #  
          #  #  #  #  #  
             #  #  #  #  
                      # ]
     143                 :            : {
     144                 :            : private:
     145                 :            :     svt::ToolboxController& mrController;
     146                 :            :     ValueSet*    mpLightingSet;
     147                 :            : 
     148                 :            :     Image maImgLightingOff[9];
     149                 :            :     Image maImgLightingOn[9];
     150                 :            :     Image maImgLightingPreview[9];
     151                 :            : 
     152                 :            :     Image maImgBright;
     153                 :            :     Image maImgNormal;
     154                 :            :     Image maImgDim;
     155                 :            : 
     156                 :            :     int     mnLevel;
     157                 :            :     bool    mbLevelEnabled;
     158                 :            :     int     mnDirection;
     159                 :            :     bool    mbDirectionEnabled;
     160                 :            : 
     161                 :            :     const rtl::OUString msExtrusionLightingDirection;
     162                 :            :     const rtl::OUString msExtrusionLightingIntensity;
     163                 :            : 
     164                 :            :     void    implSetIntensity( int nLevel, bool bEnabled );
     165                 :            :     void    implSetDirection( int nDirection, bool bEnabled );
     166                 :            : 
     167                 :            :     DECL_LINK( SelectHdl, void * );
     168                 :            : public:
     169                 :            :     ExtrusionLightingWindow( svt::ToolboxController& rController, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame, Window* pParentWindow );
     170                 :            : 
     171                 :            :     virtual void SAL_CALL statusChanged( const ::com::sun::star::frame::FeatureStateEvent& Event ) throw ( ::com::sun::star::uno::RuntimeException );
     172                 :            :     virtual void DataChanged( const DataChangedEvent& rDCEvt );
     173                 :            : };
     174                 :            : 
     175                 :            : //========================================================================
     176                 :            : 
     177         [ #  # ]:          0 : class ExtrusionLightingControl : public svt::PopupWindowController
     178                 :            : {
     179                 :            : public:
     180                 :            :     ExtrusionLightingControl( const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& rServiceManager );
     181                 :            : 
     182                 :            :     virtual ::Window* createPopupWindow( ::Window* pParent );
     183                 :            : 
     184                 :            :     // XServiceInfo
     185                 :            :     virtual ::rtl::OUString SAL_CALL getImplementationName() throw( ::com::sun::star::uno::RuntimeException );
     186                 :            :     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw( ::com::sun::star::uno::RuntimeException );
     187                 :            : 
     188                 :            :     using svt::PopupWindowController::createPopupWindow;
     189                 :            : };
     190                 :            : 
     191                 :            : //========================================================================
     192                 :            : 
     193 [ #  # ][ #  # ]:          0 : class ExtrusionSurfaceWindow : public svtools::ToolbarMenu
         [ #  # ][ #  # ]
                 [ #  # ]
     194                 :            : {
     195                 :            : private:
     196                 :            :     svt::ToolboxController& mrController;
     197                 :            : 
     198                 :            :     Image maImgSurface1;
     199                 :            :     Image maImgSurface2;
     200                 :            :     Image maImgSurface3;
     201                 :            :     Image maImgSurface4;
     202                 :            : 
     203                 :            :     const rtl::OUString msExtrusionSurface;
     204                 :            : 
     205                 :            :     DECL_LINK( SelectHdl, void * );
     206                 :            : 
     207                 :            :     void    implSetSurface( int nSurface, bool bEnabled );
     208                 :            : 
     209                 :            : public:
     210                 :            :     ExtrusionSurfaceWindow( svt::ToolboxController& rController, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame, Window* pParentWindow );
     211                 :            : 
     212                 :            :     virtual void SAL_CALL statusChanged( const ::com::sun::star::frame::FeatureStateEvent& Event ) throw ( ::com::sun::star::uno::RuntimeException );
     213                 :            : };
     214                 :            : 
     215                 :            : //========================================================================
     216                 :            : 
     217         [ #  # ]:          0 : class ExtrusionSurfaceControl : public svt::PopupWindowController
     218                 :            : {
     219                 :            : public:
     220                 :            :     ExtrusionSurfaceControl( const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& rServiceManager );
     221                 :            : 
     222                 :            :     virtual ::Window* createPopupWindow( ::Window* pParent );
     223                 :            : 
     224                 :            :     // XServiceInfo
     225                 :            :     virtual ::rtl::OUString SAL_CALL getImplementationName() throw( ::com::sun::star::uno::RuntimeException );
     226                 :            :     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw( ::com::sun::star::uno::RuntimeException );
     227                 :            : 
     228                 :            :     using svt::PopupWindowController::createPopupWindow;
     229                 :            : };
     230                 :            : 
     231                 :            : //========================================================================
     232                 :            : 
     233                 :            : }
     234                 :            : #endif
     235                 :            : 
     236                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10