1*353d8f4dSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*353d8f4dSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*353d8f4dSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*353d8f4dSAndrew Rist * distributed with this work for additional information 6*353d8f4dSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*353d8f4dSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*353d8f4dSAndrew Rist * "License"); you may not use this file except in compliance 9*353d8f4dSAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 11*353d8f4dSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13*353d8f4dSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*353d8f4dSAndrew Rist * software distributed under the License is distributed on an 15*353d8f4dSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*353d8f4dSAndrew Rist * KIND, either express or implied. See the License for the 17*353d8f4dSAndrew Rist * specific language governing permissions and limitations 18*353d8f4dSAndrew Rist * under the License. 19cdf0e10cSrcweir * 20*353d8f4dSAndrew Rist *************************************************************/ 21*353d8f4dSAndrew Rist 22*353d8f4dSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef _SFX_INETTBC_HXX 25cdf0e10cSrcweir #define _SFX_INETTBC_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir // includes ***************************************************************** 28cdf0e10cSrcweir #include <tools/string.hxx> 29cdf0e10cSrcweir #include <tools/urlobj.hxx> 30cdf0e10cSrcweir 31cdf0e10cSrcweir #ifndef _COMBOBOX_HXX //autogen 32cdf0e10cSrcweir #include <vcl/combobox.hxx> 33cdf0e10cSrcweir #endif 34cdf0e10cSrcweir #include <svtools/acceleratorexecute.hxx> 35cdf0e10cSrcweir 36cdf0e10cSrcweir #if _SOLAR__PRIVATE 37cdf0e10cSrcweir 38cdf0e10cSrcweir #include <sfx2/tbxctrl.hxx> 39cdf0e10cSrcweir class SvtURLBox; 40cdf0e10cSrcweir 41cdf0e10cSrcweir class SfxURLToolBoxControl_Impl : public SfxToolBoxControl 42cdf0e10cSrcweir { 43cdf0e10cSrcweir private: 44cdf0e10cSrcweir ::svt::AcceleratorExecute* pAccExec; 45cdf0e10cSrcweir 46cdf0e10cSrcweir SvtURLBox* GetURLBox() const; 47cdf0e10cSrcweir void OpenURL( const String& rName, sal_Bool bNew ) const; 48cdf0e10cSrcweir 49cdf0e10cSrcweir DECL_LINK( OpenHdl, void* ); 50cdf0e10cSrcweir DECL_LINK( SelectHdl, void* ); 51cdf0e10cSrcweir DECL_LINK( WindowEventListener, VclSimpleEvent* ); 52cdf0e10cSrcweir 53cdf0e10cSrcweir struct ExecuteInfo 54cdf0e10cSrcweir { 55cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch > xDispatch; 56cdf0e10cSrcweir ::com::sun::star::util::URL aTargetURL; 57cdf0e10cSrcweir ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > aArgs; 58cdf0e10cSrcweir }; 59cdf0e10cSrcweir 60cdf0e10cSrcweir DECL_STATIC_LINK( SfxURLToolBoxControl_Impl, ExecuteHdl_Impl, ExecuteInfo* ); 61cdf0e10cSrcweir 62cdf0e10cSrcweir public: 63cdf0e10cSrcweir 64cdf0e10cSrcweir SFX_DECL_TOOLBOX_CONTROL(); 65cdf0e10cSrcweir 66cdf0e10cSrcweir SfxURLToolBoxControl_Impl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rBox ); 67cdf0e10cSrcweir virtual ~SfxURLToolBoxControl_Impl(); 68cdf0e10cSrcweir 69cdf0e10cSrcweir virtual Window* CreateItemWindow( Window* pParent ); 70cdf0e10cSrcweir virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ); 71cdf0e10cSrcweir }; 72cdf0e10cSrcweir 73cdf0e10cSrcweir #endif 74cdf0e10cSrcweir 75cdf0e10cSrcweir #endif 76cdf0e10cSrcweir 77