LCOV - code coverage report
Current view: top level - sc/source/ui/sidebar - AlignmentPropertyPanel.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_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 VclPtr<vcl::Window> 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& rContext) 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             :     AlignmentPropertyPanel(
      63             :         vcl::Window* pParent,
      64             :         const css::uno::Reference<css::frame::XFrame>& rxFrame,
      65             :         SfxBindings* pBindings);
      66             :     virtual ~AlignmentPropertyPanel();
      67             :     virtual void dispose() SAL_OVERRIDE;
      68             : 
      69             : private:
      70             :     //ui controls
      71             :     VclPtr<FixedText>                                  mpFTLeftIndent;
      72             :     VclPtr<MetricField>                                mpMFLeftIndent;
      73             :     VclPtr<CheckBox>                                   mpCBXWrapText;
      74             :     VclPtr<CheckBox>                                   mpCBXMergeCell;
      75             :     VclPtr<FixedText>                                  mpFtRotate;
      76             :     VclPtr<MetricBox>                                  mpMtrAngle;
      77             : 
      78             :     ::sfx2::sidebar::ControllerItem             maAlignHorControl;
      79             :     ::sfx2::sidebar::ControllerItem             maLeftIndentControl;
      80             :     ::sfx2::sidebar::ControllerItem             maMergeCellControl;
      81             :     ::sfx2::sidebar::ControllerItem             maWrapTextControl;
      82             :     ::sfx2::sidebar::ControllerItem             maAngleControl;
      83             : 
      84             :     /// bitfield
      85             :     bool                                        mbMultiDisable : 1;
      86             : 
      87             :     css::uno::Reference<css::frame::XFrame>         mxFrame;
      88             :     ::sfx2::sidebar::EnumContext                maContext;
      89             :     SfxBindings*                                mpBindings;
      90             : 
      91             :     DECL_LINK( MFLeftIndentMdyHdl, void * );
      92             :     DECL_LINK( CBOXMergnCellClkHdl, void * );
      93             :     DECL_LINK( CBOXWrapTextClkHdl, void * );
      94             :     DECL_LINK( AngleModifiedHdl, void * );
      95             :     DECL_LINK( RotationHdl, void * );
      96             :     DECL_LINK( ClickStackHdl, void * );
      97             : 
      98             :     void Initialize();
      99             :     static void FormatDegrees(double& dTmp);
     100             : };
     101             : 
     102             : } } // end of namespace ::sc::sidebar
     103             : 
     104             : #endif
     105             : 
     106             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11