add property name when throwing css::uno::UnknownPropertyException
Change-Id: I17f06c9415b9d43b6d8896360e07216c2856367a Reviewed-on: https://gerrit.libreoffice.org/79627 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
parent
e51a2917ab
commit
b56a4eaf5e
@ -4204,7 +4204,7 @@ void SAL_CALL ModuleInvocationProxy::setValue(const OUString& rProperty, const A
|
|||||||
{
|
{
|
||||||
// TODO: Check vba behavior concerning missing function
|
// TODO: Check vba behavior concerning missing function
|
||||||
//StarBASIC::Error( ERRCODE_BASIC_NO_METHOD, aFunctionName );
|
//StarBASIC::Error( ERRCODE_BASIC_NO_METHOD, aFunctionName );
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(aPropertyFunctionName);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Setup parameter
|
// Setup parameter
|
||||||
@ -4242,7 +4242,7 @@ Any SAL_CALL ModuleInvocationProxy::getValue(const OUString& rProperty)
|
|||||||
{
|
{
|
||||||
// TODO: Check vba behavior concerning missing function
|
// TODO: Check vba behavior concerning missing function
|
||||||
//StarBASIC::Error( ERRCODE_BASIC_NO_METHOD, aFunctionName );
|
//StarBASIC::Error( ERRCODE_BASIC_NO_METHOD, aFunctionName );
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(aPropertyFunctionName);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Call method
|
// Call method
|
||||||
|
@ -293,7 +293,7 @@ DocObjectWrapper::setValue( const OUString& aPropertyName, const Any& aValue )
|
|||||||
|
|
||||||
SbPropertyRef pProperty = getProperty( aPropertyName );
|
SbPropertyRef pProperty = getProperty( aPropertyName );
|
||||||
if ( !pProperty.is() )
|
if ( !pProperty.is() )
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(aPropertyName);
|
||||||
unoToSbxValue( pProperty.get(), aValue );
|
unoToSbxValue( pProperty.get(), aValue );
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -305,7 +305,7 @@ DocObjectWrapper::getValue( const OUString& aPropertyName )
|
|||||||
|
|
||||||
SbPropertyRef pProperty = getProperty( aPropertyName );
|
SbPropertyRef pProperty = getProperty( aPropertyName );
|
||||||
if ( !pProperty.is() )
|
if ( !pProperty.is() )
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(aPropertyName);
|
||||||
|
|
||||||
SbxVariable* pProp = pProperty.get();
|
SbxVariable* pProp = pProperty.get();
|
||||||
if ( pProp->GetType() == SbxEMPTY )
|
if ( pProp->GetType() == SbxEMPTY )
|
||||||
|
@ -2772,13 +2772,13 @@ void SAL_CALL ChartView::setPropertyValue( const OUString& rPropertyName
|
|||||||
throw lang::IllegalArgumentException( "Property 'SdrViewIsInEditMode' requires value of type sal_Bool", nullptr, 0 );
|
throw lang::IllegalArgumentException( "Property 'SdrViewIsInEditMode' requires value of type sal_Bool", nullptr, 0 );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw beans::UnknownPropertyException( "unknown property was tried to set to chart wizard", nullptr );
|
throw beans::UnknownPropertyException( "unknown property was tried to set to chart wizard " + rPropertyName, nullptr );
|
||||||
}
|
}
|
||||||
|
|
||||||
Any SAL_CALL ChartView::getPropertyValue( const OUString& rPropertyName )
|
Any SAL_CALL ChartView::getPropertyValue( const OUString& rPropertyName )
|
||||||
{
|
{
|
||||||
if( rPropertyName != "Resolution" )
|
if( rPropertyName != "Resolution" )
|
||||||
throw beans::UnknownPropertyException( "unknown property was tried to get from chart wizard", nullptr );
|
throw beans::UnknownPropertyException( "unknown property was tried to get from chart wizard " + rPropertyName, nullptr );
|
||||||
|
|
||||||
return Any(m_aPageResolution);
|
return Any(m_aPageResolution);
|
||||||
}
|
}
|
||||||
|
@ -143,7 +143,7 @@ Property OPropertyArrayAggregationHelper::getPropertyByName( const OUString& _rP
|
|||||||
const Property* pProperty = findPropertyByName( _rPropertyName );
|
const Property* pProperty = findPropertyByName( _rPropertyName );
|
||||||
|
|
||||||
if ( !pProperty )
|
if ( !pProperty )
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(_rPropertyName);
|
||||||
|
|
||||||
return *pProperty;
|
return *pProperty;
|
||||||
}
|
}
|
||||||
@ -739,7 +739,7 @@ css::beans::PropertyState SAL_CALL OPropertySetAggregationHelper::getPropertySta
|
|||||||
|
|
||||||
if (nHandle == -1)
|
if (nHandle == -1)
|
||||||
{
|
{
|
||||||
throw css::beans::UnknownPropertyException();
|
throw css::beans::UnknownPropertyException(_rPropertyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
OUString aPropName;
|
OUString aPropName;
|
||||||
@ -762,7 +762,7 @@ void SAL_CALL OPropertySetAggregationHelper::setPropertyToDefault(const OUString
|
|||||||
sal_Int32 nHandle = rPH.getHandleByName(_rPropertyName);
|
sal_Int32 nHandle = rPH.getHandleByName(_rPropertyName);
|
||||||
if (nHandle == -1)
|
if (nHandle == -1)
|
||||||
{
|
{
|
||||||
throw css::beans::UnknownPropertyException();
|
throw css::beans::UnknownPropertyException(_rPropertyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
OUString aPropName;
|
OUString aPropName;
|
||||||
@ -794,7 +794,7 @@ css::uno::Any SAL_CALL OPropertySetAggregationHelper::getPropertyDefault(const O
|
|||||||
sal_Int32 nHandle = rPH.getHandleByName( aPropertyName );
|
sal_Int32 nHandle = rPH.getHandleByName( aPropertyName );
|
||||||
|
|
||||||
if ( nHandle == -1 )
|
if ( nHandle == -1 )
|
||||||
throw css::beans::UnknownPropertyException();
|
throw css::beans::UnknownPropertyException(aPropertyName);
|
||||||
|
|
||||||
OUString aPropName;
|
OUString aPropName;
|
||||||
sal_Int32 nOriginalHandle = -1;
|
sal_Int32 nOriginalHandle = -1;
|
||||||
|
@ -169,7 +169,7 @@ namespace comphelper
|
|||||||
void PropertyBag::getFastPropertyValue( sal_Int32 _nHandle, Any& _out_rValue ) const
|
void PropertyBag::getFastPropertyValue( sal_Int32 _nHandle, Any& _out_rValue ) const
|
||||||
{
|
{
|
||||||
if ( !hasPropertyByHandle( _nHandle ) )
|
if ( !hasPropertyByHandle( _nHandle ) )
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(OUString::number(_nHandle));
|
||||||
|
|
||||||
OPropertyContainerHelper::getFastPropertyValue( _out_rValue, _nHandle );
|
OPropertyContainerHelper::getFastPropertyValue( _out_rValue, _nHandle );
|
||||||
}
|
}
|
||||||
@ -178,7 +178,7 @@ namespace comphelper
|
|||||||
bool PropertyBag::convertFastPropertyValue( sal_Int32 _nHandle, const Any& _rNewValue, Any& _out_rConvertedValue, Any& _out_rCurrentValue ) const
|
bool PropertyBag::convertFastPropertyValue( sal_Int32 _nHandle, const Any& _rNewValue, Any& _out_rConvertedValue, Any& _out_rCurrentValue ) const
|
||||||
{
|
{
|
||||||
if ( !hasPropertyByHandle( _nHandle ) )
|
if ( !hasPropertyByHandle( _nHandle ) )
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(OUString::number(_nHandle));
|
||||||
|
|
||||||
return const_cast< PropertyBag* >( this )->OPropertyContainerHelper::convertFastPropertyValue(
|
return const_cast< PropertyBag* >( this )->OPropertyContainerHelper::convertFastPropertyValue(
|
||||||
_out_rConvertedValue, _out_rCurrentValue, _nHandle, _rNewValue );
|
_out_rConvertedValue, _out_rCurrentValue, _nHandle, _rNewValue );
|
||||||
@ -188,7 +188,7 @@ namespace comphelper
|
|||||||
void PropertyBag::setFastPropertyValue( sal_Int32 _nHandle, const Any& _rValue )
|
void PropertyBag::setFastPropertyValue( sal_Int32 _nHandle, const Any& _rValue )
|
||||||
{
|
{
|
||||||
if ( !hasPropertyByHandle( _nHandle ) )
|
if ( !hasPropertyByHandle( _nHandle ) )
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(OUString::number(_nHandle));
|
||||||
|
|
||||||
OPropertyContainerHelper::setFastPropertyValue( _nHandle, _rValue );
|
OPropertyContainerHelper::setFastPropertyValue( _nHandle, _rValue );
|
||||||
}
|
}
|
||||||
@ -197,7 +197,7 @@ namespace comphelper
|
|||||||
void PropertyBag::getPropertyDefaultByHandle( sal_Int32 _nHandle, Any& _out_rValue ) const
|
void PropertyBag::getPropertyDefaultByHandle( sal_Int32 _nHandle, Any& _out_rValue ) const
|
||||||
{
|
{
|
||||||
if ( !hasPropertyByHandle( _nHandle ) )
|
if ( !hasPropertyByHandle( _nHandle ) )
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(OUString::number(_nHandle));
|
||||||
|
|
||||||
MapInt2Any::const_iterator pos = m_pImpl->aDefaults.find( _nHandle );
|
MapInt2Any::const_iterator pos = m_pImpl->aDefaults.find( _nHandle );
|
||||||
OSL_ENSURE( pos != m_pImpl->aDefaults.end(), "PropertyBag::getPropertyDefaultByHandle: inconsistency!" );
|
OSL_ENSURE( pos != m_pImpl->aDefaults.end(), "PropertyBag::getPropertyDefaultByHandle: inconsistency!" );
|
||||||
|
@ -93,7 +93,7 @@ void OPropertyContainerHelper::revokeProperty( sal_Int32 _nHandle )
|
|||||||
{
|
{
|
||||||
PropertiesIterator aPos = searchHandle( _nHandle );
|
PropertiesIterator aPos = searchHandle( _nHandle );
|
||||||
if ( aPos == m_aProperties.end() )
|
if ( aPos == m_aProperties.end() )
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(OUString::number(_nHandle));
|
||||||
m_aProperties.erase( aPos );
|
m_aProperties.erase( aPos );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ namespace comphelper
|
|||||||
sal_Int32 nHandle = rPH.getHandleByName(_rsName);
|
sal_Int32 nHandle = rPH.getHandleByName(_rsName);
|
||||||
|
|
||||||
if (nHandle == -1)
|
if (nHandle == -1)
|
||||||
throw css::beans::UnknownPropertyException();
|
throw css::beans::UnknownPropertyException(_rsName);
|
||||||
|
|
||||||
return getPropertyStateByHandle(nHandle);
|
return getPropertyStateByHandle(nHandle);
|
||||||
}
|
}
|
||||||
@ -92,7 +92,7 @@ namespace comphelper
|
|||||||
sal_Int32 nHandle = rPH.getHandleByName(_rsName);
|
sal_Int32 nHandle = rPH.getHandleByName(_rsName);
|
||||||
|
|
||||||
if (nHandle == -1)
|
if (nHandle == -1)
|
||||||
throw css::beans::UnknownPropertyException();
|
throw css::beans::UnknownPropertyException(_rsName);
|
||||||
|
|
||||||
setPropertyToDefaultByHandle(nHandle);
|
setPropertyToDefaultByHandle(nHandle);
|
||||||
}
|
}
|
||||||
@ -104,7 +104,7 @@ namespace comphelper
|
|||||||
sal_Int32 nHandle = rPH.getHandleByName(_rsName);
|
sal_Int32 nHandle = rPH.getHandleByName(_rsName);
|
||||||
|
|
||||||
if (nHandle == -1)
|
if (nHandle == -1)
|
||||||
throw css::beans::UnknownPropertyException();
|
throw css::beans::UnknownPropertyException(_rsName);
|
||||||
|
|
||||||
return getPropertyDefaultByHandle(nHandle);
|
return getPropertyDefaultByHandle(nHandle);
|
||||||
}
|
}
|
||||||
|
@ -109,7 +109,7 @@ Property OPropertySetHelperInfo_Impl::getPropertyByName( const OUString & Proper
|
|||||||
sizeof( Property ),
|
sizeof( Property ),
|
||||||
compare_OUString_Property_Impl ));
|
compare_OUString_Property_Impl ));
|
||||||
if( !pR ) {
|
if( !pR ) {
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(PropertyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
return *pR;
|
return *pR;
|
||||||
@ -295,7 +295,7 @@ void OPropertySetHelper::addPropertyChangeListener(
|
|||||||
sal_Int32 nHandle = rPH.getHandleByName( rPropertyName );
|
sal_Int32 nHandle = rPH.getHandleByName( rPropertyName );
|
||||||
if( nHandle == -1 ) {
|
if( nHandle == -1 ) {
|
||||||
// property not known throw exception
|
// property not known throw exception
|
||||||
throw UnknownPropertyException() ;
|
throw UnknownPropertyException(rPropertyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
sal_Int16 nAttributes;
|
sal_Int16 nAttributes;
|
||||||
@ -338,7 +338,7 @@ void OPropertySetHelper::removePropertyChangeListener(
|
|||||||
sal_Int32 nHandle = rPH.getHandleByName( rPropertyName );
|
sal_Int32 nHandle = rPH.getHandleByName( rPropertyName );
|
||||||
if( nHandle == -1 )
|
if( nHandle == -1 )
|
||||||
// property not known throw exception
|
// property not known throw exception
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(rPropertyName);
|
||||||
aBoundLC.removeInterface( nHandle, rxListener );
|
aBoundLC.removeInterface( nHandle, rxListener );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -371,7 +371,7 @@ void OPropertySetHelper::addVetoableChangeListener(
|
|||||||
sal_Int32 nHandle = rPH.getHandleByName( rPropertyName );
|
sal_Int32 nHandle = rPH.getHandleByName( rPropertyName );
|
||||||
if( nHandle == -1 ) {
|
if( nHandle == -1 ) {
|
||||||
// property not known throw exception
|
// property not known throw exception
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(rPropertyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
sal_Int16 nAttributes;
|
sal_Int16 nAttributes;
|
||||||
@ -412,7 +412,7 @@ void OPropertySetHelper::removeVetoableChangeListener(
|
|||||||
sal_Int32 nHandle = rPH.getHandleByName( rPropertyName );
|
sal_Int32 nHandle = rPH.getHandleByName( rPropertyName );
|
||||||
if( nHandle == -1 ) {
|
if( nHandle == -1 ) {
|
||||||
// property not known throw exception
|
// property not known throw exception
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(rPropertyName);
|
||||||
}
|
}
|
||||||
// remove the vetoable listener to the helper container
|
// remove the vetoable listener to the helper container
|
||||||
aVetoableLC.removeInterface( nHandle, rxListener );
|
aVetoableLC.removeInterface( nHandle, rxListener );
|
||||||
@ -435,7 +435,7 @@ void OPropertySetHelper::setDependentFastPropertyValue( sal_Int32 i_handle, cons
|
|||||||
IPropertyArrayHelper& rInfo = getInfoHelper();
|
IPropertyArrayHelper& rInfo = getInfoHelper();
|
||||||
if ( !rInfo.fillPropertyMembersByHandle( nullptr, &nAttributes, i_handle ) )
|
if ( !rInfo.fillPropertyMembersByHandle( nullptr, &nAttributes, i_handle ) )
|
||||||
// unknown property
|
// unknown property
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(OUString::number(i_handle));
|
||||||
|
|
||||||
// no need to check for READONLY-ness of the property. The method is intended to be called internally, which
|
// no need to check for READONLY-ness of the property. The method is intended to be called internally, which
|
||||||
// implies it might be invoked for properties which are read-only to the instance's clients, but well allowed
|
// implies it might be invoked for properties which are read-only to the instance's clients, but well allowed
|
||||||
@ -486,7 +486,7 @@ void OPropertySetHelper::setFastPropertyValue( sal_Int32 nHandle, const Any& rVa
|
|||||||
sal_Int16 nAttributes;
|
sal_Int16 nAttributes;
|
||||||
if( !rInfo.fillPropertyMembersByHandle( nullptr, &nAttributes, nHandle ) ) {
|
if( !rInfo.fillPropertyMembersByHandle( nullptr, &nAttributes, nHandle ) ) {
|
||||||
// unknown property
|
// unknown property
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(OUString::number(nHandle));
|
||||||
}
|
}
|
||||||
if( nAttributes & PropertyAttribute::READONLY )
|
if( nAttributes & PropertyAttribute::READONLY )
|
||||||
throw PropertyVetoException();
|
throw PropertyVetoException();
|
||||||
@ -548,7 +548,7 @@ Any OPropertySetHelper::getFastPropertyValue( sal_Int32 nHandle )
|
|||||||
IPropertyArrayHelper & rInfo = getInfoHelper();
|
IPropertyArrayHelper & rInfo = getInfoHelper();
|
||||||
if( !rInfo.fillPropertyMembersByHandle( nullptr, nullptr, nHandle ) )
|
if( !rInfo.fillPropertyMembersByHandle( nullptr, nullptr, nHandle ) )
|
||||||
// unknown property
|
// unknown property
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(OUString::number(nHandle));
|
||||||
|
|
||||||
Any aRet;
|
Any aRet;
|
||||||
MutexGuard aGuard( rBHelper.rMutex );
|
MutexGuard aGuard( rBHelper.rMutex );
|
||||||
@ -1073,7 +1073,7 @@ Property OPropertyArrayHelper::getPropertyByName(const OUString& aPropertyName)
|
|||||||
sizeof( Property ),
|
sizeof( Property ),
|
||||||
compare_OUString_Property_Impl ));
|
compare_OUString_Property_Impl ));
|
||||||
if( !pR ) {
|
if( !pR ) {
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(aPropertyName);
|
||||||
}
|
}
|
||||||
return *pR;
|
return *pR;
|
||||||
}
|
}
|
||||||
|
@ -715,7 +715,7 @@ void SAL_CALL SvxUnoTextField::setPropertyValue( const OUString& aPropertyName,
|
|||||||
|
|
||||||
const SfxItemPropertySimpleEntry* pMap = mpPropSet->getPropertyMap().getByName( aPropertyName );
|
const SfxItemPropertySimpleEntry* pMap = mpPropSet->getPropertyMap().getByName( aPropertyName );
|
||||||
if ( !pMap )
|
if ( !pMap )
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
|
|
||||||
switch( pMap->nWID )
|
switch( pMap->nWID )
|
||||||
{
|
{
|
||||||
@ -770,7 +770,7 @@ uno::Any SAL_CALL SvxUnoTextField::getPropertyValue( const OUString& PropertyNam
|
|||||||
|
|
||||||
const SfxItemPropertySimpleEntry* pMap = mpPropSet->getPropertyMap().getByName( PropertyName );
|
const SfxItemPropertySimpleEntry* pMap = mpPropSet->getPropertyMap().getByName( PropertyName );
|
||||||
if ( !pMap )
|
if ( !pMap )
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(PropertyName);
|
||||||
|
|
||||||
switch( pMap->nWID )
|
switch( pMap->nWID )
|
||||||
{
|
{
|
||||||
|
@ -476,7 +476,7 @@ void SvxUnoTextRangeBase::_setPropertyValue( const OUString& PropertyName, const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(PropertyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SvxUnoTextRangeBase::setPropertyValue( const SfxItemPropertySimpleEntry* pMap, const uno::Any& rValue, const ESelection& rSelection, const SfxItemSet& rOldSet, SfxItemSet& rNewSet )
|
void SvxUnoTextRangeBase::setPropertyValue( const SfxItemPropertySimpleEntry* pMap, const uno::Any& rValue, const ESelection& rSelection, const SfxItemSet& rOldSet, SfxItemSet& rNewSet )
|
||||||
@ -618,7 +618,7 @@ uno::Any SvxUnoTextRangeBase::_getPropertyValue(const OUString& PropertyName, sa
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(PropertyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SvxUnoTextRangeBase::getPropertyValue( const SfxItemPropertySimpleEntry* pMap, uno::Any& rAny, const SfxItemSet& rSet )
|
void SvxUnoTextRangeBase::getPropertyValue( const SfxItemPropertySimpleEntry* pMap, uno::Any& rAny, const SfxItemSet& rSet )
|
||||||
@ -1056,7 +1056,7 @@ uno::Sequence< beans::PropertyState > SvxUnoTextRangeBase::_getPropertyStates(co
|
|||||||
const SfxItemPropertySimpleEntry* pMap = mpPropSet->getPropertyMapEntry( rName );
|
const SfxItemPropertySimpleEntry* pMap = mpPropSet->getPropertyMapEntry( rName );
|
||||||
if( !_getOnePropertyStates(pSet.get(), pMap, *pState++) )
|
if( !_getOnePropertyStates(pSet.get(), pMap, *pState++) )
|
||||||
{
|
{
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1172,7 +1172,7 @@ void SvxUnoTextRangeBase::_setPropertyToDefault(const OUString& PropertyName, sa
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(PropertyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SvxUnoTextRangeBase::_setPropertyToDefault(SvxTextForwarder* pForwarder, const SfxItemPropertySimpleEntry* pMap, sal_Int32 nPara )
|
void SvxUnoTextRangeBase::_setPropertyToDefault(SvxTextForwarder* pForwarder, const SfxItemPropertySimpleEntry* pMap, sal_Int32 nPara )
|
||||||
@ -1258,7 +1258,7 @@ uno::Any SAL_CALL SvxUnoTextRangeBase::getPropertyDefault( const OUString& aProp
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
// beans::XMultiPropertyStates
|
// beans::XMultiPropertyStates
|
||||||
|
@ -619,7 +619,7 @@ Any BibliographyLoader::getPropertyValue(const OUString& rPropertyName)
|
|||||||
ISBN_POS //BibliographyDataField_ISBN
|
ISBN_POS //BibliographyDataField_ISBN
|
||||||
};
|
};
|
||||||
if(rPropertyName != "BibliographyDataFieldNames")
|
if(rPropertyName != "BibliographyDataFieldNames")
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(rPropertyName);
|
||||||
Sequence<PropertyValue> aSeq(COLUMN_COUNT);
|
Sequence<PropertyValue> aSeq(COLUMN_COUNT);
|
||||||
PropertyValue* pArray = aSeq.getArray();
|
PropertyValue* pArray = aSeq.getArray();
|
||||||
BibConfig* pConfig = BibModul::GetConfig();
|
BibConfig* pConfig = BibModul::GetConfig();
|
||||||
|
@ -996,7 +996,7 @@ namespace pcr
|
|||||||
{
|
{
|
||||||
EventMap::const_iterator pos = m_aEvents.find( _rPropertyName );
|
EventMap::const_iterator pos = m_aEvents.find( _rPropertyName );
|
||||||
if ( pos == m_aEvents.end() )
|
if ( pos == m_aEvents.end() )
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(_rPropertyName);
|
||||||
return pos->second;
|
return pos->second;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -338,7 +338,7 @@ namespace pcr
|
|||||||
{
|
{
|
||||||
::osl::MutexGuard aGuard( m_aMutex );
|
::osl::MutexGuard aGuard( m_aMutex );
|
||||||
if ( !m_xComponent.is() )
|
if ( !m_xComponent.is() )
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(_rPropertyName);
|
||||||
|
|
||||||
return m_xComponent->getPropertyValue( _rPropertyName );
|
return m_xComponent->getPropertyValue( _rPropertyName );
|
||||||
}
|
}
|
||||||
@ -347,7 +347,7 @@ namespace pcr
|
|||||||
{
|
{
|
||||||
::osl::MutexGuard aGuard( m_aMutex );
|
::osl::MutexGuard aGuard( m_aMutex );
|
||||||
if ( !m_xComponent.is() )
|
if ( !m_xComponent.is() )
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(_rPropertyName);
|
||||||
|
|
||||||
m_xComponent->setPropertyValue( _rPropertyName, _rValue );
|
m_xComponent->setPropertyValue( _rPropertyName, _rValue );
|
||||||
}
|
}
|
||||||
@ -367,7 +367,7 @@ namespace pcr
|
|||||||
|
|
||||||
PropertyMap::const_iterator pos = m_aProperties.find( _rPropertyName );
|
PropertyMap::const_iterator pos = m_aProperties.find( _rPropertyName );
|
||||||
if ( pos == m_aProperties.end() )
|
if ( pos == m_aProperties.end() )
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(_rPropertyName);
|
||||||
|
|
||||||
Any aPropertyValue;
|
Any aPropertyValue;
|
||||||
if ( !_rControlValue.hasValue() )
|
if ( !_rControlValue.hasValue() )
|
||||||
@ -393,7 +393,7 @@ namespace pcr
|
|||||||
|
|
||||||
PropertyMap::const_iterator pos = m_aProperties.find( _rPropertyName );
|
PropertyMap::const_iterator pos = m_aProperties.find( _rPropertyName );
|
||||||
if ( pos == m_aProperties.end() )
|
if ( pos == m_aProperties.end() )
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(_rPropertyName);
|
||||||
|
|
||||||
Any aControlValue;
|
Any aControlValue;
|
||||||
if ( !_rPropertyValue.hasValue() )
|
if ( !_rPropertyValue.hasValue() )
|
||||||
@ -553,7 +553,7 @@ namespace pcr
|
|||||||
|
|
||||||
PropertyMap::const_iterator pos = m_aProperties.find( _rPropertyName );
|
PropertyMap::const_iterator pos = m_aProperties.find( _rPropertyName );
|
||||||
if ( pos == m_aProperties.end() )
|
if ( pos == m_aProperties.end() )
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(_rPropertyName);
|
||||||
|
|
||||||
LineDescriptor aDescriptor;
|
LineDescriptor aDescriptor;
|
||||||
aDescriptor.DisplayName = _rPropertyName;
|
aDescriptor.DisplayName = _rPropertyName;
|
||||||
|
@ -290,7 +290,7 @@ namespace pcr
|
|||||||
FindPropertyByName( _rPropertyName )
|
FindPropertyByName( _rPropertyName )
|
||||||
);
|
);
|
||||||
if ( pFound == m_aSupportedProperties.end() )
|
if ( pFound == m_aSupportedProperties.end() )
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(_rPropertyName);
|
||||||
|
|
||||||
return *pFound;
|
return *pFound;
|
||||||
}
|
}
|
||||||
@ -319,7 +319,7 @@ namespace pcr
|
|||||||
{
|
{
|
||||||
PropertyId nPropId = m_pInfoService->getPropertyId( _rPropertyName );
|
PropertyId nPropId = m_pInfoService->getPropertyId( _rPropertyName );
|
||||||
if ( nPropId == -1 )
|
if ( nPropId == -1 )
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(_rPropertyName);
|
||||||
return nPropId;
|
return nPropId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -406,7 +406,7 @@ void UpdateCheckUI::setPropertyValue(const OUString& rPropertyName,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rPropertyName);
|
||||||
|
|
||||||
if ( mbBubbleChanged && mpBubbleWin )
|
if ( mbBubbleChanged && mpBubbleWin )
|
||||||
mpBubbleWin->Show( false );
|
mpBubbleWin->Show( false );
|
||||||
@ -432,7 +432,7 @@ uno::Any UpdateCheckUI::getPropertyValue(const OUString& rPropertyName)
|
|||||||
else if( rPropertyName == PROPERTY_SHOW_MENUICON )
|
else if( rPropertyName == PROPERTY_SHOW_MENUICON )
|
||||||
aRet <<= mbShowMenuIcon;
|
aRet <<= mbShowMenuIcon;
|
||||||
else
|
else
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rPropertyName);
|
||||||
|
|
||||||
return aRet;
|
return aRet;
|
||||||
}
|
}
|
||||||
|
@ -220,7 +220,7 @@ Any SAL_CALL ConstItemContainer::getPropertyValue( const OUString& PropertyName
|
|||||||
if ( PropertyName == PROPNAME_UINAME )
|
if ( PropertyName == PROPNAME_UINAME )
|
||||||
return makeAny( m_aUIName );
|
return makeAny( m_aUIName );
|
||||||
|
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(PropertyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SAL_CALL ConstItemContainer::addPropertyChangeListener( const OUString&, const css::uno::Reference< css::beans::XPropertyChangeListener >& )
|
void SAL_CALL ConstItemContainer::addPropertyChangeListener( const OUString&, const css::uno::Reference< css::beans::XPropertyChangeListener >& )
|
||||||
@ -252,7 +252,7 @@ Any SAL_CALL ConstItemContainer::getFastPropertyValue( sal_Int32 nHandle )
|
|||||||
if ( nHandle == PROPHANDLE_UINAME )
|
if ( nHandle == PROPHANDLE_UINAME )
|
||||||
return makeAny( m_aUIName );
|
return makeAny( m_aUIName );
|
||||||
|
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(OUString::number(nHandle));
|
||||||
}
|
}
|
||||||
|
|
||||||
::cppu::IPropertyArrayHelper& ConstItemContainer::getInfoHelper()
|
::cppu::IPropertyArrayHelper& ConstItemContainer::getInfoHelper()
|
||||||
|
@ -1869,7 +1869,7 @@ void SAL_CALL XFrameImpl::setPropertyValue(const OUString& sProperty,
|
|||||||
|
|
||||||
TPropInfoHash::const_iterator pIt = m_lProps.find(sProperty);
|
TPropInfoHash::const_iterator pIt = m_lProps.find(sProperty);
|
||||||
if (pIt == m_lProps.end())
|
if (pIt == m_lProps.end())
|
||||||
throw css::beans::UnknownPropertyException();
|
throw css::beans::UnknownPropertyException(sProperty);
|
||||||
|
|
||||||
css::beans::Property aPropInfo = pIt->second;
|
css::beans::Property aPropInfo = pIt->second;
|
||||||
|
|
||||||
@ -1904,7 +1904,7 @@ css::uno::Any SAL_CALL XFrameImpl::getPropertyValue(const OUString& sProperty)
|
|||||||
|
|
||||||
TPropInfoHash::const_iterator pIt = m_lProps.find(sProperty);
|
TPropInfoHash::const_iterator pIt = m_lProps.find(sProperty);
|
||||||
if (pIt == m_lProps.end())
|
if (pIt == m_lProps.end())
|
||||||
throw css::beans::UnknownPropertyException();
|
throw css::beans::UnknownPropertyException(sProperty);
|
||||||
|
|
||||||
css::beans::Property aPropInfo = pIt->second;
|
css::beans::Property aPropInfo = pIt->second;
|
||||||
|
|
||||||
@ -1923,7 +1923,7 @@ void SAL_CALL XFrameImpl::addPropertyChangeListener(
|
|||||||
|
|
||||||
TPropInfoHash::const_iterator pIt = m_lProps.find(sProperty);
|
TPropInfoHash::const_iterator pIt = m_lProps.find(sProperty);
|
||||||
if (pIt == m_lProps.end())
|
if (pIt == m_lProps.end())
|
||||||
throw css::beans::UnknownPropertyException();
|
throw css::beans::UnknownPropertyException(sProperty);
|
||||||
}
|
}
|
||||||
// <- SAFE
|
// <- SAFE
|
||||||
|
|
||||||
@ -1940,7 +1940,7 @@ void SAL_CALL XFrameImpl::removePropertyChangeListener(
|
|||||||
|
|
||||||
TPropInfoHash::const_iterator pIt = m_lProps.find(sProperty);
|
TPropInfoHash::const_iterator pIt = m_lProps.find(sProperty);
|
||||||
if (pIt == m_lProps.end())
|
if (pIt == m_lProps.end())
|
||||||
throw css::beans::UnknownPropertyException();
|
throw css::beans::UnknownPropertyException(sProperty);
|
||||||
}
|
}
|
||||||
// <- SAFE
|
// <- SAFE
|
||||||
|
|
||||||
@ -1959,7 +1959,7 @@ void SAL_CALL XFrameImpl::addVetoableChangeListener(
|
|||||||
|
|
||||||
TPropInfoHash::const_iterator pIt = m_lProps.find(sProperty);
|
TPropInfoHash::const_iterator pIt = m_lProps.find(sProperty);
|
||||||
if (pIt == m_lProps.end())
|
if (pIt == m_lProps.end())
|
||||||
throw css::beans::UnknownPropertyException();
|
throw css::beans::UnknownPropertyException(sProperty);
|
||||||
}
|
}
|
||||||
// <- SAFE
|
// <- SAFE
|
||||||
|
|
||||||
@ -1976,7 +1976,7 @@ void SAL_CALL XFrameImpl::removeVetoableChangeListener(
|
|||||||
|
|
||||||
TPropInfoHash::const_iterator pIt = m_lProps.find(sProperty);
|
TPropInfoHash::const_iterator pIt = m_lProps.find(sProperty);
|
||||||
if (pIt == m_lProps.end())
|
if (pIt == m_lProps.end())
|
||||||
throw css::beans::UnknownPropertyException();
|
throw css::beans::UnknownPropertyException(sProperty);
|
||||||
}
|
}
|
||||||
// <- SAFE
|
// <- SAFE
|
||||||
|
|
||||||
@ -2008,7 +2008,7 @@ css::beans::Property SAL_CALL XFrameImpl::getPropertyByName(const OUString& sNam
|
|||||||
|
|
||||||
TPropInfoHash::const_iterator pIt = m_lProps.find(sName);
|
TPropInfoHash::const_iterator pIt = m_lProps.find(sName);
|
||||||
if (pIt == m_lProps.end())
|
if (pIt == m_lProps.end())
|
||||||
throw css::beans::UnknownPropertyException();
|
throw css::beans::UnknownPropertyException(sName);
|
||||||
|
|
||||||
return pIt->second;
|
return pIt->second;
|
||||||
}
|
}
|
||||||
|
@ -125,7 +125,7 @@ uno::Any SAL_CALL ColorPropertySet::getPropertyValue( const OUString& aPropertyN
|
|||||||
else if (aPropertyName == m_aColorPropName)
|
else if (aPropertyName == m_aColorPropName)
|
||||||
return uno::makeAny( m_nColor );
|
return uno::makeAny( m_nColor );
|
||||||
|
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(aPropertyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SAL_CALL ColorPropertySet::addPropertyChangeListener( const OUString& /* aPropertyName */, const Reference< XPropertyChangeListener >& /* xListener */ )
|
void SAL_CALL ColorPropertySet::addPropertyChangeListener( const OUString& /* aPropertyName */, const Reference< XPropertyChangeListener >& /* xListener */ )
|
||||||
|
@ -139,7 +139,7 @@ Any SAL_CALL GenericPropertySet::getPropertyValue( const OUString& rPropertyName
|
|||||||
{
|
{
|
||||||
PropertyNameMap::iterator aIt = maPropMap.find( rPropertyName );
|
PropertyNameMap::iterator aIt = maPropMap.find( rPropertyName );
|
||||||
if( aIt == maPropMap.end() )
|
if( aIt == maPropMap.end() )
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(rPropertyName);
|
||||||
return aIt->second;
|
return aIt->second;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -169,7 +169,7 @@ Property SAL_CALL GenericPropertySet::getPropertyByName( const OUString& rProper
|
|||||||
{
|
{
|
||||||
PropertyNameMap::iterator aIt = maPropMap.find( rPropertyName );
|
PropertyNameMap::iterator aIt = maPropMap.find( rPropertyName );
|
||||||
if( aIt == maPropMap.end() )
|
if( aIt == maPropMap.end() )
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(rPropertyName);
|
||||||
Property aProperty;
|
Property aProperty;
|
||||||
aProperty.Name = aIt->first;
|
aProperty.Name = aIt->first;
|
||||||
aProperty.Handle = 0;
|
aProperty.Handle = 0;
|
||||||
|
@ -509,7 +509,7 @@ void SAL_CALL OInputCompStream::setPropertyValue( const OUString& aPropertyName,
|
|||||||
[&aPropertyName](const beans::PropertyValue& rProp) { return rProp.Name == aPropertyName; }))
|
[&aPropertyName](const beans::PropertyValue& rProp) { return rProp.Name == aPropertyName; }))
|
||||||
throw beans::PropertyVetoException(); // TODO
|
throw beans::PropertyVetoException(); // TODO
|
||||||
|
|
||||||
throw beans::UnknownPropertyException(); // TODO
|
throw beans::UnknownPropertyException(aPropertyName); // TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
uno::Any SAL_CALL OInputCompStream::getPropertyValue( const OUString& aProp )
|
uno::Any SAL_CALL OInputCompStream::getPropertyValue( const OUString& aProp )
|
||||||
@ -529,7 +529,7 @@ uno::Any SAL_CALL OInputCompStream::getPropertyValue( const OUString& aProp )
|
|||||||
aPropertyName = aProp;
|
aPropertyName = aProp;
|
||||||
|
|
||||||
if ( aPropertyName == "RelationsInfo" )
|
if ( aPropertyName == "RelationsInfo" )
|
||||||
throw beans::UnknownPropertyException(); // TODO
|
throw beans::UnknownPropertyException(aPropertyName); // TODO
|
||||||
|
|
||||||
// all the provided properties are accessible
|
// all the provided properties are accessible
|
||||||
auto pProp = std::find_if(std::cbegin(m_aProperties), std::cend(m_aProperties),
|
auto pProp = std::find_if(std::cbegin(m_aProperties), std::cend(m_aProperties),
|
||||||
@ -537,7 +537,7 @@ uno::Any SAL_CALL OInputCompStream::getPropertyValue( const OUString& aProp )
|
|||||||
if (pProp != std::cend(m_aProperties))
|
if (pProp != std::cend(m_aProperties))
|
||||||
return pProp->Value;
|
return pProp->Value;
|
||||||
|
|
||||||
throw beans::UnknownPropertyException(); // TODO
|
throw beans::UnknownPropertyException(aPropertyName); // TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
void SAL_CALL OInputCompStream::addPropertyChangeListener(
|
void SAL_CALL OInputCompStream::addPropertyChangeListener(
|
||||||
|
@ -2878,7 +2878,7 @@ void SAL_CALL OWriteStream::setPropertyValue( const OUString& aPropertyName, con
|
|||||||
aValue >>= m_pImpl->m_nRelId;
|
aValue >>= m_pImpl->m_nRelId;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw beans::UnknownPropertyException(); // TODO
|
throw beans::UnknownPropertyException(aPropertyName); // TODO
|
||||||
|
|
||||||
m_pImpl->m_bHasDataToFlush = true;
|
m_pImpl->m_bHasDataToFlush = true;
|
||||||
ModifyParentUnlockMutex_Impl( aGuard );
|
ModifyParentUnlockMutex_Impl( aGuard );
|
||||||
@ -2937,7 +2937,7 @@ uno::Any SAL_CALL OWriteStream::getPropertyValue( const OUString& aProp )
|
|||||||
return uno::makeAny( m_xSeekable->getLength() );
|
return uno::makeAny( m_xSeekable->getLength() );
|
||||||
}
|
}
|
||||||
|
|
||||||
throw beans::UnknownPropertyException(); // TODO
|
throw beans::UnknownPropertyException(aPropertyName); // TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
void SAL_CALL OWriteStream::addPropertyChangeListener(
|
void SAL_CALL OWriteStream::addPropertyChangeListener(
|
||||||
|
@ -4367,7 +4367,7 @@ void SAL_CALL OStorage::setPropertyValue( const OUString& aPropertyName, const u
|
|||||||
throw uno::RuntimeException( THROW_WHERE ); // TODO: Access denied
|
throw uno::RuntimeException( THROW_WHERE ); // TODO: Access denied
|
||||||
|
|
||||||
if ( m_pData->m_nStorageType == embed::StorageFormats::ZIP )
|
if ( m_pData->m_nStorageType == embed::StorageFormats::ZIP )
|
||||||
throw beans::UnknownPropertyException( THROW_WHERE );
|
throw beans::UnknownPropertyException( aPropertyName );
|
||||||
else if ( m_pData->m_nStorageType == embed::StorageFormats::PACKAGE )
|
else if ( m_pData->m_nStorageType == embed::StorageFormats::PACKAGE )
|
||||||
{
|
{
|
||||||
if ( aPropertyName == "MediaType" )
|
if ( aPropertyName == "MediaType" )
|
||||||
@ -4400,7 +4400,7 @@ void SAL_CALL OStorage::setPropertyValue( const OUString& aPropertyName, const u
|
|||||||
|| aPropertyName == MEDIATYPE_FALLBACK_USED_PROPERTY )
|
|| aPropertyName == MEDIATYPE_FALLBACK_USED_PROPERTY )
|
||||||
throw beans::PropertyVetoException( THROW_WHERE );
|
throw beans::PropertyVetoException( THROW_WHERE );
|
||||||
else
|
else
|
||||||
throw beans::UnknownPropertyException( THROW_WHERE );
|
throw beans::UnknownPropertyException( aPropertyName );
|
||||||
}
|
}
|
||||||
else if ( m_pData->m_nStorageType == embed::StorageFormats::OFOPXML )
|
else if ( m_pData->m_nStorageType == embed::StorageFormats::OFOPXML )
|
||||||
{
|
{
|
||||||
@ -4439,10 +4439,10 @@ void SAL_CALL OStorage::setPropertyValue( const OUString& aPropertyName, const u
|
|||||||
|| aPropertyName == "IsRoot" )
|
|| aPropertyName == "IsRoot" )
|
||||||
throw beans::PropertyVetoException( THROW_WHERE );
|
throw beans::PropertyVetoException( THROW_WHERE );
|
||||||
else
|
else
|
||||||
throw beans::UnknownPropertyException( THROW_WHERE );
|
throw beans::UnknownPropertyException( aPropertyName );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw beans::UnknownPropertyException( THROW_WHERE );
|
throw beans::UnknownPropertyException( aPropertyName );
|
||||||
|
|
||||||
BroadcastModifiedIfNecessary();
|
BroadcastModifiedIfNecessary();
|
||||||
}
|
}
|
||||||
@ -4538,7 +4538,7 @@ uno::Any SAL_CALL OStorage::getPropertyValue( const OUString& aPropertyName )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
throw beans::UnknownPropertyException( THROW_WHERE );
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SAL_CALL OStorage::addPropertyChangeListener(
|
void SAL_CALL OStorage::addPropertyChangeListener(
|
||||||
|
@ -1729,7 +1729,7 @@ uno::Reference< XPropertySetInfo > SAL_CALL ZipPackage::getPropertySetInfo()
|
|||||||
void SAL_CALL ZipPackage::setPropertyValue( const OUString& aPropertyName, const Any& aValue )
|
void SAL_CALL ZipPackage::setPropertyValue( const OUString& aPropertyName, const Any& aValue )
|
||||||
{
|
{
|
||||||
if ( m_nFormat != embed::StorageFormats::PACKAGE )
|
if ( m_nFormat != embed::StorageFormats::PACKAGE )
|
||||||
throw UnknownPropertyException(THROW_WHERE );
|
throw UnknownPropertyException(aPropertyName);
|
||||||
|
|
||||||
if (aPropertyName == HAS_ENCRYPTED_ENTRIES_PROPERTY
|
if (aPropertyName == HAS_ENCRYPTED_ENTRIES_PROPERTY
|
||||||
||aPropertyName == HAS_NONENCRYPTED_ENTRIES_PROPERTY
|
||aPropertyName == HAS_NONENCRYPTED_ENTRIES_PROPERTY
|
||||||
@ -1833,7 +1833,7 @@ void SAL_CALL ZipPackage::setPropertyValue( const OUString& aPropertyName, const
|
|||||||
m_nChecksumDigestID = xml::crypto::DigestID::SHA512_1K;
|
m_nChecksumDigestID = xml::crypto::DigestID::SHA512_1K;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw UnknownPropertyException(THROW_WHERE );
|
throw UnknownPropertyException(aPropertyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
Any SAL_CALL ZipPackage::getPropertyValue( const OUString& PropertyName )
|
Any SAL_CALL ZipPackage::getPropertyValue( const OUString& PropertyName )
|
||||||
@ -1878,7 +1878,7 @@ Any SAL_CALL ZipPackage::getPropertyValue( const OUString& PropertyName )
|
|||||||
{
|
{
|
||||||
return Any(m_bMediaTypeFallbackUsed);
|
return Any(m_bMediaTypeFallbackUsed);
|
||||||
}
|
}
|
||||||
throw UnknownPropertyException(THROW_WHERE );
|
throw UnknownPropertyException(PropertyName);
|
||||||
}
|
}
|
||||||
void SAL_CALL ZipPackage::addPropertyChangeListener( const OUString& /*aPropertyName*/, const uno::Reference< XPropertyChangeListener >& /*xListener*/ )
|
void SAL_CALL ZipPackage::addPropertyChangeListener( const OUString& /*aPropertyName*/, const uno::Reference< XPropertyChangeListener >& /*xListener*/ )
|
||||||
{
|
{
|
||||||
|
@ -377,7 +377,7 @@ void SAL_CALL ZipPackageFolder::setPropertyValue( const OUString& aPropertyName,
|
|||||||
else if ( aPropertyName == "Size" )
|
else if ( aPropertyName == "Size" )
|
||||||
aValue >>= aEntry.nSize;
|
aValue >>= aEntry.nSize;
|
||||||
else
|
else
|
||||||
throw UnknownPropertyException(THROW_WHERE );
|
throw UnknownPropertyException(aPropertyName);
|
||||||
}
|
}
|
||||||
uno::Any SAL_CALL ZipPackageFolder::getPropertyValue( const OUString& PropertyName )
|
uno::Any SAL_CALL ZipPackageFolder::getPropertyValue( const OUString& PropertyName )
|
||||||
{
|
{
|
||||||
@ -394,7 +394,7 @@ uno::Any SAL_CALL ZipPackageFolder::getPropertyValue( const OUString& PropertyNa
|
|||||||
else if ( PropertyName == "Size" )
|
else if ( PropertyName == "Size" )
|
||||||
return uno::makeAny ( aEntry.nSize );
|
return uno::makeAny ( aEntry.nSize );
|
||||||
else
|
else
|
||||||
throw UnknownPropertyException(THROW_WHERE );
|
throw UnknownPropertyException(PropertyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ZipPackageFolder::doInsertByName ( ZipPackageEntry *pEntry, bool bSetParent )
|
void ZipPackageFolder::doInsertByName ( ZipPackageEntry *pEntry, bool bSetParent )
|
||||||
|
@ -1271,7 +1271,7 @@ void SAL_CALL ZipPackageStream::setPropertyValue( const OUString& aPropertyName,
|
|||||||
m_bCompressedIsSetFromOutside = true;
|
m_bCompressedIsSetFromOutside = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw beans::UnknownPropertyException(THROW_WHERE );
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
Any SAL_CALL ZipPackageStream::getPropertyValue( const OUString& PropertyName )
|
Any SAL_CALL ZipPackageStream::getPropertyValue( const OUString& PropertyName )
|
||||||
@ -1305,7 +1305,7 @@ Any SAL_CALL ZipPackageStream::getPropertyValue( const OUString& PropertyName )
|
|||||||
return Any(m_aStorageEncryptionKeys);
|
return Any(m_aStorageEncryptionKeys);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw beans::UnknownPropertyException(THROW_WHERE );
|
throw beans::UnknownPropertyException(PropertyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ZipPackageStream::setSize ( const sal_Int64 nNewSize )
|
void ZipPackageStream::setSize ( const sal_Int64 nNewSize )
|
||||||
|
@ -853,7 +853,7 @@ uno::Reference< beans::XPropertySetInfo> SAL_CALL
|
|||||||
void SAL_CALL PivotTableDataProvider::setPropertyValue(const OUString& rPropertyName, const uno::Any& rValue)
|
void SAL_CALL PivotTableDataProvider::setPropertyValue(const OUString& rPropertyName, const uno::Any& rValue)
|
||||||
{
|
{
|
||||||
if (rPropertyName != SC_UNONAME_INCLUDEHIDDENCELLS)
|
if (rPropertyName != SC_UNONAME_INCLUDEHIDDENCELLS)
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rPropertyName);
|
||||||
|
|
||||||
if (!(rValue >>= m_bIncludeHiddenCells))
|
if (!(rValue >>= m_bIncludeHiddenCells))
|
||||||
throw lang::IllegalArgumentException();
|
throw lang::IllegalArgumentException();
|
||||||
@ -870,7 +870,7 @@ uno::Any SAL_CALL PivotTableDataProvider::getPropertyValue(const OUString& rProp
|
|||||||
aRet <<= m_pDocument->PastingDrawFromOtherDoc();
|
aRet <<= m_pDocument->PastingDrawFromOtherDoc();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rPropertyName);
|
||||||
return aRet;
|
return aRet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -220,7 +220,7 @@ void SAL_CALL PivotTableDataSequence::setPropertyValue(const OUString& rProperty
|
|||||||
|| rPropertyName == SC_UNONAME_HAS_STRING_LABEL)
|
|| rPropertyName == SC_UNONAME_HAS_STRING_LABEL)
|
||||||
{}
|
{}
|
||||||
else
|
else
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rPropertyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
uno::Any SAL_CALL PivotTableDataSequence::getPropertyValue(const OUString& rPropertyName)
|
uno::Any SAL_CALL PivotTableDataSequence::getPropertyValue(const OUString& rPropertyName)
|
||||||
@ -244,7 +244,7 @@ uno::Any SAL_CALL PivotTableDataSequence::getPropertyValue(const OUString& rProp
|
|||||||
aReturn <<= false;
|
aReturn <<= false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rPropertyName);
|
||||||
return aReturn;
|
return aReturn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -204,7 +204,7 @@ void SAL_CALL ScAddressConversionObj::setPropertyValue( const OUString& aPropert
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
|
|
||||||
if ( !bSuccess )
|
if ( !bSuccess )
|
||||||
throw lang::IllegalArgumentException();
|
throw lang::IllegalArgumentException();
|
||||||
@ -270,7 +270,7 @@ uno::Any SAL_CALL ScAddressConversionObj::getPropertyValue( const OUString& aPro
|
|||||||
aRet <<= aFormatStr;
|
aRet <<= aFormatStr;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
|
|
||||||
return aRet;
|
return aRet;
|
||||||
}
|
}
|
||||||
|
@ -2219,7 +2219,7 @@ void SAL_CALL ScCellRangesBase::setPropertyValue(
|
|||||||
const SfxItemPropertyMap& rPropertyMap = GetItemPropertyMap(); // from derived class
|
const SfxItemPropertyMap& rPropertyMap = GetItemPropertyMap(); // from derived class
|
||||||
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
|
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
|
||||||
if ( !pEntry )
|
if ( !pEntry )
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
|
|
||||||
SetOnePropertyValue( pEntry, aValue );
|
SetOnePropertyValue( pEntry, aValue );
|
||||||
}
|
}
|
||||||
@ -2431,7 +2431,7 @@ uno::Any SAL_CALL ScCellRangesBase::getPropertyValue( const OUString& aPropertyN
|
|||||||
const SfxItemPropertyMap& rPropertyMap = GetItemPropertyMap(); // from derived class
|
const SfxItemPropertyMap& rPropertyMap = GetItemPropertyMap(); // from derived class
|
||||||
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
|
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
|
||||||
if ( !pEntry )
|
if ( !pEntry )
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
|
|
||||||
uno::Any aAny;
|
uno::Any aAny;
|
||||||
GetOnePropertyValue( pEntry, aAny );
|
GetOnePropertyValue( pEntry, aAny );
|
||||||
|
@ -2229,7 +2229,7 @@ void SAL_CALL ScChart2DataProvider::setPropertyValue(
|
|||||||
const OUString& rPropertyName, const uno::Any& rValue)
|
const OUString& rPropertyName, const uno::Any& rValue)
|
||||||
{
|
{
|
||||||
if ( rPropertyName != SC_UNONAME_INCLUDEHIDDENCELLS )
|
if ( rPropertyName != SC_UNONAME_INCLUDEHIDDENCELLS )
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rPropertyName);
|
||||||
|
|
||||||
if ( !(rValue >>= m_bIncludeHiddenCells))
|
if ( !(rValue >>= m_bIncludeHiddenCells))
|
||||||
throw lang::IllegalArgumentException();
|
throw lang::IllegalArgumentException();
|
||||||
@ -2248,7 +2248,7 @@ uno::Any SAL_CALL ScChart2DataProvider::getPropertyValue(
|
|||||||
aRet <<= m_pDocument->PastingDrawFromOtherDoc();
|
aRet <<= m_pDocument->PastingDrawFromOtherDoc();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rPropertyName);
|
||||||
return aRet;
|
return aRet;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3272,7 +3272,7 @@ void SAL_CALL ScChart2DataSequence::setPropertyValue(
|
|||||||
mbTimeBased = bTimeBased;
|
mbTimeBased = bTimeBased;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rPropertyName);
|
||||||
// TODO: support optional properties
|
// TODO: support optional properties
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3307,7 +3307,7 @@ uno::Any SAL_CALL ScChart2DataSequence::getPropertyValue(const OUString& rProper
|
|||||||
aRet <<= bHasStringLabel;
|
aRet <<= bHasStringLabel;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rPropertyName);
|
||||||
// TODO: support optional properties
|
// TODO: support optional properties
|
||||||
return aRet;
|
return aRet;
|
||||||
}
|
}
|
||||||
|
@ -563,7 +563,7 @@ void SAL_CALL ScCondFormatObj::setPropertyValue(
|
|||||||
const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class
|
const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class
|
||||||
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
|
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
|
||||||
if ( !pEntry )
|
if ( !pEntry )
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
|
|
||||||
switch(pEntry->nWID)
|
switch(pEntry->nWID)
|
||||||
{
|
{
|
||||||
@ -601,7 +601,7 @@ uno::Any SAL_CALL ScCondFormatObj::getPropertyValue( const OUString& aPropertyNa
|
|||||||
const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class
|
const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class
|
||||||
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
|
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
|
||||||
if ( !pEntry )
|
if ( !pEntry )
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
|
|
||||||
uno::Any aAny;
|
uno::Any aAny;
|
||||||
switch(pEntry->nWID)
|
switch(pEntry->nWID)
|
||||||
@ -703,7 +703,7 @@ void SAL_CALL ScConditionEntryObj::setPropertyValue(
|
|||||||
const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class
|
const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class
|
||||||
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
|
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
|
||||||
if ( !pEntry )
|
if ( !pEntry )
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
|
|
||||||
switch(pEntry->nWID)
|
switch(pEntry->nWID)
|
||||||
{
|
{
|
||||||
@ -766,7 +766,7 @@ uno::Any SAL_CALL ScConditionEntryObj::getPropertyValue( const OUString& aProper
|
|||||||
const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class
|
const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class
|
||||||
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
|
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
|
||||||
if ( !pEntry )
|
if ( !pEntry )
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
|
|
||||||
uno::Any aAny;
|
uno::Any aAny;
|
||||||
switch(pEntry->nWID)
|
switch(pEntry->nWID)
|
||||||
@ -910,7 +910,7 @@ void SAL_CALL ScColorScaleFormatObj::setPropertyValue(
|
|||||||
const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class
|
const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class
|
||||||
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
|
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
|
||||||
if ( !pEntry )
|
if ( !pEntry )
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
|
|
||||||
switch(pEntry->nWID)
|
switch(pEntry->nWID)
|
||||||
{
|
{
|
||||||
@ -944,7 +944,7 @@ uno::Any SAL_CALL ScColorScaleFormatObj::getPropertyValue( const OUString& aProp
|
|||||||
const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class
|
const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class
|
||||||
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
|
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
|
||||||
if ( !pEntry )
|
if ( !pEntry )
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
|
|
||||||
uno::Any aAny;
|
uno::Any aAny;
|
||||||
|
|
||||||
@ -1160,7 +1160,7 @@ void SAL_CALL ScDataBarFormatObj::setPropertyValue(
|
|||||||
const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class
|
const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class
|
||||||
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
|
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
|
||||||
if ( !pEntry )
|
if ( !pEntry )
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
|
|
||||||
switch(pEntry->nWID)
|
switch(pEntry->nWID)
|
||||||
{
|
{
|
||||||
@ -1284,7 +1284,7 @@ uno::Any SAL_CALL ScDataBarFormatObj::getPropertyValue( const OUString& aPropert
|
|||||||
const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class
|
const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class
|
||||||
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
|
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
|
||||||
if ( !pEntry )
|
if ( !pEntry )
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
|
|
||||||
uno::Any aAny;
|
uno::Any aAny;
|
||||||
switch(pEntry->nWID)
|
switch(pEntry->nWID)
|
||||||
@ -1535,7 +1535,7 @@ void SAL_CALL ScIconSetFormatObj::setPropertyValue(
|
|||||||
const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class
|
const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class
|
||||||
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
|
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
|
||||||
if ( !pEntry )
|
if ( !pEntry )
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
|
|
||||||
switch(pEntry->nWID)
|
switch(pEntry->nWID)
|
||||||
{
|
{
|
||||||
@ -1606,7 +1606,7 @@ uno::Any SAL_CALL ScIconSetFormatObj::getPropertyValue( const OUString& aPropert
|
|||||||
const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class
|
const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class
|
||||||
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
|
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
|
||||||
if ( !pEntry )
|
if ( !pEntry )
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
|
|
||||||
uno::Any aAny;
|
uno::Any aAny;
|
||||||
|
|
||||||
@ -1800,7 +1800,7 @@ void SAL_CALL ScCondDateFormatObj::setPropertyValue(
|
|||||||
const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class
|
const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class
|
||||||
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
|
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
|
||||||
if ( !pEntry )
|
if ( !pEntry )
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
|
|
||||||
switch(pEntry->nWID)
|
switch(pEntry->nWID)
|
||||||
{
|
{
|
||||||
@ -1842,7 +1842,7 @@ uno::Any SAL_CALL ScCondDateFormatObj::getPropertyValue( const OUString& aProper
|
|||||||
const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class
|
const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class
|
||||||
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
|
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
|
||||||
if ( !pEntry )
|
if ( !pEntry )
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
|
|
||||||
uno::Any aAny;
|
uno::Any aAny;
|
||||||
|
|
||||||
|
@ -407,7 +407,7 @@ void SAL_CALL ScDocumentConfiguration::setPropertyValue(
|
|||||||
else if ( aPropertyName == SC_UNO_RASTERSYNC )
|
else if ( aPropertyName == SC_UNO_RASTERSYNC )
|
||||||
aGridOpt.SetSynchronize( ScUnoHelpFunctions::GetBoolFromAny( aValue ) );
|
aGridOpt.SetSynchronize( ScUnoHelpFunctions::GetBoolFromAny( aValue ) );
|
||||||
else
|
else
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
aViewOpt.SetGridOptions(aGridOpt);
|
aViewOpt.SetGridOptions(aGridOpt);
|
||||||
}
|
}
|
||||||
rDoc.SetViewOptions(aViewOpt);
|
rDoc.SetViewOptions(aViewOpt);
|
||||||
@ -608,7 +608,7 @@ uno::Any SAL_CALL ScDocumentConfiguration::getPropertyValue( const OUString& aPr
|
|||||||
else if ( aPropertyName == SC_UNO_RASTERSYNC )
|
else if ( aPropertyName == SC_UNO_RASTERSYNC )
|
||||||
aRet <<= aGridOpt.GetSynchronize();
|
aRet <<= aGridOpt.GetSynchronize();
|
||||||
else
|
else
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -866,7 +866,7 @@ void SAL_CALL ScDataPilotDescriptorBase::setPropertyValue( const OUString& aProp
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(aPropertyName);
|
||||||
|
|
||||||
pDPObject->SetSaveData( aNewData );
|
pDPObject->SetSaveData( aNewData );
|
||||||
}
|
}
|
||||||
@ -973,7 +973,7 @@ Any SAL_CALL ScDataPilotDescriptorBase::getPropertyValue( const OUString& aPrope
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(aPropertyName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -124,7 +124,7 @@ void SAL_CALL ScDocDefaultsObj::setPropertyValue(
|
|||||||
|
|
||||||
const SfxItemPropertySimpleEntry* pEntry = aPropertyMap.getByName( aPropertyName );
|
const SfxItemPropertySimpleEntry* pEntry = aPropertyMap.getByName( aPropertyName );
|
||||||
if ( !pEntry )
|
if ( !pEntry )
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
if(!pEntry->nWID)
|
if(!pEntry->nWID)
|
||||||
{
|
{
|
||||||
if(aPropertyName ==SC_UNO_STANDARDDEC)
|
if(aPropertyName ==SC_UNO_STANDARDDEC)
|
||||||
@ -206,7 +206,7 @@ uno::Any SAL_CALL ScDocDefaultsObj::getPropertyValue( const OUString& aPropertyN
|
|||||||
uno::Any aRet;
|
uno::Any aRet;
|
||||||
const SfxItemPropertySimpleEntry* pEntry = aPropertyMap.getByName( aPropertyName );
|
const SfxItemPropertySimpleEntry* pEntry = aPropertyMap.getByName( aPropertyName );
|
||||||
if ( !pEntry )
|
if ( !pEntry )
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
|
|
||||||
if (!pEntry->nWID)
|
if (!pEntry->nWID)
|
||||||
{
|
{
|
||||||
@ -251,7 +251,7 @@ beans::PropertyState SAL_CALL ScDocDefaultsObj::getPropertyState( const OUString
|
|||||||
|
|
||||||
const SfxItemPropertySimpleEntry* pEntry = aPropertyMap.getByName( aPropertyName );
|
const SfxItemPropertySimpleEntry* pEntry = aPropertyMap.getByName( aPropertyName );
|
||||||
if ( !pEntry )
|
if ( !pEntry )
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
|
|
||||||
beans::PropertyState eRet = beans::PropertyState_DEFAULT_VALUE;
|
beans::PropertyState eRet = beans::PropertyState_DEFAULT_VALUE;
|
||||||
|
|
||||||
@ -296,7 +296,7 @@ void SAL_CALL ScDocDefaultsObj::setPropertyToDefault( const OUString& aPropertyN
|
|||||||
|
|
||||||
const SfxItemPropertySimpleEntry* pEntry = aPropertyMap.getByName( aPropertyName );
|
const SfxItemPropertySimpleEntry* pEntry = aPropertyMap.getByName( aPropertyName );
|
||||||
if ( !pEntry )
|
if ( !pEntry )
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
|
|
||||||
if (pEntry->nWID)
|
if (pEntry->nWID)
|
||||||
{
|
{
|
||||||
@ -318,7 +318,7 @@ uno::Any SAL_CALL ScDocDefaultsObj::getPropertyDefault( const OUString& aPropert
|
|||||||
|
|
||||||
const SfxItemPropertySimpleEntry* pEntry = aPropertyMap.getByName( aPropertyName );
|
const SfxItemPropertySimpleEntry* pEntry = aPropertyMap.getByName( aPropertyName );
|
||||||
if ( !pEntry )
|
if ( !pEntry )
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
|
|
||||||
uno::Any aRet;
|
uno::Any aRet;
|
||||||
if (pEntry->nWID)
|
if (pEntry->nWID)
|
||||||
|
@ -653,7 +653,7 @@ void ScEditFieldObj::setPropertyValueURL(const OUString& rName, const css::uno::
|
|||||||
pURL->SetTargetFrame(aStrVal);
|
pURL->SetTargetFrame(aStrVal);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rName);
|
||||||
|
|
||||||
pEditEngine->QuickInsertField( SvxFieldItem(*pField, EE_FEATURE_FIELD), aSelection );
|
pEditEngine->QuickInsertField( SvxFieldItem(*pField, EE_FEATURE_FIELD), aSelection );
|
||||||
mpEditSource->UpdateData();
|
mpEditSource->UpdateData();
|
||||||
@ -678,7 +678,7 @@ void ScEditFieldObj::setPropertyValueURL(const OUString& rName, const css::uno::
|
|||||||
rData.SetTargetFrame(aStrVal);
|
rData.SetTargetFrame(aStrVal);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rName);
|
||||||
}
|
}
|
||||||
|
|
||||||
uno::Any ScEditFieldObj::getPropertyValueURL(const OUString& rName)
|
uno::Any ScEditFieldObj::getPropertyValueURL(const OUString& rName)
|
||||||
@ -712,7 +712,7 @@ uno::Any ScEditFieldObj::getPropertyValueURL(const OUString& rName)
|
|||||||
else if (rName == SC_UNONAME_TARGET)
|
else if (rName == SC_UNONAME_TARGET)
|
||||||
aRet <<= pURL->GetTargetFrame();
|
aRet <<= pURL->GetTargetFrame();
|
||||||
else
|
else
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rName);
|
||||||
}
|
}
|
||||||
else // not inserted yet
|
else // not inserted yet
|
||||||
{
|
{
|
||||||
@ -725,7 +725,7 @@ uno::Any ScEditFieldObj::getPropertyValueURL(const OUString& rName)
|
|||||||
else if (rName == SC_UNONAME_TARGET)
|
else if (rName == SC_UNONAME_TARGET)
|
||||||
aRet <<= rURL.GetTargetFrame();
|
aRet <<= rURL.GetTargetFrame();
|
||||||
else
|
else
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rName);
|
||||||
}
|
}
|
||||||
return aRet;
|
return aRet;
|
||||||
}
|
}
|
||||||
@ -733,7 +733,7 @@ uno::Any ScEditFieldObj::getPropertyValueURL(const OUString& rName)
|
|||||||
void ScEditFieldObj::setPropertyValueFile(const OUString& rName, const uno::Any& rVal)
|
void ScEditFieldObj::setPropertyValueFile(const OUString& rName, const uno::Any& rVal)
|
||||||
{
|
{
|
||||||
if (rName != SC_UNONAME_FILEFORM)
|
if (rName != SC_UNONAME_FILEFORM)
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rName);
|
||||||
|
|
||||||
sal_Int16 nIntVal = 0;
|
sal_Int16 nIntVal = 0;
|
||||||
if (rVal >>= nIntVal)
|
if (rVal >>= nIntVal)
|
||||||
@ -767,7 +767,7 @@ uno::Any ScEditFieldObj::getPropertyValueFile(const OUString& rName)
|
|||||||
{
|
{
|
||||||
uno::Any aRet;
|
uno::Any aRet;
|
||||||
if (rName != SC_UNONAME_FILEFORM)
|
if (rName != SC_UNONAME_FILEFORM)
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rName);
|
||||||
|
|
||||||
SvxFileFormat eFormat = SvxFileFormat::NameAndExt;
|
SvxFileFormat eFormat = SvxFileFormat::NameAndExt;
|
||||||
const SvxFieldData* pField = nullptr;
|
const SvxFieldData* pField = nullptr;
|
||||||
@ -830,7 +830,7 @@ void ScEditFieldObj::setPropertyValueDateTime(const OUString& rName, const uno::
|
|||||||
p->SetFormat(static_cast<SvxDateFormat>(mnNumFormat));
|
p->SetFormat(static_cast<SvxDateFormat>(mnNumFormat));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rName);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case text::textfield::Type::TIME:
|
case text::textfield::Type::TIME:
|
||||||
@ -838,7 +838,7 @@ void ScEditFieldObj::setPropertyValueDateTime(const OUString& rName, const uno::
|
|||||||
// SvxTimeField doesn't have any attributes.
|
// SvxTimeField doesn't have any attributes.
|
||||||
if (rName != SC_UNONAME_ISDATE && rName != SC_UNONAME_ISFIXED &&
|
if (rName != SC_UNONAME_ISDATE && rName != SC_UNONAME_ISFIXED &&
|
||||||
rName != SC_UNONAME_DATETIME && rName != SC_UNONAME_NUMFMT)
|
rName != SC_UNONAME_DATETIME && rName != SC_UNONAME_NUMFMT)
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rName);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case text::textfield::Type::EXTENDED_TIME:
|
case text::textfield::Type::EXTENDED_TIME:
|
||||||
@ -865,11 +865,11 @@ void ScEditFieldObj::setPropertyValueDateTime(const OUString& rName, const uno::
|
|||||||
p->SetFormat(static_cast<SvxTimeFormat>(mnNumFormat));
|
p->SetFormat(static_cast<SvxTimeFormat>(mnNumFormat));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rName);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -883,7 +883,7 @@ void ScEditFieldObj::setPropertyValueDateTime(const OUString& rName, const uno::
|
|||||||
else if (rName == SC_UNONAME_NUMFMT)
|
else if (rName == SC_UNONAME_NUMFMT)
|
||||||
mnNumFormat = rVal.get<sal_Int32>();
|
mnNumFormat = rVal.get<sal_Int32>();
|
||||||
else
|
else
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -989,7 +989,7 @@ uno::Any ScEditFieldObj::getPropertyValueDateTime(const OUString& rName)
|
|||||||
return uno::makeAny(mnNumFormat);
|
return uno::makeAny(mnNumFormat);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rName);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScEditFieldObj::setPropertyValueSheet(const OUString& rName, const uno::Any& rVal)
|
void ScEditFieldObj::setPropertyValueSheet(const OUString& rName, const uno::Any& rVal)
|
||||||
@ -1014,7 +1014,7 @@ void ScEditFieldObj::setPropertyValueSheet(const OUString& rName, const uno::Any
|
|||||||
SvxTableField* p = static_cast<SvxTableField*>(pField);
|
SvxTableField* p = static_cast<SvxTableField*>(pField);
|
||||||
|
|
||||||
if (rName != SC_UNONAME_TABLEPOS)
|
if (rName != SC_UNONAME_TABLEPOS)
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rName);
|
||||||
|
|
||||||
sal_Int32 nTab = rVal.get<sal_Int32>();
|
sal_Int32 nTab = rVal.get<sal_Int32>();
|
||||||
p->SetTab(nTab);
|
p->SetTab(nTab);
|
||||||
@ -1028,7 +1028,7 @@ void ScEditFieldObj::setPropertyValueSheet(const OUString& rName, const uno::Any
|
|||||||
// Edit engine instance not yet present. Store the item data for later use.
|
// Edit engine instance not yet present. Store the item data for later use.
|
||||||
SvxTableField& r = static_cast<SvxTableField&>(getData());
|
SvxTableField& r = static_cast<SvxTableField&>(getData());
|
||||||
if (rName != SC_UNONAME_TABLEPOS)
|
if (rName != SC_UNONAME_TABLEPOS)
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rName);
|
||||||
|
|
||||||
sal_Int32 nTab = rVal.get<sal_Int32>();
|
sal_Int32 nTab = rVal.get<sal_Int32>();
|
||||||
r.SetTab(nTab);
|
r.SetTab(nTab);
|
||||||
@ -1226,7 +1226,7 @@ void SAL_CALL ScEditFieldObj::setPropertyValue(
|
|||||||
break;
|
break;
|
||||||
case text::textfield::Type::DOCINFO_TITLE:
|
case text::textfield::Type::DOCINFO_TITLE:
|
||||||
default:
|
default:
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(OUString::number(meType));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1272,7 +1272,7 @@ uno::Any SAL_CALL ScEditFieldObj::getPropertyValue( const OUString& aPropertyNam
|
|||||||
return getPropertyValueDateTime(aPropertyName);
|
return getPropertyValueDateTime(aPropertyName);
|
||||||
case text::textfield::Type::DOCINFO_TITLE:
|
case text::textfield::Type::DOCINFO_TITLE:
|
||||||
default:
|
default:
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(OUString::number(meType));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -246,7 +246,7 @@ void SAL_CALL ScFunctionAccess::setPropertyValue(
|
|||||||
|
|
||||||
bool bDone = ScDocOptionsHelper::setPropertyValue( *pOptions, aPropertyMap, aPropertyName, aValue );
|
bool bDone = ScDocOptionsHelper::setPropertyValue( *pOptions, aPropertyMap, aPropertyName, aValue );
|
||||||
if (!bDone)
|
if (!bDone)
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1201,7 +1201,7 @@ void SAL_CALL ScStyleObj::setPropertyToDefault( const OUString& aPropertyName )
|
|||||||
|
|
||||||
const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap().getByName( aPropertyName );
|
const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap().getByName( aPropertyName );
|
||||||
if ( !pEntry )
|
if ( !pEntry )
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
|
|
||||||
setPropertyValue_Impl( aPropertyName, pEntry, nullptr );
|
setPropertyValue_Impl( aPropertyName, pEntry, nullptr );
|
||||||
}
|
}
|
||||||
@ -1438,7 +1438,7 @@ void SAL_CALL ScStyleObj::setPropertyValue( const OUString& aPropertyName, const
|
|||||||
|
|
||||||
const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap().getByName( aPropertyName );
|
const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap().getByName( aPropertyName );
|
||||||
if ( !pEntry )
|
if ( !pEntry )
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
|
|
||||||
setPropertyValue_Impl( aPropertyName, pEntry, &aValue );
|
setPropertyValue_Impl( aPropertyName, pEntry, &aValue );
|
||||||
}
|
}
|
||||||
|
@ -227,7 +227,7 @@ void SAL_CALL ScFormulaParserObj::setPropertyValue(
|
|||||||
throw lang::IllegalArgumentException();
|
throw lang::IllegalArgumentException();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
uno::Any SAL_CALL ScFormulaParserObj::getPropertyValue( const OUString& aPropertyName )
|
uno::Any SAL_CALL ScFormulaParserObj::getPropertyValue( const OUString& aPropertyName )
|
||||||
@ -259,7 +259,7 @@ uno::Any SAL_CALL ScFormulaParserObj::getPropertyValue( const OUString& aPropert
|
|||||||
aRet <<= maExternalLinks;
|
aRet <<= maExternalLinks;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
return aRet;
|
return aRet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -702,7 +702,7 @@ void SAL_CALL ShutdownIcon::setFastPropertyValue( ::sal_Int32
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default :
|
default :
|
||||||
throw css::beans::UnknownPropertyException();
|
throw css::beans::UnknownPropertyException(OUString::number(nHandle));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -720,7 +720,7 @@ css::uno::Any SAL_CALL ShutdownIcon::getFastPropertyValue( ::sal_Int32 nHandle )
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default :
|
default :
|
||||||
throw css::beans::UnknownPropertyException();
|
throw css::beans::UnknownPropertyException(OUString::number(nHandle));
|
||||||
}
|
}
|
||||||
|
|
||||||
return aValue;
|
return aValue;
|
||||||
|
@ -242,7 +242,7 @@ void SAL_CALL IFrameObject::setPropertyValue(const OUString& aPropertyName, cons
|
|||||||
{
|
{
|
||||||
const SfxItemPropertySimpleEntry* pEntry = maPropMap.getByName( aPropertyName );
|
const SfxItemPropertySimpleEntry* pEntry = maPropMap.getByName( aPropertyName );
|
||||||
if( !pEntry )
|
if( !pEntry )
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
switch( pEntry->nWID )
|
switch( pEntry->nWID )
|
||||||
{
|
{
|
||||||
case WID_FRAME_URL:
|
case WID_FRAME_URL:
|
||||||
@ -322,7 +322,7 @@ uno::Any SAL_CALL IFrameObject::getPropertyValue(const OUString& aPropertyName)
|
|||||||
{
|
{
|
||||||
const SfxItemPropertySimpleEntry* pEntry = maPropMap.getByName( aPropertyName );
|
const SfxItemPropertySimpleEntry* pEntry = maPropMap.getByName( aPropertyName );
|
||||||
if( !pEntry )
|
if( !pEntry )
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
uno::Any aAny;
|
uno::Any aAny;
|
||||||
switch( pEntry->nWID )
|
switch( pEntry->nWID )
|
||||||
{
|
{
|
||||||
|
@ -425,11 +425,11 @@ Any SAL_CALL Theme::getPropertyValue (
|
|||||||
{
|
{
|
||||||
PropertyNameToIdMap::const_iterator iId (maPropertyNameToIdMap.find(rsPropertyName));
|
PropertyNameToIdMap::const_iterator iId (maPropertyNameToIdMap.find(rsPropertyName));
|
||||||
if (iId == maPropertyNameToIdMap.end())
|
if (iId == maPropertyNameToIdMap.end())
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rsPropertyName);
|
||||||
|
|
||||||
const PropertyType eType (GetPropertyType(iId->second));
|
const PropertyType eType (GetPropertyType(iId->second));
|
||||||
if (eType == PT_Invalid)
|
if (eType == PT_Invalid)
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rsPropertyName);
|
||||||
|
|
||||||
const ThemeItem eItem (iId->second);
|
const ThemeItem eItem (iId->second);
|
||||||
|
|
||||||
@ -445,11 +445,11 @@ void SAL_CALL Theme::addPropertyChangeListener(
|
|||||||
{
|
{
|
||||||
PropertyNameToIdMap::const_iterator iId (maPropertyNameToIdMap.find(rsPropertyName));
|
PropertyNameToIdMap::const_iterator iId (maPropertyNameToIdMap.find(rsPropertyName));
|
||||||
if (iId == maPropertyNameToIdMap.end())
|
if (iId == maPropertyNameToIdMap.end())
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rsPropertyName);
|
||||||
|
|
||||||
const PropertyType eType (GetPropertyType(iId->second));
|
const PropertyType eType (GetPropertyType(iId->second));
|
||||||
if (eType == PT_Invalid)
|
if (eType == PT_Invalid)
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rsPropertyName);
|
||||||
|
|
||||||
eItem = iId->second;
|
eItem = iId->second;
|
||||||
}
|
}
|
||||||
@ -467,11 +467,11 @@ void SAL_CALL Theme::removePropertyChangeListener(
|
|||||||
{
|
{
|
||||||
PropertyNameToIdMap::const_iterator iId (maPropertyNameToIdMap.find(rsPropertyName));
|
PropertyNameToIdMap::const_iterator iId (maPropertyNameToIdMap.find(rsPropertyName));
|
||||||
if (iId == maPropertyNameToIdMap.end())
|
if (iId == maPropertyNameToIdMap.end())
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rsPropertyName);
|
||||||
|
|
||||||
const PropertyType eType (GetPropertyType(iId->second));
|
const PropertyType eType (GetPropertyType(iId->second));
|
||||||
if (eType == PT_Invalid)
|
if (eType == PT_Invalid)
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rsPropertyName);
|
||||||
|
|
||||||
eItem = iId->second;
|
eItem = iId->second;
|
||||||
}
|
}
|
||||||
@ -499,11 +499,11 @@ void SAL_CALL Theme::addVetoableChangeListener(
|
|||||||
{
|
{
|
||||||
PropertyNameToIdMap::const_iterator iId (maPropertyNameToIdMap.find(rsPropertyName));
|
PropertyNameToIdMap::const_iterator iId (maPropertyNameToIdMap.find(rsPropertyName));
|
||||||
if (iId == maPropertyNameToIdMap.end())
|
if (iId == maPropertyNameToIdMap.end())
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rsPropertyName);
|
||||||
|
|
||||||
const PropertyType eType (GetPropertyType(iId->second));
|
const PropertyType eType (GetPropertyType(iId->second));
|
||||||
if (eType == PT_Invalid)
|
if (eType == PT_Invalid)
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rsPropertyName);
|
||||||
|
|
||||||
eItem = iId->second;
|
eItem = iId->second;
|
||||||
}
|
}
|
||||||
@ -521,11 +521,11 @@ void SAL_CALL Theme::removeVetoableChangeListener(
|
|||||||
{
|
{
|
||||||
PropertyNameToIdMap::const_iterator iId (maPropertyNameToIdMap.find(rsPropertyName));
|
PropertyNameToIdMap::const_iterator iId (maPropertyNameToIdMap.find(rsPropertyName));
|
||||||
if (iId == maPropertyNameToIdMap.end())
|
if (iId == maPropertyNameToIdMap.end())
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rsPropertyName);
|
||||||
|
|
||||||
const PropertyType eType (GetPropertyType(iId->second));
|
const PropertyType eType (GetPropertyType(iId->second));
|
||||||
if (eType == PT_Invalid)
|
if (eType == PT_Invalid)
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rsPropertyName);
|
||||||
|
|
||||||
eItem = iId->second;
|
eItem = iId->second;
|
||||||
}
|
}
|
||||||
@ -572,11 +572,11 @@ beans::Property SAL_CALL Theme::getPropertyByName (const OUString& rsPropertyNam
|
|||||||
{
|
{
|
||||||
PropertyNameToIdMap::const_iterator iId (maPropertyNameToIdMap.find(rsPropertyName));
|
PropertyNameToIdMap::const_iterator iId (maPropertyNameToIdMap.find(rsPropertyName));
|
||||||
if (iId == maPropertyNameToIdMap.end())
|
if (iId == maPropertyNameToIdMap.end())
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rsPropertyName);
|
||||||
|
|
||||||
const PropertyType eType (GetPropertyType(iId->second));
|
const PropertyType eType (GetPropertyType(iId->second));
|
||||||
if (eType == PT_Invalid)
|
if (eType == PT_Invalid)
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rsPropertyName);
|
||||||
|
|
||||||
const ThemeItem eItem (iId->second);
|
const ThemeItem eItem (iId->second);
|
||||||
|
|
||||||
|
@ -1003,7 +1003,7 @@ void SAL_CALL FSStorage::setPropertyValue( const OUString& aPropertyName, const
|
|||||||
if ( aPropertyName == "URL" || aPropertyName == "OpenMode" )
|
if ( aPropertyName == "URL" || aPropertyName == "OpenMode" )
|
||||||
throw beans::PropertyVetoException(); // TODO
|
throw beans::PropertyVetoException(); // TODO
|
||||||
else
|
else
|
||||||
throw beans::UnknownPropertyException(); // TODO
|
throw beans::UnknownPropertyException(aPropertyName); // TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1019,7 +1019,7 @@ uno::Any SAL_CALL FSStorage::getPropertyValue( const OUString& aPropertyName )
|
|||||||
else if ( aPropertyName == "OpenMode" )
|
else if ( aPropertyName == "OpenMode" )
|
||||||
return uno::makeAny( m_pImpl->m_nMode );
|
return uno::makeAny( m_pImpl->m_nMode );
|
||||||
|
|
||||||
throw beans::UnknownPropertyException(); // TODO
|
throw beans::UnknownPropertyException(aPropertyName); // TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -107,7 +107,7 @@ beans::Property SfxItemPropertyMap::getPropertyByName( const OUString & rName )
|
|||||||
{
|
{
|
||||||
SfxItemPropertyHashMap_t::const_iterator aIter = m_pImpl->find(rName);
|
SfxItemPropertyHashMap_t::const_iterator aIter = m_pImpl->find(rName);
|
||||||
if( aIter == m_pImpl->end() )
|
if( aIter == m_pImpl->end() )
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(rName);
|
||||||
const SfxItemPropertySimpleEntry* pEntry = &aIter->second;
|
const SfxItemPropertySimpleEntry* pEntry = &aIter->second;
|
||||||
beans::Property aProp;
|
beans::Property aProp;
|
||||||
aProp.Name = rName;
|
aProp.Name = rName;
|
||||||
@ -191,7 +191,7 @@ void SfxItemPropertySet::getPropertyValue( const OUString &rName,
|
|||||||
// detect which-id
|
// detect which-id
|
||||||
const SfxItemPropertySimpleEntry* pEntry = m_aMap.getByName( rName );
|
const SfxItemPropertySimpleEntry* pEntry = m_aMap.getByName( rName );
|
||||||
if ( !pEntry )
|
if ( !pEntry )
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(rName);
|
||||||
getPropertyValue( *pEntry,rSet, rAny );
|
getPropertyValue( *pEntry,rSet, rAny );
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -235,7 +235,7 @@ void SfxItemPropertySet::setPropertyValue( const OUString &rName,
|
|||||||
const SfxItemPropertySimpleEntry* pEntry = m_aMap.getByName( rName );
|
const SfxItemPropertySimpleEntry* pEntry = m_aMap.getByName( rName );
|
||||||
if ( !pEntry )
|
if ( !pEntry )
|
||||||
{
|
{
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(rName);
|
||||||
}
|
}
|
||||||
setPropertyValue(*pEntry, aVal, rSet);
|
setPropertyValue(*pEntry, aVal, rSet);
|
||||||
}
|
}
|
||||||
@ -264,7 +264,7 @@ PropertyState SfxItemPropertySet::getPropertyState(const OUString& rName, cons
|
|||||||
const SfxItemPropertySimpleEntry* pEntry = m_aMap.getByName( rName );
|
const SfxItemPropertySimpleEntry* pEntry = m_aMap.getByName( rName );
|
||||||
if( !pEntry || !pEntry->nWID )
|
if( !pEntry || !pEntry->nWID )
|
||||||
{
|
{
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(rName);
|
||||||
}
|
}
|
||||||
sal_uInt16 nWhich = pEntry->nWID;
|
sal_uInt16 nWhich = pEntry->nWID;
|
||||||
|
|
||||||
|
@ -694,7 +694,7 @@ uno::Any SAL_CALL SvNumberFormatObj::getPropertyValue( const OUString& aProperty
|
|||||||
aRet <<= OUString();
|
aRet <<= OUString();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
|
|
||||||
return aRet;
|
return aRet;
|
||||||
}
|
}
|
||||||
@ -847,7 +847,7 @@ void SAL_CALL SvNumberFormatSettingsObj::setPropertyValue( const OUString& aProp
|
|||||||
pFormatter->SetYear2000( nInt16 );
|
pFormatter->SetYear2000( nInt16 );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -874,7 +874,7 @@ uno::Any SAL_CALL SvNumberFormatSettingsObj::getPropertyValue( const OUString& a
|
|||||||
else if (aPropertyName == PROPERTYNAME_TWODIGIT)
|
else if (aPropertyName == PROPERTYNAME_TWODIGIT)
|
||||||
aRet <<= static_cast<sal_Int16>( pFormatter->GetYear2000() );
|
aRet <<= static_cast<sal_Int16>( pFormatter->GetYear2000() );
|
||||||
else
|
else
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
|
|
||||||
return aRet;
|
return aRet;
|
||||||
}
|
}
|
||||||
|
@ -1466,7 +1466,7 @@ PropertyState SAL_CALL Cell::getPropertyState( const OUString& PropertyName )
|
|||||||
}
|
}
|
||||||
return eState;
|
return eState;
|
||||||
}
|
}
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(PropertyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -2114,7 +2114,7 @@ void SAL_CALL SwChartDataSequence::setPropertyValue(
|
|||||||
throw lang::DisposedException();
|
throw lang::DisposedException();
|
||||||
|
|
||||||
if (rPropertyName != UNO_NAME_ROLE)
|
if (rPropertyName != UNO_NAME_ROLE)
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rPropertyName);
|
||||||
|
|
||||||
if ( !(rValue >>= m_aRole) )
|
if ( !(rValue >>= m_aRole) )
|
||||||
throw lang::IllegalArgumentException();
|
throw lang::IllegalArgumentException();
|
||||||
@ -2128,7 +2128,7 @@ uno::Any SAL_CALL SwChartDataSequence::getPropertyValue(
|
|||||||
throw lang::DisposedException();
|
throw lang::DisposedException();
|
||||||
|
|
||||||
if (!(rPropertyName == UNO_NAME_ROLE))
|
if (!(rPropertyName == UNO_NAME_ROLE))
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rPropertyName);
|
||||||
|
|
||||||
return uno::Any(m_aRole);
|
return uno::Any(m_aRole);
|
||||||
}
|
}
|
||||||
|
@ -459,7 +459,7 @@ SwXReferenceMark::getPropertyValue(const OUString& rPropertyName)
|
|||||||
uno::Any aRet;
|
uno::Any aRet;
|
||||||
if (! ::sw::GetDefaultTextContentValue(aRet, rPropertyName))
|
if (! ::sw::GetDefaultTextContentValue(aRet, rPropertyName))
|
||||||
{
|
{
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rPropertyName);
|
||||||
}
|
}
|
||||||
return aRet;
|
return aRet;
|
||||||
}
|
}
|
||||||
@ -1359,7 +1359,7 @@ SwXMetaField::setPropertyValue(
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rPropertyName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1385,7 +1385,7 @@ SwXMetaField::getPropertyValue(const OUString& rPropertyName)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rPropertyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
return any;
|
return any;
|
||||||
|
@ -2139,7 +2139,7 @@ void SwXNumberingRules::setPropertyValue( const OUString& rPropertyName, const A
|
|||||||
throw IllegalArgumentException();
|
throw IllegalArgumentException();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(rPropertyName);
|
||||||
|
|
||||||
if(pDocRule)
|
if(pDocRule)
|
||||||
{
|
{
|
||||||
@ -2189,7 +2189,7 @@ Any SwXNumberingRules::getPropertyValue( const OUString& rPropertyName )
|
|||||||
aRet <<= pRule->GetDefaultListId();
|
aRet <<= pRule->GetDefaultListId();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(rPropertyName);
|
||||||
return aRet;
|
return aRet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -83,7 +83,7 @@ void SwSearchProperties_Impl::SetProperties(const uno::Sequence< beans::Property
|
|||||||
auto aIt = std::find_if(aPropertyEntries.begin(), aPropertyEntries.end(),
|
auto aIt = std::find_if(aPropertyEntries.begin(), aPropertyEntries.end(),
|
||||||
[&sName](const SfxItemPropertyNamedEntry& rProp) { return rProp.sName == sName; });
|
[&sName](const SfxItemPropertyNamedEntry& rProp) { return rProp.sName == sName; });
|
||||||
if( aIt == aPropertyEntries.end() )
|
if( aIt == aPropertyEntries.end() )
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(sName);
|
||||||
auto nIndex = static_cast<sal_uInt32>(std::distance(aPropertyEntries.begin(), aIt));
|
auto nIndex = static_cast<sal_uInt32>(std::distance(aPropertyEntries.begin(), aIt));
|
||||||
pValueArr[nIndex].reset( new beans::PropertyValue(rSearchAttrib) );
|
pValueArr[nIndex].reset( new beans::PropertyValue(rSearchAttrib) );
|
||||||
}
|
}
|
||||||
|
@ -4497,7 +4497,7 @@ css::uno::Any SAL_CALL SwXTextTableStyle::getPropertyValue(const OUString& rProp
|
|||||||
else if (rPropertyName == UNO_NAME_DISPLAY_NAME)
|
else if (rPropertyName == UNO_NAME_DISPLAY_NAME)
|
||||||
return uno::makeAny(m_pTableAutoFormat->GetName());
|
return uno::makeAny(m_pTableAutoFormat->GetName());
|
||||||
else
|
else
|
||||||
throw css::beans::UnknownPropertyException();
|
throw css::beans::UnknownPropertyException(rPropertyName);
|
||||||
|
|
||||||
return uno::makeAny(bIsRow ? OUString("row") : OUString("column"));
|
return uno::makeAny(bIsRow ? OUString("row") : OUString("column"));
|
||||||
}
|
}
|
||||||
@ -5020,7 +5020,7 @@ void SAL_CALL SwXTextCellStyle::setPropertyValue(const OUString& rPropertyName,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
throw css::beans::UnknownPropertyException();
|
throw css::beans::UnknownPropertyException(rPropertyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
css::uno::Any SAL_CALL SwXTextCellStyle::getPropertyValue(const OUString& rPropertyName)
|
css::uno::Any SAL_CALL SwXTextCellStyle::getPropertyValue(const OUString& rPropertyName)
|
||||||
@ -5184,7 +5184,7 @@ css::uno::Any SAL_CALL SwXTextCellStyle::getPropertyValue(const OUString& rPrope
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
throw css::beans::UnknownPropertyException();
|
throw css::beans::UnknownPropertyException(rPropertyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SAL_CALL SwXTextCellStyle::addPropertyChangeListener( const OUString& /*aPropertyName*/, const css::uno::Reference< css::beans::XPropertyChangeListener >& /*xListener*/ )
|
void SAL_CALL SwXTextCellStyle::addPropertyChangeListener( const OUString& /*aPropertyName*/, const css::uno::Reference< css::beans::XPropertyChangeListener >& /*xListener*/ )
|
||||||
@ -5360,7 +5360,7 @@ css::uno::Sequence<css::beans::PropertyState> SAL_CALL SwXTextCellStyle::getProp
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
SAL_WARN("sw.uno", "SwXTextCellStyle unknown property:" + sPropName);
|
SAL_WARN("sw.uno", "SwXTextCellStyle unknown property:" + sPropName);
|
||||||
throw css::beans::UnknownPropertyException();
|
throw css::beans::UnknownPropertyException(sPropName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return aRet;
|
return aRet;
|
||||||
|
@ -926,7 +926,7 @@ void SwXDocumentSettings::_setSingleValue( const comphelper::PropertyInfo & rInf
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(OUString::number(rInfo.mnHandle));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1382,7 +1382,7 @@ void SwXDocumentSettings::_getSingleValue( const comphelper::PropertyInfo & rInf
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(OUString::number(rInfo.mnHandle));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -586,7 +586,7 @@ void SwXAutoTextGroup::setPropertyValue(
|
|||||||
const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap().getByName( rPropertyName );
|
const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap().getByName( rPropertyName );
|
||||||
|
|
||||||
if(!pEntry)
|
if(!pEntry)
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rPropertyName);
|
||||||
|
|
||||||
std::unique_ptr<SwTextBlocks> pGlosGroup(pGlossaries ? pGlossaries->GetGroupDoc(m_sGroupName) : nullptr);
|
std::unique_ptr<SwTextBlocks> pGlosGroup(pGlossaries ? pGlossaries->GetGroupDoc(m_sGroupName) : nullptr);
|
||||||
if(!pGlosGroup || pGlosGroup->GetError())
|
if(!pGlosGroup || pGlosGroup->GetError())
|
||||||
@ -614,7 +614,7 @@ uno::Any SwXAutoTextGroup::getPropertyValue(const OUString& rPropertyName)
|
|||||||
const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap().getByName( rPropertyName);
|
const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap().getByName( rPropertyName);
|
||||||
|
|
||||||
if(!pEntry)
|
if(!pEntry)
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(rPropertyName);
|
||||||
std::unique_ptr<SwTextBlocks> pGlosGroup(pGlossaries ? pGlossaries->GetGroupDoc(m_sGroupName) : nullptr);
|
std::unique_ptr<SwTextBlocks> pGlosGroup(pGlossaries ? pGlossaries->GetGroupDoc(m_sGroupName) : nullptr);
|
||||||
if(!pGlosGroup || pGlosGroup->GetError())
|
if(!pGlosGroup || pGlosGroup->GetError())
|
||||||
throw uno::RuntimeException();
|
throw uno::RuntimeException();
|
||||||
|
@ -869,7 +869,7 @@ void SAL_CALL SwXMailMerge::setPropertyValue(
|
|||||||
|
|
||||||
const SfxItemPropertySimpleEntry* pCur = m_pPropSet->getPropertyMap().getByName( rPropertyName );
|
const SfxItemPropertySimpleEntry* pCur = m_pPropSet->getPropertyMap().getByName( rPropertyName );
|
||||||
if (!pCur)
|
if (!pCur)
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(rPropertyName);
|
||||||
else if (pCur->nFlags & PropertyAttribute::READONLY)
|
else if (pCur->nFlags & PropertyAttribute::READONLY)
|
||||||
throw PropertyVetoException();
|
throw PropertyVetoException();
|
||||||
else
|
else
|
||||||
@ -1024,7 +1024,7 @@ uno::Any SAL_CALL SwXMailMerge::getPropertyValue(
|
|||||||
|
|
||||||
const SfxItemPropertySimpleEntry* pCur = m_pPropSet->getPropertyMap().getByName( rPropertyName );
|
const SfxItemPropertySimpleEntry* pCur = m_pPropSet->getPropertyMap().getByName( rPropertyName );
|
||||||
if (!pCur)
|
if (!pCur)
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(rPropertyName);
|
||||||
|
|
||||||
switch (pCur->nWID)
|
switch (pCur->nWID)
|
||||||
{
|
{
|
||||||
@ -1075,7 +1075,7 @@ void SAL_CALL SwXMailMerge::addPropertyChangeListener(
|
|||||||
{
|
{
|
||||||
const SfxItemPropertySimpleEntry* pCur = m_pPropSet->getPropertyMap().getByName( rPropertyName );
|
const SfxItemPropertySimpleEntry* pCur = m_pPropSet->getPropertyMap().getByName( rPropertyName );
|
||||||
if (!pCur)
|
if (!pCur)
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(rPropertyName);
|
||||||
m_aPropListeners.addInterface( pCur->nWID, rListener );
|
m_aPropListeners.addInterface( pCur->nWID, rListener );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1089,7 +1089,7 @@ void SAL_CALL SwXMailMerge::removePropertyChangeListener(
|
|||||||
{
|
{
|
||||||
const SfxItemPropertySimpleEntry* pCur = m_pPropSet->getPropertyMap().getByName( rPropertyName );
|
const SfxItemPropertySimpleEntry* pCur = m_pPropSet->getPropertyMap().getByName( rPropertyName );
|
||||||
if (!pCur)
|
if (!pCur)
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(rPropertyName);
|
||||||
m_aPropListeners.removeInterface( pCur->nWID, rListener );
|
m_aPropListeners.removeInterface( pCur->nWID, rListener );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -392,7 +392,7 @@ void SwXPrintSettings::_setSingleValue( const comphelper::PropertyInfo & rInfo,
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(OUString::number(rInfo.mnHandle));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -487,7 +487,7 @@ void SwXPrintSettings::_getSingleValue( const comphelper::PropertyInfo & rInfo,
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(OUString::number(rInfo.mnHandle));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -750,7 +750,7 @@ void SwXViewSettings::_setSingleValue( const comphelper::PropertyInfo & rInfo, c
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(OUString::number(rInfo.mnHandle));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1840,7 +1840,7 @@ void SwXTextDocument::setPropertyValue(const OUString& rPropertyName, const Any&
|
|||||||
const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap().getByName( rPropertyName);
|
const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap().getByName( rPropertyName);
|
||||||
|
|
||||||
if(!pEntry)
|
if(!pEntry)
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(rPropertyName);
|
||||||
if(pEntry->nFlags & PropertyAttribute::READONLY)
|
if(pEntry->nFlags & PropertyAttribute::READONLY)
|
||||||
throw PropertyVetoException();
|
throw PropertyVetoException();
|
||||||
switch(pEntry->nWID)
|
switch(pEntry->nWID)
|
||||||
@ -2016,7 +2016,7 @@ Any SwXTextDocument::getPropertyValue(const OUString& rPropertyName)
|
|||||||
const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap().getByName( rPropertyName);
|
const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap().getByName( rPropertyName);
|
||||||
|
|
||||||
if(!pEntry)
|
if(!pEntry)
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(rPropertyName);
|
||||||
Any aAny;
|
Any aAny;
|
||||||
switch(pEntry->nWID)
|
switch(pEntry->nWID)
|
||||||
{
|
{
|
||||||
@ -2261,7 +2261,7 @@ PropertyState SAL_CALL SwXTextDocument::getPropertyState( const OUString& rPrope
|
|||||||
|
|
||||||
const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap().getByName( rPropertyName);
|
const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap().getByName( rPropertyName);
|
||||||
if(!pEntry)
|
if(!pEntry)
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(rPropertyName);
|
||||||
return PropertyState_DIRECT_VALUE;
|
return PropertyState_DIRECT_VALUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2284,7 +2284,7 @@ void SAL_CALL SwXTextDocument::setPropertyToDefault( const OUString& rPropertyNa
|
|||||||
|
|
||||||
const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap().getByName( rPropertyName);
|
const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap().getByName( rPropertyName);
|
||||||
if(!pEntry)
|
if(!pEntry)
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(rPropertyName);
|
||||||
switch(pEntry->nWID)
|
switch(pEntry->nWID)
|
||||||
{
|
{
|
||||||
case 0:default:break;
|
case 0:default:break;
|
||||||
@ -2299,7 +2299,7 @@ Any SAL_CALL SwXTextDocument::getPropertyDefault( const OUString& rPropertyName
|
|||||||
|
|
||||||
const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap().getByName( rPropertyName);
|
const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap().getByName( rPropertyName);
|
||||||
if(!pEntry)
|
if(!pEntry)
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(rPropertyName);
|
||||||
Any aAny;
|
Any aAny;
|
||||||
switch(pEntry->nWID)
|
switch(pEntry->nWID)
|
||||||
{
|
{
|
||||||
@ -4135,9 +4135,9 @@ Reference< XPropertySetInfo > SwXLinkNameAccessWrapper::getPropertySetInfo()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void SwXLinkNameAccessWrapper::setPropertyValue(
|
void SwXLinkNameAccessWrapper::setPropertyValue(
|
||||||
const OUString& , const Any& )
|
const OUString& rPropName, const Any& )
|
||||||
{
|
{
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(rPropName);
|
||||||
}
|
}
|
||||||
|
|
||||||
static Any lcl_GetDisplayBitmap(const OUString& _sLinkSuffix)
|
static Any lcl_GetDisplayBitmap(const OUString& _sLinkSuffix)
|
||||||
@ -4182,7 +4182,7 @@ Any SwXLinkNameAccessWrapper::getPropertyValue(const OUString& rPropertyName)
|
|||||||
aRet = lcl_GetDisplayBitmap(sLinkSuffix);
|
aRet = lcl_GetDisplayBitmap(sLinkSuffix);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(rPropertyName);
|
||||||
return aRet;
|
return aRet;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4240,15 +4240,15 @@ Reference< XPropertySetInfo > SwXOutlineTarget::getPropertySetInfo()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void SwXOutlineTarget::setPropertyValue(
|
void SwXOutlineTarget::setPropertyValue(
|
||||||
const OUString& /*PropertyName*/, const Any& /*aValue*/)
|
const OUString& rPropertyName, const Any& /*aValue*/)
|
||||||
{
|
{
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(rPropertyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
Any SwXOutlineTarget::getPropertyValue(const OUString& rPropertyName)
|
Any SwXOutlineTarget::getPropertyValue(const OUString& rPropertyName)
|
||||||
{
|
{
|
||||||
if(rPropertyName != UNO_LINK_DISPLAY_NAME)
|
if(rPropertyName != UNO_LINK_DISPLAY_NAME)
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(rPropertyName);
|
||||||
|
|
||||||
return Any(sOutlineText);
|
return Any(sOutlineText);
|
||||||
}
|
}
|
||||||
|
@ -730,7 +730,7 @@ void SAL_CALL SwXTextView::setPropertyValue(
|
|||||||
SolarMutexGuard aGuard;
|
SolarMutexGuard aGuard;
|
||||||
const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap().getByName( rPropertyName );
|
const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap().getByName( rPropertyName );
|
||||||
if (!pEntry)
|
if (!pEntry)
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(rPropertyName);
|
||||||
else if (pEntry->nFlags & PropertyAttribute::READONLY)
|
else if (pEntry->nFlags & PropertyAttribute::READONLY)
|
||||||
throw PropertyVetoException();
|
throw PropertyVetoException();
|
||||||
else
|
else
|
||||||
@ -767,7 +767,7 @@ uno::Any SAL_CALL SwXTextView::getPropertyValue(
|
|||||||
|
|
||||||
const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap().getByName( rPropertyName );
|
const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap().getByName( rPropertyName );
|
||||||
if (!pEntry)
|
if (!pEntry)
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(rPropertyName);
|
||||||
|
|
||||||
sal_Int16 nWID = pEntry->nWID;
|
sal_Int16 nWID = pEntry->nWID;
|
||||||
switch (nWID)
|
switch (nWID)
|
||||||
|
@ -1246,7 +1246,7 @@ void UnoControlModel::setPropertyValue( const OUString& rPropertyName, const css
|
|||||||
DBG_ASSERT( nPropId, "Invalid ID in UnoControlModel::setPropertyValue" );
|
DBG_ASSERT( nPropId, "Invalid ID in UnoControlModel::setPropertyValue" );
|
||||||
}
|
}
|
||||||
if( !nPropId )
|
if( !nPropId )
|
||||||
throw css::beans::UnknownPropertyException();
|
throw css::beans::UnknownPropertyException(rPropertyName);
|
||||||
|
|
||||||
setFastPropertyValue( nPropId, rValue );
|
setFastPropertyValue( nPropId, rValue );
|
||||||
|
|
||||||
|
@ -533,14 +533,11 @@ Sequence< Property > SAL_CALL CCRS_PropertySetInfo
|
|||||||
Property SAL_CALL CCRS_PropertySetInfo
|
Property SAL_CALL CCRS_PropertySetInfo
|
||||||
::getPropertyByName( const OUString& aName )
|
::getPropertyByName( const OUString& aName )
|
||||||
{
|
{
|
||||||
if ( aName.isEmpty() )
|
|
||||||
throw UnknownPropertyException();
|
|
||||||
|
|
||||||
Property aProp;
|
Property aProp;
|
||||||
if ( impl_queryProperty( aName, aProp ) )
|
if ( impl_queryProperty( aName, aProp ) )
|
||||||
return aProp;
|
return aProp;
|
||||||
|
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(aName);
|
||||||
}
|
}
|
||||||
|
|
||||||
//virtual
|
//virtual
|
||||||
|
@ -685,7 +685,7 @@ void SAL_CALL ContentResultSetWrapper::removeVetoableChangeListener( const OUStr
|
|||||||
if( !rPropertyName.isEmpty() )
|
if( !rPropertyName.isEmpty() )
|
||||||
{
|
{
|
||||||
if( !getPropertySetInfo().is() )
|
if( !getPropertySetInfo().is() )
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(rPropertyName);
|
||||||
|
|
||||||
m_xPropertySetInfo->getPropertyByName( rPropertyName );
|
m_xPropertySetInfo->getPropertyByName( rPropertyName );
|
||||||
//throws UnknownPropertyException, if so
|
//throws UnknownPropertyException, if so
|
||||||
|
@ -231,7 +231,7 @@ Property SAL_CALL UcbPropertiesManager::getPropertyByName( const OUString& aName
|
|||||||
if ( queryProperty( aName, aProp ) )
|
if ( queryProperty( aName, aProp ) )
|
||||||
return aProp;
|
return aProp;
|
||||||
|
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(aName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1184,9 +1184,6 @@ Reference< XPropertySetInfo > SAL_CALL PersistentPropertySet::getPropertySetInfo
|
|||||||
void SAL_CALL PersistentPropertySet::setPropertyValue( const OUString& aPropertyName,
|
void SAL_CALL PersistentPropertySet::setPropertyValue( const OUString& aPropertyName,
|
||||||
const Any& aValue )
|
const Any& aValue )
|
||||||
{
|
{
|
||||||
if ( aPropertyName.isEmpty() )
|
|
||||||
throw UnknownPropertyException();
|
|
||||||
|
|
||||||
osl::ClearableGuard< osl::Mutex > aCGuard( m_pImpl->m_aMutex );
|
osl::ClearableGuard< osl::Mutex > aCGuard( m_pImpl->m_aMutex );
|
||||||
|
|
||||||
Reference< XHierarchicalNameAccess > xRootHierNameAccess(
|
Reference< XHierarchicalNameAccess > xRootHierNameAccess(
|
||||||
@ -1277,7 +1274,7 @@ void SAL_CALL PersistentPropertySet::setPropertyValue( const OUString& aProperty
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(aPropertyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1285,9 +1282,6 @@ void SAL_CALL PersistentPropertySet::setPropertyValue( const OUString& aProperty
|
|||||||
Any SAL_CALL PersistentPropertySet::getPropertyValue(
|
Any SAL_CALL PersistentPropertySet::getPropertyValue(
|
||||||
const OUString& PropertyName )
|
const OUString& PropertyName )
|
||||||
{
|
{
|
||||||
if ( PropertyName.isEmpty() )
|
|
||||||
throw UnknownPropertyException();
|
|
||||||
|
|
||||||
osl::Guard< osl::Mutex > aGuard( m_pImpl->m_aMutex );
|
osl::Guard< osl::Mutex > aGuard( m_pImpl->m_aMutex );
|
||||||
|
|
||||||
Reference< XHierarchicalNameAccess > xNameAccess(
|
Reference< XHierarchicalNameAccess > xNameAccess(
|
||||||
@ -1304,11 +1298,11 @@ Any SAL_CALL PersistentPropertySet::getPropertyValue(
|
|||||||
}
|
}
|
||||||
catch (const NoSuchElementException&)
|
catch (const NoSuchElementException&)
|
||||||
{
|
{
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(aFullPropName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(PropertyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1581,7 +1575,7 @@ void SAL_CALL PersistentPropertySet::removeProperty( const OUString& Name )
|
|||||||
|
|
||||||
// Property in set?
|
// Property in set?
|
||||||
if ( !xRootHierNameAccess->hasByHierarchicalName( aFullPropName ) )
|
if ( !xRootHierNameAccess->hasByHierarchicalName( aFullPropName ) )
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(aFullPropName);
|
||||||
|
|
||||||
// Property removable?
|
// Property removable?
|
||||||
try
|
try
|
||||||
@ -2237,7 +2231,7 @@ Property SAL_CALL PropertySetInfo_Impl::getPropertyByName(
|
|||||||
|
|
||||||
// Does property exist?
|
// Does property exist?
|
||||||
if ( !xRootHierNameAccess->hasByHierarchicalName( aFullPropName ) )
|
if ( !xRootHierNameAccess->hasByHierarchicalName( aFullPropName ) )
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(aFullPropName);
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -771,7 +771,7 @@ void SAL_CALL SortedResultSet::setPropertyValue(
|
|||||||
if ( PropertyName == "RowCount" || PropertyName == "IsRowCountFinal" )
|
if ( PropertyName == "RowCount" || PropertyName == "IsRowCountFinal" )
|
||||||
throw IllegalArgumentException();
|
throw IllegalArgumentException();
|
||||||
else
|
else
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(PropertyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -807,7 +807,7 @@ Any SAL_CALL SortedResultSet::getPropertyValue( const OUString& PropertyName )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(PropertyName);
|
||||||
|
|
||||||
return aRet;
|
return aRet;
|
||||||
}
|
}
|
||||||
@ -1796,7 +1796,7 @@ SRSPropertySetInfo::getPropertyByName( const OUString& Name )
|
|||||||
else if ( Name == "IsRowCountFinal" )
|
else if ( Name == "IsRowCountFinal" )
|
||||||
return maProps[1];
|
return maProps[1];
|
||||||
else
|
else
|
||||||
throw UnknownPropertyException();
|
throw UnknownPropertyException(Name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -537,7 +537,7 @@ BaseContent::removeProperty( const OUString& Name )
|
|||||||
{
|
{
|
||||||
|
|
||||||
if( m_nState & Deleted )
|
if( m_nState & Deleted )
|
||||||
throw beans::UnknownPropertyException( THROW_WHERE );
|
throw beans::UnknownPropertyException( Name );
|
||||||
|
|
||||||
m_pMyShell->deassociate( m_aUncPath, Name );
|
m_pMyShell->deassociate( m_aUncPath, Name );
|
||||||
}
|
}
|
||||||
|
@ -30,12 +30,6 @@ using namespace com::sun::star::ucb;
|
|||||||
|
|
||||||
#include "filinl.hxx"
|
#include "filinl.hxx"
|
||||||
|
|
||||||
#if OSL_DEBUG_LEVEL > 0
|
|
||||||
#define THROW_WHERE SAL_WHERE
|
|
||||||
#else
|
|
||||||
#define THROW_WHERE ""
|
|
||||||
#endif
|
|
||||||
|
|
||||||
XPropertySetInfo_impl::XPropertySetInfo_impl( TaskManager* pMyShell,const OUString& aUnqPath )
|
XPropertySetInfo_impl::XPropertySetInfo_impl( TaskManager* pMyShell,const OUString& aUnqPath )
|
||||||
: m_pMyShell( pMyShell ),
|
: m_pMyShell( pMyShell ),
|
||||||
m_seq( 0 )
|
m_seq( 0 )
|
||||||
@ -81,7 +75,7 @@ XPropertySetInfo_impl::getPropertyByName( const OUString& aName )
|
|||||||
if (pProp != m_seq.end())
|
if (pProp != m_seq.end())
|
||||||
return *pProp;
|
return *pProp;
|
||||||
|
|
||||||
throw beans::UnknownPropertyException( THROW_WHERE );
|
throw beans::UnknownPropertyException( aName );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -641,7 +641,7 @@ void SAL_CALL XResultSet_impl::setPropertyValue(
|
|||||||
if( aPropertyName == "IsRowCountFinal" ||
|
if( aPropertyName == "IsRowCountFinal" ||
|
||||||
aPropertyName == "RowCount" )
|
aPropertyName == "RowCount" )
|
||||||
return;
|
return;
|
||||||
throw beans::UnknownPropertyException( THROW_WHERE );
|
throw beans::UnknownPropertyException( aPropertyName );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -658,7 +658,7 @@ uno::Any SAL_CALL XResultSet_impl::getPropertyValue(
|
|||||||
return uno::Any(count);
|
return uno::Any(count);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw beans::UnknownPropertyException( THROW_WHERE );
|
throw beans::UnknownPropertyException( PropertyName );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -684,7 +684,7 @@ void SAL_CALL XResultSet_impl::addPropertyChangeListener(
|
|||||||
m_pRowCountListeners->addInterface( xListener );
|
m_pRowCountListeners->addInterface( xListener );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw beans::UnknownPropertyException( THROW_WHERE );
|
throw beans::UnknownPropertyException( aPropertyName );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -706,7 +706,7 @@ void SAL_CALL XResultSet_impl::removePropertyChangeListener(
|
|||||||
m_pRowCountListeners->removeInterface( aListener );
|
m_pRowCountListeners->removeInterface( aListener );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw beans::UnknownPropertyException( THROW_WHERE );
|
throw beans::UnknownPropertyException( aPropertyName );
|
||||||
}
|
}
|
||||||
|
|
||||||
void SAL_CALL XResultSet_impl::addVetoableChangeListener(
|
void SAL_CALL XResultSet_impl::addVetoableChangeListener(
|
||||||
|
@ -590,7 +590,7 @@ TaskManager::deassociate( const OUString& aUnqPath,
|
|||||||
|
|
||||||
it1 = properties.find( oldProperty );
|
it1 = properties.find( oldProperty );
|
||||||
if( it1 == properties.end() )
|
if( it1 == properties.end() )
|
||||||
throw beans::UnknownPropertyException( THROW_WHERE );
|
throw beans::UnknownPropertyException( PropertyName );
|
||||||
|
|
||||||
properties.erase( it1 );
|
properties.erase( it1 );
|
||||||
|
|
||||||
|
@ -351,7 +351,7 @@ XPropertySetInfoImpl2::getPropertyByName( const OUString& aName )
|
|||||||
if (pProp != m_seq.end())
|
if (pProp != m_seq.end())
|
||||||
return *pProp;
|
return *pProp;
|
||||||
|
|
||||||
throw UnknownPropertyException( THROW_WHERE );
|
throw UnknownPropertyException( aName );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -416,7 +416,7 @@ FileProvider::setPropertyValue( const OUString& aPropertyName,
|
|||||||
if( !(aPropertyName == "FileSystemNotation" ||
|
if( !(aPropertyName == "FileSystemNotation" ||
|
||||||
aPropertyName == "HomeDirectory" ||
|
aPropertyName == "HomeDirectory" ||
|
||||||
aPropertyName == "HostName") )
|
aPropertyName == "HostName") )
|
||||||
throw UnknownPropertyException( THROW_WHERE );
|
throw UnknownPropertyException( aPropertyName );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -438,7 +438,7 @@ FileProvider::getPropertyValue(
|
|||||||
return Any(m_HostName);
|
return Any(m_HostName);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw UnknownPropertyException( THROW_WHERE );
|
throw UnknownPropertyException( aPropertyName );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -380,7 +380,7 @@ public:
|
|||||||
[&aName](const beans::Property& rProp) { return aName == rProp.Name; });
|
[&aName](const beans::Property& rProp) { return aName == rProp.Name; });
|
||||||
if (pProp != m_aSeq.end())
|
if (pProp != m_aSeq.end())
|
||||||
return *pProp;
|
return *pProp;
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aName);
|
||||||
}
|
}
|
||||||
|
|
||||||
sal_Bool SAL_CALL hasPropertyByName( const OUString& Name ) override
|
sal_Bool SAL_CALL hasPropertyByName( const OUString& Name ) override
|
||||||
@ -423,7 +423,7 @@ void SAL_CALL ResultSetBase::setPropertyValue(
|
|||||||
aPropertyName == "RowCount" )
|
aPropertyName == "RowCount" )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -440,7 +440,7 @@ uno::Any SAL_CALL ResultSetBase::getPropertyValue(
|
|||||||
return uno::Any(count);
|
return uno::Any(count);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(PropertyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -466,7 +466,7 @@ void SAL_CALL ResultSetBase::addPropertyChangeListener(
|
|||||||
m_pRowCountListeners->addInterface( xListener );
|
m_pRowCountListeners->addInterface( xListener );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -487,7 +487,7 @@ void SAL_CALL ResultSetBase::removePropertyChangeListener(
|
|||||||
m_pRowCountListeners->removeInterface( aListener );
|
m_pRowCountListeners->removeInterface( aListener );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1009,7 +1009,7 @@ void Content::removeProperty( const OUString& Name,
|
|||||||
{
|
{
|
||||||
case UNKNOWN:
|
case UNKNOWN:
|
||||||
case DAV:
|
case DAV:
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(Name);
|
||||||
|
|
||||||
case FTP:
|
case FTP:
|
||||||
case NON_DAV:
|
case NON_DAV:
|
||||||
|
@ -983,7 +983,7 @@ void Content::removeProperty( const OUString& Name,
|
|||||||
{
|
{
|
||||||
case UNKNOWN:
|
case UNKNOWN:
|
||||||
case DAV:
|
case DAV:
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(Name);
|
||||||
|
|
||||||
case NON_DAV:
|
case NON_DAV:
|
||||||
// Try to remove property from local store.
|
// Try to remove property from local store.
|
||||||
|
@ -156,7 +156,7 @@ beans::Property SAL_CALL PropertySetInfo::getPropertyByName(
|
|||||||
if ( queryProperty( aName, aProp ) )
|
if ( queryProperty( aName, aProp ) )
|
||||||
return aProp;
|
return aProp;
|
||||||
|
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1245,9 +1245,6 @@ ResultSet::getPropertySetInfo()
|
|||||||
void SAL_CALL ResultSet::setPropertyValue( const OUString& aPropertyName,
|
void SAL_CALL ResultSet::setPropertyValue( const OUString& aPropertyName,
|
||||||
const uno::Any& )
|
const uno::Any& )
|
||||||
{
|
{
|
||||||
if ( aPropertyName.isEmpty() )
|
|
||||||
throw beans::UnknownPropertyException();
|
|
||||||
|
|
||||||
if ( aPropertyName == "RowCount" )
|
if ( aPropertyName == "RowCount" )
|
||||||
{
|
{
|
||||||
// property is read-only.
|
// property is read-only.
|
||||||
@ -1260,7 +1257,7 @@ void SAL_CALL ResultSet::setPropertyValue( const OUString& aPropertyName,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1269,9 +1266,6 @@ void SAL_CALL ResultSet::setPropertyValue( const OUString& aPropertyName,
|
|||||||
uno::Any SAL_CALL ResultSet::getPropertyValue(
|
uno::Any SAL_CALL ResultSet::getPropertyValue(
|
||||||
const OUString& PropertyName )
|
const OUString& PropertyName )
|
||||||
{
|
{
|
||||||
if ( PropertyName.isEmpty() )
|
|
||||||
throw beans::UnknownPropertyException();
|
|
||||||
|
|
||||||
uno::Any aValue;
|
uno::Any aValue;
|
||||||
|
|
||||||
if ( PropertyName == "RowCount" )
|
if ( PropertyName == "RowCount" )
|
||||||
@ -1284,7 +1278,7 @@ uno::Any SAL_CALL ResultSet::getPropertyValue(
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(PropertyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
return aValue;
|
return aValue;
|
||||||
@ -1303,7 +1297,7 @@ void SAL_CALL ResultSet::addPropertyChangeListener(
|
|||||||
if ( !aPropertyName.isEmpty() &&
|
if ( !aPropertyName.isEmpty() &&
|
||||||
aPropertyName != "RowCount" &&
|
aPropertyName != "RowCount" &&
|
||||||
aPropertyName != "IsRowCountFinal" )
|
aPropertyName != "IsRowCountFinal" )
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
|
|
||||||
if ( !m_pImpl->m_pPropertyChangeListeners )
|
if ( !m_pImpl->m_pPropertyChangeListeners )
|
||||||
m_pImpl->m_pPropertyChangeListeners.reset(
|
m_pImpl->m_pPropertyChangeListeners.reset(
|
||||||
@ -1324,7 +1318,7 @@ void SAL_CALL ResultSet::removePropertyChangeListener(
|
|||||||
if ( !aPropertyName.isEmpty() &&
|
if ( !aPropertyName.isEmpty() &&
|
||||||
aPropertyName != "RowCount" &&
|
aPropertyName != "RowCount" &&
|
||||||
aPropertyName != "IsRowCountFinal" )
|
aPropertyName != "IsRowCountFinal" )
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
|
|
||||||
if ( m_pImpl->m_pPropertyChangeListeners )
|
if ( m_pImpl->m_pPropertyChangeListeners )
|
||||||
m_pImpl->m_pPropertyChangeListeners->removeInterface(
|
m_pImpl->m_pPropertyChangeListeners->removeInterface(
|
||||||
@ -1515,7 +1509,7 @@ beans::Property SAL_CALL PropertySetInfo::getPropertyByName(
|
|||||||
if ( queryProperty( aName, aProp ) )
|
if ( queryProperty( aName, aProp ) )
|
||||||
return aProp;
|
return aProp;
|
||||||
|
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -112,7 +112,7 @@ public:
|
|||||||
m_pImpl->SetParentWindow(xWindow);
|
m_pImpl->SetParentWindow(xWindow);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
throw css::beans::UnknownPropertyException();
|
throw css::beans::UnknownPropertyException(rPropertyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString& rPropertyName) override
|
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString& rPropertyName) override
|
||||||
@ -121,7 +121,7 @@ public:
|
|||||||
{
|
{
|
||||||
return uno::Any(m_pImpl->GetParentWindow());
|
return uno::Any(m_pImpl->GetParentWindow());
|
||||||
}
|
}
|
||||||
throw css::beans::UnknownPropertyException();
|
throw css::beans::UnknownPropertyException(rPropertyName);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -374,7 +374,7 @@ public:
|
|||||||
[&aName](const beans::Property& rProp) { return aName == rProp.Name; });
|
[&aName](const beans::Property& rProp) { return aName == rProp.Name; });
|
||||||
if (pProp != m_aSeq.end())
|
if (pProp != m_aSeq.end())
|
||||||
return *pProp;
|
return *pProp;
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aName);
|
||||||
}
|
}
|
||||||
|
|
||||||
sal_Bool SAL_CALL hasPropertyByName( const OUString& Name ) override
|
sal_Bool SAL_CALL hasPropertyByName( const OUString& Name ) override
|
||||||
@ -416,7 +416,7 @@ void SAL_CALL ResultSetBase::setPropertyValue(
|
|||||||
aPropertyName == "RowCount" )
|
aPropertyName == "RowCount" )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -433,7 +433,7 @@ uno::Any SAL_CALL ResultSetBase::getPropertyValue(
|
|||||||
return uno::Any(count);
|
return uno::Any(count);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(PropertyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -459,7 +459,7 @@ void SAL_CALL ResultSetBase::addPropertyChangeListener(
|
|||||||
m_pRowCountListeners->addInterface( xListener );
|
m_pRowCountListeners->addInterface( xListener );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -480,7 +480,7 @@ void SAL_CALL ResultSetBase::removePropertyChangeListener(
|
|||||||
m_pRowCountListeners->removeInterface( aListener );
|
m_pRowCountListeners->removeInterface( aListener );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw beans::UnknownPropertyException();
|
throw beans::UnknownPropertyException(aPropertyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user