LCOV - code coverage report
Current view: top level - sc/source/ui/sidebar - AlignmentPropertyPanel.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_SC_SOURCE_UI_SIDEBAR_ALIGNMENTPROPERTYPANEL_HXX
      20             : #define INCLUDED_SC_SOURCE_UI_SIDEBAR_ALIGNMENTPROPERTYPANEL_HXX
      21             : 
      22             : #include <sfx2/sidebar/ControllerItem.hxx>
      23             : #include <sfx2/sidebar/IContextChangeReceiver.hxx>
      24             : #include <svx/sidebar/PanelLayout.hxx>
      25             : #include <vcl/fixed.hxx>
      26             : #include <editeng/svxenum.hxx>
      27             : 
      28             : class ToolBox;
      29             : class MetricField;
      30             : class MetricBox;
      31             : class CheckBox;
      32             : namespace svx { namespace sidebar { class SidebarDialControl; }}
      33             : 
      34             : namespace sc { namespace sidebar {
      35             : 
      36             : class AlignmentPropertyPanel
      37             : :   public PanelLayout,
      38             :     public ::sfx2::sidebar::IContextChangeReceiver,
      39             :     public ::sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface
      40             : {
      41             : public:
      42             :     static AlignmentPropertyPanel* Create(
      43             :         vcl::Window* pParent,
      44             :         const css::uno::Reference<css::frame::XFrame>& rxFrame,
      45             :         SfxBindings* pBindings);
      46             : 
      47             :     virtual void DataChanged(
      48             :         const DataChangedEvent& rEvent) SAL_OVERRIDE;
      49             : 
      50             :     virtual void HandleContextChange(
      51             :         const ::sfx2::sidebar::EnumContext aContext) 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             : private:
      62             :     //ui controls
      63             :     FixedText*                                  mpFTLeftIndent;
      64             :     MetricField*                                mpMFLeftIndent;
      65             :     CheckBox*                                   mpCBXWrapText;
      66             :     CheckBox*                                   mpCBXMergeCell;
      67             :     FixedText*                                  mpFtRotate;
      68             :     svx::sidebar::SidebarDialControl*           mpCtrlDial;
      69             :     MetricBox*                                  mpMtrAngle;
      70             :     CheckBox*                                   mpCbStacked;
      71             : 
      72             :     ::sfx2::sidebar::ControllerItem             maAlignHorControl;
      73             :     ::sfx2::sidebar::ControllerItem             maLeftIndentControl;
      74             :     ::sfx2::sidebar::ControllerItem             maMergeCellControl;
      75             :     ::sfx2::sidebar::ControllerItem             maWrapTextControl;
      76             :     ::sfx2::sidebar::ControllerItem             maAngleControl;
      77             :     ::sfx2::sidebar::ControllerItem             maStackControl;
      78             : 
      79             :     /// bitfield
      80             :     bool                                        mbMultiDisable : 1;
      81             : 
      82             :     css::uno::Reference<css::frame::XFrame>         mxFrame;
      83             :     ::sfx2::sidebar::EnumContext                maContext;
      84             :     SfxBindings*                                mpBindings;
      85             : 
      86             :     DECL_LINK( MFLeftIndentMdyHdl, void * );
      87             :     DECL_LINK( CBOXMergnCellClkHdl, void * );
      88             :     DECL_LINK( CBOXWrapTextClkHdl, void * );
      89             :     DECL_LINK( AngleModifiedHdl, void * );
      90             :     DECL_LINK( RotationHdl, void * );
      91             :     DECL_LINK( ClickStackHdl, void * );
      92             : 
      93             :     // constructor/destuctor
      94             :     AlignmentPropertyPanel(
      95             :         vcl::Window* pParent,
      96             :         const css::uno::Reference<css::frame::XFrame>& rxFrame,
      97             :         SfxBindings* pBindings);
      98             :     virtual ~AlignmentPropertyPanel();
      99             : 
     100             :     void Initialize();
     101             :     void FormatDegrees(double& dTmp);
     102             : };
     103             : 
     104             : } } // end of namespace ::sc::sidebar
     105             : 
     106             : #endif
     107             : 
     108             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10