LCOV - code coverage report
Current view: top level - svx/source/sidebar/graphic - GraphicPropertyPanel.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 1 0.0 %
Date: 2015-06-13 12:38:46 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_SVX_SOURCE_SIDEBAR_GRAPHIC_GRAPHICPROPERTYPANEL_HXX
      20             : #define INCLUDED_SVX_SOURCE_SIDEBAR_GRAPHIC_GRAPHICPROPERTYPANEL_HXX
      21             : 
      22             : #include <vcl/ctrl.hxx>
      23             : #include <sfx2/sidebar/SidebarPanelBase.hxx>
      24             : #include <sfx2/sidebar/ControllerItem.hxx>
      25             : #include <svx/sidebar/PanelLayout.hxx>
      26             : #include <vcl/fixed.hxx>
      27             : #include <boost/scoped_ptr.hpp>
      28             : 
      29             : class FixedText;
      30             : class MetricField;
      31             : class ListBox;
      32             : class FloatingWindow;
      33             : 
      34             : 
      35             : namespace svx { namespace sidebar {
      36             : 
      37             : class GraphicPropertyPanel
      38             : :   public PanelLayout,
      39             :     public ::sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface
      40             : {
      41             : public:
      42             :     virtual ~GraphicPropertyPanel();
      43             :     virtual void dispose() SAL_OVERRIDE;
      44             : 
      45             :     static VclPtr<vcl::Window> Create(
      46             :         vcl::Window* pParent,
      47             :         const css::uno::Reference<css::frame::XFrame>& rxFrame,
      48             :         SfxBindings* pBindings);
      49             : 
      50             :     virtual void DataChanged(
      51             :         const DataChangedEvent& rEvent) SAL_OVERRIDE;
      52             : 
      53             :     virtual void NotifyItemUpdate(
      54             :         const sal_uInt16 nSId,
      55             :         const SfxItemState eState,
      56             :         const SfxPoolItem* pState,
      57             :         const bool bIsEnabled) SAL_OVERRIDE;
      58             : 
      59           0 :     SfxBindings* GetBindings() { return mpBindings;}
      60             : 
      61             :     // constructor/destuctor
      62             :     GraphicPropertyPanel(
      63             :         vcl::Window* pParent,
      64             :         const css::uno::Reference<css::frame::XFrame>& rxFrame,
      65             :         SfxBindings* pBindings);
      66             : 
      67             : private:
      68             :     //ui controls
      69             :     VclPtr<MetricField>                                        mpMtrBrightness;
      70             :     VclPtr<MetricField>                                        mpMtrContrast;
      71             :     VclPtr<ListBox>                                            mpLBColorMode;
      72             :     VclPtr<MetricField>                                        mpMtrTrans;
      73             :     VclPtr<MetricField>                                        mpMtrRed;
      74             :     VclPtr<MetricField>                                        mpMtrGreen;
      75             :     VclPtr<MetricField>                                        mpMtrBlue;
      76             :     VclPtr<MetricField>                                        mpMtrGamma;
      77             : 
      78             :     ::sfx2::sidebar::ControllerItem                     maBrightControl;
      79             :     ::sfx2::sidebar::ControllerItem                     maContrastControl;
      80             :     ::sfx2::sidebar::ControllerItem                     maTransparenceControl;
      81             :     ::sfx2::sidebar::ControllerItem                     maRedControl;
      82             :     ::sfx2::sidebar::ControllerItem                     maGreenControl;
      83             :     ::sfx2::sidebar::ControllerItem                     maBlueControl;
      84             :     ::sfx2::sidebar::ControllerItem                     maGammaControl;
      85             :     ::sfx2::sidebar::ControllerItem                     maModeControl;
      86             : 
      87             :     OUString                                            msNormal;
      88             :     OUString                                            msBW;
      89             :     OUString                                            msGray;
      90             :     OUString                                            msWater;
      91             : 
      92             :     css::uno::Reference<css::frame::XFrame>                 mxFrame;
      93             :     SfxBindings*                                        mpBindings;
      94             : 
      95             :     DECL_LINK( ModifyBrightnessHdl, void * );
      96             :     DECL_LINK( ModifyContrastHdl, void * );
      97             :     DECL_LINK( ModifyTransHdl, void * );
      98             :     DECL_LINK( ClickColorModeHdl, void * );
      99             :     DECL_LINK( ImplPopupModeEndHdl, FloatingWindow* );
     100             :     DECL_LINK( RedHdl, void*);
     101             :     DECL_LINK( GreenHdl, void*);
     102             :     DECL_LINK( BlueHdl, void*);
     103             :     DECL_LINK( GammaHdl, void*);
     104             : 
     105             :     static void SetupIcons();
     106             :     void Initialize();
     107             : };
     108             : 
     109             : 
     110             : } } // end of namespace svx::sidebar
     111             : 
     112             : #endif
     113             : 
     114             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11