xref: /aoo42x/main/cui/source/inc/connect.hxx (revision c4eee24d)
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 #ifndef _SVX_CONNECT_HXX
24 #define _SVX_CONNECT_HXX
25 
26 // include ---------------------------------------------------------------
27 
28 #include <svx/connctrl.hxx>
29 #include <sfx2/tabdlg.hxx>
30 #include <vcl/fixed.hxx>
31 #include <vcl/field.hxx>
32 #include <vcl/lstbox.hxx>
33 #include <vcl/group.hxx>
34 #include <sfx2/basedlgs.hxx>
35 
36 class SdrView;
37 
38 /*************************************************************************
39 |*
40 |* Dialog zum Aendern von Konnektoren (Connectors)
41 |*
42 \************************************************************************/
43 
44 class SvxConnectionPage : public SfxTabPage
45 {
46 private:
47 	FixedText   		aFtType;
48 	ListBox 			aLbType;
49 
50 	FixedLine			aFlDelta;
51 	FixedText			aFtLine1;
52 	MetricField			aMtrFldLine1;
53 	FixedText			aFtLine2;
54 	MetricField			aMtrFldLine2;
55 	FixedText			aFtLine3;
56 	MetricField			aMtrFldLine3;
57 
58 	FixedLine			aFlDistance;
59 	FixedText			aFtHorz1;
60 	MetricField			aMtrFldHorz1;
61 	FixedText			aFtVert1;
62 	MetricField			aMtrFldVert1;
63 	FixedText			aFtHorz2;
64 	MetricField			aMtrFldHorz2;
65 	FixedText			aFtVert2;
66 	MetricField			aMtrFldVert2;
67 
68 	SvxXConnectionPreview	aCtlPreview;
69 
70 	const SfxItemSet&	rOutAttrs;
71 	SfxItemSet			aAttrSet;
72 	const SdrView*		pView;
73 	SfxMapUnit			eUnit;
74 
75 #ifdef _SVX_CONNECT_CXX
76 	void 				FillTypeLB();
77 
78 						DECL_LINK( ChangeAttrHdl_Impl, void * );
79 #endif
80 
81 public:
82 
83 	SvxConnectionPage( Window* pWindow, const SfxItemSet& rInAttrs );
84 	~SvxConnectionPage();
85 
86 	static SfxTabPage* 	Create( Window*, const SfxItemSet& );
87 	static  sal_uInt16*	    GetRanges();
88 
89 	virtual sal_Bool 		FillItemSet( SfxItemSet& );
90 	virtual void 		Reset( const SfxItemSet & );
91 
92 	void 		 Construct();
SetView(const SdrView * pSdrView)93 	void		 SetView( const SdrView* pSdrView ) { pView = pSdrView; }
94 	virtual void PageCreated (SfxAllItemSet aSet); //add CHINA001
95 };
96 
97 /*************************************************************************
98 |*
99 |* Von SfxSingleTabDialog abgeleitet, um vom Control "uber virtuelle Methode
100 |* benachrichtigt werden zu k"onnen.
101 |*
102 \************************************************************************/
103 
104 class SvxConnectionDialog : public SfxSingleTabDialog
105 {
106 public:
107 	SvxConnectionDialog( Window* pParent, const SfxItemSet& rAttr,
108 					   const SdrView* pView );
109 	~SvxConnectionDialog();
110 };
111 
112 
113 #endif // _SVX_CONNECT_HXX
114 
115