Lines 38-43
Link Here
|
38 |
#include <com/sun/star/awt/FontWeight.hpp> |
38 |
#include <com/sun/star/awt/FontWeight.hpp> |
39 |
#include <com/sun/star/awt/FontWidth.hpp> |
39 |
#include <com/sun/star/awt/FontWidth.hpp> |
40 |
#include <com/sun/star/awt/ImagePosition.hpp> |
40 |
#include <com/sun/star/awt/ImagePosition.hpp> |
|
|
41 |
#include <com/sun/star/awt/ImageScaleMode.hpp> |
41 |
#include <com/sun/star/awt/LineEndFormat.hpp> |
42 |
#include <com/sun/star/awt/LineEndFormat.hpp> |
42 |
#include <com/sun/star/awt/PushButtonType.hpp> |
43 |
#include <com/sun/star/awt/PushButtonType.hpp> |
43 |
#include <com/sun/star/awt/VisualEffect.hpp> |
44 |
#include <com/sun/star/awt/VisualEffect.hpp> |
Lines 968-973
Link Here
|
968 |
} |
969 |
} |
969 |
} |
970 |
} |
970 |
//__________________________________________________________________________________________________ |
971 |
//__________________________________________________________________________________________________ |
|
|
972 |
void ElementDescriptor::readImageScaleModeAttr( OUString const & rPropName, OUString const & rAttrName ) |
973 |
{ |
974 |
if (beans::PropertyState_DEFAULT_VALUE != _xPropState->getPropertyState( rPropName )) |
975 |
{ |
976 |
Any aImageScaleMode( _xProps->getPropertyValue( rPropName ) ); |
977 |
|
978 |
if (aImageScaleMode.getValueTypeClass() == TypeClass_SHORT) |
979 |
{ |
980 |
sal_Int16 nImageScaleMode; |
981 |
aImageScaleMode >>= nImageScaleMode; |
982 |
|
983 |
switch(nImageScaleMode) |
984 |
{ |
985 |
case ::awt::ImageScaleMode::NONE: |
986 |
addAttribute( rAttrName, OUString( RTL_CONSTASCII_USTRINGPARAM("none") ) ); |
987 |
break; |
988 |
case ::awt::ImageScaleMode::ISOTROPIC: |
989 |
addAttribute( rAttrName, OUString( RTL_CONSTASCII_USTRINGPARAM("isotropic") ) ); |
990 |
break; |
991 |
case ::awt::ImageScaleMode::ANISOTROPIC: |
992 |
addAttribute( rAttrName, OUString( RTL_CONSTASCII_USTRINGPARAM("anisotropic") ) ); |
993 |
break; |
994 |
default: |
995 |
OSL_ENSURE( 0, "### illegal image scale mode value."); |
996 |
break; |
997 |
} |
998 |
} |
999 |
} |
1000 |
} |
1001 |
//__________________________________________________________________________________________________ |
971 |
void ElementDescriptor::readDefaults( bool supportPrintable, bool supportVisible ) |
1002 |
void ElementDescriptor::readDefaults( bool supportPrintable, bool supportVisible ) |
972 |
{ |
1003 |
{ |
973 |
Any a( _xProps->getPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM("Name") ) ) ); |
1004 |
Any a( _xProps->getPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM("Name") ) ) ); |