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 _FORMEDT_HXX 28 #define _FORMEDT_HXX 29 30 #include <svx/stddlg.hxx> 31 32 #ifndef _LSTBOX_HXX //autogen 33 #include <vcl/lstbox.hxx> 34 #endif 35 36 #ifndef _BUTTON_HXX //autogen 37 #include <vcl/button.hxx> 38 #endif 39 40 #ifndef _FIXED_HXX //autogen 41 #include <vcl/fixed.hxx> 42 #endif 43 44 #ifndef _EDIT_HXX //autogen 45 #include <vcl/edit.hxx> 46 #endif 47 48 #include "toxe.hxx" 49 50 class SwWrtShell; 51 class SwForm; 52 53 /*-------------------------------------------------------------------- 54 Beschreibung: Markierung fuer Verzeichniseintrag einfuegen 55 --------------------------------------------------------------------*/ 56 57 class SwIdxFormDlg : public SvxStandardDialog 58 { 59 DECL_LINK( EntryHdl, Button * ); 60 DECL_LINK( PageHdl, Button * ); 61 DECL_LINK( TabHdl, Button * ); 62 DECL_LINK( JumpHdl, Button * ); 63 DECL_LINK( StdHdl, Button * ); 64 DECL_LINK( SelectHdl, ListBox * ); 65 DECL_LINK( EnableSelectHdl, ListBox * ); 66 DECL_LINK( DoubleClickHdl, Button * ); 67 DECL_LINK( ModifyHdl, Edit * ); 68 DECL_LINK( AssignHdl, Button * ); 69 void UpdatePattern(); 70 void Apply(); 71 72 ListBox aEntryLB; 73 OKButton aOKBtn; 74 CancelButton aCancelBT; 75 FixedText aLevelFT; 76 Edit aEntryED; 77 PushButton aEntryBT; 78 PushButton aTabBT; 79 PushButton aPageBT; 80 PushButton aJumpBT; 81 FixedLine aEntryFL; 82 FixedText aLevelFT2; 83 ListBox aLevelLB; 84 FixedText aTemplateFT; 85 ListBox aParaLayLB; 86 PushButton aStdBT; 87 PushButton aAssignBT; 88 FixedLine aFormatFL; 89 90 SwWrtShell &rSh; 91 SwForm *pForm; 92 sal_uInt16 nAktLevel; 93 sal_Bool bLastLinkIsEnd; 94 95 public: 96 SwIdxFormDlg( Window* pParent, SwWrtShell &rShell, const SwForm& rForm ); 97 ~SwIdxFormDlg(); 98 99 static sal_Bool IsNoNum(SwWrtShell& rSh, const String& rName); 100 const SwForm& GetTOXForm(); 101 }; 102 103 inline const SwForm& SwIdxFormDlg::GetTOXForm() 104 { 105 return *pForm; 106 } 107 108 #endif 109