xmlImage.cxx (9e0e4191) xmlImage.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

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

81 }
82
83 break;
84 case XML_TOK_PRESERVE_IRI:
85 _xComponent->setPreserveIRI(s_sTRUE == sValue);
86 break;
87 case XML_TOK_SCALE:
88 {
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

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

81 }
82
83 break;
84 case XML_TOK_PRESERVE_IRI:
85 _xComponent->setPreserveIRI(s_sTRUE == sValue);
86 break;
87 case XML_TOK_SCALE:
88 {
89 sal_uInt16 nRet = awt::ImageScaleMode::None;
89 sal_uInt16 nRet = awt::ImageScaleMode::NONE;
90 if ( s_sTRUE == sValue )
91 {
90 if ( s_sTRUE == sValue )
91 {
92 nRet = awt::ImageScaleMode::Anisotropic;
92 nRet = awt::ImageScaleMode::ANISOTROPIC;
93 }
94 else
95 {
96 const SvXMLEnumMapEntry* aXML_EnumMap = OXMLHelper::GetImageScaleOptions();
97 SvXMLUnitConverter::convertEnum( nRet, sValue, aXML_EnumMap );
98 }
99 _xComponent->setScaleMode( nRet );
100 }

--- 26 unchanged lines hidden ---
93 }
94 else
95 {
96 const SvXMLEnumMapEntry* aXML_EnumMap = OXMLHelper::GetImageScaleOptions();
97 SvXMLUnitConverter::convertEnum( nRet, sValue, aXML_EnumMap );
98 }
99 _xComponent->setScaleMode( nRet );
100 }

--- 26 unchanged lines hidden ---