summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--framework/source/uielement/comboboxtoolbarcontroller.cxx45
-rw-r--r--framework/source/uielement/dropdownboxtoolbarcontroller.cxx13
2 files changed, 0 insertions, 58 deletions
diff --git a/framework/source/uielement/comboboxtoolbarcontroller.cxx b/framework/source/uielement/comboboxtoolbarcontroller.cxx
index e4be0c413c63..11e775fd9911 100644
--- a/framework/source/uielement/comboboxtoolbarcontroller.cxx
+++ b/framework/source/uielement/comboboxtoolbarcontroller.cxx
@@ -327,51 +327,6 @@ void ComboboxToolbarController::executeControlCommand( const css::frame::Control
}
}
}
- else if ( rControlCommand.Command == "SetDropDownLines" )
- {
- for ( sal_Int32 i = 0; i < rControlCommand.Arguments.getLength(); i++ )
- {
- if ( rControlCommand.Arguments[i].Name == "Lines" )
- {
- sal_Int32 nValue( 5 );
- rControlCommand.Arguments[i].Value >>= nValue;
- m_pComboBox->SetDropDownLineCount( sal_uInt16( nValue ));
- break;
- }
- }
- }
- else if ( rControlCommand.Command == "SetBackgroundColor" )
- {
- for ( sal_Int32 i = 0; i < rControlCommand.Arguments.getLength(); i++ )
- {
- if ( rControlCommand.Arguments[i].Name == "Color" )
- {
- css::util::Color aColor(0);
- if ( rControlCommand.Arguments[i].Value >>= aColor )
- {
- ::Color aBackColor( static_cast< sal_uInt32 >( aColor ));
- m_pComboBox->SetControlBackground( aBackColor );
- }
- break;
- }
- }
- }
- else if ( rControlCommand.Command == "SetTextColor" )
- {
- for ( sal_Int32 i = 0; i < rControlCommand.Arguments.getLength(); i++ )
- {
- if ( rControlCommand.Arguments[i].Name == "Color" )
- {
- css::util::Color aColor(0);
- if ( rControlCommand.Arguments[i].Value >>= aColor )
- {
- ::Color aForeColor( static_cast< sal_uInt32 >( aColor ));
- m_pComboBox->SetControlForeground( aForeColor );
- }
- break;
- }
- }
- }
}
} // namespace
diff --git a/framework/source/uielement/dropdownboxtoolbarcontroller.cxx b/framework/source/uielement/dropdownboxtoolbarcontroller.cxx
index 6eacd138660d..a14a288a2619 100644
--- a/framework/source/uielement/dropdownboxtoolbarcontroller.cxx
+++ b/framework/source/uielement/dropdownboxtoolbarcontroller.cxx
@@ -268,19 +268,6 @@ void DropdownToolbarController::executeControlCommand( const css::frame::Control
}
}
}
- else if ( rControlCommand.Command == "SetDropDownLines" )
- {
- for ( sal_Int32 i = 0; i < rControlCommand.Arguments.getLength(); i++ )
- {
- if ( rControlCommand.Arguments[i].Name == "Lines" )
- {
- sal_Int32 nValue( 5 );
- rControlCommand.Arguments[i].Value >>= nValue;
- m_pListBoxControl->SetDropDownLineCount( sal_uInt16( nValue ));
- break;
- }
- }
- }
}
} // namespace