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 28*cdf0e10cSrcweir #ifndef _SD_TPOPTION_HXX 29*cdf0e10cSrcweir #define _SD_TPOPTION_HXX 30*cdf0e10cSrcweir 31*cdf0e10cSrcweir 32*cdf0e10cSrcweir #ifndef _LSTBOX_HXX //autogen 33*cdf0e10cSrcweir #include <vcl/lstbox.hxx> 34*cdf0e10cSrcweir #endif 35*cdf0e10cSrcweir #ifndef _GROUP_HXX //autogen 36*cdf0e10cSrcweir #include <vcl/group.hxx> 37*cdf0e10cSrcweir #endif 38*cdf0e10cSrcweir #ifndef _FIXED_HXX //autogen 39*cdf0e10cSrcweir #include <vcl/fixed.hxx> 40*cdf0e10cSrcweir #endif 41*cdf0e10cSrcweir #ifndef _FIELD_HXX //autogen 42*cdf0e10cSrcweir #include <vcl/field.hxx> 43*cdf0e10cSrcweir #endif 44*cdf0e10cSrcweir #ifndef _BUTTON_HXX //autogen 45*cdf0e10cSrcweir #include <vcl/button.hxx> 46*cdf0e10cSrcweir #endif 47*cdf0e10cSrcweir #include <svtools/stdctrl.hxx> 48*cdf0e10cSrcweir #include <sfx2/tabdlg.hxx> 49*cdf0e10cSrcweir #include <svx/optgrid.hxx> 50*cdf0e10cSrcweir 51*cdf0e10cSrcweir /************************************************************************* 52*cdf0e10cSrcweir |* 53*cdf0e10cSrcweir |* Optionen-Tab-Page: Snap 54*cdf0e10cSrcweir |* 55*cdf0e10cSrcweir \************************************************************************/ 56*cdf0e10cSrcweir class SdTpOptionsSnap : public SvxGridTabPage 57*cdf0e10cSrcweir { 58*cdf0e10cSrcweir public: 59*cdf0e10cSrcweir SdTpOptionsSnap( Window* pParent, const SfxItemSet& rInAttrs ); 60*cdf0e10cSrcweir ~SdTpOptionsSnap(); 61*cdf0e10cSrcweir 62*cdf0e10cSrcweir static SfxTabPage* Create( Window*, const SfxItemSet& ); 63*cdf0e10cSrcweir virtual sal_Bool FillItemSet( SfxItemSet& ); 64*cdf0e10cSrcweir virtual void Reset( const SfxItemSet & ); 65*cdf0e10cSrcweir 66*cdf0e10cSrcweir // virtual void ActivatePage( const SfxItemSet& rSet ); 67*cdf0e10cSrcweir // virtual int DeactivatePage( SfxItemSet* pSet ); 68*cdf0e10cSrcweir }; 69*cdf0e10cSrcweir /************************************************************************* 70*cdf0e10cSrcweir |* 71*cdf0e10cSrcweir |* Optionen-Tab-Page: Contents (Inhalte) 72*cdf0e10cSrcweir |* 73*cdf0e10cSrcweir \************************************************************************/ 74*cdf0e10cSrcweir class SdTpOptionsContents : public SfxTabPage 75*cdf0e10cSrcweir { 76*cdf0e10cSrcweir private: 77*cdf0e10cSrcweir FixedLine aGrpDisplay; 78*cdf0e10cSrcweir CheckBox aCbxRuler; 79*cdf0e10cSrcweir CheckBox aCbxDragStripes; 80*cdf0e10cSrcweir CheckBox aCbxHandlesBezier; 81*cdf0e10cSrcweir CheckBox aCbxMoveOutline; 82*cdf0e10cSrcweir 83*cdf0e10cSrcweir 84*cdf0e10cSrcweir public: 85*cdf0e10cSrcweir SdTpOptionsContents( Window* pParent, const SfxItemSet& rInAttrs ); 86*cdf0e10cSrcweir ~SdTpOptionsContents(); 87*cdf0e10cSrcweir 88*cdf0e10cSrcweir static SfxTabPage* Create( Window*, const SfxItemSet& ); 89*cdf0e10cSrcweir virtual sal_Bool FillItemSet( SfxItemSet& ); 90*cdf0e10cSrcweir virtual void Reset( const SfxItemSet & ); 91*cdf0e10cSrcweir }; 92*cdf0e10cSrcweir 93*cdf0e10cSrcweir /************************************************************************* 94*cdf0e10cSrcweir |* 95*cdf0e10cSrcweir |* Optionen-Tab-Page: View 96*cdf0e10cSrcweir |* 97*cdf0e10cSrcweir \************************************************************************/ 98*cdf0e10cSrcweir class SdModule; 99*cdf0e10cSrcweir class SdTpOptionsMisc : public SfxTabPage 100*cdf0e10cSrcweir { 101*cdf0e10cSrcweir friend class SdOptionsDlg; 102*cdf0e10cSrcweir friend class SdModule; 103*cdf0e10cSrcweir 104*cdf0e10cSrcweir private: 105*cdf0e10cSrcweir FixedLine aGrpText; 106*cdf0e10cSrcweir CheckBox aCbxQuickEdit; 107*cdf0e10cSrcweir CheckBox aCbxPickThrough; 108*cdf0e10cSrcweir 109*cdf0e10cSrcweir FixedLine aGrpProgramStart; 110*cdf0e10cSrcweir CheckBox aCbxStartWithTemplate; 111*cdf0e10cSrcweir 112*cdf0e10cSrcweir FixedLine aGrpSettings; 113*cdf0e10cSrcweir CheckBox aCbxMasterPageCache; 114*cdf0e10cSrcweir CheckBox aCbxCopy; 115*cdf0e10cSrcweir CheckBox aCbxMarkedHitMovesAlways; 116*cdf0e10cSrcweir CheckBox aCbxCrookNoContortion; 117*cdf0e10cSrcweir 118*cdf0e10cSrcweir FixedText aTxtMetric; 119*cdf0e10cSrcweir ListBox aLbMetric; 120*cdf0e10cSrcweir FixedText aTxtTabstop; 121*cdf0e10cSrcweir MetricField aMtrFldTabstop; 122*cdf0e10cSrcweir 123*cdf0e10cSrcweir CheckBox aCbxStartWithActualPage; 124*cdf0e10cSrcweir FixedLine aGrpStartWithActualPage; 125*cdf0e10cSrcweir FixedLine aTxtCompatibility; 126*cdf0e10cSrcweir CheckBox aCbxUsePrinterMetrics; 127*cdf0e10cSrcweir CheckBox aCbxCompatibility; 128*cdf0e10cSrcweir 129*cdf0e10cSrcweir //Scale 130*cdf0e10cSrcweir FixedLine aGrpScale; 131*cdf0e10cSrcweir FixedText aFtScale; 132*cdf0e10cSrcweir ComboBox aCbScale; 133*cdf0e10cSrcweir 134*cdf0e10cSrcweir FixedText aFtOriginal; 135*cdf0e10cSrcweir FixedText aFtEquivalent; 136*cdf0e10cSrcweir 137*cdf0e10cSrcweir FixedText aFtPageWidth; 138*cdf0e10cSrcweir FixedInfo aFiInfo1; 139*cdf0e10cSrcweir MetricField aMtrFldOriginalWidth; 140*cdf0e10cSrcweir 141*cdf0e10cSrcweir FixedText aFtPageHeight; 142*cdf0e10cSrcweir FixedInfo aFiInfo2; 143*cdf0e10cSrcweir MetricField aMtrFldOriginalHeight; 144*cdf0e10cSrcweir 145*cdf0e10cSrcweir MetricField aMtrFldInfo1; 146*cdf0e10cSrcweir MetricField aMtrFldInfo2; 147*cdf0e10cSrcweir 148*cdf0e10cSrcweir sal_uInt32 nWidth; 149*cdf0e10cSrcweir sal_uInt32 nHeight; 150*cdf0e10cSrcweir String aInfo1; 151*cdf0e10cSrcweir String aInfo2; 152*cdf0e10cSrcweir 153*cdf0e10cSrcweir SfxMapUnit ePoolUnit; 154*cdf0e10cSrcweir 155*cdf0e10cSrcweir String GetScale( sal_Int32 nX, sal_Int32 nY ); 156*cdf0e10cSrcweir sal_Bool SetScale( const String& aScale, sal_Int32& rX, sal_Int32& rY ); 157*cdf0e10cSrcweir 158*cdf0e10cSrcweir DECL_LINK( ModifyScaleHdl, void * ); 159*cdf0e10cSrcweir DECL_LINK( ModifyOriginalScaleHdl, void * ); 160*cdf0e10cSrcweir DECL_LINK( SelectMetricHdl_Impl, ListBox * ); 161*cdf0e10cSrcweir 162*cdf0e10cSrcweir /** Enable or disable the controls in the compatibility section of the 163*cdf0e10cSrcweir 'general' tab page depending on whether there is at least one 164*cdf0e10cSrcweir document. 165*cdf0e10cSrcweir */ 166*cdf0e10cSrcweir void UpdateCompatibilityControls (void); 167*cdf0e10cSrcweir 168*cdf0e10cSrcweir protected: 169*cdf0e10cSrcweir virtual void ActivatePage( const SfxItemSet& rSet ); 170*cdf0e10cSrcweir virtual int DeactivatePage( SfxItemSet* pSet ); 171*cdf0e10cSrcweir 172*cdf0e10cSrcweir public: 173*cdf0e10cSrcweir SdTpOptionsMisc( Window* pParent, const SfxItemSet& rInAttrs ); 174*cdf0e10cSrcweir ~SdTpOptionsMisc(); 175*cdf0e10cSrcweir 176*cdf0e10cSrcweir static SfxTabPage* Create( Window*, const SfxItemSet& ); 177*cdf0e10cSrcweir virtual sal_Bool FillItemSet( SfxItemSet& ); 178*cdf0e10cSrcweir virtual void Reset( const SfxItemSet & ); 179*cdf0e10cSrcweir 180*cdf0e10cSrcweir /** Hide Impress specific controls, make Draw specific controls visible 181*cdf0e10cSrcweir and arrange the visible controls. Do not call this method or the 182*cdf0e10cSrcweir <member>SetImpressMode()</member> method more than once. 183*cdf0e10cSrcweir */ 184*cdf0e10cSrcweir void SetDrawMode (void); 185*cdf0e10cSrcweir 186*cdf0e10cSrcweir /** Hide Draw specific controls, make Impress specific controls visible 187*cdf0e10cSrcweir and arrange the visible controls. Do not call this method or the 188*cdf0e10cSrcweir <member>SetDrawMode()</member> method more than once. 189*cdf0e10cSrcweir */ 190*cdf0e10cSrcweir void SetImpressMode (void); 191*cdf0e10cSrcweir virtual void PageCreated (SfxAllItemSet aSet); 192*cdf0e10cSrcweir 193*cdf0e10cSrcweir using TabPage::ActivatePage; 194*cdf0e10cSrcweir using TabPage::DeactivatePage; 195*cdf0e10cSrcweir using OutputDevice::SetDrawMode; 196*cdf0e10cSrcweir 197*cdf0e10cSrcweir }; 198*cdf0e10cSrcweir 199*cdf0e10cSrcweir 200*cdf0e10cSrcweir #endif // _SD_TPOPTION_HXX 201*cdf0e10cSrcweir 202