diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-26 14:52:33 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-26 18:32:25 +0200 |
commit | b56a4eaf5eb856c36d3539dc7d2e6fa94b6551f8 (patch) | |
tree | d37ee64847c6e4eb5f748ef1d180d2651226ec53 /sc | |
parent | e51a2917ab19156f5a5d2b9474a5a46a52e9e527 (diff) |
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>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/unoobj/PivotTableDataProvider.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/unoobj/PivotTableDataSequence.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/unoobj/addruno.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/unoobj/cellsuno.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/unoobj/chart2uno.cxx | 8 | ||||
-rw-r--r-- | sc/source/ui/unoobj/condformatuno.cxx | 24 | ||||
-rw-r--r-- | sc/source/ui/unoobj/confuno.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/unoobj/dapiuno.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/unoobj/defltuno.cxx | 10 | ||||
-rw-r--r-- | sc/source/ui/unoobj/fielduno.cxx | 32 | ||||
-rw-r--r-- | sc/source/ui/unoobj/funcuno.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/unoobj/styleuno.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/unoobj/tokenuno.cxx | 4 |
13 files changed, 54 insertions, 54 deletions
diff --git a/sc/source/ui/unoobj/PivotTableDataProvider.cxx b/sc/source/ui/unoobj/PivotTableDataProvider.cxx index 633f1b1786b3..fa77cd0f133a 100644 --- a/sc/source/ui/unoobj/PivotTableDataProvider.cxx +++ b/sc/source/ui/unoobj/PivotTableDataProvider.cxx @@ -853,7 +853,7 @@ uno::Reference< beans::XPropertySetInfo> SAL_CALL void SAL_CALL PivotTableDataProvider::setPropertyValue(const OUString& rPropertyName, const uno::Any& rValue) { if (rPropertyName != SC_UNONAME_INCLUDEHIDDENCELLS) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(rPropertyName); if (!(rValue >>= m_bIncludeHiddenCells)) throw lang::IllegalArgumentException(); @@ -870,7 +870,7 @@ uno::Any SAL_CALL PivotTableDataProvider::getPropertyValue(const OUString& rProp aRet <<= m_pDocument->PastingDrawFromOtherDoc(); } else - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(rPropertyName); return aRet; } diff --git a/sc/source/ui/unoobj/PivotTableDataSequence.cxx b/sc/source/ui/unoobj/PivotTableDataSequence.cxx index be583042f1d7..706cedd3e025 100644 --- a/sc/source/ui/unoobj/PivotTableDataSequence.cxx +++ b/sc/source/ui/unoobj/PivotTableDataSequence.cxx @@ -220,7 +220,7 @@ void SAL_CALL PivotTableDataSequence::setPropertyValue(const OUString& rProperty || rPropertyName == SC_UNONAME_HAS_STRING_LABEL) {} else - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(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; } else - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(rPropertyName); return aReturn; } diff --git a/sc/source/ui/unoobj/addruno.cxx b/sc/source/ui/unoobj/addruno.cxx index 012e68f4b884..c9192ff402e0 100644 --- a/sc/source/ui/unoobj/addruno.cxx +++ b/sc/source/ui/unoobj/addruno.cxx @@ -204,7 +204,7 @@ void SAL_CALL ScAddressConversionObj::setPropertyValue( const OUString& aPropert } } else - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(aPropertyName); if ( !bSuccess ) throw lang::IllegalArgumentException(); @@ -270,7 +270,7 @@ uno::Any SAL_CALL ScAddressConversionObj::getPropertyValue( const OUString& aPro aRet <<= aFormatStr; } else - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(aPropertyName); return aRet; } diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx index f471e7f47e60..737e5bcb4176 100644 --- a/sc/source/ui/unoobj/cellsuno.cxx +++ b/sc/source/ui/unoobj/cellsuno.cxx @@ -2219,7 +2219,7 @@ void SAL_CALL ScCellRangesBase::setPropertyValue( const SfxItemPropertyMap& rPropertyMap = GetItemPropertyMap(); // from derived class const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName ); if ( !pEntry ) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(aPropertyName); SetOnePropertyValue( pEntry, aValue ); } @@ -2431,7 +2431,7 @@ uno::Any SAL_CALL ScCellRangesBase::getPropertyValue( const OUString& aPropertyN const SfxItemPropertyMap& rPropertyMap = GetItemPropertyMap(); // from derived class const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName ); if ( !pEntry ) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(aPropertyName); uno::Any aAny; GetOnePropertyValue( pEntry, aAny ); diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx index df3b2bf1c428..2aa0fb870c19 100644 --- a/sc/source/ui/unoobj/chart2uno.cxx +++ b/sc/source/ui/unoobj/chart2uno.cxx @@ -2229,7 +2229,7 @@ void SAL_CALL ScChart2DataProvider::setPropertyValue( const OUString& rPropertyName, const uno::Any& rValue) { if ( rPropertyName != SC_UNONAME_INCLUDEHIDDENCELLS ) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(rPropertyName); if ( !(rValue >>= m_bIncludeHiddenCells)) throw lang::IllegalArgumentException(); @@ -2248,7 +2248,7 @@ uno::Any SAL_CALL ScChart2DataProvider::getPropertyValue( aRet <<= m_pDocument->PastingDrawFromOtherDoc(); } else - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(rPropertyName); return aRet; } @@ -3272,7 +3272,7 @@ void SAL_CALL ScChart2DataSequence::setPropertyValue( mbTimeBased = bTimeBased; } else - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(rPropertyName); // TODO: support optional properties } @@ -3307,7 +3307,7 @@ uno::Any SAL_CALL ScChart2DataSequence::getPropertyValue(const OUString& rProper aRet <<= bHasStringLabel; } else - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(rPropertyName); // TODO: support optional properties return aRet; } diff --git a/sc/source/ui/unoobj/condformatuno.cxx b/sc/source/ui/unoobj/condformatuno.cxx index 813ad3515d43..038064c87cc3 100644 --- a/sc/source/ui/unoobj/condformatuno.cxx +++ b/sc/source/ui/unoobj/condformatuno.cxx @@ -563,7 +563,7 @@ void SAL_CALL ScCondFormatObj::setPropertyValue( const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName ); if ( !pEntry ) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(aPropertyName); 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 SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName ); if ( !pEntry ) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(aPropertyName); uno::Any aAny; switch(pEntry->nWID) @@ -703,7 +703,7 @@ void SAL_CALL ScConditionEntryObj::setPropertyValue( const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName ); if ( !pEntry ) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(aPropertyName); 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 SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName ); if ( !pEntry ) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(aPropertyName); uno::Any aAny; switch(pEntry->nWID) @@ -910,7 +910,7 @@ void SAL_CALL ScColorScaleFormatObj::setPropertyValue( const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName ); if ( !pEntry ) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(aPropertyName); 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 SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName ); if ( !pEntry ) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(aPropertyName); uno::Any aAny; @@ -1160,7 +1160,7 @@ void SAL_CALL ScDataBarFormatObj::setPropertyValue( const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName ); if ( !pEntry ) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(aPropertyName); 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 SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName ); if ( !pEntry ) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(aPropertyName); uno::Any aAny; switch(pEntry->nWID) @@ -1535,7 +1535,7 @@ void SAL_CALL ScIconSetFormatObj::setPropertyValue( const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName ); if ( !pEntry ) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(aPropertyName); 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 SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName ); if ( !pEntry ) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(aPropertyName); uno::Any aAny; @@ -1800,7 +1800,7 @@ void SAL_CALL ScCondDateFormatObj::setPropertyValue( const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName ); if ( !pEntry ) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(aPropertyName); 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 SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName ); if ( !pEntry ) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(aPropertyName); uno::Any aAny; diff --git a/sc/source/ui/unoobj/confuno.cxx b/sc/source/ui/unoobj/confuno.cxx index a168afccdd4f..9403d73408cc 100644 --- a/sc/source/ui/unoobj/confuno.cxx +++ b/sc/source/ui/unoobj/confuno.cxx @@ -407,7 +407,7 @@ void SAL_CALL ScDocumentConfiguration::setPropertyValue( else if ( aPropertyName == SC_UNO_RASTERSYNC ) aGridOpt.SetSynchronize( ScUnoHelpFunctions::GetBoolFromAny( aValue ) ); else - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(aPropertyName); aViewOpt.SetGridOptions(aGridOpt); } rDoc.SetViewOptions(aViewOpt); @@ -608,7 +608,7 @@ uno::Any SAL_CALL ScDocumentConfiguration::getPropertyValue( const OUString& aPr else if ( aPropertyName == SC_UNO_RASTERSYNC ) aRet <<= aGridOpt.GetSynchronize(); else - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(aPropertyName); } diff --git a/sc/source/ui/unoobj/dapiuno.cxx b/sc/source/ui/unoobj/dapiuno.cxx index 5576c994f333..d71b93ff1ba0 100644 --- a/sc/source/ui/unoobj/dapiuno.cxx +++ b/sc/source/ui/unoobj/dapiuno.cxx @@ -866,7 +866,7 @@ void SAL_CALL ScDataPilotDescriptorBase::setPropertyValue( const OUString& aProp } } else - throw UnknownPropertyException(); + throw UnknownPropertyException(aPropertyName); pDPObject->SetSaveData( aNewData ); } @@ -973,7 +973,7 @@ Any SAL_CALL ScDataPilotDescriptorBase::getPropertyValue( const OUString& aPrope } } else - throw UnknownPropertyException(); + throw UnknownPropertyException(aPropertyName); } } diff --git a/sc/source/ui/unoobj/defltuno.cxx b/sc/source/ui/unoobj/defltuno.cxx index d0d6ae746311..ca4ac662abff 100644 --- a/sc/source/ui/unoobj/defltuno.cxx +++ b/sc/source/ui/unoobj/defltuno.cxx @@ -124,7 +124,7 @@ void SAL_CALL ScDocDefaultsObj::setPropertyValue( const SfxItemPropertySimpleEntry* pEntry = aPropertyMap.getByName( aPropertyName ); if ( !pEntry ) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(aPropertyName); if(!pEntry->nWID) { if(aPropertyName ==SC_UNO_STANDARDDEC) @@ -206,7 +206,7 @@ uno::Any SAL_CALL ScDocDefaultsObj::getPropertyValue( const OUString& aPropertyN uno::Any aRet; const SfxItemPropertySimpleEntry* pEntry = aPropertyMap.getByName( aPropertyName ); if ( !pEntry ) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(aPropertyName); if (!pEntry->nWID) { @@ -251,7 +251,7 @@ beans::PropertyState SAL_CALL ScDocDefaultsObj::getPropertyState( const OUString const SfxItemPropertySimpleEntry* pEntry = aPropertyMap.getByName( aPropertyName ); if ( !pEntry ) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(aPropertyName); 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 ); if ( !pEntry ) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(aPropertyName); if (pEntry->nWID) { @@ -318,7 +318,7 @@ uno::Any SAL_CALL ScDocDefaultsObj::getPropertyDefault( const OUString& aPropert const SfxItemPropertySimpleEntry* pEntry = aPropertyMap.getByName( aPropertyName ); if ( !pEntry ) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(aPropertyName); uno::Any aRet; if (pEntry->nWID) diff --git a/sc/source/ui/unoobj/fielduno.cxx b/sc/source/ui/unoobj/fielduno.cxx index aa6b1b5c32bb..61948b461c4f 100644 --- a/sc/source/ui/unoobj/fielduno.cxx +++ b/sc/source/ui/unoobj/fielduno.cxx @@ -653,7 +653,7 @@ void ScEditFieldObj::setPropertyValueURL(const OUString& rName, const css::uno:: pURL->SetTargetFrame(aStrVal); } else - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(rName); pEditEngine->QuickInsertField( SvxFieldItem(*pField, EE_FEATURE_FIELD), aSelection ); mpEditSource->UpdateData(); @@ -678,7 +678,7 @@ void ScEditFieldObj::setPropertyValueURL(const OUString& rName, const css::uno:: rData.SetTargetFrame(aStrVal); } else - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(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) aRet <<= pURL->GetTargetFrame(); else - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(rName); } else // not inserted yet { @@ -725,7 +725,7 @@ uno::Any ScEditFieldObj::getPropertyValueURL(const OUString& rName) else if (rName == SC_UNONAME_TARGET) aRet <<= rURL.GetTargetFrame(); else - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(rName); } return aRet; } @@ -733,7 +733,7 @@ uno::Any ScEditFieldObj::getPropertyValueURL(const OUString& rName) void ScEditFieldObj::setPropertyValueFile(const OUString& rName, const uno::Any& rVal) { if (rName != SC_UNONAME_FILEFORM) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(rName); sal_Int16 nIntVal = 0; if (rVal >>= nIntVal) @@ -767,7 +767,7 @@ uno::Any ScEditFieldObj::getPropertyValueFile(const OUString& rName) { uno::Any aRet; if (rName != SC_UNONAME_FILEFORM) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(rName); SvxFileFormat eFormat = SvxFileFormat::NameAndExt; const SvxFieldData* pField = nullptr; @@ -830,7 +830,7 @@ void ScEditFieldObj::setPropertyValueDateTime(const OUString& rName, const uno:: p->SetFormat(static_cast<SvxDateFormat>(mnNumFormat)); } else - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(rName); } break; case text::textfield::Type::TIME: @@ -838,7 +838,7 @@ void ScEditFieldObj::setPropertyValueDateTime(const OUString& rName, const uno:: // SvxTimeField doesn't have any attributes. if (rName != SC_UNONAME_ISDATE && rName != SC_UNONAME_ISFIXED && rName != SC_UNONAME_DATETIME && rName != SC_UNONAME_NUMFMT) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(rName); } break; case text::textfield::Type::EXTENDED_TIME: @@ -865,11 +865,11 @@ void ScEditFieldObj::setPropertyValueDateTime(const OUString& rName, const uno:: p->SetFormat(static_cast<SvxTimeFormat>(mnNumFormat)); } else - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(rName); } break; default: - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(rName); } } else @@ -883,7 +883,7 @@ void ScEditFieldObj::setPropertyValueDateTime(const OUString& rName, const uno:: else if (rName == SC_UNONAME_NUMFMT) mnNumFormat = rVal.get<sal_Int32>(); else - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(rName); } } @@ -989,7 +989,7 @@ uno::Any ScEditFieldObj::getPropertyValueDateTime(const OUString& rName) return uno::makeAny(mnNumFormat); } - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(rName); } 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); if (rName != SC_UNONAME_TABLEPOS) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(rName); sal_Int32 nTab = rVal.get<sal_Int32>(); 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. SvxTableField& r = static_cast<SvxTableField&>(getData()); if (rName != SC_UNONAME_TABLEPOS) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(rName); sal_Int32 nTab = rVal.get<sal_Int32>(); r.SetTab(nTab); @@ -1226,7 +1226,7 @@ void SAL_CALL ScEditFieldObj::setPropertyValue( break; case text::textfield::Type::DOCINFO_TITLE: 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); case text::textfield::Type::DOCINFO_TITLE: default: - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(OUString::number(meType)); } } diff --git a/sc/source/ui/unoobj/funcuno.cxx b/sc/source/ui/unoobj/funcuno.cxx index 4e291a5850c2..b66c71120355 100644 --- a/sc/source/ui/unoobj/funcuno.cxx +++ b/sc/source/ui/unoobj/funcuno.cxx @@ -246,7 +246,7 @@ void SAL_CALL ScFunctionAccess::setPropertyValue( bool bDone = ScDocOptionsHelper::setPropertyValue( *pOptions, aPropertyMap, aPropertyName, aValue ); if (!bDone) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(aPropertyName); } } diff --git a/sc/source/ui/unoobj/styleuno.cxx b/sc/source/ui/unoobj/styleuno.cxx index 35308f8b04ec..a9215095b970 100644 --- a/sc/source/ui/unoobj/styleuno.cxx +++ b/sc/source/ui/unoobj/styleuno.cxx @@ -1201,7 +1201,7 @@ void SAL_CALL ScStyleObj::setPropertyToDefault( const OUString& aPropertyName ) const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap().getByName( aPropertyName ); if ( !pEntry ) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(aPropertyName); 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 ); if ( !pEntry ) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(aPropertyName); setPropertyValue_Impl( aPropertyName, pEntry, &aValue ); } diff --git a/sc/source/ui/unoobj/tokenuno.cxx b/sc/source/ui/unoobj/tokenuno.cxx index 849bef0005b5..d5e8e8b6b6cc 100644 --- a/sc/source/ui/unoobj/tokenuno.cxx +++ b/sc/source/ui/unoobj/tokenuno.cxx @@ -227,7 +227,7 @@ void SAL_CALL ScFormulaParserObj::setPropertyValue( throw lang::IllegalArgumentException(); } else - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(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; } else - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(aPropertyName); return aRet; } |