Kaydet (Commit) e27fc9b6 authored tarafından Noel Power's avatar Noel Power

disable scrollable Frame ( not working well )

Change-Id: I09dc7b656c7ff19b937936e0b8436022d287cc87
üst 7c7267e8
......@@ -2445,8 +2445,9 @@ void AxFrameModel::convertProperties( PropertyMap& rPropMap, const ControlConver
{
rPropMap.setProperty( PROP_Label, maCaption );
rPropMap.setProperty( PROP_Enabled, getFlag( mnFlags, AX_CONTAINER_ENABLED ) );
printf("Frame, converting scroll bits\n");
#if SCROLLABLEFRAME
rConv.convertScrollabilitySettings( rPropMap, maScrollPos, maLogicalSize, mnScrollBars );
#endif
AxContainerModelBase::convertProperties( rPropMap, rConv );
}
......@@ -2509,7 +2510,6 @@ void AxUserFormModel::convertProperties( PropertyMap& rPropMap, const ControlCon
rPropMap.setProperty( PROP_Title, maCaption );
rConv.convertColor( rPropMap, PROP_BackgroundColor, mnBackColor );
rConv.convertAxPicture( rPropMap, maPictureData, AX_PICPOS_CENTER );
printf("UserForm, converting scroll bits\n");
rConv.convertScrollabilitySettings( rPropMap, maScrollPos, maLogicalSize, mnScrollBars );
AxContainerModelBase::convertProperties( rPropMap, rConv );
}
......
......@@ -724,11 +724,13 @@ Window* VCLXToolkit::ImplCreateWindow( VCLXWindow** ppNewComp,
break;
case WINDOW_GROUPBOX:
{
#if SCROLLABLEFRAME
if ( bFrameControl )
{
pNewWindow = new toolkit::ScrollableWrapper< GroupBox >( pParent, nWinBits | WB_VSCROLL );
}
else
#endif
pNewWindow = new GroupBox( pParent, nWinBits );
if ( bFrameControl )
{
......
......@@ -361,9 +361,6 @@ void UnoDialogControl::createPeer( const Reference< XToolkit > & rxToolkit, cons
// there must be a better way than doing this, we can't
// process the scrolltop & scrollleft in XDialog because
// the children haven't been added when those props are applied
Reference< XPropertySet > xDlgProps( getModel(), UNO_QUERY );
Reference< XPropertySet > xPeerProps( getPeer(), uno::UNO_QUERY );
ImplSetPeerProperty( GetPropertyName( BASEPROPERTY_SCROLLTOP ), ImplGetPropertyValue( GetPropertyName( BASEPROPERTY_SCROLLTOP ) ) );
ImplSetPeerProperty( GetPropertyName( BASEPROPERTY_SCROLLLEFT ), ImplGetPropertyValue( GetPropertyName( BASEPROPERTY_SCROLLLEFT ) ) );
......
......@@ -124,7 +124,9 @@ void ElementDescriptor::readFrameModel( StyleBag * all_styles )
title->addAttribute( XMLNS_DIALOGS_PREFIX ":value", aTitle );
addSubElement( title );
}
#if SCROLLABLEFRAME
readScrollableSettings();
#endif
uno::Reference< container::XNameContainer > xControlContainer( _xProps, uno::UNO_QUERY );
if ( xControlContainer.is() && xControlContainer->getElementNames().getLength() )
{
......
......@@ -97,7 +97,9 @@ void Frame::endElement()
{
xControlModel->setPropertyValue( "Label" , makeAny( _label ) );
}
#if SCROLLABLEFRAME
ctx.importScollableSettings( _xAttributes );
#endif
ctx.importEvents( _events );
// avoid ring-reference:
// vector< event elements > holding event elements holding this (via _pParent)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment