LCOV - code coverage report
Current view: top level - include/svx - fontwork.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 2 0.0 %
Date: 2014-11-03 Functions: 0 4 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_FONTWORK_HXX
      20             : #define INCLUDED_SVX_FONTWORK_HXX
      21             : 
      22             : #include <vcl/toolbox.hxx>
      23             : #include <vcl/fixed.hxx>
      24             : #include <svtools/valueset.hxx>
      25             : #include <sfx2/dockwin.hxx>
      26             : #include <sfx2/ctrlitem.hxx>
      27             : #include <svx/xenum.hxx>
      28             : #include <svx/dlgctrl.hxx>
      29             : #include <svx/svxdllapi.h>
      30             : #include <svx/xtextit0.hxx>
      31             : 
      32             : // forward ---------------------------------------------------------------
      33             : 
      34             : class SdrView;
      35             : class SdrPageView;
      36             : class SdrObject;
      37             : 
      38             : class XFormTextAdjustItem;
      39             : class XFormTextDistanceItem;
      40             : class XFormTextStartItem;
      41             : class XFormTextMirrorItem;
      42             : class XFormTextHideFormItem;
      43             : class XFormTextOutlineItem;
      44             : class XFormTextShadowItem;
      45             : class XFormTextShadowColorItem;
      46             : class XFormTextShadowXValItem;
      47             : class XFormTextShadowYValItem;
      48             : 
      49             : /*************************************************************************
      50             : |*
      51             : |* ControllerItem for Fontwork
      52             : |*
      53             : \************************************************************************/
      54             : 
      55             : class SvxFontWorkDialog;
      56             : 
      57           0 : class SvxFontWorkControllerItem : public SfxControllerItem
      58             : {
      59             :     SvxFontWorkDialog  &rFontWorkDlg;
      60             : 
      61             : protected:
      62             :     virtual void StateChanged(sal_uInt16 nSID, SfxItemState eState,
      63             :                               const SfxPoolItem* pState) SAL_OVERRIDE;
      64             : 
      65             : public:
      66             :     SvxFontWorkControllerItem(sal_uInt16 nId, SvxFontWorkDialog&, SfxBindings&);
      67             : };
      68             : 
      69             : /*************************************************************************
      70             : |*
      71             : |* Derived from SfxChildWindow as "container" for fontwork dialog
      72             : |*
      73             : \************************************************************************/
      74             : 
      75           0 : class SVX_DLLPUBLIC SvxFontWorkChildWindow : public SfxChildWindow
      76             : {
      77             :  public:
      78             :     SvxFontWorkChildWindow(vcl::Window*, sal_uInt16, SfxBindings*, SfxChildWinInfo*);
      79             :     SFX_DECL_CHILDWINDOW_WITHID(SvxFontWorkChildWindow);
      80             : };
      81             : 
      82             : /*************************************************************************
      83             : |*
      84             : |* Floating window for setting attributes of text effects
      85             : |*
      86             : \************************************************************************/
      87             : 
      88             : class SVX_DLLPUBLIC SvxFontWorkDialog : public SfxDockingWindow
      89             : {
      90             : #define CONTROLLER_COUNT 11
      91             : 
      92             :     SvxFontWorkControllerItem* pCtrlItems[CONTROLLER_COUNT];
      93             : 
      94             :     ToolBox         aTbxStyle;
      95             :     ToolBox         aTbxAdjust;
      96             : 
      97             :     FixedImage      aFbDistance;
      98             :     MetricField     aMtrFldDistance;
      99             :     FixedImage      aFbTextStart;
     100             :     MetricField     aMtrFldTextStart;
     101             : 
     102             :     ToolBox         aTbxShadow;
     103             : 
     104             :     FixedImage      aFbShadowX;
     105             :     MetricField     aMtrFldShadowX;
     106             :     FixedImage      aFbShadowY;
     107             :     MetricField     aMtrFldShadowY;
     108             : 
     109             :     ColorLB         aShadowColorLB;
     110             : 
     111             :     SfxBindings&    rBindings;
     112             :     Timer           aInputTimer;
     113             : 
     114             :     sal_uInt16          nLastStyleTbxId;
     115             :     sal_uInt16          nLastAdjustTbxId;
     116             :     sal_uInt16          nLastShadowTbxId;
     117             :     long            nSaveShadowX;
     118             :     long            nSaveShadowY;
     119             :     long            nSaveShadowAngle;
     120             :     long            nSaveShadowSize;
     121             : 
     122             :     ImageList       maImageList;
     123             : 
     124             :     XColorListRef   pColorList;
     125             : 
     126             :  friend class SvxFontWorkChildWindow;
     127             :  friend class SvxFontWorkControllerItem;
     128             : 
     129             :     DECL_LINK( SelectStyleHdl_Impl, void * );
     130             :     DECL_LINK( SelectAdjustHdl_Impl, void * );
     131             :     DECL_LINK( SelectShadowHdl_Impl, void * );
     132             : 
     133             :     DECL_LINK( ModifyInputHdl_Impl, void * );
     134             :     DECL_LINK( InputTimoutHdl_Impl, void * );
     135             : 
     136             :     DECL_LINK( ColorSelectHdl_Impl, void * );
     137             : 
     138             :     void SetStyle_Impl(const XFormTextStyleItem*);
     139             :     void SetAdjust_Impl(const XFormTextAdjustItem*);
     140             :     void SetDistance_Impl(const XFormTextDistanceItem*);
     141             :     void SetStart_Impl(const XFormTextStartItem*);
     142             :     void SetMirror_Impl(const XFormTextMirrorItem*);
     143             :     void SetShowForm_Impl(const XFormTextHideFormItem*);
     144             :     void SetOutline_Impl(const XFormTextOutlineItem*);
     145             :     void SetShadow_Impl(const XFormTextShadowItem*, bool bRestoreValues = false);
     146             :     void SetShadowColor_Impl(const XFormTextShadowColorItem*);
     147             :     void SetShadowXVal_Impl(const XFormTextShadowXValItem*);
     148             :     void SetShadowYVal_Impl(const XFormTextShadowYValItem*);
     149             : 
     150             :     virtual void DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE;
     151             :     void ApplyImageList();
     152             : 
     153             :  protected:
     154             :     virtual void    Zoom();
     155             :     virtual SfxChildAlignment CheckAlignment( SfxChildAlignment eActAlign,
     156             :                                               SfxChildAlignment eAlign ) SAL_OVERRIDE;
     157             : 
     158             :  public:
     159             :     SvxFontWorkDialog(  SfxBindings *pBindinx,
     160             :                         SfxChildWindow *pCW,
     161             :                         vcl::Window* pParent,
     162             :                         const ResId& rResId );
     163             :     virtual ~SvxFontWorkDialog();
     164             : 
     165             :     void SetColorList(const XColorListRef &pTable);
     166             :     void SetActive(bool bActivate = true);
     167             : };
     168             : 
     169             : #endif // INCLUDED_SVX_FONTWORK_HXX
     170             : 
     171             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10