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

Generated by: LCOV version 1.10