1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 #ifndef _SWFLDDOK_HXX 24 #define _SWFLDDOK_HXX 25 26 #include <sfx2/tabdlg.hxx> 27 #include <vcl/fixed.hxx> 28 #include <vcl/lstbox.hxx> 29 #ifndef _SV_BUTTON_HXX //autogen 30 #include <vcl/button.hxx> 31 #endif 32 #include <vcl/group.hxx> 33 #include <vcl/edit.hxx> 34 #include <vcl/field.hxx> 35 36 #include "numfmtlb.hxx" 37 #include "fldpage.hxx" 38 39 /*-------------------------------------------------------------------- 40 Beschreibung: 41 --------------------------------------------------------------------*/ 42 43 class SwFldDokPage : public SwFldPage 44 { 45 FixedText aTypeFT; 46 ListBox aTypeLB; 47 FixedText aSelectionFT; 48 ListBox aSelectionLB; 49 FixedText aValueFT; 50 Edit aValueED; 51 NumericField aLevelED; 52 NumericField aDateOffsetED; 53 FixedText aFormatFT; 54 ListBox aFormatLB; 55 NumFormatListBox aNumFormatLB; 56 CheckBox aFixedCB; 57 58 String sDateOffset; 59 String sTimeOffset; 60 Bitmap aRootOpened; 61 Bitmap aRootClosed; 62 63 sal_uInt16 nOldSel; 64 sal_uLong nOldFormat; 65 66 DECL_LINK( TypeHdl, ListBox* pLB = 0 ); 67 DECL_LINK( FormatHdl, ListBox* pLB = 0 ); 68 DECL_LINK( SubTypeHdl, ListBox* pLB = 0 ); 69 70 void AddSubType(sal_uInt16 nTypeId); 71 sal_uInt16 FillFormatLB(sal_uInt16 nTypeId); 72 73 protected: 74 virtual sal_uInt16 GetGroup(); 75 76 public: 77 SwFldDokPage(Window* pWindow, const SfxItemSet& rSet); 78 79 ~SwFldDokPage(); 80 81 static SfxTabPage* Create(Window* pParent, const SfxItemSet& rAttrSet); 82 83 virtual sal_Bool FillItemSet( SfxItemSet& rSet ); 84 virtual void Reset( const SfxItemSet& rSet ); 85 86 virtual void FillUserData(); 87 }; 88 89 90 #endif 91 92