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 _INSFNOTE_HXX 28 #define _INSFNOTE_HXX 29 30 #include <svx/stddlg.hxx> 31 32 #ifndef _BUTTON_HXX //autogen 33 #include <vcl/button.hxx> 34 #endif 35 36 #ifndef _EDIT_HXX //autogen 37 #include <vcl/edit.hxx> 38 #endif 39 #include <vcl/fixed.hxx> 40 41 class SwWrtShell; 42 43 class SwInsFootNoteDlg: public SvxStandardDialog 44 { 45 SwWrtShell &rSh; 46 47 //Alles fuer das/die Zeichen 48 String aFontName; 49 CharSet eCharSet; 50 char cExtChar; 51 sal_Bool bExtCharAvailable; 52 sal_Bool bEdit; 53 FixedLine aNumberFL; 54 RadioButton aNumberAutoBtn; 55 RadioButton aNumberCharBtn; 56 Edit aNumberCharEdit; 57 PushButton aNumberExtChar; 58 59 //Alles fuer die Auswahl Fussnote/Endnote 60 FixedLine aTypeFL; 61 RadioButton aFtnBtn; 62 RadioButton aEndNoteBtn; 63 64 OKButton aOkBtn; 65 CancelButton aCancelBtn; 66 HelpButton aHelpBtn; 67 ImageButton aPrevBT; 68 ImageButton aNextBT; 69 70 DECL_LINK( NumberCharHdl, Button * ); 71 DECL_LINK( NumberEditHdl, void * ); 72 DECL_LINK( NumberAutoBtnHdl, Button *); 73 DECL_LINK( NumberExtCharHdl, Button *); 74 DECL_LINK( NextPrevHdl, Button * ); 75 76 virtual void Apply(); 77 78 void Init(); 79 80 public: 81 SwInsFootNoteDlg(Window * pParent, SwWrtShell &rSh, sal_Bool bEd = sal_False); 82 ~SwInsFootNoteDlg(); 83 84 CharSet GetCharSet() { return eCharSet; } 85 sal_Bool IsExtCharAvailable() { return bExtCharAvailable; } 86 String GetFontName() { return aFontName; } 87 sal_Bool IsEndNote() { return aEndNoteBtn.IsChecked(); } 88 String GetStr() 89 { 90 if ( aNumberCharBtn.IsChecked() ) 91 return aNumberCharEdit.GetText(); 92 else 93 return String(); 94 } 95 }; 96 97 #endif 98