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

Generated by: LCOV version 1.10