diff options
Diffstat (limited to 'sfx2/source/dialog/itemconnect.cxx')
-rw-r--r-- | sfx2/source/dialog/itemconnect.cxx | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/sfx2/source/dialog/itemconnect.cxx b/sfx2/source/dialog/itemconnect.cxx index e793ef7879ce..f07e55131814 100644 --- a/sfx2/source/dialog/itemconnect.cxx +++ b/sfx2/source/dialog/itemconnect.cxx @@ -129,6 +129,34 @@ void CheckBoxWrapper::SetControlValue( bool bValue ) } +ColorListBoxWrapper::ColorListBoxWrapper(ColorListBox & rListBox): + SingleControlWrapper< ColorListBox, Color >(rListBox) +{} + +ColorListBoxWrapper::~ColorListBoxWrapper() +{} + +bool ColorListBoxWrapper::IsControlDontKnow() const +{ + return GetControl().GetSelectEntryCount() == 0; +} + +void ColorListBoxWrapper::SetControlDontKnow( bool bSet ) +{ + if( bSet ) GetControl().SetNoSelection(); +} + +Color ColorListBoxWrapper::GetControlValue() const +{ + return GetControl().GetSelectEntryColor(); +} + +void ColorListBoxWrapper::SetControlValue( Color aColor ) +{ + GetControl().SelectEntry( aColor ); +} + + // Multi control wrappers |