1*c4eee24dSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*c4eee24dSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*c4eee24dSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*c4eee24dSAndrew Rist * distributed with this work for additional information 6*c4eee24dSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*c4eee24dSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*c4eee24dSAndrew Rist * "License"); you may not use this file except in compliance 9*c4eee24dSAndrew Rist * with the License. You may obtain a copy of the License at 10*c4eee24dSAndrew Rist * 11*c4eee24dSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*c4eee24dSAndrew Rist * 13*c4eee24dSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*c4eee24dSAndrew Rist * software distributed under the License is distributed on an 15*c4eee24dSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*c4eee24dSAndrew Rist * KIND, either express or implied. See the License for the 17*c4eee24dSAndrew Rist * specific language governing permissions and limitations 18*c4eee24dSAndrew Rist * under the License. 19*c4eee24dSAndrew Rist * 20*c4eee24dSAndrew Rist *************************************************************/ 21*c4eee24dSAndrew Rist 22*c4eee24dSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef SVX_BORDERCONN_HXX 25cdf0e10cSrcweir #define SVX_BORDERCONN_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include <sfx2/itemconnect.hxx> 28cdf0e10cSrcweir #include <svx/framebordertype.hxx> 29cdf0e10cSrcweir 30cdf0e10cSrcweir class SfxItemSet; 31cdf0e10cSrcweir class MetricField; 32cdf0e10cSrcweir class ValueSet; 33cdf0e10cSrcweir class ColorListBox; 34cdf0e10cSrcweir 35cdf0e10cSrcweir namespace svx { 36cdf0e10cSrcweir 37cdf0e10cSrcweir class FrameSelector; 38cdf0e10cSrcweir 39cdf0e10cSrcweir // ============================================================================ 40cdf0e10cSrcweir 41cdf0e10cSrcweir /** Creates an item connection object that connects an SvxLineItem with an 42cdf0e10cSrcweir svx::FrameSelector control. */ 43cdf0e10cSrcweir sfx::ItemConnectionBase* CreateFrameLineConnection( sal_uInt16 nSlot, 44cdf0e10cSrcweir FrameSelector& rFrameSel, FrameBorderType eBorder, 45cdf0e10cSrcweir sfx::ItemConnFlags nFlags = sfx::ITEMCONN_DEFAULT ); 46cdf0e10cSrcweir 47cdf0e10cSrcweir /** Creates an item connection object that connects an SvxMarginItem with the 48cdf0e10cSrcweir controls of the SvxBorderTabPage. */ 49cdf0e10cSrcweir sfx::ItemConnectionBase* CreateMarginConnection( const SfxItemSet& rItemSet, 50cdf0e10cSrcweir MetricField& rMfLeft, MetricField& rMfRight, 51cdf0e10cSrcweir MetricField& rMfTop, MetricField& rMfBottom, 52cdf0e10cSrcweir sfx::ItemConnFlags nFlags = sfx::ITEMCONN_DEFAULT ); 53cdf0e10cSrcweir 54cdf0e10cSrcweir /** Creates an item connection object that connects an SvxShadowItem with the 55cdf0e10cSrcweir controls of the SvxBorderTabPage. */ 56cdf0e10cSrcweir sfx::ItemConnectionBase* CreateShadowConnection( const SfxItemSet& rItemSet, 57cdf0e10cSrcweir ValueSet& rVsPos, MetricField& rMfSize, ColorListBox& rLbColor, 58cdf0e10cSrcweir sfx::ItemConnFlags nFlags = sfx::ITEMCONN_DEFAULT ); 59cdf0e10cSrcweir 60cdf0e10cSrcweir // ============================================================================ 61cdf0e10cSrcweir 62cdf0e10cSrcweir } // namespace svx 63cdf0e10cSrcweir 64cdf0e10cSrcweir #endif 65cdf0e10cSrcweir 66