1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 #ifndef _SVX_ZOOM_HXX 28 #define _SVX_ZOOM_HXX 29 30 // include --------------------------------------------------------------- 31 32 #include <layout/layout.hxx> 33 #include <sfx2/basedlgs.hxx> 34 #ifndef _SV_BUTTON_HXX //autogen wg. Radio-/OK-/Cancel-/HelpButton 35 #include <vcl/button.hxx> 36 #endif 37 #include <vcl/field.hxx> 38 #include <vcl/fixed.hxx> 39 40 // define ---------------------------------------------------------------- 41 /* CHINA001 42 #define ZOOMBTN_OPTIMAL ((sal_uInt16)0x0001) 43 #define ZOOMBTN_PAGEWIDTH ((sal_uInt16)0x0002) 44 #define ZOOMBTN_WHOLEPAGE ((sal_uInt16)0x0004) 45 */ 46 #ifndef _SVX_ZOOM_HXX 47 #include "zoom_def.hxx" 48 #endif 49 // class SvxZoomDialog --------------------------------------------------- 50 /* 51 {k:\svx\prototyp\dialog\zoom.bmp} 52 53 [Beschreibung] 54 Mit diesem Dialog wird ein Zoom-Faktor eingestellt. 55 56 [Items] 57 SvxZoomItem <SID_ATTR_ZOOM> 58 */ 59 60 #include <layout/layout-pre.hxx> 61 62 class SvxZoomDialog : public SfxModalDialog 63 { 64 private: 65 FixedLine aZoomFl; 66 RadioButton aOptimalBtn; 67 RadioButton aWholePageBtn; 68 RadioButton aPageWidthBtn; 69 RadioButton a100Btn; 70 RadioButton aUserBtn; 71 MetricField aUserEdit; 72 73 FixedLine aViewLayoutFl; 74 RadioButton aAutomaticBtn; 75 RadioButton aSingleBtn; 76 RadioButton aColumnsBtn; 77 MetricField aColumnsEdit; 78 CheckBox aBookModeChk; 79 80 FixedLine aBottomFl; 81 OKButton aOKBtn; 82 CancelButton aCancelBtn; 83 HelpButton aHelpBtn; 84 85 const SfxItemSet& rSet; 86 SfxItemSet* pOutSet; 87 sal_Bool bModified; 88 89 #ifdef _SVX_ZOOM_CXX 90 DECL_LINK( UserHdl, RadioButton* ); 91 DECL_LINK( SpinHdl, MetricField* ); 92 DECL_LINK( ViewLayoutUserHdl, RadioButton* ); 93 DECL_LINK( ViewLayoutSpinHdl, MetricField* ); 94 DECL_LINK( ViewLayoutCheckHdl, CheckBox* ); 95 DECL_LINK( OKHdl, Button* ); 96 #endif 97 98 public: 99 SvxZoomDialog( Window* pParent, const SfxItemSet& rCoreSet ); 100 ~SvxZoomDialog(); 101 102 const SfxItemSet* GetOutputItemSet() const { return pOutSet; } 103 104 sal_uInt16 GetFactor() const; 105 void SetFactor( sal_uInt16 nNewFactor, sal_uInt16 nBtnId = 0 ); 106 107 void HideButton( sal_uInt16 nBtnId ); 108 void SetLimits( sal_uInt16 nMin, sal_uInt16 nMax ); 109 }; 110 111 #include <layout/layout-post.hxx> 112 113 #endif 114 115