Update ooo320-m1
[ooovba.git] / svx / source / cui / cuihyperdlg.hxx
blobfcd733aca5cae8823e34236e3903802500349bab
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: cuihyperdlg.hxx,v $
10 * $Revision: 1.4.216.1 $
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 ************************************************************************/
31 #ifndef _CUI_TAB_HYPERLINK_HXX
32 #define _CUI_TAB_HYPERLINK_HXX
34 // include ---------------------------------------------------------------
36 #include <hlnkitem.hxx>
37 #include <sfx2/childwin.hxx>
38 #include <sfx2/ctrlitem.hxx>
39 #include <sfx2/bindings.hxx>
40 #include <vcl/image.hxx>
42 #include "iconcdlg.hxx"
44 /*************************************************************************
46 |* Hyperlink-Dialog
48 \************************************************************************/
50 class SvxHpLinkDlg;
51 class SvxHlinkCtrl : public SfxControllerItem
53 private :
54 SvxHpLinkDlg *pParent;
56 SfxStatusForwarder aOnlineForwarder;
57 SfxStatusForwarder aRdOnlyForwarder;
59 public :
60 SvxHlinkCtrl( USHORT nId, SfxBindings & rBindings, SvxHpLinkDlg* pDlg);
62 virtual void StateChanged( USHORT nSID, SfxItemState eState,
63 const SfxPoolItem* pState );
68 /*************************************************************************
70 |* Hyperlink-Dialog
72 \************************************************************************/
74 class SvxHpLinkDlg : public IconChoiceDialog
76 private:
77 SvxHlinkCtrl maCtrl; // Controler
78 SfxBindings* mpBindings;
79 SfxItemSet* mpItemSet;
81 sal_Bool mbDummy1 : 1;
82 sal_Bool mbDummy2 : 1;
83 sal_Bool mbDummy3 : 1;
84 sal_Bool mbDummy4 : 1;
85 sal_Bool mbDummy5 : 1;
86 sal_Bool mbGrabFocus : 1;
87 sal_Bool mbReadOnly : 1;
88 sal_Bool mbIsHTMLDoc : 1;
90 void* mpDummy1;
91 void* mpDummy2;
93 DECL_LINK (ClickApplyHdl_Impl, void * );
94 DECL_LINK (ClickCloseHdl_Impl, void * );
96 protected:
97 virtual BOOL Close();
98 virtual void Move();
100 // virtual long PreNotify( NotifyEvent& rNEvt );
101 public:
102 SvxHpLinkDlg (Window* pParent, SfxBindings* pBindings );
103 ~SvxHpLinkDlg ();
105 virtual void PageCreated( USHORT nId, IconChoicePage& rPage );
107 USHORT SetPage( SvxHyperlinkItem* pItem );
108 void EnableInetBrowse( sal_Bool bEnable = sal_True );
109 void SetReadOnlyMode( sal_Bool bReadOnly = sal_False );
110 inline BOOL IsHTMLDoc() const { return mbIsHTMLDoc; }
112 inline SfxBindings* GetBindings() const { return mpBindings; };
113 inline SfxDispatcher* GetDispatcher() const { return mpBindings->GetDispatcher(); }
117 #endif // _CUI_TAB_HYPERLINK_HXX