animatedimagespeer.cxx (aeee3b8f) animatedimagespeer.cxx (b6dc695e)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 351 unchanged lines hidden (view full) ---

360 sal_Bool bRepeat( sal_True );
361 if ( i_value >>= bRepeat )
362 pThrobber->setRepeat( bRepeat );
363 break;
364 }
365
366 case BASEPROPERTY_IMAGE_SCALE_MODE:
367 {
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 351 unchanged lines hidden (view full) ---

360 sal_Bool bRepeat( sal_True );
361 if ( i_value >>= bRepeat )
362 pThrobber->setRepeat( bRepeat );
363 break;
364 }
365
366 case BASEPROPERTY_IMAGE_SCALE_MODE:
367 {
368 sal_Int16 nScaleMode( ImageScaleMode::Anisotropic );
368 sal_Int16 nScaleMode( ImageScaleMode::ANISOTROPIC );
369 ImageControl* pImageControl = dynamic_cast< ImageControl* >( GetWindow() );
370 if ( pImageControl && ( i_value >>= nScaleMode ) )
371 {
372 pImageControl->SetScaleMode( nScaleMode );
373 }
374 }
375 break;
376

--- 23 unchanged lines hidden (view full) ---

400
401 case BASEPROPERTY_AUTO_REPEAT:
402 aReturn <<= pThrobber->getRepeat();
403 break;
404
405 case BASEPROPERTY_IMAGE_SCALE_MODE:
406 {
407 ImageControl const* pImageControl = dynamic_cast< ImageControl* >( GetWindow() );
369 ImageControl* pImageControl = dynamic_cast< ImageControl* >( GetWindow() );
370 if ( pImageControl && ( i_value >>= nScaleMode ) )
371 {
372 pImageControl->SetScaleMode( nScaleMode );
373 }
374 }
375 break;
376

--- 23 unchanged lines hidden (view full) ---

400
401 case BASEPROPERTY_AUTO_REPEAT:
402 aReturn <<= pThrobber->getRepeat();
403 break;
404
405 case BASEPROPERTY_IMAGE_SCALE_MODE:
406 {
407 ImageControl const* pImageControl = dynamic_cast< ImageControl* >( GetWindow() );
408 aReturn <<= ( pImageControl ? pImageControl->GetScaleMode() : ImageScaleMode::Anisotropic );
408 aReturn <<= ( pImageControl ? pImageControl->GetScaleMode() : ImageScaleMode::ANISOTROPIC );
409 }
410 break;
411
412 default:
413 aReturn = AnimatedImagesPeer_Base::getProperty( i_propertyName );
414 break;
415 }
416

--- 112 unchanged lines hidden ---
409 }
410 break;
411
412 default:
413 aReturn = AnimatedImagesPeer_Base::getProperty( i_propertyName );
414 break;
415 }
416

--- 112 unchanged lines hidden ---