Kaydet (Commit) c047451f authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Replace remaining getCppuType et al with cppu::UnoType

Change-Id: I13a85e13b22559a9f1571ef5771b26d70a5cd4fb
üst 59a051d2
...@@ -2035,7 +2035,7 @@ bool SvxBoxItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) ...@@ -2035,7 +2035,7 @@ bool SvxBoxItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId )
( script::Converter::create(::comphelper::getProcessComponentContext()) ); ( script::Converter::create(::comphelper::getProcessComponentContext()) );
uno::Sequence < uno::Any > aSeq; uno::Sequence < uno::Any > aSeq;
uno::Any aNew; uno::Any aNew;
try { aNew = xConverter->convertTo( rVal, ::getCppuType((const uno::Sequence < uno::Any >*)0) ); } try { aNew = xConverter->convertTo( rVal, cppu::UnoType<uno::Sequence < uno::Any >>::get() ); }
catch (const uno::Exception&) {} catch (const uno::Exception&) {}
aNew >>= aSeq; aNew >>= aSeq;
...@@ -2834,7 +2834,7 @@ bool SvxBoxInfoItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) ...@@ -2834,7 +2834,7 @@ bool SvxBoxInfoItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId )
uno::Reference < script::XTypeConverter > xConverter( script::Converter::create(::comphelper::getProcessComponentContext()) ); uno::Reference < script::XTypeConverter > xConverter( script::Converter::create(::comphelper::getProcessComponentContext()) );
uno::Any aNew; uno::Any aNew;
uno::Sequence < uno::Any > aSeq; uno::Sequence < uno::Any > aSeq;
try { aNew = xConverter->convertTo( rVal, ::getCppuType((const uno::Sequence < uno::Any >*)0) ); } try { aNew = xConverter->convertTo( rVal, cppu::UnoType<uno::Sequence < uno::Any >>::get() ); }
catch (const uno::Exception&) {} catch (const uno::Exception&) {}
if ((aNew >>= aSeq) && if ((aNew >>= aSeq) &&
...@@ -2867,7 +2867,7 @@ bool SvxBoxInfoItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) ...@@ -2867,7 +2867,7 @@ bool SvxBoxInfoItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId )
else else
return false; return false;
} }
else if (rVal.getValueType() == ::getCppuType((const ::com::sun::star::uno::Sequence < sal_Int16 >*)0) ) else if (rVal.getValueType() == cppu::UnoType<css::uno::Sequence < sal_Int16 >>::get() )
{ {
// serialization for basic macro recording // serialization for basic macro recording
::com::sun::star::uno::Sequence < sal_Int16 > aSeq; ::com::sun::star::uno::Sequence < sal_Int16 > aSeq;
......
...@@ -363,7 +363,7 @@ bool SvxAdjustItem::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const ...@@ -363,7 +363,7 @@ bool SvxAdjustItem::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const
case MID_EXPAND_SINGLE : case MID_EXPAND_SINGLE :
{ {
sal_Bool bValue = bOneBlock; sal_Bool bValue = bOneBlock;
rVal.setValue( &bValue, ::getCppuBooleanType() ); rVal.setValue( &bValue, cppu::UnoType<bool>::get() );
break; break;
} }
default: ;//prevent warning default: ;//prevent warning
......
...@@ -243,7 +243,7 @@ void SvxBaseAutoCorrCfg::ImplCommit() ...@@ -243,7 +243,7 @@ void SvxBaseAutoCorrCfg::ImplCommit()
Sequence<Any> aValues(aNames.getLength()); Sequence<Any> aValues(aNames.getLength());
Any* pValues = aValues.getArray(); Any* pValues = aValues.getArray();
const Type& rType = ::getBooleanCppuType(); const Type& rType = cppu::UnoType<bool>::get();
sal_Bool bVal; sal_Bool bVal;
const long nFlags = rParent.pAutoCorrect->GetFlags(); const long nFlags = rParent.pAutoCorrect->GetFlags();
for(int nProp = 0; nProp < aNames.getLength(); nProp++) for(int nProp = 0; nProp < aNames.getLength(); nProp++)
...@@ -552,7 +552,7 @@ void SvxSwAutoCorrCfg::ImplCommit() ...@@ -552,7 +552,7 @@ void SvxSwAutoCorrCfg::ImplCommit()
Sequence<Any> aValues(aNames.getLength()); Sequence<Any> aValues(aNames.getLength());
Any* pValues = aValues.getArray(); Any* pValues = aValues.getArray();
const Type& rType = ::getBooleanCppuType(); const Type& rType = cppu::UnoType<bool>::get();
sal_Bool bVal; sal_Bool bVal;
SvxSwAutoFmtFlags& rSwFlags = rParent.pAutoCorrect->GetSwFlags(); SvxSwAutoFmtFlags& rSwFlags = rParent.pAutoCorrect->GetSwFlags();
for(int nProp = 0; nProp < aNames.getLength(); nProp++) for(int nProp = 0; nProp < aNames.getLength(); nProp++)
......
...@@ -38,7 +38,7 @@ using namespace ::cppu; ...@@ -38,7 +38,7 @@ using namespace ::cppu;
using namespace ::com::sun::star; using namespace ::com::sun::star;
#define QUERYINT( xint ) \ #define QUERYINT( xint ) \
if( rType == ::getCppuType((const uno::Reference< xint >*)0) ) \ if( rType == cppu::UnoType<xint>::get() ) \
aAny <<= uno::Reference< xint >(this) aAny <<= uno::Reference< xint >(this)
...@@ -71,8 +71,8 @@ const SfxItemPropertySet* ImplGetFieldItemPropertySet( sal_Int32 mnId ) ...@@ -71,8 +71,8 @@ const SfxItemPropertySet* ImplGetFieldItemPropertySet( sal_Int32 mnId )
static const SfxItemPropertyMapEntry aExDateTimeFieldPropertyMap_Impl[] = static const SfxItemPropertyMapEntry aExDateTimeFieldPropertyMap_Impl[] =
{ {
{ OUString(UNO_TC_PROP_DATE_TIME), WID_DATE, ::cppu::UnoType<util::DateTime>::get(), 0, 0 }, { OUString(UNO_TC_PROP_DATE_TIME), WID_DATE, ::cppu::UnoType<util::DateTime>::get(), 0, 0 },
{ OUString(UNO_TC_PROP_IS_FIXED), WID_BOOL1, ::getBooleanCppuType(), 0, 0 }, { OUString(UNO_TC_PROP_IS_FIXED), WID_BOOL1, cppu::UnoType<bool>::get(), 0, 0 },
{ OUString(UNO_TC_PROP_IS_DATE), WID_BOOL2, ::getBooleanCppuType(), 0, 0 }, { OUString(UNO_TC_PROP_IS_DATE), WID_BOOL2, cppu::UnoType<bool>::get(), 0, 0 },
{ OUString(UNO_TC_PROP_NUMFORMAT), WID_INT32, ::cppu::UnoType<sal_Int32>::get(), 0, 0 }, { OUString(UNO_TC_PROP_NUMFORMAT), WID_INT32, ::cppu::UnoType<sal_Int32>::get(), 0, 0 },
{ OUString(), 0, css::uno::Type(), 0, 0 } { OUString(), 0, css::uno::Type(), 0, 0 }
}; };
...@@ -80,7 +80,7 @@ const SfxItemPropertySet* ImplGetFieldItemPropertySet( sal_Int32 mnId ) ...@@ -80,7 +80,7 @@ const SfxItemPropertySet* ImplGetFieldItemPropertySet( sal_Int32 mnId )
static const SfxItemPropertyMapEntry aDateTimeFieldPropertyMap_Impl[] = static const SfxItemPropertyMapEntry aDateTimeFieldPropertyMap_Impl[] =
{ {
{ OUString(UNO_TC_PROP_IS_DATE), WID_BOOL2, ::getBooleanCppuType(), 0, 0 }, { OUString(UNO_TC_PROP_IS_DATE), WID_BOOL2, cppu::UnoType<bool>::get(), 0, 0 },
{ OUString(), 0, css::uno::Type(), 0, 0 } { OUString(), 0, css::uno::Type(), 0, 0 }
}; };
static const SfxItemPropertySet aDateTimeFieldPropertySet_Impl(aDateTimeFieldPropertyMap_Impl); static const SfxItemPropertySet aDateTimeFieldPropertySet_Impl(aDateTimeFieldPropertyMap_Impl);
...@@ -104,7 +104,7 @@ const SfxItemPropertySet* ImplGetFieldItemPropertySet( sal_Int32 mnId ) ...@@ -104,7 +104,7 @@ const SfxItemPropertySet* ImplGetFieldItemPropertySet( sal_Int32 mnId )
static const SfxItemPropertyMapEntry aExtFileFieldPropertyMap_Impl[] = static const SfxItemPropertyMapEntry aExtFileFieldPropertyMap_Impl[] =
{ {
{ OUString(UNO_TC_PROP_IS_FIXED), WID_BOOL1, ::getBooleanCppuType(), 0, 0 }, { OUString(UNO_TC_PROP_IS_FIXED), WID_BOOL1, cppu::UnoType<bool>::get(), 0, 0 },
{ OUString(UNO_TC_PROP_FILE_FORMAT), WID_INT16, ::cppu::UnoType<sal_Int16>::get(), 0, 0 }, { OUString(UNO_TC_PROP_FILE_FORMAT), WID_INT16, ::cppu::UnoType<sal_Int16>::get(), 0, 0 },
{ OUString(UNO_TC_PROP_CURRENT_PRESENTATION), WID_STRING1, ::cppu::UnoType<OUString>::get(), 0, 0 }, { OUString(UNO_TC_PROP_CURRENT_PRESENTATION), WID_STRING1, ::cppu::UnoType<OUString>::get(), 0, 0 },
{ OUString(), 0, css::uno::Type(), 0, 0 } { OUString(), 0, css::uno::Type(), 0, 0 }
...@@ -113,11 +113,11 @@ const SfxItemPropertySet* ImplGetFieldItemPropertySet( sal_Int32 mnId ) ...@@ -113,11 +113,11 @@ const SfxItemPropertySet* ImplGetFieldItemPropertySet( sal_Int32 mnId )
static const SfxItemPropertyMapEntry aAuthorFieldPropertyMap_Impl[] = static const SfxItemPropertyMapEntry aAuthorFieldPropertyMap_Impl[] =
{ {
{ OUString(UNO_TC_PROP_IS_FIXED), WID_BOOL1, ::getBooleanCppuType(), 0, 0 }, { OUString(UNO_TC_PROP_IS_FIXED), WID_BOOL1, cppu::UnoType<bool>::get(), 0, 0 },
{ OUString(UNO_TC_PROP_CURRENT_PRESENTATION), WID_STRING1,::cppu::UnoType<OUString>::get(), 0, 0 }, { OUString(UNO_TC_PROP_CURRENT_PRESENTATION), WID_STRING1,::cppu::UnoType<OUString>::get(), 0, 0 },
{ OUString(UNO_TC_PROP_AUTHOR_CONTENT), WID_STRING2,::cppu::UnoType<OUString>::get(), 0, 0 }, { OUString(UNO_TC_PROP_AUTHOR_CONTENT), WID_STRING2,::cppu::UnoType<OUString>::get(), 0, 0 },
{ OUString(UNO_TC_PROP_AUTHOR_FORMAT), WID_INT16, ::cppu::UnoType<sal_Int16>::get(), 0, 0 }, { OUString(UNO_TC_PROP_AUTHOR_FORMAT), WID_INT16, ::cppu::UnoType<sal_Int16>::get(), 0, 0 },
{ OUString(UNO_TC_PROP_AUTHOR_FULLNAME), WID_BOOL2, ::getBooleanCppuType(), 0, 0 }, { OUString(UNO_TC_PROP_AUTHOR_FULLNAME), WID_BOOL2, cppu::UnoType<bool>::get(), 0, 0 },
{ OUString(), 0, css::uno::Type(), 0, 0 } { OUString(), 0, css::uno::Type(), 0, 0 }
}; };
static const SfxItemPropertySet aAuthorFieldPropertySet_Impl(aAuthorFieldPropertyMap_Impl); static const SfxItemPropertySet aAuthorFieldPropertySet_Impl(aAuthorFieldPropertyMap_Impl);
......
...@@ -130,7 +130,7 @@ Any SAL_CALL SvxUnoNumberingRules::getByIndex( sal_Int32 Index ) ...@@ -130,7 +130,7 @@ Any SAL_CALL SvxUnoNumberingRules::getByIndex( sal_Int32 Index )
Type SAL_CALL SvxUnoNumberingRules::getElementType() Type SAL_CALL SvxUnoNumberingRules::getElementType()
throw( RuntimeException, std::exception ) throw( RuntimeException, std::exception )
{ {
return ::getCppuType(( const Sequence< beans::PropertyValue >*)0); return cppu::UnoType<Sequence< beans::PropertyValue >>::get();
} }
sal_Bool SAL_CALL SvxUnoNumberingRules::hasElements() throw( RuntimeException, std::exception ) sal_Bool SAL_CALL SvxUnoNumberingRules::hasElements() throw( RuntimeException, std::exception )
......
...@@ -69,7 +69,7 @@ ESelection toESelection(const text::TextRangeSelection& rSel) ...@@ -69,7 +69,7 @@ ESelection toESelection(const text::TextRangeSelection& rSel)
} }
#define QUERYINT( xint ) \ #define QUERYINT( xint ) \
if( rType == ::getCppuType((const uno::Reference< xint >*)0) ) \ if( rType == cppu::UnoType<xint>::get() ) \
return uno::makeAny(uno::Reference< xint >(this)) return uno::makeAny(uno::Reference< xint >(this))
const SvxItemPropertySet* ImplGetSvxUnoOutlinerTextCursorSvxPropertySet() const SvxItemPropertySet* ImplGetSvxUnoOutlinerTextCursorSvxPropertySet()
......
...@@ -33,7 +33,7 @@ using namespace ::cppu; ...@@ -33,7 +33,7 @@ using namespace ::cppu;
using namespace ::com::sun::star; using namespace ::com::sun::star;
#define QUERYINT( xint ) \ #define QUERYINT( xint ) \
if( rType == ::getCppuType((const uno::Reference< xint >*)0) ) \ if( rType == cppu::UnoType<xint>::get() ) \
return uno::makeAny(uno::Reference< xint >(this)) return uno::makeAny(uno::Reference< xint >(this))
......
...@@ -382,7 +382,7 @@ SvxXMLTextExportComponent::SvxXMLTextExportComponent( ...@@ -382,7 +382,7 @@ SvxXMLTextExportComponent::SvxXMLTextExportComponent(
SVX_UNOEDIT_FONT_PROPERTIES, SVX_UNOEDIT_FONT_PROPERTIES,
// SVX_UNOEDIT_OUTLINER_PROPERTIES, // SVX_UNOEDIT_OUTLINER_PROPERTIES,
{OUString(UNO_NAME_NUMBERING_RULES), EE_PARA_NUMBULLET, cppu::UnoType<com::sun::star::container::XIndexReplace>::get(), 0, 0 }, {OUString(UNO_NAME_NUMBERING_RULES), EE_PARA_NUMBULLET, cppu::UnoType<com::sun::star::container::XIndexReplace>::get(), 0, 0 },
{OUString(UNO_NAME_NUMBERING), EE_PARA_BULLETSTATE,::getBooleanCppuType(), 0, 0 }, {OUString(UNO_NAME_NUMBERING), EE_PARA_BULLETSTATE,cppu::UnoType<bool>::get(), 0, 0 },
{OUString(UNO_NAME_NUMBERING_LEVEL), EE_PARA_OUTLLEVEL, ::cppu::UnoType<sal_Int16>::get(), 0, 0 }, {OUString(UNO_NAME_NUMBERING_LEVEL), EE_PARA_OUTLLEVEL, ::cppu::UnoType<sal_Int16>::get(), 0, 0 },
SVX_UNOEDIT_PARA_PROPERTIES, SVX_UNOEDIT_PARA_PROPERTIES,
{ OUString(), 0, css::uno::Type(), 0, 0 } { OUString(), 0, css::uno::Type(), 0, 0 }
......
This diff is collapsed.
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