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 _SWFLDDOK_HXX 28 #define _SWFLDDOK_HXX 29 30 #include <sfx2/tabdlg.hxx> 31 #include <vcl/fixed.hxx> 32 #include <vcl/lstbox.hxx> 33 #ifndef _SV_BUTTON_HXX //autogen 34 #include <vcl/button.hxx> 35 #endif 36 #include <vcl/group.hxx> 37 #include <vcl/edit.hxx> 38 #include <vcl/field.hxx> 39 40 #include "numfmtlb.hxx" 41 #include "fldpage.hxx" 42 43 /*-------------------------------------------------------------------- 44 Beschreibung: 45 --------------------------------------------------------------------*/ 46 47 class SwFldDokPage : public SwFldPage 48 { 49 FixedText aTypeFT; 50 ListBox aTypeLB; 51 FixedText aSelectionFT; 52 ListBox aSelectionLB; 53 FixedText aValueFT; 54 Edit aValueED; 55 NumericField aLevelED; 56 NumericField aDateOffsetED; 57 FixedText aFormatFT; 58 ListBox aFormatLB; 59 NumFormatListBox aNumFormatLB; 60 CheckBox aFixedCB; 61 62 String sDateOffset; 63 String sTimeOffset; 64 Bitmap aRootOpened; 65 Bitmap aRootClosed; 66 67 sal_uInt16 nOldSel; 68 sal_uLong nOldFormat; 69 70 DECL_LINK( TypeHdl, ListBox* pLB = 0 ); 71 DECL_LINK( FormatHdl, ListBox* pLB = 0 ); 72 DECL_LINK( SubTypeHdl, ListBox* pLB = 0 ); 73 74 void AddSubType(sal_uInt16 nTypeId); 75 sal_uInt16 FillFormatLB(sal_uInt16 nTypeId); 76 77 protected: 78 virtual sal_uInt16 GetGroup(); 79 80 public: 81 SwFldDokPage(Window* pWindow, const SfxItemSet& rSet); 82 83 ~SwFldDokPage(); 84 85 static SfxTabPage* Create(Window* pParent, const SfxItemSet& rAttrSet); 86 87 virtual sal_Bool FillItemSet( SfxItemSet& rSet ); 88 virtual void Reset( const SfxItemSet& rSet ); 89 90 virtual void FillUserData(); 91 }; 92 93 94 #endif 95 96