xref: /aoo41x/main/cui/source/tabpages/borderconn.hxx (revision cdf0e10c)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 #ifndef SVX_BORDERCONN_HXX
29 #define SVX_BORDERCONN_HXX
30 
31 #include <sfx2/itemconnect.hxx>
32 #include <svx/framebordertype.hxx>
33 
34 class SfxItemSet;
35 class MetricField;
36 class ValueSet;
37 class ColorListBox;
38 
39 namespace svx {
40 
41 class FrameSelector;
42 
43 // ============================================================================
44 
45 /** Creates an item connection object that connects an SvxLineItem with an
46     svx::FrameSelector control. */
47 sfx::ItemConnectionBase* CreateFrameLineConnection( sal_uInt16 nSlot,
48         FrameSelector& rFrameSel, FrameBorderType eBorder,
49         sfx::ItemConnFlags nFlags = sfx::ITEMCONN_DEFAULT );
50 
51 /** Creates an item connection object that connects an SvxMarginItem with the
52     controls of the SvxBorderTabPage. */
53 sfx::ItemConnectionBase* CreateMarginConnection( const SfxItemSet& rItemSet,
54         MetricField& rMfLeft, MetricField& rMfRight,
55         MetricField& rMfTop, MetricField& rMfBottom,
56         sfx::ItemConnFlags nFlags = sfx::ITEMCONN_DEFAULT );
57 
58 /** Creates an item connection object that connects an SvxShadowItem with the
59     controls of the SvxBorderTabPage. */
60 sfx::ItemConnectionBase* CreateShadowConnection( const SfxItemSet& rItemSet,
61         ValueSet& rVsPos, MetricField& rMfSize, ColorListBox& rLbColor,
62         sfx::ItemConnFlags nFlags = sfx::ITEMCONN_DEFAULT );
63 
64 // ============================================================================
65 
66 } // namespace svx
67 
68 #endif
69 
70