animatedimages.cxx (79aad27f) | animatedimages.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 --- 291 unchanged lines hidden (view full) --- 300 301 //------------------------------------------------------------------------------------------------------------------ 302 void SAL_CALL AnimatedImagesControlModel::setFastPropertyValue_NoBroadcast( sal_Int32 i_handle, const Any& i_value ) throw (Exception) 303 { 304 switch ( i_handle ) 305 { 306 case BASEPROPERTY_IMAGE_SCALE_MODE: 307 { | 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 --- 291 unchanged lines hidden (view full) --- 300 301 //------------------------------------------------------------------------------------------------------------------ 302 void SAL_CALL AnimatedImagesControlModel::setFastPropertyValue_NoBroadcast( sal_Int32 i_handle, const Any& i_value ) throw (Exception) 303 { 304 switch ( i_handle ) 305 { 306 case BASEPROPERTY_IMAGE_SCALE_MODE: 307 { |
308 sal_Int16 nImageScaleMode( ImageScaleMode::Anisotropic ); | 308 sal_Int16 nImageScaleMode( ImageScaleMode::ANISOTROPIC ); |
309 OSL_VERIFY( i_value >>= nImageScaleMode ); // convertFastPropertyValue ensures that this has the proper type | 309 OSL_VERIFY( i_value >>= nImageScaleMode ); // convertFastPropertyValue ensures that this has the proper type |
310 if ( ( nImageScaleMode != ImageScaleMode::None ) 311 && ( nImageScaleMode != ImageScaleMode::Isotropic ) 312 && ( nImageScaleMode != ImageScaleMode::Anisotropic ) | 310 if ( ( nImageScaleMode != ImageScaleMode::NONE ) 311 && ( nImageScaleMode != ImageScaleMode::ISOTROPIC ) 312 && ( nImageScaleMode != ImageScaleMode::ANISOTROPIC ) |
313 ) 314 throw IllegalArgumentException( ::rtl::OUString(), *this, 1 ); 315 } 316 break; 317 } 318 319 AnimatedImagesControlModel_Base::setFastPropertyValue_NoBroadcast( i_handle, i_value ); 320 } --- 11 unchanged lines hidden (view full) --- 332 333 case BASEPROPERTY_STEP_TIME: 334 return makeAny( (sal_Int32) 100 ); 335 336 case BASEPROPERTY_AUTO_REPEAT: 337 return makeAny( (sal_Bool)sal_True ); 338 339 case BASEPROPERTY_IMAGE_SCALE_MODE: | 313 ) 314 throw IllegalArgumentException( ::rtl::OUString(), *this, 1 ); 315 } 316 break; 317 } 318 319 AnimatedImagesControlModel_Base::setFastPropertyValue_NoBroadcast( i_handle, i_value ); 320 } --- 11 unchanged lines hidden (view full) --- 332 333 case BASEPROPERTY_STEP_TIME: 334 return makeAny( (sal_Int32) 100 ); 335 336 case BASEPROPERTY_AUTO_REPEAT: 337 return makeAny( (sal_Bool)sal_True ); 338 339 case BASEPROPERTY_IMAGE_SCALE_MODE: |
340 return makeAny( ImageScaleMode::None ); | 340 return makeAny( ImageScaleMode::NONE ); |
341 342 default: 343 return UnoControlModel::ImplGetDefaultValue( i_propertyId ); 344 } 345 } 346 347 //------------------------------------------------------------------------------------------------------------------ 348 ::cppu::IPropertyArrayHelper& SAL_CALL AnimatedImagesControlModel::getInfoHelper() --- 33 unchanged lines hidden (view full) --- 382 void SAL_CALL AnimatedImagesControlModel::setAutoRepeat( ::sal_Bool i_autoRepeat ) throw (RuntimeException) 383 { 384 setPropertyValue( GetPropertyName( BASEPROPERTY_AUTO_REPEAT ), makeAny( i_autoRepeat ) ); 385 } 386 387 //------------------------------------------------------------------------------------------------------------------ 388 ::sal_Int16 SAL_CALL AnimatedImagesControlModel::getScaleMode() throw (RuntimeException) 389 { | 341 342 default: 343 return UnoControlModel::ImplGetDefaultValue( i_propertyId ); 344 } 345 } 346 347 //------------------------------------------------------------------------------------------------------------------ 348 ::cppu::IPropertyArrayHelper& SAL_CALL AnimatedImagesControlModel::getInfoHelper() --- 33 unchanged lines hidden (view full) --- 382 void SAL_CALL AnimatedImagesControlModel::setAutoRepeat( ::sal_Bool i_autoRepeat ) throw (RuntimeException) 383 { 384 setPropertyValue( GetPropertyName( BASEPROPERTY_AUTO_REPEAT ), makeAny( i_autoRepeat ) ); 385 } 386 387 //------------------------------------------------------------------------------------------------------------------ 388 ::sal_Int16 SAL_CALL AnimatedImagesControlModel::getScaleMode() throw (RuntimeException) 389 { |
390 sal_Int16 nImageScaleMode( ImageScaleMode::Anisotropic ); | 390 sal_Int16 nImageScaleMode( ImageScaleMode::ANISOTROPIC ); |
391 OSL_VERIFY( getPropertyValue( GetPropertyName( BASEPROPERTY_IMAGE_SCALE_MODE ) ) >>= nImageScaleMode ); 392 return nImageScaleMode; 393 } 394 395 //------------------------------------------------------------------------------------------------------------------ 396 void SAL_CALL AnimatedImagesControlModel::setScaleMode( ::sal_Int16 i_scaleMode ) throw (IllegalArgumentException, RuntimeException) 397 { 398 setPropertyValue( GetPropertyName( BASEPROPERTY_IMAGE_SCALE_MODE ), makeAny( i_scaleMode ) ); --- 92 unchanged lines hidden --- | 391 OSL_VERIFY( getPropertyValue( GetPropertyName( BASEPROPERTY_IMAGE_SCALE_MODE ) ) >>= nImageScaleMode ); 392 return nImageScaleMode; 393 } 394 395 //------------------------------------------------------------------------------------------------------------------ 396 void SAL_CALL AnimatedImagesControlModel::setScaleMode( ::sal_Int16 i_scaleMode ) throw (IllegalArgumentException, RuntimeException) 397 { 398 setPropertyValue( GetPropertyName( BASEPROPERTY_IMAGE_SCALE_MODE ), makeAny( i_scaleMode ) ); --- 92 unchanged lines hidden --- |