1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
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 /*************************************************************************
48 \************************************************************************/
51 class SvxHlinkCtrl
: public SfxControllerItem
54 SvxHpLinkDlg
*pParent
;
56 SfxStatusForwarder aOnlineForwarder
;
57 SfxStatusForwarder aRdOnlyForwarder
;
60 SvxHlinkCtrl( USHORT nId
, SfxBindings
& rBindings
, SvxHpLinkDlg
* pDlg
);
62 virtual void StateChanged( USHORT nSID
, SfxItemState eState
,
63 const SfxPoolItem
* pState
);
68 /*************************************************************************
72 \************************************************************************/
74 class SvxHpLinkDlg
: public IconChoiceDialog
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;
93 DECL_LINK (ClickApplyHdl_Impl
, void * );
94 DECL_LINK (ClickCloseHdl_Impl
, void * );
100 // virtual long PreNotify( NotifyEvent& rNEvt );
102 SvxHpLinkDlg (Window
* pParent
, SfxBindings
* pBindings
);
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