LCOV - code coverage report
Current view: top level - sw/source/uibase/inc - wrap.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 5 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 6 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_SW_SOURCE_UIBASE_INC_WRAP_HXX
      20             : #define INCLUDED_SW_SOURCE_UIBASE_INC_WRAP_HXX
      21             : 
      22             : #include <sfx2/tabdlg.hxx>
      23             : #include <sfx2/basedlgs.hxx>
      24             : #include <vcl/button.hxx>
      25             : #include <vcl/fixed.hxx>
      26             : #include <vcl/field.hxx>
      27             : 
      28             : namespace vcl { class Window; }
      29             : class SfxItemSet;
      30             : class SwWrtShell;
      31             : 
      32           0 : class SwWrapDlg : public SfxSingleTabDialog
      33             : {
      34             :     SwWrtShell*         pWrtShell;
      35             : 
      36             : public:
      37             :     SwWrapDlg(vcl::Window* pParent, SfxItemSet& rSet, SwWrtShell* pSh, bool bDrawMode);
      38             : 
      39             :     SwWrtShell*  GetWrtShell()   { return pWrtShell; }
      40             : };
      41             : 
      42             : // circulation TabPage
      43             : class SwWrapTabPage: public SfxTabPage
      44             : {
      45             :     // WRAPPING
      46             :     VclPtr<RadioButton>   m_pNoWrapRB;
      47             :     VclPtr<RadioButton>   m_pWrapLeftRB;
      48             :     VclPtr<RadioButton>   m_pWrapRightRB;
      49             :     VclPtr<RadioButton>   m_pWrapParallelRB;
      50             :     VclPtr<RadioButton>   m_pWrapThroughRB;
      51             :     VclPtr<RadioButton>   m_pIdealWrapRB;
      52             : 
      53             :     // MARGIN
      54             :     VclPtr<MetricField>   m_pLeftMarginED;
      55             :     VclPtr<MetricField>   m_pRightMarginED;
      56             :     VclPtr<MetricField>   m_pTopMarginED;
      57             :     VclPtr<MetricField>   m_pBottomMarginED;
      58             : 
      59             :     // OPTIONS
      60             :     VclPtr<CheckBox>      m_pWrapAnchorOnlyCB;
      61             :     VclPtr<CheckBox>      m_pWrapTransparentCB;
      62             :     VclPtr<CheckBox>      m_pWrapOutlineCB;
      63             :     VclPtr<CheckBox>      m_pWrapOutsideCB;
      64             : 
      65             :     sal_uInt16              m_nOldLeftMargin;
      66             :     sal_uInt16              m_nOldRightMargin;
      67             :     sal_uInt16              m_nOldUpperMargin;
      68             :     sal_uInt16              m_nOldLowerMargin;
      69             : 
      70             :     RndStdIds           m_nAnchorId;
      71             :     sal_uInt16              m_nHtmlMode;
      72             : 
      73             :     Size m_aFrmSize;
      74             :     SwWrtShell*         m_pWrtSh;
      75             : 
      76             :     bool m_bFormat;
      77             :     bool m_bNew;
      78             :     bool m_bHtmlMode;
      79             :     bool m_bDrawMode;
      80             :     bool m_bContourImage;
      81             : 
      82             :     virtual ~SwWrapTabPage();
      83             :     virtual void dispose() SAL_OVERRIDE;
      84             : 
      85             :     void            ApplyImageList();
      86             :     void            EnableModes(const SfxItemSet& rSet);
      87             :     virtual void    ActivatePage(const SfxItemSet& rSet) SAL_OVERRIDE;
      88             :     virtual sfxpg   DeactivatePage(SfxItemSet *pSet) SAL_OVERRIDE;
      89             :     virtual void    DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE;
      90             : 
      91             :     DECL_LINK( RangeModifyHdl, MetricField * );
      92             :     DECL_LINK( WrapTypeHdl, RadioButton * );
      93             :     DECL_LINK(ContourHdl, void *);
      94             : 
      95             :     using SfxTabPage::ActivatePage;
      96             :     using SfxTabPage::DeactivatePage;
      97             : 
      98             :     static const sal_uInt16 m_aWrapPageRg[];
      99             : 
     100             : public:
     101             :     SwWrapTabPage(vcl::Window *pParent, const SfxItemSet &rSet);
     102             : 
     103             :     static VclPtr<SfxTabPage> Create(vcl::Window *pParent, const SfxItemSet *rSet);
     104             : 
     105             :     virtual bool    FillItemSet(SfxItemSet *rSet) SAL_OVERRIDE;
     106             :     virtual void    Reset(const SfxItemSet *rSet) SAL_OVERRIDE;
     107             : 
     108           0 :     static const sal_uInt16* GetRanges() { return m_aWrapPageRg; }
     109           0 :     inline void     SetNewFrame(bool bNewFrame) { m_bNew = bNewFrame; }
     110           0 :     inline void     SetFormatUsed(bool bFormat, bool bDrawMode) { m_bFormat = bFormat; m_bDrawMode = bDrawMode; }
     111           0 :     inline void     SetShell(SwWrtShell* pSh) { m_pWrtSh = pSh; }
     112             : };
     113             : 
     114             : #endif
     115             : 
     116             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11