GraphicPropertyItemConverter.cxx (cde9e8dc) GraphicPropertyItemConverter.cxx (9ec58d04)
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

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

299
300 lcl_SetContentForNamedProperty(
301 m_xNamedPropertyTableFactory, C2U("com.sun.star.drawing.TransparencyGradientTable"),
302 aItem, MID_FILLGRADIENT );
303
304 // this is important to enable the item
305 ::rtl::OUString aName;
306 if( (aValue >>= aName) &&
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

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

299
300 lcl_SetContentForNamedProperty(
301 m_xNamedPropertyTableFactory, C2U("com.sun.star.drawing.TransparencyGradientTable"),
302 aItem, MID_FILLGRADIENT );
303
304 // this is important to enable the item
305 ::rtl::OUString aName;
306 if( (aValue >>= aName) &&
307 aName.getLength())
307 !aName.isEmpty())
308 {
309 aItem.SetEnabled( sal_True );
310 rOutItemSet.Put( aItem );
311 }
312 }
313 }
314 }
315 catch( beans::UnknownPropertyException ex )

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

542 GetPropertySet()->setPropertyValue( aPropName, aValue );
543 bChanged = true;
544 }
545 }
546 else
547 {
548 ::rtl::OUString aName;
549 if( ( GetPropertySet()->getPropertyValue( aPropName ) >>= aName )
308 {
309 aItem.SetEnabled( sal_True );
310 rOutItemSet.Put( aItem );
311 }
312 }
313 }
314 }
315 catch( beans::UnknownPropertyException ex )

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

542 GetPropertySet()->setPropertyValue( aPropName, aValue );
543 bChanged = true;
544 }
545 }
546 else
547 {
548 ::rtl::OUString aName;
549 if( ( GetPropertySet()->getPropertyValue( aPropName ) >>= aName )
550 && aName.getLength() > 0 )
550 && !aName.isEmpty() )
551 {
552 uno::Reference< beans::XPropertyState > xState( GetPropertySet(), uno::UNO_QUERY );
553 if( xState.is())
554 xState->setPropertyToDefault( aPropName );
555 bChanged = true;
556 }
557 }
558 }

--- 247 unchanged lines hidden ---
551 {
552 uno::Reference< beans::XPropertyState > xState( GetPropertySet(), uno::UNO_QUERY );
553 if( xState.is())
554 xState->setPropertyToDefault( aPropName );
555 bChanged = true;
556 }
557 }
558 }

--- 247 unchanged lines hidden ---