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