LCOV - code coverage report
Current view: top level - include/svx - hdft.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 12 0.0 %
Date: 2014-11-03 Functions: 0 12 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_HDFT_HXX
      20             : #define INCLUDED_SVX_HDFT_HXX
      21             : 
      22             : #include <sfx2/tabdlg.hxx>
      23             : 
      24             : #include <vcl/fixed.hxx>
      25             : #include <vcl/field.hxx>
      26             : #include <vcl/group.hxx>
      27             : #include <vcl/layout.hxx>
      28             : 
      29             : #include <svx/pagectrl.hxx>
      30             : #include <svx/svxdllapi.h>
      31             : 
      32             : namespace svx
      33             : {
      34             :     SVX_DLLPUBLIC bool ShowBorderBackgroundDlg( vcl::Window* pParent, SfxItemSet* pBBSet,
      35             :             bool bEnableBackgroundSelector );
      36             : }
      37             : 
      38             : // class  SvxHFPage ------------------------------------------------------
      39             : 
      40             : class SVX_DLLPUBLIC SvxHFPage : public SfxTabPage
      41             : {
      42             :     using TabPage::ActivatePage;
      43             :     using TabPage::DeactivatePage;
      44             : 
      45             : private:
      46             :     //UUUU
      47           0 :     void EnableDrawingLayerFillStyles(bool bNew) { mbEnableDrawingLayerFillStyles = bNew; }
      48             : 
      49             : public:
      50             : 
      51             :     virtual bool    FillItemSet( SfxItemSet* rOutSet ) SAL_OVERRIDE;
      52             :     virtual void    Reset( const SfxItemSet* rSet ) SAL_OVERRIDE;
      53             : 
      54             :     virtual         ~SvxHFPage();
      55             : 
      56           0 :     void DisableDeleteQueryBox() { mbDisableQueryBox = true; }
      57             :     void EnableBackgroundSelector(bool bNew) { mbEnableBackgroundSelector = bNew; }
      58             : 
      59             :     //UUUU
      60             :     virtual void PageCreated(const SfxAllItemSet&) SAL_OVERRIDE;
      61             : 
      62             :     void            EnableDynamicSpacing();
      63             : 
      64             : protected:
      65             :     virtual void    ActivatePage( const SfxItemSet& rSet ) SAL_OVERRIDE;
      66             :     virtual int     DeactivatePage( SfxItemSet* pSet = 0 ) SAL_OVERRIDE;
      67             : 
      68             :     SvxHFPage( vcl::Window* pParent, const SfxItemSet& rSet, sal_uInt16 nSetId );
      69             : 
      70             :     FixedText*       m_pPageLbl;
      71             :     CheckBox*        m_pTurnOnBox;
      72             :     CheckBox*        m_pCntSharedBox;
      73             :     CheckBox*        m_pCntSharedFirstBox;
      74             :     FixedText*       m_pLMLbl;
      75             :     MetricField*     m_pLMEdit;
      76             :     FixedText*       m_pRMLbl;
      77             :     MetricField*     m_pRMEdit;
      78             :     FixedText*       m_pDistFT;
      79             :     MetricField*     m_pDistEdit;
      80             :     CheckBox*        m_pDynSpacingCB;
      81             :     FixedText*       m_pHeightFT;
      82             :     MetricField*     m_pHeightEdit;
      83             :     CheckBox*        m_pHeightDynBtn;
      84             :     SvxPageWindow*   m_pBspWin;
      85             :     PushButton*      m_pBackgroundBtn;
      86             : 
      87             :     sal_uInt16       nId;
      88             :     SfxItemSet*      pBBSet;
      89             :     /// bitfield
      90             :     bool            mbDisableQueryBox : 1;
      91             :     bool            mbEnableBackgroundSelector : 1;
      92             :     bool            mbEnableDrawingLayerFillStyles : 1;
      93             : 
      94             :     void            InitHandler();
      95             :     DECL_LINK( TurnOnHdl, CheckBox*);
      96             :     DECL_LINK(DistModify, void *);
      97             :     DECL_LINK(HeightModify, void *);
      98             :     DECL_LINK(BorderModify, void *);
      99             :     DECL_LINK(BackgroundHdl, void *);
     100             : 
     101             :     void            UpdateExample();
     102             :     DECL_LINK(RangeHdl, void *);
     103             : 
     104             : private:
     105             :     SVX_DLLPRIVATE void         ResetBackground_Impl( const SfxItemSet& rSet );
     106             : };
     107             : 
     108             : // class SvxHeaderPage ---------------------------------------------------
     109             : 
     110           0 : class SVX_DLLPUBLIC SvxHeaderPage : public SvxHFPage
     111             : {
     112             : public:
     113             :     static SfxTabPage*  Create( vcl::Window* pParent, const SfxItemSet* rSet );
     114             :     static const sal_uInt16*      GetRanges();
     115             : 
     116             : private:
     117             :     SvxHeaderPage( vcl::Window* pParent, const SfxItemSet& rSet );
     118             : };
     119             : 
     120             : // class SvxFooterPage ---------------------------------------------------
     121             : 
     122           0 : class SVX_DLLPUBLIC SvxFooterPage : public SvxHFPage
     123             : {
     124             : public:
     125             :     static SfxTabPage*  Create( vcl::Window* pParent, const SfxItemSet* rSet );
     126             :     static const sal_uInt16*      GetRanges();
     127             : 
     128             : private:
     129             :     SVX_DLLPRIVATE SvxFooterPage(   vcl::Window* pParent, const SfxItemSet& rSet );
     130             : };
     131             : 
     132           0 : class SVX_DLLPUBLIC DeleteHeaderDialog : public MessageDialog
     133             : {
     134             : public:
     135           0 :     DeleteHeaderDialog(vcl::Window *pParent)
     136             :         : MessageDialog(pParent, "DeleteHeaderDialog",
     137           0 :             "svx/ui/deleteheaderdialog.ui")
     138             :     {
     139           0 :     }
     140             : };
     141             : 
     142           0 : class SVX_DLLPUBLIC DeleteFooterDialog : public MessageDialog
     143             : {
     144             : public:
     145           0 :     DeleteFooterDialog(vcl::Window *pParent)
     146             :         : MessageDialog(pParent, "DeleteFooterDialog",
     147           0 :             "svx/ui/deletefooterdialog.ui")
     148             :     {
     149           0 :     }
     150             : };
     151             : 
     152             : #endif
     153             : 
     154             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10