LCOV - code coverage report
Current view: top level - chart2/source/controller/dialogs - tp_3D_SceneIllumination.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 1 0.0 %
Date: 2014-11-03 Functions: 0 1 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_CHART2_SOURCE_CONTROLLER_DIALOGS_TP_3D_SCENEILLUMINATION_HXX
      20             : #define INCLUDED_CHART2_SOURCE_CONTROLLER_DIALOGS_TP_3D_SCENEILLUMINATION_HXX
      21             : 
      22             : #include "ModifyListenerCallBack.hxx"
      23             : #include "TimerTriggeredControllerLock.hxx"
      24             : 
      25             : #include <com/sun/star/beans/XPropertySet.hpp>
      26             : 
      27             : #include <vcl/tabpage.hxx>
      28             : #include <vcl/fixed.hxx>
      29             : #include <vcl/button.hxx>
      30             : #include <svx/dlgctrl.hxx>
      31             : #include <svx/dlgctl3d.hxx>
      32             : 
      33             : namespace chart
      34             : {
      35             : 
      36             : class LightButton : public ImageButton
      37             : {
      38             : public:
      39             :     LightButton( vcl::Window* pParent);
      40             :     virtual ~LightButton();
      41             : 
      42             :     void switchLightOn(bool bOn);
      43           0 :     bool isLightOn() const { return m_bLightOn;}
      44             : 
      45             : private:
      46             :     bool m_bLightOn;
      47             : };
      48             : 
      49             : struct LightSourceInfo;
      50             : 
      51             : class ThreeD_SceneIllumination_TabPage : public TabPage
      52             : {
      53             : public:
      54             :     ThreeD_SceneIllumination_TabPage(
      55             :         vcl::Window* pWindow,
      56             :         const ::com::sun::star::uno::Reference<
      57             :             ::com::sun::star::beans::XPropertySet > & xSceneProperties,
      58             :         const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& xChartModel,
      59             :         const XColorListRef &pColorTable );
      60             :     virtual ~ThreeD_SceneIllumination_TabPage();
      61             : 
      62             :     // has to be called in case the dialog was closed with OK
      63             :     void commitPendingChanges();
      64             : 
      65             : private:
      66             :     DECL_LINK( ClickLightSourceButtonHdl, LightButton* );
      67             :     DECL_LINK( SelectColorHdl, ColorLB* );
      68             :     DECL_LINK( ColorDialogHdl, Button* );
      69             :     DECL_LINK( PreviewChangeHdl, void* );
      70             :     DECL_LINK( PreviewSelectHdl, void* );
      71             : 
      72             :     void updatePreview();
      73             : 
      74             : private:
      75             :     DECL_LINK(fillControlsFromModel, void *);
      76             : 
      77             :     void applyLightSourceToModel( sal_uInt32 nLightNumber );
      78             :     void applyLightSourcesToModel();
      79             : 
      80             :     LightButton* m_pBtn_Light1;
      81             :     LightButton* m_pBtn_Light2;
      82             :     LightButton* m_pBtn_Light3;
      83             :     LightButton* m_pBtn_Light4;
      84             :     LightButton* m_pBtn_Light5;
      85             :     LightButton* m_pBtn_Light6;
      86             :     LightButton* m_pBtn_Light7;
      87             :     LightButton* m_pBtn_Light8;
      88             : 
      89             :     ColorLB*     m_pLB_LightSource;
      90             :     PushButton*  m_pBtn_LightSource_Color;
      91             : 
      92             :     ColorLB*     m_pLB_AmbientLight;
      93             :     PushButton*  m_pBtn_AmbientLight_Color;
      94             : 
      95             :     SvxLightCtl3D*   m_pCtl_Preview;
      96             : 
      97             :     LightSourceInfo* m_pLightSourceInfoList;
      98             : 
      99             :     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > m_xSceneProperties;
     100             : 
     101             :     TimerTriggeredControllerLock    m_aTimerTriggeredControllerLock;
     102             : 
     103             :     bool            m_bInCommitToModel;
     104             : 
     105             :     ModifyListenerCallBack m_aModelChangeListener;
     106             :     ::com::sun::star::uno::Reference<
     107             :         ::com::sun::star::frame::XModel >       m_xChartModel;
     108             : };
     109             : 
     110             : } //namespace chart
     111             : 
     112             : #endif
     113             : 
     114             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10