Lines Matching refs:nValue

38 void lcl_xmloff_setAny( Any& rValue, sal_Int32 nValue, sal_Int8 nBytes )  in lcl_xmloff_setAny()  argument
43 if( nValue < SCHAR_MIN ) in lcl_xmloff_setAny()
44 nValue = SCHAR_MIN; in lcl_xmloff_setAny()
45 else if( nValue > SCHAR_MAX ) in lcl_xmloff_setAny()
46 nValue = SCHAR_MAX; in lcl_xmloff_setAny()
47 rValue <<= (sal_Int8)nValue; in lcl_xmloff_setAny()
50 if( nValue < SHRT_MIN ) in lcl_xmloff_setAny()
51 nValue = SHRT_MIN; in lcl_xmloff_setAny()
52 else if( nValue > SHRT_MAX ) in lcl_xmloff_setAny()
53 nValue = SHRT_MAX; in lcl_xmloff_setAny()
54 rValue <<= (sal_Int16)nValue; in lcl_xmloff_setAny()
57 rValue <<= nValue; in lcl_xmloff_setAny()
62 sal_Bool lcl_xmloff_getAny( const Any& rValue, sal_Int32& nValue, in lcl_xmloff_getAny() argument
73 nValue = nValue8; in lcl_xmloff_getAny()
80 nValue = nValue16; in lcl_xmloff_getAny()
84 bRet = rValue >>= nValue; in lcl_xmloff_getAny()
105 sal_Int32 nValue = 0; in importXML() local
106 bRet = SvXMLUnitConverter::convertNumber( nValue, rStrImpValue ); in importXML()
107 lcl_xmloff_setAny( rValue, nValue, nBytes ); in importXML()
115 sal_Int32 nValue; in exportXML() local
118 if( lcl_xmloff_getAny( rValue, nValue, nBytes ) ) in exportXML()
120 SvXMLUnitConverter::convertNumber( aOut, nValue ); in exportXML()
154 sal_Int32 nValue = 0; in importXML() local
161 bRet = SvXMLUnitConverter::convertNumber( nValue, rStrImpValue ); in importXML()
163 lcl_xmloff_setAny( rValue, nValue, nBytes ); in importXML()
171 sal_Int32 nValue; in exportXML() local
173 if( lcl_xmloff_getAny( rValue, nValue, nBytes ) ) in exportXML()
177 if( nValue == 0 ) in exportXML()
183 SvXMLUnitConverter::convertNumber( aOut, nValue ); in exportXML()
208 sal_Int32 nValue = 0; in importXML() local
209 bRet = rUnitConverter.convertMeasure( nValue, rStrImpValue ); in importXML()
210 lcl_xmloff_setAny( rValue, nValue, nBytes ); in importXML()
218 sal_Int32 nValue; in exportXML() local
221 if( lcl_xmloff_getAny( rValue, nValue, nBytes ) ) in exportXML()
223 rUnitConverter.convertMeasure( aOut, nValue ); in exportXML()
322 sal_Int32 nValue = 0; in importXML() local
323 bRet = SvXMLUnitConverter::convertPercent( nValue, rStrImpValue ); in importXML()
324 lcl_xmloff_setAny( rValue, nValue, nBytes ); in importXML()
332 sal_Int32 nValue; in exportXML() local
335 if( lcl_xmloff_getAny( rValue, nValue, nBytes ) ) in exportXML()
337 SvXMLUnitConverter::convertPercent( aOut, nValue ); in exportXML()
363 sal_Int32 nValue = 0; in importXML() local
364 bRet = SvXMLUnitConverter::convertPercent( nValue, rStrImpValue ); in importXML()
365 fValue = ((double)nValue) / 100.0; in importXML()
382 sal_Int32 nValue = (sal_Int32)fValue; in exportXML() local
385 SvXMLUnitConverter::convertPercent( aOut, nValue ); in exportXML()
409 sal_Int32 nValue = 0; in importXML() local
410 bRet = SvXMLUnitConverter::convertPercent( nValue, rStrImpValue ); in importXML()
411 lcl_xmloff_setAny( rValue, 100-nValue, nBytes ); in importXML()
419 sal_Int32 nValue; in exportXML() local
422 if( lcl_xmloff_getAny( rValue, nValue, nBytes ) ) in exportXML()
424 SvXMLUnitConverter::convertPercent( aOut, 100-nValue ); in exportXML()
448 sal_Int32 nValue = 0; in importXML() local
449 bRet = SvXMLUnitConverter::convertMeasurePx( nValue, rStrImpValue ); in importXML()
450 lcl_xmloff_setAny( rValue, nValue, nBytes ); in importXML()
458 sal_Int32 nValue; in exportXML() local
461 if( lcl_xmloff_getAny( rValue, nValue, nBytes ) ) in exportXML()
463 SvXMLUnitConverter::convertMeasurePx( aOut, nValue ); in exportXML()
874 sal_Int32 nValue = 0; in importXML() local
875 sal_Bool bRet = SvXMLUnitConverter::convertNumber( nValue, rStrImpValue ); in importXML()
877 lcl_xmloff_setAny( rValue, nValue, nBytes ); in importXML()
884 sal_Int32 nValue = 0; in exportXML() local
885 sal_Bool bRet = lcl_xmloff_getAny( rValue, nValue, nBytes ); in exportXML()
886 bRet &= nValue != 0; in exportXML()
891 SvXMLUnitConverter::convertNumber( aBuffer, nValue ); in exportXML()
911 sal_Int32 nValue = 0; in importXML() local
912 sal_Bool bRet = SvXMLUnitConverter::convertNumber( nValue, rStrImpValue ); in importXML()
914 lcl_xmloff_setAny( rValue, nValue, 2 ); in importXML()
917 rValue <<= (sal_Int16)nValue; in importXML()
926 sal_Int32 nValue = 0; in exportXML() local
927 lcl_xmloff_getAny( rValue, nValue, 2 ); in exportXML()
929 if( 0 == nValue ) in exportXML()
934 SvXMLUnitConverter::convertNumber( aBuffer, nValue ); in exportXML()