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 _BOOKMARK_HXX 28 #define _BOOKMARK_HXX 29 30 #include <svx/stddlg.hxx> 31 #include <vcl/fixed.hxx> 32 33 #ifndef _BUTTON_HXX //autogen 34 #include <vcl/button.hxx> 35 #endif 36 37 #include "swlbox.hxx" // SwComboBox 38 39 class SwWrtShell; 40 class SfxRequest; 41 42 /*-------------------------------------------------------------------- 43 Beschreibung: 44 --------------------------------------------------------------------*/ 45 46 class BookmarkCombo : public SwComboBox 47 { 48 sal_uInt16 GetFirstSelEntryPos() const; 49 sal_uInt16 GetNextSelEntryPos(sal_uInt16 nPos) const; 50 sal_uInt16 GetSelEntryPos(sal_uInt16 nPos) const; 51 52 virtual long PreNotify(NotifyEvent& rNEvt); 53 public: 54 BookmarkCombo( Window* pWin, const ResId& rResId ); 55 56 sal_uInt16 GetSelectEntryCount() const; 57 sal_uInt16 GetSelectEntryPos( sal_uInt16 nSelIndex = 0 ) const; 58 59 static const String aForbiddenChars; 60 }; 61 62 /*-------------------------------------------------------------------- 63 Beschreibung: 64 --------------------------------------------------------------------*/ 65 66 class SwInsertBookmarkDlg: public SvxStandardDialog 67 { 68 FixedLine aBookmarkFl; 69 BookmarkCombo aBookmarkBox; 70 OKButton aOkBtn; 71 CancelButton aCancelBtn; 72 PushButton aDeleteBtn; 73 74 String sRemoveWarning; 75 SwWrtShell &rSh; 76 SfxRequest& rReq; 77 78 DECL_LINK( ModifyHdl, BookmarkCombo * ); 79 DECL_LINK( DeleteHdl, Button * ); 80 81 virtual void Apply(); 82 83 public: 84 SwInsertBookmarkDlg( Window *pParent, SwWrtShell &rSh, SfxRequest& rReq ); 85 ~SwInsertBookmarkDlg(); 86 }; 87 88 #endif 89