summaryrefslogtreecommitdiff
path: root/sw/source/uibase/uno/unotxdoc.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-09-26 14:52:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-09-26 18:32:25 +0200
commitb56a4eaf5eb856c36d3539dc7d2e6fa94b6551f8 (patch)
treed37ee64847c6e4eb5f748ef1d180d2651226ec53 /sw/source/uibase/uno/unotxdoc.cxx
parente51a2917ab19156f5a5d2b9474a5a46a52e9e527 (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 'sw/source/uibase/uno/unotxdoc.cxx')
-rw-r--r--sw/source/uibase/uno/unotxdoc.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx
index dad23f90c389..4ec9e293f74b 100644
--- a/sw/source/uibase/uno/unotxdoc.cxx
+++ b/sw/source/uibase/uno/unotxdoc.cxx
@@ -1840,7 +1840,7 @@ void SwXTextDocument::setPropertyValue(const OUString& rPropertyName, const Any&
const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap().getByName( rPropertyName);
if(!pEntry)
- throw UnknownPropertyException();
+ throw UnknownPropertyException(rPropertyName);
if(pEntry->nFlags & PropertyAttribute::READONLY)
throw PropertyVetoException();
switch(pEntry->nWID)
@@ -2016,7 +2016,7 @@ Any SwXTextDocument::getPropertyValue(const OUString& rPropertyName)
const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap().getByName( rPropertyName);
if(!pEntry)
- throw UnknownPropertyException();
+ throw UnknownPropertyException(rPropertyName);
Any aAny;
switch(pEntry->nWID)
{
@@ -2261,7 +2261,7 @@ PropertyState SAL_CALL SwXTextDocument::getPropertyState( const OUString& rPrope
const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap().getByName( rPropertyName);
if(!pEntry)
- throw UnknownPropertyException();
+ throw UnknownPropertyException(rPropertyName);
return PropertyState_DIRECT_VALUE;
}
@@ -2284,7 +2284,7 @@ void SAL_CALL SwXTextDocument::setPropertyToDefault( const OUString& rPropertyNa
const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap().getByName( rPropertyName);
if(!pEntry)
- throw UnknownPropertyException();
+ throw UnknownPropertyException(rPropertyName);
switch(pEntry->nWID)
{
case 0:default:break;
@@ -2299,7 +2299,7 @@ Any SAL_CALL SwXTextDocument::getPropertyDefault( const OUString& rPropertyName
const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap().getByName( rPropertyName);
if(!pEntry)
- throw UnknownPropertyException();
+ throw UnknownPropertyException(rPropertyName);
Any aAny;
switch(pEntry->nWID)
{
@@ -4135,9 +4135,9 @@ Reference< XPropertySetInfo > SwXLinkNameAccessWrapper::getPropertySetInfo()
}
void SwXLinkNameAccessWrapper::setPropertyValue(
- const OUString& , const Any& )
+ const OUString& rPropName, const Any& )
{
- throw UnknownPropertyException();
+ throw UnknownPropertyException(rPropName);
}
static Any lcl_GetDisplayBitmap(const OUString& _sLinkSuffix)
@@ -4182,7 +4182,7 @@ Any SwXLinkNameAccessWrapper::getPropertyValue(const OUString& rPropertyName)
aRet = lcl_GetDisplayBitmap(sLinkSuffix);
}
else
- throw UnknownPropertyException();
+ throw UnknownPropertyException(rPropertyName);
return aRet;
}
@@ -4240,15 +4240,15 @@ Reference< XPropertySetInfo > SwXOutlineTarget::getPropertySetInfo()
}
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)
{
if(rPropertyName != UNO_LINK_DISPLAY_NAME)
- throw UnknownPropertyException();
+ throw UnknownPropertyException(rPropertyName);
return Any(sOutlineText);
}