LCOV - code coverage report
Current view: top level - sw/source/core/uibase/inc - cfgitems.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 9 0.0 %
Date: 2014-04-14 Functions: 0 13 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_UI_INC_CFGITEMS_HXX
      20             : #define INCLUDED_SW_SOURCE_UI_INC_CFGITEMS_HXX
      21             : 
      22             : #include <tools/color.hxx>
      23             : #include <svl/poolitem.hxx>
      24             : #include "swdllapi.h"
      25             : #include <printdata.hxx>
      26             : 
      27             : #include <cmdid.h>
      28             : 
      29             : class SwModule;
      30             : #ifdef DBG_UTIL
      31             : class SwTestTabPage;
      32             : #endif
      33             : class SwAddPrinterTabPage;
      34             : class SfxPrinter;
      35             : class SwViewShell;
      36             : class SwViewOption;
      37             : class SwContentOptPage;
      38             : class SwShdwCrsrOptionsTabPage;
      39             : 
      40             : SfxPrinter* GetPrt( SwViewShell* );
      41             : void        SetPrt( SfxPrinter* );
      42             : 
      43             : /*--------OS 12.01.95 -----------------------------------
      44             : Item for settings dialog - document view
      45             : --------------------------------------------------------- */
      46           0 : class SW_DLLPUBLIC SwDocDisplayItem : public SfxPoolItem
      47             : {
      48             :     friend class SwShdwCrsrOptionsTabPage;
      49             :     friend class SwModule;
      50             : 
      51             :     sal_Bool bParagraphEnd      :1;
      52             :     sal_Bool bTab               :1;
      53             :     sal_Bool bSpace             :1;
      54             :     sal_Bool bNonbreakingSpace  :1;
      55             :     sal_Bool bSoftHyphen        :1;
      56             :     sal_Bool bCharHiddenText    :1;
      57             :     sal_Bool bFldHiddenText     :1;
      58             :     sal_Bool bManualBreak       :1;
      59             :     sal_Bool bShowHiddenPara    :1;
      60             : 
      61             :     Color aIndexBackgrndCol;
      62             : 
      63             : public:
      64             :                                 TYPEINFO_OVERRIDE();
      65             :                                 SwDocDisplayItem( sal_uInt16 nWhich = FN_PARAM_DOCDISP );
      66             :                                 SwDocDisplayItem(
      67             :                                     const SwDocDisplayItem& rSwDocDisplayItem );
      68             :                                 SwDocDisplayItem( const SwViewOption& rVOpt,
      69             :                                                                 sal_uInt16 nWhich );
      70             : 
      71             :     virtual SfxPoolItem*        Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE;
      72             :     virtual bool                operator==( const SfxPoolItem& ) const SAL_OVERRIDE;
      73             :     void                        operator=( const SwDocDisplayItem& );
      74             :     void                        FillViewOptions( SwViewOption& rVOpt) const;
      75             : };
      76             : 
      77             : /*--------OS 12.01.95 -----------------------------------
      78             : Item for settings dialog, element page
      79             : --------------------------------------------------------- */
      80           0 : class SW_DLLPUBLIC SwElemItem : public SfxPoolItem
      81             : {
      82             :     //view
      83             :     bool bHorzScrollbar :1;
      84             :     bool bVertScrollbar :1;
      85             :     bool bAnyRuler : 1;
      86             :     bool bHorzRuler     :1;
      87             :     bool bVertRuler     :1;
      88             :     bool bVertRulerRight:1;
      89             :     bool bSmoothScroll  :1;
      90             :     //visual aids
      91             :     bool bCrosshair     :1;
      92             :     //display
      93             :     bool bTable             :1;
      94             :     bool bGraphic           :1;
      95             :     bool bDrawing           :1;
      96             :     bool bFieldName         :1;
      97             :     bool bNotes             :1;
      98             : 
      99             :     friend class SwContentOptPage;
     100             : 
     101             : public:
     102             :                             TYPEINFO_OVERRIDE();
     103             :                             SwElemItem( sal_uInt16 nWhich = FN_PARAM_ELEM );
     104             :                             SwElemItem(const SwElemItem& rElemItem);
     105             :                             SwElemItem(const SwViewOption& rVOpt, sal_uInt16 nWhich);
     106             : 
     107             :     virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE;
     108             :     virtual bool            operator==( const SfxPoolItem& ) const SAL_OVERRIDE;
     109             :     void                    operator=( const SwElemItem& );
     110             : 
     111             :     void                    FillViewOptions( SwViewOption& rVOpt) const;
     112             : 
     113             : };
     114             : 
     115             : /*--------OS 12.01.95 -----------------------------------
     116             : Item for settings dialog - printer/add ons
     117             : --------------------------------------------------------- */
     118           0 : class SW_DLLPUBLIC SwAddPrinterItem : public SfxPoolItem, public SwPrintData
     119             : {
     120             :     friend class SwAddPrinterTabPage;
     121             : 
     122             :     using  SwPrintData::operator ==;
     123             : 
     124             : public:
     125             :     TYPEINFO_OVERRIDE();
     126             :     SwAddPrinterItem( sal_uInt16 nWhich = FN_PARAM_ADDPRINTER );
     127             :     SwAddPrinterItem( sal_uInt16 nWhich, const SwPrintData& rPrtData );
     128             :     SwAddPrinterItem( const SwAddPrinterItem& rAddPrinterItem);
     129             : 
     130             :     virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE;
     131             : 
     132             :     virtual bool         operator==( const SfxPoolItem& ) const SAL_OVERRIDE;
     133             : 
     134           0 :     const OUString &GetFax() const              { return sFaxName; }
     135             :     void          SetFax( const OUString& rFax) { sFaxName = rFax; }
     136             : 
     137             :     sal_Bool   IsPrintProspect() const      { return bPrintProspect; }
     138             :     sal_Bool   IsPrintProspectRTL() const      { return bPrintProspectRTL; }
     139             :     void   SetPrintProspect(sal_Bool bFlag ){ bPrintProspect = bFlag; }
     140             :     void   SetPrintProspectRTL(sal_Bool bFlag ){ bPrintProspectRTL = bFlag; }
     141             :     sal_Bool IsPrintGraphic () const { return bPrintGraphic; }
     142             :     sal_Bool IsPrintTable () const { return bPrintTable; }
     143             :     sal_Bool IsPrintDraw () const { return bPrintDraw; }
     144             :     sal_Bool IsPrintControl () const { return bPrintControl; }
     145             :     sal_Bool IsPrintLeftPage () const { return bPrintLeftPages; }
     146             :     sal_Bool IsPrintRightPage() const { return bPrintRightPages; }
     147             :     sal_Bool IsPrintReverse  () const { return bPrintReverse; }
     148             :     sal_Bool IsPaperFromSetup() const { return bPaperFromSetup; }
     149             :     sal_Bool IsPrintEmptyPages() const { return bPrintEmptyPages; }
     150             :     sal_Bool IsPrintPageBackground() const { return bPrintPageBackground; }
     151             :     sal_Bool IsPrintBlackFont() const { return bPrintBlackFont; }
     152             :     //#i81434# - printing of hidden text
     153             :     sal_Bool IsPrintHiddenText() const { return bPrintHiddenText; }
     154             :     sal_Bool IsPrintTextPlaceholder() const { return bPrintTextPlaceholder; }
     155             : 
     156             :     sal_Bool IsPrintSingleJobs() const { return bPrintSingleJobs; }
     157             :     sal_uLong GetPrintPostIts () const { return nPrintPostIts; }
     158             : 
     159             : };
     160             : 
     161             : /*--------OS 12.01.95 -----------------------------------
     162             : Item for settings dialog, ShadowCursorPage
     163             : --------------------------------------------------------- */
     164           0 : class SW_DLLPUBLIC SwShadowCursorItem : public SfxPoolItem
     165             : {
     166             :     sal_uInt8 eMode;
     167             :     sal_Bool bOn;
     168             : public:
     169             :     TYPEINFO_OVERRIDE();
     170             :     SwShadowCursorItem( sal_uInt16 nWhich = FN_PARAM_SHADOWCURSOR );
     171             :     SwShadowCursorItem( const SwShadowCursorItem& rElemItem );
     172             :     SwShadowCursorItem( const SwViewOption& rVOpt, sal_uInt16 nWhich );
     173             : 
     174             :     virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE;
     175             :     virtual bool            operator==( const SfxPoolItem& ) const SAL_OVERRIDE;
     176             :     void                    operator=( const SwShadowCursorItem& );
     177             : 
     178             :     void FillViewOptions( SwViewOption& rVOpt) const;
     179             : 
     180           0 :     sal_uInt8 GetMode() const               { return eMode; }
     181           0 :     sal_Bool IsOn() const                   { return bOn; }
     182             : 
     183           0 :     void SetMode( sal_uInt8 eM )            { eMode = eM; }
     184           0 :     void SetOn( sal_Bool bFlag )            { bOn = bFlag; }
     185             : };
     186             : 
     187             : #ifdef DBG_UTIL
     188             : 
     189             : /*--------OS 12.01.95 -----------------------------------
     190             : Item for settings dialog - test settings
     191             : --------------------------------------------------------- */
     192             : class SW_DLLPUBLIC SwTestItem : public SfxPoolItem
     193             : {
     194             :     friend class SwModule;
     195             :     friend class SwTestTabPage;
     196             : 
     197             :     bool    bTest1:1;
     198             :     bool    bTest2:1;
     199             :     bool    bTest3:1;
     200             :     bool    bTest4:1;
     201             :     bool    bTest5:1;
     202             :     bool    bTest6:1;
     203             :     bool    bTest7:1;
     204             :     bool    bTest8:1;
     205             :     bool    bTest9:1;
     206             :     bool    bTest10:1;
     207             : 
     208             : public:
     209             :                             SwTestItem( sal_uInt16 _nWhich):
     210             :                                             SfxPoolItem(_nWhich){};
     211             :                             SwTestItem( const SwTestItem& pTestItem);
     212             : 
     213             :     virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE;
     214             :     virtual bool            operator==( const SfxPoolItem& ) const SAL_OVERRIDE;
     215             : 
     216             : };
     217             : #endif
     218             : 
     219             : #endif
     220             : 
     221             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10