Kaydet (Commit) 8e74946f authored tarafından Oliver Bolte's avatar Oliver Bolte

INTEGRATION: CWS sb59 (1.4.24); FILE MERGED

2006/08/09 12:53:57 sb 1.4.24.1: #i67487# Made code warning-free (wntmsci10).
üst d16d260e
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: tabsthdl.cxx,v $ * $RCSfile: tabsthdl.cxx,v $
* *
* $Revision: 1.5 $ * $Revision: 1.6 $
* *
* last change: $Author: obo $ $Date: 2006-09-17 10:57:30 $ * last change: $Author: obo $ $Date: 2006-10-12 14:51:06 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -60,7 +60,7 @@ XMLTabStopPropHdl::~XMLTabStopPropHdl() ...@@ -60,7 +60,7 @@ XMLTabStopPropHdl::~XMLTabStopPropHdl()
// Nothing to do // Nothing to do
} }
sal_Bool XMLTabStopPropHdl::equals( const uno::Any& r1, const uno::Any& r2 ) const bool XMLTabStopPropHdl::equals( const uno::Any& r1, const uno::Any& r2 ) const
{ {
sal_Bool bEqual = sal_False; sal_Bool bEqual = sal_False;
......
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: weighhdl.cxx,v $ * $RCSfile: weighhdl.cxx,v $
* *
* $Revision: 1.5 $ * $Revision: 1.6 $
* *
* last change: $Author: obo $ $Date: 2006-09-17 10:58:10 $ * last change: $Author: obo $ $Date: 2006-10-12 14:51:57 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -112,7 +112,7 @@ XMLFontWeightPropHdl::~XMLFontWeightPropHdl() ...@@ -112,7 +112,7 @@ XMLFontWeightPropHdl::~XMLFontWeightPropHdl()
// Nothing to do // Nothing to do
} }
sal_Bool XMLFontWeightPropHdl::importXML( const OUString& rStrImpValue, Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const sal_Bool XMLFontWeightPropHdl::importXML( const OUString& rStrImpValue, Any& rValue, const SvXMLUnitConverter& ) const
{ {
sal_Bool bRet = sal_False; sal_Bool bRet = sal_False;
sal_uInt16 nWeight = 0; sal_uInt16 nWeight = 0;
...@@ -130,8 +130,9 @@ sal_Bool XMLFontWeightPropHdl::importXML( const OUString& rStrImpValue, Any& rVa ...@@ -130,8 +130,9 @@ sal_Bool XMLFontWeightPropHdl::importXML( const OUString& rStrImpValue, Any& rVa
else else
{ {
sal_Int32 nTemp; sal_Int32 nTemp;
if( ( bRet = rUnitConverter.convertNumber( nTemp, rStrImpValue, 100, 900 ) ) ) bRet = SvXMLUnitConverter::convertNumber( nTemp, rStrImpValue, 100, 900 );
nWeight = nTemp; if( bRet )
nWeight = sal::static_int_cast< sal_uInt16 >(nTemp);
} }
if( bRet ) if( bRet )
...@@ -159,7 +160,7 @@ sal_Bool XMLFontWeightPropHdl::importXML( const OUString& rStrImpValue, Any& rVa ...@@ -159,7 +160,7 @@ sal_Bool XMLFontWeightPropHdl::importXML( const OUString& rStrImpValue, Any& rVa
return bRet; return bRet;
} }
sal_Bool XMLFontWeightPropHdl::exportXML( OUString& rStrExpValue, const Any& rValue, const SvXMLUnitConverter& rUnitConverter ) const sal_Bool XMLFontWeightPropHdl::exportXML( OUString& rStrExpValue, const Any& rValue, const SvXMLUnitConverter& ) const
{ {
sal_Bool bRet = sal_False; sal_Bool bRet = sal_False;
FontWeight eWeight; FontWeight eWeight;
...@@ -199,7 +200,7 @@ sal_Bool XMLFontWeightPropHdl::exportXML( OUString& rStrExpValue, const Any& rVa ...@@ -199,7 +200,7 @@ sal_Bool XMLFontWeightPropHdl::exportXML( OUString& rStrExpValue, const Any& rVa
else if( 700 == nWeight ) else if( 700 == nWeight )
aOut.append( GetXMLToken(XML_WEIGHT_BOLD) ); aOut.append( GetXMLToken(XML_WEIGHT_BOLD) );
else else
rUnitConverter.convertNumber( aOut, (sal_Int32)nWeight ); SvXMLUnitConverter::convertNumber( aOut, (sal_Int32)nWeight );
rStrExpValue = aOut.makeStringAndClear(); rStrExpValue = aOut.makeStringAndClear();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment