Update ooo320-m1
[ooovba.git] / svx / source / cui / connect.hxx
blob9da2afa42d89289437ec67b89b4bb920ac359911
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: connect.hxx,v $
10 * $Revision: 1.4 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _SVX_CONNECT_HXX
31 #define _SVX_CONNECT_HXX
33 // include ---------------------------------------------------------------
35 #include "connctrl.hxx"
36 #include <sfx2/tabdlg.hxx>
38 #ifndef _FIXED_HXX //autogen
39 #include <vcl/fixed.hxx>
40 #endif
42 #ifndef _FIELD_HXX //autogen
43 #include <vcl/field.hxx>
44 #endif
46 #ifndef _LSTBOX_HXX //autogen
47 #include <vcl/lstbox.hxx>
48 #endif
50 #ifndef _GROUP_HXX //autogen
51 #include <vcl/group.hxx>
52 #endif
53 #include <sfx2/basedlgs.hxx>
55 class SdrView;
57 /*************************************************************************
59 |* Dialog zum Aendern von Konnektoren (Connectors)
61 \************************************************************************/
63 class SvxConnectionPage : public SfxTabPage
65 private:
66 FixedText aFtType;
67 ListBox aLbType;
69 FixedLine aFlDelta;
70 FixedText aFtLine1;
71 MetricField aMtrFldLine1;
72 FixedText aFtLine2;
73 MetricField aMtrFldLine2;
74 FixedText aFtLine3;
75 MetricField aMtrFldLine3;
77 FixedLine aFlDistance;
78 FixedText aFtHorz1;
79 MetricField aMtrFldHorz1;
80 FixedText aFtVert1;
81 MetricField aMtrFldVert1;
82 FixedText aFtHorz2;
83 MetricField aMtrFldHorz2;
84 FixedText aFtVert2;
85 MetricField aMtrFldVert2;
87 SvxXConnectionPreview aCtlPreview;
89 const SfxItemSet& rOutAttrs;
90 SfxItemSet aAttrSet;
91 const SdrView* pView;
92 SfxMapUnit eUnit;
94 #ifdef _SVX_CONNECT_CXX
95 void FillTypeLB();
97 DECL_LINK( ChangeAttrHdl_Impl, void * );
98 #endif
100 public:
102 SvxConnectionPage( Window* pWindow, const SfxItemSet& rInAttrs );
103 ~SvxConnectionPage();
105 static SfxTabPage* Create( Window*, const SfxItemSet& );
106 static USHORT* GetRanges();
108 virtual BOOL FillItemSet( SfxItemSet& );
109 virtual void Reset( const SfxItemSet & );
111 void Construct();
112 void SetView( const SdrView* pSdrView ) { pView = pSdrView; }
113 virtual void PageCreated (SfxAllItemSet aSet); //add CHINA001
116 /*************************************************************************
118 |* Von SfxSingleTabDialog abgeleitet, um vom Control "uber virtuelle Methode
119 |* benachrichtigt werden zu k"onnen.
121 \************************************************************************/
123 class SvxConnectionDialog : public SfxSingleTabDialog
125 public:
126 SvxConnectionDialog( Window* pParent, const SfxItemSet& rAttr,
127 const SdrView* pView );
128 ~SvxConnectionDialog();
132 #endif // _SVX_CONNECT_HXX