xref: /trunk/main/cui/source/tabpages/borderconn.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 
24 #ifndef SVX_BORDERCONN_HXX
25 #define SVX_BORDERCONN_HXX
26 
27 #include <sfx2/itemconnect.hxx>
28 #include <svx/framebordertype.hxx>
29 
30 class SfxItemSet;
31 class MetricField;
32 class ValueSet;
33 class ColorListBox;
34 
35 namespace svx {
36 
37 class FrameSelector;
38 
39 // ============================================================================
40 
41 /** Creates an item connection object that connects an SvxLineItem with an
42     svx::FrameSelector control. */
43 sfx::ItemConnectionBase* CreateFrameLineConnection( sal_uInt16 nSlot,
44         FrameSelector& rFrameSel, FrameBorderType eBorder,
45         sfx::ItemConnFlags nFlags = sfx::ITEMCONN_DEFAULT );
46 
47 /** Creates an item connection object that connects an SvxMarginItem with the
48     controls of the SvxBorderTabPage. */
49 sfx::ItemConnectionBase* CreateMarginConnection( const SfxItemSet& rItemSet,
50         MetricField& rMfLeft, MetricField& rMfRight,
51         MetricField& rMfTop, MetricField& rMfBottom,
52         sfx::ItemConnFlags nFlags = sfx::ITEMCONN_DEFAULT );
53 
54 /** Creates an item connection object that connects an SvxShadowItem with the
55     controls of the SvxBorderTabPage. */
56 sfx::ItemConnectionBase* CreateShadowConnection( const SfxItemSet& rItemSet,
57         ValueSet& rVsPos, MetricField& rMfSize, ColorListBox& rLbColor,
58         sfx::ItemConnFlags nFlags = sfx::ITEMCONN_DEFAULT );
59 
60 // ============================================================================
61 
62 } // namespace svx
63 
64 #endif
65 
66