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