xref: /aoo41x/main/sd/source/ui/inc/gluectrl.hxx (revision 67e470da)
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 SD_GLUECTRL_HXX
25 #define SD_GLUECTRL_HXX
26 
27 #include <vcl/lstbox.hxx>
28 #include <sfx2/tbxctrl.hxx>
29 
30 /*************************************************************************
31 |*
32 |* GluePointEscDirLB
33 |*
34 \************************************************************************/
35 class GlueEscDirLB : public ListBox
36 {
37 private:
38     ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > m_xFrame;
39 public:
40                 GlueEscDirLB( Window* pParent,
41                               const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame );
42 				 ~GlueEscDirLB();
43 
44 	virtual void Select();
45 
46 	void		 Fill();
47 };
48 
49 /*************************************************************************
50 |*
51 |* Toolbox-Controller fuer Klebepunkte-Austrittsrichtung
52 |*
53 \************************************************************************/
54 
55 class SdTbxCtlGlueEscDir: public SfxToolBoxControl
56 {
57 private:
58 	sal_uInt16	GetEscDirPos( sal_uInt16 nEscDir );
59 
60 public:
61 	virtual void StateChanged( sal_uInt16 nSId, SfxItemState eState,
62 								const SfxPoolItem* pState );
63 	virtual Window*		CreateItemWindow( Window *pParent );
64 
65 			SFX_DECL_TOOLBOX_CONTROL();
66 
67 			SdTbxCtlGlueEscDir( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
~SdTbxCtlGlueEscDir()68 			~SdTbxCtlGlueEscDir() {}
69 };
70 
71 #endif // SD_GLUECTRL_HXX
72 
73