View | Details | Raw Unified | Return to issue 71649
Collapse All | Expand All

(-)sd/source/filter/eppt/epptso.cxx (-18 / +49 lines)
Lines 2003-2029 Link Here
2003
		}
2020
		}
2004
	}
2021
	}
2005
2022
2006
    if ( ImplGetPropertyValue( String( RTL_CONSTASCII_USTRINGPARAM( "CharWeight" ) ), bGetPropStateValue ) )
2023
	if ( nScriptType != com::sun::star::i18n::ScriptType::COMPLEX )
2007
    {
2024
	{
2008
        float fFloat;
2025
	    if ( ImplGetPropertyValue( String( RTL_CONSTASCII_USTRINGPARAM( "CharWeight" ) ), bGetPropStateValue ) )
2009
        mAny >>= fFloat;
2026
	    {
2010
        if ( fFloat >= ::com::sun::star::awt::FontWeight::SEMIBOLD )
2027
		float fFloat;
2011
            mnCharAttr |= 1;
2028
		mAny >>= fFloat;
2012
    }
2029
		if ( fFloat >= ::com::sun::star::awt::FontWeight::SEMIBOLD )
2030
		    mnCharAttr |= 1;
2031
	    }
2032
	}
2033
	else
2034
	{
2035
	    if ( ImplGetPropertyValue( String( RTL_CONSTASCII_USTRINGPARAM( "CharWeightComplex" ) ), bGetPropStateValue ) )
2036
	    {
2037
		float fFloat;
2038
		mAny >>= fFloat;
2039
		if ( fFloat >= ::com::sun::star::awt::FontWeight::SEMIBOLD )
2040
		    mnCharAttr |= 1;
2041
	    }
2042
	}
2043
2013
    if ( ePropState == ::com::sun::star::beans::PropertyState_DIRECT_VALUE )
2044
    if ( ePropState == ::com::sun::star::beans::PropertyState_DIRECT_VALUE )
2014
        mnCharAttrHard |= 1;
2045
        mnCharAttrHard |= 1;
2015
2046
2016
    if ( ImplGetPropertyValue( String( RTL_CONSTASCII_USTRINGPARAM( "CharPosture" ) ), bGetPropStateValue ) )
2047
	if ( nScriptType != com::sun::star::i18n::ScriptType::COMPLEX )
2017
    {
2048
	{
2018
        ::com::sun::star::awt::FontSlant aFS;
2049
		if ( ImplGetPropertyValue( String( RTL_CONSTASCII_USTRINGPARAM( "CharPosture" ) ), bGetPropStateValue ) )
2019
        mAny >>= aFS;
2050
		{
2020
        switch ( aFS )
2051
			::com::sun::star::awt::FontSlant aFS;
2021
        {
2052
			mAny >>= aFS;
2022
            case ::com::sun::star::awt::FontSlant_OBLIQUE :
2053
			switch ( aFS )
2023
            case ::com::sun::star::awt::FontSlant_ITALIC :
2054
			{
2024
                mnCharAttr |= 2;
2055
			    case ::com::sun::star::awt::FontSlant_OBLIQUE :
2025
        }
2056
			    case ::com::sun::star::awt::FontSlant_ITALIC :
2026
    }
2057
				mnCharAttr |= 2;
2058
			}
2059
		}
2060
	}
2061
	else
2062
	{
2063
		if ( ImplGetPropertyValue( String( RTL_CONSTASCII_USTRINGPARAM( "CharPostureComplex" ) ), bGetPropStateValue ) )
2064
		{
2065
			::com::sun::star::awt::FontSlant aFS;
2066
			mAny >>= aFS;
2067
			switch ( aFS )
2068
			{
2069
			    case ::com::sun::star::awt::FontSlant_OBLIQUE :
2070
			    case ::com::sun::star::awt::FontSlant_ITALIC :
2071
				mnCharAttr |= 2;
2072
			}
2073
		}
2074
	}
2027
    if ( ePropState == ::com::sun::star::beans::PropertyState_DIRECT_VALUE )
2075
    if ( ePropState == ::com::sun::star::beans::PropertyState_DIRECT_VALUE )
2028
        mnCharAttrHard |= 2;
2076
        mnCharAttrHard |= 2;
2029
2077

Return to issue 71649