diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-09-21 17:09:42 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-09-22 20:28:23 +0200 |
commit | 32eac27a2c22aae63941479482ef21e8d75a5122 (patch) | |
tree | 64e7e5dff4ac0fbd7c117b398e365a0728fdde1e /include/sfx2/itemconnect.hxx | |
parent | 47f84e024344d9a50e44dda4f947945e8fc643b5 (diff) |
weld AlignmentTabPage
Change-Id: I253a01b053efe836b0657f9a711cecd060b6782b
Reviewed-on: https://gerrit.libreoffice.org/60883
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/sfx2/itemconnect.hxx')
-rw-r--r-- | include/sfx2/itemconnect.hxx | 83 |
1 files changed, 1 insertions, 82 deletions
diff --git a/include/sfx2/itemconnect.hxx b/include/sfx2/itemconnect.hxx index a4a122cddaac..622114e0a2d5 100644 --- a/include/sfx2/itemconnect.hxx +++ b/include/sfx2/itemconnect.hxx @@ -143,23 +143,13 @@ namespace sfx { | +- ItemControlConnection< ItemWrpT, ControlWrpT > | | - | +- CheckBoxConnection [1] - | | | +- NumericConnection< ItemWrpT > [1] | | | | | +- [ValueType]NumericConnection [1] [2] | | - | +- MetricConnection< ItemWrpT > [1] - | | | - | | +- [ValueType]MetricConnection [1] [2] - | | | +- ListBoxConnection< ItemWrpT > [1] - | | | - | | +- [ValueType]ListBoxConnection [1] [2] - | | - | +- ValueSetConnection< ItemWrpT > [1] | | - | +- [ValueType]ValueSetConnection [1] [2] + | +- [ValueType]ListBoxConnection [1] [2] | +- ItemConnectionArray [1] @@ -273,34 +263,6 @@ private: sal_uInt16 mnSlot; }; - -/** Connection between an SfxBoolItem and a VCL CheckBox. */ -typedef ItemControlConnection< BoolItemWrapper, CheckBoxWrapper > CheckBoxConnection; - - -/** Connection between an item and the VCL MetricField. - - Adds support of different field units during control value <-> item value - conversion. The field unit passed to the constructor applies for the item - values, while the field unit used in the control has to be set at the - control itself. - */ -template< typename ItemWrpT > -class MetricConnection : public ItemControlConnection< ItemWrpT, - MetricFieldWrapper< typename ItemWrpT::ItemValueType > > -{ - typedef ItemControlConnection< ItemWrpT, - MetricFieldWrapper< typename ItemWrpT::ItemValueType > > - ItemControlConnectionType; - -public: - typedef typename ItemControlConnectionType::ControlWrapperType MetricFieldWrapperType; - - explicit MetricConnection( sal_uInt16 nSlot, MetricField& rField, - FieldUnit eItemUnit, ItemConnFlags nFlags = ItemConnFlags::NONE ); -}; - - /** Connection between an item and a VCL ListBox. Optionally a map can be passed that maps list box positions to item values. @@ -326,31 +288,6 @@ public: }; -/** Connection between an item and an SVTOOLS ValueSet. - - Optionally a map can be passed that maps value set identifiers to item - values. This map MUST be terminated with an entry containing - WRAPPER_VALUESET_ITEM_NOTFOUND as value set identifier. The item value - contained in this last entry is used as default item value in case of an - error. - */ -template< typename ItemWrpT > -class ValueSetConnection : public ItemControlConnection< ItemWrpT, - ValueSetWrapper< typename ItemWrpT::ItemValueType > > -{ - typedef ItemControlConnection< ItemWrpT, - ValueSetWrapper< typename ItemWrpT::ItemValueType > > - ItemControlConnectionType; - -public: - typedef typename ItemControlConnectionType::ControlWrapperType ValueSetWrapperType; - typedef typename ValueSetWrapperType::MapEntryType MapEntryType; - - explicit ValueSetConnection( sal_uInt16 nSlot, ValueSet& rValueSet, - const MapEntryType* pMap, ItemConnFlags nFlags = ItemConnFlags::NONE ); -}; - - // Array of connections @@ -462,15 +399,6 @@ bool ItemControlConnection< ItemWrpT, ControlWrpT >::FillItemSet( // Standard connections - -template< typename ItemWrpT > -MetricConnection< ItemWrpT >::MetricConnection( - sal_uInt16 nSlot, MetricField& rField, FieldUnit eItemUnit, ItemConnFlags nFlags ) : - ItemControlConnectionType( nSlot, new MetricFieldWrapperType( rField, eItemUnit ), nFlags ) -{ -} - - template< typename ItemWrpT > ListBoxConnection< ItemWrpT >::ListBoxConnection( sal_uInt16 nSlot, ListBox& rListBox, const MapEntryType* pMap, ItemConnFlags nFlags ) : @@ -478,15 +406,6 @@ ListBoxConnection< ItemWrpT >::ListBoxConnection( { } - -template< typename ItemWrpT > -ValueSetConnection< ItemWrpT >::ValueSetConnection( - sal_uInt16 nSlot, ValueSet& rValueSet, const MapEntryType* pMap, ItemConnFlags nFlags ) : - ItemControlConnectionType( nSlot, new ValueSetWrapperType( rValueSet, pMap ), nFlags ) -{ -} - - } // namespace sfx #endif |