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 _SWFLDFUNC_HXX 28 #define _SWFLDFUNC_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 39 #include "condedit.hxx" 40 #include "fldpage.hxx" 41 #include <actctrl.hxx> 42 /*-------------------------------------------------------------------- 43 Beschreibung: 44 --------------------------------------------------------------------*/ 45 46 class SwFldFuncPage : public SwFldPage 47 { 48 FixedText aTypeFT; 49 ListBox aTypeLB; 50 FixedText aSelectionFT; 51 ListBox aSelectionLB; 52 FixedText aFormatFT; 53 ListBox aFormatLB; 54 FixedText aNameFT; 55 ConditionEdit aNameED; 56 FixedText aValueFT; 57 Edit aValueED; 58 FixedText aCond1FT; 59 ConditionEdit aCond1ED; 60 FixedText aCond2FT; 61 ConditionEdit aCond2ED; 62 PushButton aMacroBT; 63 64 //controls of "Input list" 65 FixedText aListItemFT; 66 ReturnActionEdit aListItemED; 67 PushButton aListAddPB; 68 FixedText aListItemsFT; 69 ListBox aListItemsLB; 70 PushButton aListRemovePB; 71 PushButton aListUpPB; 72 PushButton aListDownPB; 73 FixedText aListNameFT; 74 Edit aListNameED; 75 76 String sOldValueFT; 77 String sOldNameFT; 78 79 sal_uLong nOldFormat; 80 bool bDropDownLBChanged; 81 82 DECL_LINK( TypeHdl, ListBox* pLB = 0 ); 83 DECL_LINK( SelectHdl, ListBox* pLB = 0 ); 84 DECL_LINK( InsertMacroHdl, ListBox* pLB = 0 ); 85 DECL_LINK( ModifyHdl, Edit *pEd = 0 ); 86 DECL_LINK( ListModifyHdl, Control*); 87 DECL_LINK( ListEnableHdl, void*); 88 89 // Macro ausw�hlen 90 DECL_LINK( MacroHdl, Button * ); 91 92 void UpdateSubType(); 93 String TurnMacroString(const String &rMacro); 94 95 protected: 96 virtual sal_uInt16 GetGroup(); 97 98 public: 99 SwFldFuncPage(Window* pParent, const SfxItemSet& rSet); 100 101 ~SwFldFuncPage(); 102 103 static SfxTabPage* Create(Window* pParent, const SfxItemSet& rAttrSet); 104 105 virtual sal_Bool FillItemSet( SfxItemSet& rSet ); 106 virtual void Reset( const SfxItemSet& rSet ); 107 108 virtual void FillUserData(); 109 }; 110 111 112 #endif 113 114