Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : : #ifndef _SVX_CONNECT_HXX
29 : : #define _SVX_CONNECT_HXX
30 : :
31 : : #include <svx/connctrl.hxx>
32 : : #include <sfx2/tabdlg.hxx>
33 : : #include <vcl/fixed.hxx>
34 : : #include <vcl/field.hxx>
35 : : #include <vcl/lstbox.hxx>
36 : : #include <vcl/group.hxx>
37 : : #include <sfx2/basedlgs.hxx>
38 : :
39 : : class SdrView;
40 : :
41 : : /// Dialog for changing connectors.
42 : : class SvxConnectionPage : public SfxTabPage
43 : : {
44 : : private:
45 : : FixedText aFtType;
46 : : ListBox aLbType;
47 : :
48 : : FixedLine aFlDelta;
49 : : FixedText aFtLine1;
50 : : MetricField aMtrFldLine1;
51 : : FixedText aFtLine2;
52 : : MetricField aMtrFldLine2;
53 : : FixedText aFtLine3;
54 : : MetricField aMtrFldLine3;
55 : :
56 : : FixedLine aFlDistance;
57 : : FixedText aFtHorz1;
58 : : MetricField aMtrFldHorz1;
59 : : FixedText aFtVert1;
60 : : MetricField aMtrFldVert1;
61 : : FixedText aFtHorz2;
62 : : MetricField aMtrFldHorz2;
63 : : FixedText aFtVert2;
64 : : MetricField aMtrFldVert2;
65 : :
66 : : SvxXConnectionPreview aCtlPreview;
67 : :
68 : : const SfxItemSet& rOutAttrs;
69 : : SfxItemSet aAttrSet;
70 : : const SdrView* pView;
71 : : SfxMapUnit eUnit;
72 : :
73 : : #ifdef _SVX_CONNECT_CXX
74 : : void FillTypeLB();
75 : :
76 : : DECL_LINK( ChangeAttrHdl_Impl, void * );
77 : : #endif
78 : :
79 : : public:
80 : :
81 : : SvxConnectionPage( Window* pWindow, const SfxItemSet& rInAttrs );
82 : : ~SvxConnectionPage();
83 : :
84 : : static SfxTabPage* Create( Window*, const SfxItemSet& );
85 : : static sal_uInt16* GetRanges();
86 : :
87 : : virtual sal_Bool FillItemSet( SfxItemSet& );
88 : : virtual void Reset( const SfxItemSet & );
89 : :
90 : : void Construct();
91 : 0 : void SetView( const SdrView* pSdrView ) { pView = pSdrView; }
92 : : virtual void PageCreated (SfxAllItemSet aSet);
93 : : };
94 : :
95 : : /* Derived from SfxSingleTabDialog, in order to be informed about
96 : : virtual methods by the control. */
97 : : class SvxConnectionDialog : public SfxSingleTabDialog
98 : : {
99 : : public:
100 : : SvxConnectionDialog( Window* pParent, const SfxItemSet& rAttr,
101 : : const SdrView* pView );
102 : : ~SvxConnectionDialog();
103 : : };
104 : :
105 : : #endif // _SVX_CONNECT_HXX
106 : :
107 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|