1*c4eee24dSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*c4eee24dSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*c4eee24dSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*c4eee24dSAndrew Rist * distributed with this work for additional information 6*c4eee24dSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*c4eee24dSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*c4eee24dSAndrew Rist * "License"); you may not use this file except in compliance 9*c4eee24dSAndrew Rist * with the License. You may obtain a copy of the License at 10*c4eee24dSAndrew Rist * 11*c4eee24dSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*c4eee24dSAndrew Rist * 13*c4eee24dSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*c4eee24dSAndrew Rist * software distributed under the License is distributed on an 15*c4eee24dSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*c4eee24dSAndrew Rist * KIND, either express or implied. See the License for the 17*c4eee24dSAndrew Rist * specific language governing permissions and limitations 18*c4eee24dSAndrew Rist * under the License. 19*c4eee24dSAndrew Rist * 20*c4eee24dSAndrew Rist *************************************************************/ 21*c4eee24dSAndrew Rist 22*c4eee24dSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef _CUI_TAB_HYPERLINK_HXX 25cdf0e10cSrcweir #define _CUI_TAB_HYPERLINK_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir // include --------------------------------------------------------------- 28cdf0e10cSrcweir 29cdf0e10cSrcweir #include <svx/hlnkitem.hxx> 30cdf0e10cSrcweir #include <sfx2/childwin.hxx> 31cdf0e10cSrcweir #include <sfx2/ctrlitem.hxx> 32cdf0e10cSrcweir #include <sfx2/bindings.hxx> 33cdf0e10cSrcweir #include <vcl/image.hxx> 34cdf0e10cSrcweir 35cdf0e10cSrcweir #include "iconcdlg.hxx" 36cdf0e10cSrcweir 37cdf0e10cSrcweir /************************************************************************* 38cdf0e10cSrcweir |* 39cdf0e10cSrcweir |* Hyperlink-Dialog 40cdf0e10cSrcweir |* 41cdf0e10cSrcweir \************************************************************************/ 42cdf0e10cSrcweir 43cdf0e10cSrcweir class SvxHpLinkDlg; 44cdf0e10cSrcweir class SvxHlinkCtrl : public SfxControllerItem 45cdf0e10cSrcweir { 46cdf0e10cSrcweir private : 47cdf0e10cSrcweir SvxHpLinkDlg *pParent; 48cdf0e10cSrcweir 49cdf0e10cSrcweir SfxStatusForwarder aOnlineForwarder; 50cdf0e10cSrcweir SfxStatusForwarder aRdOnlyForwarder; 51cdf0e10cSrcweir 52cdf0e10cSrcweir public : 53cdf0e10cSrcweir SvxHlinkCtrl( sal_uInt16 nId, SfxBindings & rBindings, SvxHpLinkDlg* pDlg); 54cdf0e10cSrcweir 55cdf0e10cSrcweir virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, 56cdf0e10cSrcweir const SfxPoolItem* pState ); 57cdf0e10cSrcweir }; 58cdf0e10cSrcweir 59cdf0e10cSrcweir 60cdf0e10cSrcweir 61cdf0e10cSrcweir /************************************************************************* 62cdf0e10cSrcweir |* 63cdf0e10cSrcweir |* Hyperlink-Dialog 64cdf0e10cSrcweir |* 65cdf0e10cSrcweir \************************************************************************/ 66cdf0e10cSrcweir 67cdf0e10cSrcweir class SvxHpLinkDlg : public IconChoiceDialog 68cdf0e10cSrcweir { 69cdf0e10cSrcweir private: 70cdf0e10cSrcweir SvxHlinkCtrl maCtrl; // Controler 71cdf0e10cSrcweir SfxBindings* mpBindings; 72cdf0e10cSrcweir SfxItemSet* mpItemSet; 73cdf0e10cSrcweir 74cdf0e10cSrcweir sal_Bool mbDummy1 : 1; 75cdf0e10cSrcweir sal_Bool mbDummy2 : 1; 76cdf0e10cSrcweir sal_Bool mbDummy3 : 1; 77cdf0e10cSrcweir sal_Bool mbDummy4 : 1; 78cdf0e10cSrcweir sal_Bool mbDummy5 : 1; 79cdf0e10cSrcweir sal_Bool mbGrabFocus : 1; 80cdf0e10cSrcweir sal_Bool mbReadOnly : 1; 81cdf0e10cSrcweir sal_Bool mbIsHTMLDoc : 1; 82cdf0e10cSrcweir 83cdf0e10cSrcweir void* mpDummy1; 84cdf0e10cSrcweir void* mpDummy2; 85cdf0e10cSrcweir 86cdf0e10cSrcweir DECL_LINK (ClickApplyHdl_Impl, void * ); 87cdf0e10cSrcweir DECL_LINK (ClickCloseHdl_Impl, void * ); 88cdf0e10cSrcweir 89cdf0e10cSrcweir protected: 90cdf0e10cSrcweir virtual sal_Bool Close(); 91cdf0e10cSrcweir virtual void Move(); 92cdf0e10cSrcweir 93cdf0e10cSrcweir // virtual long PreNotify( NotifyEvent& rNEvt ); 94cdf0e10cSrcweir public: 95cdf0e10cSrcweir SvxHpLinkDlg (Window* pParent, SfxBindings* pBindings ); 96cdf0e10cSrcweir ~SvxHpLinkDlg (); 97cdf0e10cSrcweir 98cdf0e10cSrcweir virtual void PageCreated( sal_uInt16 nId, IconChoicePage& rPage ); 99cdf0e10cSrcweir 100cdf0e10cSrcweir sal_uInt16 SetPage( SvxHyperlinkItem* pItem ); 101cdf0e10cSrcweir void EnableInetBrowse( sal_Bool bEnable = sal_True ); 102cdf0e10cSrcweir void SetReadOnlyMode( sal_Bool bReadOnly = sal_False ); IsHTMLDoc() const103cdf0e10cSrcweir inline sal_Bool IsHTMLDoc() const { return mbIsHTMLDoc; } 104cdf0e10cSrcweir GetBindings() const105cdf0e10cSrcweir inline SfxBindings* GetBindings() const { return mpBindings; }; GetDispatcher() const106cdf0e10cSrcweir inline SfxDispatcher* GetDispatcher() const { return mpBindings->GetDispatcher(); } 107cdf0e10cSrcweir }; 108cdf0e10cSrcweir 109cdf0e10cSrcweir 110cdf0e10cSrcweir #endif // _CUI_TAB_HYPERLINK_HXX 111