LCOV - code coverage report
Current view: top level - sw/source/ui/inc - cfgitems.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 1 9 11.1 %
Date: 2012-08-25 Functions: 2 13 15.4 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1 8 12.5 %

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : #ifndef _CFGITEMS_HXX
      29                 :            : #define _CFGITEMS_HXX
      30                 :            : 
      31                 :            : #include <tools/color.hxx>
      32                 :            : #include <svl/poolitem.hxx>
      33                 :            : #include "swdllapi.h"
      34                 :            : #include <printdata.hxx>
      35                 :            : 
      36                 :            : #include <cmdid.h>
      37                 :            : 
      38                 :            : class SwModule;
      39                 :            : #ifdef DBG_UTIL
      40                 :            : class SwTestTabPage;
      41                 :            : #endif
      42                 :            : class SwAddPrinterTabPage;
      43                 :            : class SfxPrinter;
      44                 :            : class ViewShell;
      45                 :            : class SwViewOption;
      46                 :            : class SwContentOptPage;
      47                 :            : class SwShdwCrsrOptionsTabPage;
      48                 :            : 
      49                 :            : SfxPrinter* GetPrt( ViewShell* );
      50                 :            : void        SetPrt( SfxPrinter* );
      51                 :            : 
      52                 :            : /*--------OS 12.01.95 -----------------------------------
      53                 :            : Item for settings dialog - document view
      54                 :            : --------------------------------------------------------- */
      55         [ #  # ]:          0 : class SW_DLLPUBLIC SwDocDisplayItem : public SfxPoolItem
      56                 :            : {
      57                 :            :     friend class SwShdwCrsrOptionsTabPage;
      58                 :            :     friend class SwModule;
      59                 :            : 
      60                 :            :     sal_Bool bParagraphEnd      :1;
      61                 :            :     sal_Bool bTab               :1;
      62                 :            :     sal_Bool bSpace             :1;
      63                 :            :     sal_Bool bNonbreakingSpace  :1;
      64                 :            :     sal_Bool bSoftHyphen        :1;
      65                 :            :     sal_Bool bCharHiddenText    :1;
      66                 :            :     sal_Bool bFldHiddenText     :1;
      67                 :            :     sal_Bool bManualBreak       :1;
      68                 :            :     sal_Bool bShowHiddenPara    :1;
      69                 :            : 
      70                 :            :     Color aIndexBackgrndCol;
      71                 :            : 
      72                 :            : 
      73                 :            : public:
      74                 :            :                                 TYPEINFO();
      75                 :            :                                 SwDocDisplayItem( sal_uInt16 nWhich = FN_PARAM_DOCDISP );
      76                 :            :                                 SwDocDisplayItem(
      77                 :            :                                     const SwDocDisplayItem& rSwDocDisplayItem );
      78                 :            :                                 SwDocDisplayItem( const SwViewOption& rVOpt,
      79                 :            :                                                                 sal_uInt16 nWhich );
      80                 :            : 
      81                 :            : 
      82                 :            :     virtual SfxPoolItem*        Clone( SfxItemPool *pPool = 0 ) const;
      83                 :            :     virtual int                 operator==( const SfxPoolItem& ) const;
      84                 :            :     void                        operator=( const SwDocDisplayItem& );
      85                 :            :     void                        FillViewOptions( SwViewOption& rVOpt) const;
      86                 :            : };
      87                 :            : 
      88                 :            : /*--------OS 12.01.95 -----------------------------------
      89                 :            : Item for settings dialog, element page
      90                 :            : --------------------------------------------------------- */
      91         [ #  # ]:          0 : class SW_DLLPUBLIC SwElemItem : public SfxPoolItem
      92                 :            : {
      93                 :            :     //view
      94                 :            :     sal_Bool bHorzScrollbar :1;
      95                 :            :     sal_Bool bVertScrollbar :1;
      96                 :            :     sal_Bool bAnyRuler : 1;
      97                 :            :     sal_Bool bHorzRuler     :1;
      98                 :            :     sal_Bool bVertRuler     :1;
      99                 :            :     sal_Bool bVertRulerRight:1;
     100                 :            :     sal_Bool bSmoothScroll  :1;
     101                 :            :     //visual aids
     102                 :            :     sal_Bool bCrosshair     :1;
     103                 :            :     sal_Bool bHandles       :1;
     104                 :            :     //display
     105                 :            :     sal_Bool bTable             :1;
     106                 :            :     sal_Bool bGraphic           :1;
     107                 :            :     sal_Bool bDrawing           :1;
     108                 :            :     sal_Bool bFieldName         :1;
     109                 :            :     sal_Bool bNotes             :1;
     110                 :            : 
     111                 :            :     friend class SwContentOptPage;
     112                 :            : 
     113                 :            : public:
     114                 :            :                             TYPEINFO();
     115                 :            :                             SwElemItem( sal_uInt16 nWhich = FN_PARAM_ELEM );
     116                 :            :                             SwElemItem(const SwElemItem& rElemItem);
     117                 :            :                             SwElemItem(const SwViewOption& rVOpt, sal_uInt16 nWhich);
     118                 :            : 
     119                 :            : 
     120                 :            :     virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const;
     121                 :            :     virtual int             operator==( const SfxPoolItem& ) const;
     122                 :            :     void                    operator=( const SwElemItem& );
     123                 :            : 
     124                 :            :     void                    FillViewOptions( SwViewOption& rVOpt) const;
     125                 :            : 
     126                 :            : };
     127                 :            : 
     128                 :            : /*--------OS 12.01.95 -----------------------------------
     129                 :            : Item for settings dialog - printer/add ons
     130                 :            : --------------------------------------------------------- */
     131         [ -  + ]:         49 : class SW_DLLPUBLIC SwAddPrinterItem : public SfxPoolItem, public SwPrintData
     132                 :            : {
     133                 :            :     friend class SwAddPrinterTabPage;
     134                 :            : 
     135                 :            :     using  SwPrintData::operator ==;
     136                 :            : 
     137                 :            : public:
     138                 :            :     TYPEINFO();
     139                 :            :     SwAddPrinterItem( sal_uInt16 nWhich = FN_PARAM_ADDPRINTER );
     140                 :            :     SwAddPrinterItem( sal_uInt16 nWhich, const SwPrintData& rPrtData );
     141                 :            :     SwAddPrinterItem( const SwAddPrinterItem& rAddPrinterItem);
     142                 :            : 
     143                 :            :     virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
     144                 :            : 
     145                 :            :     virtual int          operator==( const SfxPoolItem& ) const;
     146                 :            : 
     147                 :          0 :     const rtl::OUString &GetFax() const              { return sFaxName; }
     148                 :            :     void          SetFax( const String& rFax) { sFaxName = rFax; }
     149                 :            : 
     150                 :            : 
     151                 :            :     sal_Bool   IsPrintProspect() const      { return bPrintProspect; }
     152                 :            :     sal_Bool   IsPrintProspectRTL() const      { return bPrintProspectRTL; }
     153                 :            :     void   SetPrintProspect(sal_Bool bFlag ){ bPrintProspect = bFlag; }
     154                 :            :     void   SetPrintProspectRTL(sal_Bool bFlag ){ bPrintProspectRTL = bFlag; }
     155                 :            :     sal_Bool IsPrintGraphic () const { return bPrintGraphic; }
     156                 :            :     sal_Bool IsPrintTable () const { return bPrintTable; }
     157                 :            :     sal_Bool IsPrintDraw () const { return bPrintDraw; }
     158                 :            :     sal_Bool IsPrintControl () const { return bPrintControl; }
     159                 :            :     sal_Bool IsPrintLeftPage () const { return bPrintLeftPages; }
     160                 :            :     sal_Bool IsPrintRightPage() const { return bPrintRightPages; }
     161                 :            :     sal_Bool IsPrintReverse  () const { return bPrintReverse; }
     162                 :            :     sal_Bool IsPaperFromSetup() const { return bPaperFromSetup; }
     163                 :            :     sal_Bool IsPrintEmptyPages() const { return bPrintEmptyPages; }
     164                 :            :     sal_Bool IsPrintPageBackground() const { return bPrintPageBackground; }
     165                 :            :     sal_Bool IsPrintBlackFont() const { return bPrintBlackFont; }
     166                 :            :     //#i81434# - printing of hidden text
     167                 :            :     sal_Bool IsPrintHiddenText() const { return bPrintHiddenText; }
     168                 :            :     sal_Bool IsPrintTextPlaceholder() const { return bPrintTextPlaceholder; }
     169                 :            : 
     170                 :            :     sal_Bool IsPrintSingleJobs() const { return bPrintSingleJobs; }
     171                 :            :     sal_uLong GetPrintPostIts () const { return nPrintPostIts; }
     172                 :            : 
     173                 :            : };
     174                 :            : 
     175                 :            : /*--------OS 12.01.95 -----------------------------------
     176                 :            : Item for settings dialog, ShadowCursorPage
     177                 :            : --------------------------------------------------------- */
     178         [ #  # ]:          0 : class SW_DLLPUBLIC SwShadowCursorItem : public SfxPoolItem
     179                 :            : {
     180                 :            :     sal_uInt8 eMode;
     181                 :            :     sal_Bool bOn;
     182                 :            : public:
     183                 :            :     TYPEINFO();
     184                 :            :     SwShadowCursorItem( sal_uInt16 nWhich = FN_PARAM_SHADOWCURSOR );
     185                 :            :     SwShadowCursorItem( const SwShadowCursorItem& rElemItem );
     186                 :            :     SwShadowCursorItem( const SwViewOption& rVOpt, sal_uInt16 nWhich );
     187                 :            : 
     188                 :            : 
     189                 :            :     virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const;
     190                 :            :     virtual int             operator==( const SfxPoolItem& ) const;
     191                 :            :     void                    operator=( const SwShadowCursorItem& );
     192                 :            : 
     193                 :            :     void FillViewOptions( SwViewOption& rVOpt) const;
     194                 :            : 
     195                 :          0 :     sal_uInt8 GetMode() const               { return eMode; }
     196                 :          0 :     sal_Bool IsOn() const                   { return bOn; }
     197                 :            : 
     198                 :          0 :     void SetMode( sal_uInt8 eM )            { eMode = eM; }
     199                 :          0 :     void SetOn( sal_Bool bFlag )            { bOn = bFlag; }
     200                 :            : };
     201                 :            : 
     202                 :            : #ifdef DBG_UTIL
     203                 :            : 
     204                 :            : /*--------OS 12.01.95 -----------------------------------
     205                 :            : Item for settings dialog - test settings
     206                 :            : --------------------------------------------------------- */
     207                 :            : class SW_DLLPUBLIC SwTestItem : public SfxPoolItem
     208                 :            : {
     209                 :            :     friend class SwModule;
     210                 :            :     friend class SwTestTabPage;
     211                 :            : 
     212                 :            :     sal_Bool    bTest1:1;
     213                 :            :     sal_Bool    bTest2:1;
     214                 :            :     sal_Bool    bTest3:1;
     215                 :            :     sal_Bool    bTest4:1;
     216                 :            :     sal_Bool    bTest5:1;
     217                 :            :     sal_Bool    bTest6:1;
     218                 :            :     sal_Bool    bTest7:1;
     219                 :            :     sal_Bool    bTest8:1;
     220                 :            :     sal_Bool    bTest9:1;
     221                 :            :     sal_Bool    bTest10:1;
     222                 :            : 
     223                 :            : public:
     224                 :            :                             SwTestItem( sal_uInt16 _nWhich):
     225                 :            :                                             SfxPoolItem(_nWhich){};
     226                 :            :                             SwTestItem( const SwTestItem& pTestItem);
     227                 :            : 
     228                 :            :     virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const;
     229                 :            :     virtual int             operator==( const SfxPoolItem& ) const;
     230                 :            : 
     231                 :            : };
     232                 :            : #endif
     233                 :            : 
     234                 :            : #endif
     235                 :            : 
     236                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10