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