axcontrol.cxx (ca5ec200) | axcontrol.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 --- 440 unchanged lines hidden (view full) --- 449 450void ControlConverter::convertAxPicture( PropertyMap& rPropMap, const StreamDataSequence& rPicData, 451 sal_Int32 nPicSizeMode, sal_Int32 /*nPicAlign*/, bool /*bPicTiling*/ ) const 452{ 453 // the picture 454 convertPicture( rPropMap, rPicData ); 455 456 // picture scale mode | 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 --- 440 unchanged lines hidden (view full) --- 449 450void ControlConverter::convertAxPicture( PropertyMap& rPropMap, const StreamDataSequence& rPicData, 451 sal_Int32 nPicSizeMode, sal_Int32 /*nPicAlign*/, bool /*bPicTiling*/ ) const 452{ 453 // the picture 454 convertPicture( rPropMap, rPicData ); 455 456 // picture scale mode |
457 sal_Int16 nScaleMode = ImageScaleMode::None; | 457 sal_Int16 nScaleMode = ImageScaleMode::NONE; |
458 switch( nPicSizeMode ) 459 { | 458 switch( nPicSizeMode ) 459 { |
460 case AX_PICSIZE_CLIP: nScaleMode = ImageScaleMode::None; break; 461 case AX_PICSIZE_STRETCH: nScaleMode = ImageScaleMode::Anisotropic; break; 462 case AX_PICSIZE_ZOOM: nScaleMode = ImageScaleMode::Isotropic; break; | 460 case AX_PICSIZE_CLIP: nScaleMode = ImageScaleMode::NONE; break; 461 case AX_PICSIZE_STRETCH: nScaleMode = ImageScaleMode::ISOTROPIC; break; 462 case AX_PICSIZE_ZOOM: nScaleMode = ImageScaleMode::ANISOTROPIC; break; |
463 default: OSL_ENSURE( false, "ControlConverter::convertAxPicture - unknown picture size mode" ); 464 } 465 rPropMap.setProperty( PROP_ScaleMode, nScaleMode ); 466} 467 468void ControlConverter::convertAxState( PropertyMap& rPropMap, 469 const OUString& rValue, sal_Int32 nMultiSelect, ApiDefaultStateMode eDefStateMode, bool bAwtModel ) const 470{ --- 1391 unchanged lines hidden --- | 463 default: OSL_ENSURE( false, "ControlConverter::convertAxPicture - unknown picture size mode" ); 464 } 465 rPropMap.setProperty( PROP_ScaleMode, nScaleMode ); 466} 467 468void ControlConverter::convertAxState( PropertyMap& rPropMap, 469 const OUString& rValue, sal_Int32 nMultiSelect, ApiDefaultStateMode eDefStateMode, bool bAwtModel ) const 470{ --- 1391 unchanged lines hidden --- |