// some initializations which are the same for all controls
XPropertySet xModelProps = UNO.queryPropertySet( xModel );
try
{
XPropertySetInfo xPSI = xModelProps.getPropertySetInfo();
if ( xPSI.hasPropertyByName( "Border" ) )
{
if ( ((Short)xModelProps.getPropertyValue( "Border" )).shortValue() == com.sun.star.awt.VisualEffect.LOOK3D )
xModelProps.setPropertyValue( "Border", new Short( com.sun.star.awt.VisualEffect.FLAT ) );
}
if ( xPSI.hasPropertyByName( "VisualEffect" ) )
xModelProps.setPropertyValue( "VisualEffect", new Short( com.sun.star.awt.VisualEffect.FLAT ) );
if ( m_document.classify() != DocumentType.CALC )
if ( xPSI.hasPropertyByName( "BorderColor" ) )
xModelProps.setPropertyValue( "BorderColor", new Integer( 0x00C0C0C0 ) );
}
catch( com.sun.star.uno.Exception e )
{
System.err.println(e);