LCOV - code coverage report
Current view: top level - include/svx - hdft.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 14 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 14 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             :     virtual void    dispose() SAL_OVERRIDE;
      56             : 
      57           0 :     void DisableDeleteQueryBox() { mbDisableQueryBox = true; }
      58             :     void EnableBackgroundSelector(bool bNew) { mbEnableBackgroundSelector = bNew; }
      59             : 
      60             :     //UUUU
      61             :     virtual void PageCreated(const SfxAllItemSet&) SAL_OVERRIDE;
      62             : 
      63             :     void            EnableDynamicSpacing();
      64             : 
      65             : protected:
      66             :     static const sal_uInt16 pRanges[];
      67             : 
      68             :     virtual void    ActivatePage( const SfxItemSet& rSet ) SAL_OVERRIDE;
      69             :     virtual sfxpg   DeactivatePage( SfxItemSet* pSet = 0 ) SAL_OVERRIDE;
      70             : 
      71             :     SvxHFPage( vcl::Window* pParent, const SfxItemSet& rSet, sal_uInt16 nSetId );
      72             : 
      73             :     VclPtr<FixedText>       m_pPageLbl;
      74             :     VclPtr<CheckBox>        m_pTurnOnBox;
      75             :     VclPtr<CheckBox>        m_pCntSharedBox;
      76             :     VclPtr<CheckBox>        m_pCntSharedFirstBox;
      77             :     VclPtr<FixedText>       m_pLMLbl;
      78             :     VclPtr<MetricField>     m_pLMEdit;
      79             :     VclPtr<FixedText>       m_pRMLbl;
      80             :     VclPtr<MetricField>     m_pRMEdit;
      81             :     VclPtr<FixedText>       m_pDistFT;
      82             :     VclPtr<MetricField>     m_pDistEdit;
      83             :     VclPtr<CheckBox>        m_pDynSpacingCB;
      84             :     VclPtr<FixedText>       m_pHeightFT;
      85             :     VclPtr<MetricField>     m_pHeightEdit;
      86             :     VclPtr<CheckBox>        m_pHeightDynBtn;
      87             :     VclPtr<SvxPageWindow>   m_pBspWin;
      88             :     VclPtr<PushButton>      m_pBackgroundBtn;
      89             : 
      90             :     sal_uInt16       nId;
      91             :     SfxItemSet*      pBBSet;
      92             :     /// bitfield
      93             :     bool            mbDisableQueryBox : 1;
      94             :     bool            mbEnableBackgroundSelector : 1;
      95             :     bool            mbEnableDrawingLayerFillStyles : 1;
      96             : 
      97             :     void            InitHandler();
      98             :     DECL_LINK( TurnOnHdl, CheckBox*);
      99             :     DECL_LINK(DistModify, void *);
     100             :     DECL_LINK(HeightModify, void *);
     101             :     DECL_LINK(BorderModify, void *);
     102             :     DECL_LINK(BackgroundHdl, void *);
     103             : 
     104             :     void            UpdateExample();
     105             :     DECL_LINK(RangeHdl, void *);
     106             : 
     107             : private:
     108             :     SVX_DLLPRIVATE void         ResetBackground_Impl( const SfxItemSet& rSet );
     109             : };
     110             : 
     111             : // class SvxHeaderPage ---------------------------------------------------
     112             : 
     113           0 : class SVX_DLLPUBLIC SvxHeaderPage : public SvxHFPage
     114             : {
     115             : public:
     116             :     static VclPtr<SfxTabPage> Create( vcl::Window* pParent, const SfxItemSet* rSet );
     117             :     // returns the Which values to the range
     118           0 :     static const sal_uInt16*  GetRanges() { return pRanges; }
     119             :     SVX_DLLPRIVATE SvxHeaderPage( vcl::Window* pParent, const SfxItemSet& rSet );
     120             : };
     121             : 
     122             : // class SvxFooterPage ---------------------------------------------------
     123             : 
     124           0 : class SVX_DLLPUBLIC SvxFooterPage : public SvxHFPage
     125             : {
     126             : public:
     127             :     static VclPtr<SfxTabPage> Create( vcl::Window* pParent, const SfxItemSet* rSet );
     128           0 :     static const sal_uInt16*  GetRanges() { return pRanges; }
     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.11