1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: connect.hxx,v $
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>
42 #ifndef _FIELD_HXX //autogen
43 #include <vcl/field.hxx>
46 #ifndef _LSTBOX_HXX //autogen
47 #include <vcl/lstbox.hxx>
50 #ifndef _GROUP_HXX //autogen
51 #include <vcl/group.hxx>
53 #include <sfx2/basedlgs.hxx>
57 /*************************************************************************
59 |* Dialog zum Aendern von Konnektoren (Connectors)
61 \************************************************************************/
63 class SvxConnectionPage
: public SfxTabPage
71 MetricField aMtrFldLine1
;
73 MetricField aMtrFldLine2
;
75 MetricField aMtrFldLine3
;
77 FixedLine aFlDistance
;
79 MetricField aMtrFldHorz1
;
81 MetricField aMtrFldVert1
;
83 MetricField aMtrFldHorz2
;
85 MetricField aMtrFldVert2
;
87 SvxXConnectionPreview aCtlPreview
;
89 const SfxItemSet
& rOutAttrs
;
94 #ifdef _SVX_CONNECT_CXX
97 DECL_LINK( ChangeAttrHdl_Impl
, void * );
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
& );
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
126 SvxConnectionDialog( Window
* pParent
, const SfxItemSet
& rAttr
,
127 const SdrView
* pView
);
128 ~SvxConnectionDialog();
132 #endif // _SVX_CONNECT_HXX