LCOV - code coverage report
Current view: top level - libreoffice/sw/source/ui/inc - wrap.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 4 0.0 %
Date: 2012-12-27 Functions: 0 3 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 _WRAP_HXX
      20             : #define _WRAP_HXX
      21             : 
      22             : #include <sfx2/tabdlg.hxx>
      23             : #include <sfx2/basedlgs.hxx>
      24             : 
      25             : #include <vcl/button.hxx>
      26             : 
      27             : #include <vcl/button.hxx>
      28             : 
      29             : #include <vcl/fixed.hxx>
      30             : 
      31             : #include <vcl/field.hxx>
      32             : 
      33             : class Window;
      34             : class SfxItemSet;
      35             : class SwWrtShell;
      36             : 
      37             : class SwWrapDlg : public SfxSingleTabDialog
      38             : {
      39             :     SwWrtShell*         pWrtShell;
      40             : 
      41             : public:
      42             :      SwWrapDlg(Window* pParent, SfxItemSet& rSet, SwWrtShell* pSh, sal_Bool bDrawMode);
      43             :     ~SwWrapDlg();
      44             : 
      45             :     inline SwWrtShell*  GetWrtShell()   { return pWrtShell; }
      46             : };
      47             : 
      48             : 
      49             : /*--------------------------------------------------------------------
      50             :     Description:    circulation TabPage
      51             :  --------------------------------------------------------------------*/
      52             : 
      53             : class SwWrapTabPage: public SfxTabPage
      54             : {
      55             :     // WRAPPING
      56             :     FixedLine           aWrapFLC;
      57             :     ImageRadioButton    aNoWrapRB;
      58             :     ImageRadioButton    aWrapLeftRB;
      59             :     ImageRadioButton    aWrapRightRB;
      60             :     ImageRadioButton    aWrapParallelRB;
      61             :     ImageRadioButton    aWrapThroughRB;
      62             :     ImageRadioButton    aIdealWrapRB;
      63             : 
      64             :     // MARGIN
      65             :     FixedLine           aMarginFL;
      66             :     FixedText           aLeftMarginFT;
      67             :     MetricField         aLeftMarginED;
      68             :     FixedText           aRightMarginFT;
      69             :     MetricField         aRightMarginED;
      70             :     FixedText           aTopMarginFT;
      71             :     MetricField         aTopMarginED;
      72             :     FixedText           aBottomMarginFT;
      73             :     MetricField         aBottomMarginED;
      74             : 
      75             :     // OPTIONS
      76             :     FixedLine           aOptionsSepFL;
      77             :     FixedLine           aOptionsFL;
      78             :     CheckBox            aWrapAnchorOnlyCB;
      79             :     CheckBox            aWrapTransparentCB;
      80             :     CheckBox            aWrapOutlineCB;
      81             :     CheckBox            aWrapOutsideCB;
      82             : 
      83             :     ImageList           aWrapIL;
      84             :     ImageList           aWrapILH;
      85             : 
      86             :     sal_uInt16              nOldLeftMargin;
      87             :     sal_uInt16              nOldRightMargin;
      88             :     sal_uInt16              nOldUpperMargin;
      89             :     sal_uInt16              nOldLowerMargin;
      90             : 
      91             :     RndStdIds           nAnchorId;
      92             :     sal_uInt16              nHtmlMode;
      93             : 
      94             :     Size aFrmSize;
      95             :     SwWrtShell*         pWrtSh;
      96             : 
      97             :     sal_Bool bFormat;
      98             :     sal_Bool bNew;
      99             :     sal_Bool bHtmlMode;
     100             :     sal_Bool bDrawMode;
     101             :     sal_Bool bContourImage;
     102             : 
     103             :     SwWrapTabPage(Window *pParent, const SfxItemSet &rSet);
     104             :     ~SwWrapTabPage();
     105             : 
     106             :     void            ApplyImageList();
     107             :     void            EnableModes(const SfxItemSet& rSet);
     108             :     virtual void    ActivatePage(const SfxItemSet& rSet);
     109             :     virtual int     DeactivatePage(SfxItemSet *pSet);
     110             :     virtual void    DataChanged( const DataChangedEvent& rDCEvt );
     111             : 
     112             :     DECL_LINK( RangeModifyHdl, MetricField * );
     113             :     DECL_LINK( WrapTypeHdl, ImageRadioButton * );
     114             :     DECL_LINK(ContourHdl, void *);
     115             : 
     116             :     using SfxTabPage::ActivatePage;
     117             :     using SfxTabPage::DeactivatePage;
     118             : 
     119             : public:
     120             : 
     121             :     static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet);
     122             : 
     123             :     virtual sal_Bool    FillItemSet(SfxItemSet &rSet);
     124             :     virtual void    Reset(const SfxItemSet &rSet);
     125             : 
     126             :     static sal_uInt16*  GetRanges();
     127           0 :     inline void     SetNewFrame(sal_Bool bNewFrame) { bNew = bNewFrame; }
     128           0 :     inline void     SetFormatUsed(sal_Bool bFmt, sal_Bool bDrw) { bFormat = bFmt;
     129           0 :                                                             bDrawMode = bDrw; }
     130           0 :     inline void     SetShell(SwWrtShell* pSh) { pWrtSh = pSh; }
     131             : };
     132             : 
     133             : #endif
     134             : 
     135             : 
     136             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10