update dev300-m58
[ooovba.git] / sw / source / ui / inc / bookmark.hxx
blob4efbe19ce6d93011358d2d0c68e6a9e5a9944e28
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: bookmark.hxx,v $
10 * $Revision: 1.7 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _BOOKMARK_HXX
31 #define _BOOKMARK_HXX
33 #include <svx/stddlg.hxx>
34 #include <vcl/fixed.hxx>
36 #ifndef _BUTTON_HXX //autogen
37 #include <vcl/button.hxx>
38 #endif
40 #include "swlbox.hxx" // SwComboBox
42 class SwWrtShell;
43 class SfxRequest;
45 /*--------------------------------------------------------------------
46 Beschreibung:
47 --------------------------------------------------------------------*/
49 class BookmarkCombo : public SwComboBox
51 USHORT GetFirstSelEntryPos() const;
52 USHORT GetNextSelEntryPos(USHORT nPos) const;
53 USHORT GetSelEntryPos(USHORT nPos) const;
55 virtual long PreNotify(NotifyEvent& rNEvt);
56 public:
57 BookmarkCombo( Window* pWin, const ResId& rResId );
59 USHORT GetSelectEntryCount() const;
60 USHORT GetSelectEntryPos( USHORT nSelIndex = 0 ) const;
62 static const String aForbiddenChars;
65 /*--------------------------------------------------------------------
66 Beschreibung:
67 --------------------------------------------------------------------*/
69 class SwInsertBookmarkDlg: public SvxStandardDialog
71 BookmarkCombo aBookmarkBox;
72 FixedLine aBookmarkFl;
73 OKButton aOkBtn;
74 CancelButton aCancelBtn;
75 PushButton aDeleteBtn;
77 String sRemoveWarning;
78 SwWrtShell &rSh;
79 SfxRequest& rReq;
81 DECL_LINK( ModifyHdl, BookmarkCombo * );
82 DECL_LINK( DeleteHdl, Button * );
84 virtual void Apply();
86 public:
87 SwInsertBookmarkDlg( Window *pParent, SwWrtShell &rSh, SfxRequest& rReq );
88 ~SwInsertBookmarkDlg();
91 #endif