[Libreoffice-commits] core.git: 3 commits - sd/source svx/source xmloff/source

Eike Rathke erack at redhat.com
Fri Nov 25 19:05:09 UTC 2016


 sd/source/core/stlsheet.cxx                                                |   10 ++++----
 sd/source/ui/slideshow/slideshow.cxx                                       |    4 +--
 sd/source/ui/unoidl/SdUnoDrawView.cxx                                      |    4 +--
 sd/source/ui/unoidl/SdUnoOutlineView.cxx                                   |    4 +--
 sd/source/ui/unoidl/SdUnoSlideView.cxx                                     |    7 +----
 sd/source/ui/unoidl/UnoDocumentSettings.cxx                                |    4 +--
 sd/source/ui/unoidl/unolayer.cxx                                           |    4 +--
 sd/source/ui/unoidl/unomodel.cxx                                           |    4 +--
 sd/source/ui/unoidl/unopage.cxx                                            |    4 +--
 sd/source/ui/unoidl/unopback.cxx                                           |   10 ++++----
 sd/source/ui/unoidl/unosrch.cxx                                            |    4 +--
 svx/source/table/cell.cxx                                                  |    8 +++---
 svx/source/table/propertyset.cxx                                           |    2 -
 svx/source/table/tablecolumn.cxx                                           |    4 +--
 svx/source/table/tablerow.cxx                                              |    4 +--
 svx/source/unodialogs/textconversiondlgs/chinese_translation_unodialog.cxx |    2 -
 svx/source/unodraw/unopool.cxx                                             |    4 +--
 svx/source/unodraw/unoshap2.cxx                                            |    2 -
 svx/source/unodraw/unoshape.cxx                                            |   12 +++++-----
 xmloff/source/core/xmlexp.cxx                                              |    9 +++++--
 20 files changed, 54 insertions(+), 52 deletions(-)

New commits:
commit 1700c767e7bfcc7193d878ac53c21e1b59354973
Author: Eike Rathke <erack at redhat.com>
Date:   Fri Nov 25 20:03:29 2016 +0100

    add exception context to error log message
    
    Change-Id: Iae8a0c8e7ed4c8bec6497f1636a943bd6f79d5c8

diff --git a/xmloff/source/core/xmlexp.cxx b/xmloff/source/core/xmlexp.cxx
index aced8d3..b1ca265 100644
--- a/xmloff/source/core/xmlexp.cxx
+++ b/xmloff/source/core/xmlexp.cxx
@@ -844,9 +844,14 @@ sal_Bool SAL_CALL SvXMLExport::filter( const uno::Sequence< beans::PropertyValue
         // We must catch exceptions, because according to the
         // API definition export must not throw one!
         css::uno::Any ex(cppu::getCaughtException());
+        OUString sMessage( ex.getValueTypeName() + ": \"" + e.Message + "\"");
+        if (e.Context.is())
+        {
+            const char* pContext = typeid(*e.Context.get()).name();
+            sMessage += " (context: " + OUString::createFromAscii(pContext) + " )";
+        }
         SetError( XMLERROR_FLAG_ERROR | XMLERROR_FLAG_SEVERE | XMLERROR_API,
-                  Sequence<OUString>(),
-                  ex.getValueTypeName() + ": \"" + e.Message + "\"", nullptr );
+                  Sequence<OUString>(), sMessage, nullptr );
     }
 
     // return true only if no error occurred
commit 6fee9755f6ec6f61c024af193adfc09eac6fd03e
Author: Eike Rathke <erack at redhat.com>
Date:   Fri Nov 25 19:29:37 2016 +0100

    give us a chance to see *which* property failed
    
    Change-Id: If0c89760230eebc873bbc57511e44d7706af1c1e

diff --git a/svx/source/table/cell.cxx b/svx/source/table/cell.cxx
index 5eaa3f9..9a96ec9 100644
--- a/svx/source/table/cell.cxx
+++ b/svx/source/table/cell.cxx
@@ -1123,7 +1123,7 @@ void SAL_CALL Cell::setPropertyValue( const OUString& rPropertyName, const Any&
         }
         }
     }
-    throw UnknownPropertyException();
+    throw UnknownPropertyException( rPropertyName, static_cast<cppu::OWeakObject*>(this));
 }
 
 
@@ -1206,7 +1206,7 @@ Any SAL_CALL Cell::getPropertyValue( const OUString& PropertyName ) throw(Unknow
         }
         }
     }
-    throw UnknownPropertyException();
+    throw UnknownPropertyException( PropertyName, static_cast<cppu::OWeakObject*>(this));
 }
 
 
@@ -1484,7 +1484,7 @@ void SAL_CALL Cell::setPropertyToDefault( const OUString& PropertyName ) throw(U
         GetModel()->SetChanged();
         return;
     }
-    throw UnknownPropertyException();
+    throw UnknownPropertyException( PropertyName, static_cast<cppu::OWeakObject*>(this));
 }
 
 
@@ -1526,7 +1526,7 @@ Any SAL_CALL Cell::getPropertyDefault( const OUString& aPropertyName ) throw(Unk
         }
         }
     }
-    throw UnknownPropertyException();
+    throw UnknownPropertyException( aPropertyName, static_cast<cppu::OWeakObject*>(this));
 }
 
 
diff --git a/svx/source/table/propertyset.cxx b/svx/source/table/propertyset.cxx
index 36b2ec7..687da1b 100644
--- a/svx/source/table/propertyset.cxx
+++ b/svx/source/table/propertyset.cxx
@@ -56,7 +56,7 @@ const Property& FastPropertySetInfo::getProperty( const OUString& aName ) throw
 {
     PropertyMap::iterator aIter( maMap.find( aName ) );
     if( aIter == maMap.end() )
-        throw UnknownPropertyException();
+        throw UnknownPropertyException( aName, static_cast<cppu::OWeakObject*>(this));
     return maProperties[(*aIter).second];
 }
 
diff --git a/svx/source/table/tablecolumn.cxx b/svx/source/table/tablecolumn.cxx
index 44536f5..6dc825b 100644
--- a/svx/source/table/tablecolumn.cxx
+++ b/svx/source/table/tablecolumn.cxx
@@ -201,7 +201,7 @@ void SAL_CALL TableColumn::setFastPropertyValue( sal_Int32 nHandle, const Any& a
         }
     default:
         delete pUndo;
-        throw UnknownPropertyException();
+        throw UnknownPropertyException( OUString::number(nHandle), static_cast<cppu::OWeakObject*>(this));
     }
     if( !bOk )
     {
@@ -231,7 +231,7 @@ Any SAL_CALL TableColumn::getFastPropertyValue( sal_Int32 nHandle ) throw (Unkno
     case Property_OptimalWidth:     return Any( mbOptimalWidth );
     case Property_IsVisible:        return Any( mbIsVisible );
     case Property_IsStartOfNewPage: return Any( mbIsStartOfNewPage );
-    default:                        throw UnknownPropertyException();
+    default:                        throw UnknownPropertyException( OUString::number(nHandle), static_cast<cppu::OWeakObject*>(this));
     }
 }
 
diff --git a/svx/source/table/tablerow.cxx b/svx/source/table/tablerow.cxx
index 6984a80..8f96b59 100644
--- a/svx/source/table/tablerow.cxx
+++ b/svx/source/table/tablerow.cxx
@@ -273,7 +273,7 @@ void SAL_CALL TableRow::setFastPropertyValue( sal_Int32 nHandle, const Any& aVal
         }
     default:
         delete pUndo;
-        throw UnknownPropertyException();
+        throw UnknownPropertyException( OUString::number(nHandle), static_cast<cppu::OWeakObject*>(this));
     }
     if( !bOk )
     {
@@ -303,7 +303,7 @@ Any SAL_CALL TableRow::getFastPropertyValue( sal_Int32 nHandle ) throw (UnknownP
     case Property_OptimalHeight:    return Any( mbOptimalHeight );
     case Property_IsVisible:        return Any( mbIsVisible );
     case Property_IsStartOfNewPage: return Any( mbIsStartOfNewPage );
-    default:                        throw UnknownPropertyException();
+    default:                        throw UnknownPropertyException( OUString::number(nHandle), static_cast<cppu::OWeakObject*>(this));
     }
 }
 
diff --git a/svx/source/unodialogs/textconversiondlgs/chinese_translation_unodialog.cxx b/svx/source/unodialogs/textconversiondlgs/chinese_translation_unodialog.cxx
index 1ec7821..2023bc6 100644
--- a/svx/source/unodialogs/textconversiondlgs/chinese_translation_unodialog.cxx
+++ b/svx/source/unodialogs/textconversiondlgs/chinese_translation_unodialog.cxx
@@ -224,7 +224,7 @@ uno::Any SAL_CALL ChineseTranslation_UnoDialog::getPropertyValue( const OUString
     }
     else
     {
-        throw beans::UnknownPropertyException();
+        throw beans::UnknownPropertyException( rPropertyName, static_cast<cppu::OWeakObject*>(this));
     }
     return aRet;
 
diff --git a/svx/source/unodraw/unopool.cxx b/svx/source/unodraw/unopool.cxx
index 74bc8e2..2a56da4 100644
--- a/svx/source/unodraw/unopool.cxx
+++ b/svx/source/unodraw/unopool.cxx
@@ -207,7 +207,7 @@ void SvxUnoDrawPool::_setPropertyValues( const comphelper::PropertyMapEntry** pp
 
     DBG_ASSERT( pPool, "I need a SfxItemPool!" );
     if( nullptr == pPool )
-        throw beans::UnknownPropertyException();
+        throw beans::UnknownPropertyException( "no pool, no properties..", static_cast<cppu::OWeakObject*>(this));
 
     while( *ppEntries )
         putAny( pPool, *ppEntries++, *pValues++ );
@@ -222,7 +222,7 @@ void SvxUnoDrawPool::_getPropertyValues( const comphelper::PropertyMapEntry** pp
 
     DBG_ASSERT( pPool, "I need a SfxItemPool!" );
     if( nullptr == pPool )
-        throw beans::UnknownPropertyException();
+        throw beans::UnknownPropertyException( "no pool, no properties..", static_cast<cppu::OWeakObject*>(this));
 
     while( *ppEntries )
         getAny( pPool, *ppEntries++, *pValue++ );
diff --git a/svx/source/unodraw/unoshap2.cxx b/svx/source/unodraw/unoshap2.cxx
index 2086253..00d1b62 100644
--- a/svx/source/unodraw/unoshap2.cxx
+++ b/svx/source/unodraw/unoshap2.cxx
@@ -947,7 +947,7 @@ uno::Any SAL_CALL SvxShapeControl::getPropertyDefault( const OUString& aProperty
             return aDefault;
         }
 
-        throw beans::UnknownPropertyException();
+        throw beans::UnknownPropertyException( aPropertyName, static_cast<cppu::OWeakObject*>(this));
     }
     else
     {
diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx
index a93e1eb..12b93a8 100644
--- a/svx/source/unodraw/unoshape.cxx
+++ b/svx/source/unodraw/unoshape.cxx
@@ -1630,7 +1630,7 @@ void SAL_CALL SvxShape::_setPropertyValue( const OUString& rPropertyName, const
     }
 
     if (!pMap)
-        throw beans::UnknownPropertyException();
+        throw beans::UnknownPropertyException( rPropertyName, static_cast<cppu::OWeakObject*>(this));
 
     if ((pMap->nFlags & beans::PropertyAttribute::READONLY) != 0)
         throw beans::PropertyVetoException(
@@ -1739,7 +1739,7 @@ uno::Any SvxShape::_getPropertyValue( const OUString& PropertyName )
     if( mpObj.is() && mpModel )
     {
         if(pMap == nullptr )
-            throw beans::UnknownPropertyException();
+            throw beans::UnknownPropertyException( PropertyName, static_cast<cppu::OWeakObject*>(this));
 
         if( !getPropertyValueImpl( PropertyName, pMap, aAny ) )
         {
@@ -2016,7 +2016,7 @@ beans::PropertyState SAL_CALL SvxShape::_getPropertyState( const OUString& Prope
     const SfxItemPropertySimpleEntry* pMap = mpPropSet->getPropertyMapEntry(PropertyName);
 
     if( !mpObj.is() || pMap == nullptr )
-        throw beans::UnknownPropertyException();
+        throw beans::UnknownPropertyException( PropertyName, static_cast<cppu::OWeakObject*>(this));
 
     beans::PropertyState eState;
     if( !getPropertyStateImpl( pMap, eState ) )
@@ -2993,7 +2993,7 @@ void SAL_CALL SvxShape::_setPropertyToDefault( const OUString& PropertyName )
     const SfxItemPropertySimpleEntry* pProperty = mpPropSet->getPropertyMapEntry(PropertyName);
 
     if( !mpObj.is() || mpModel == nullptr || pProperty == nullptr )
-        throw beans::UnknownPropertyException();
+        throw beans::UnknownPropertyException( PropertyName, static_cast<cppu::OWeakObject*>(this));
 
     if( !setPropertyToDefaultImpl( pProperty ) )
     {
@@ -3025,7 +3025,7 @@ uno::Any SAL_CALL SvxShape::_getPropertyDefault( const OUString& aPropertyName )
     const SfxItemPropertySimpleEntry* pMap = mpPropSet->getPropertyMapEntry(aPropertyName);
 
     if( !mpObj.is() || pMap == nullptr || mpModel == nullptr )
-        throw beans::UnknownPropertyException();
+        throw beans::UnknownPropertyException( aPropertyName, static_cast<cppu::OWeakObject*>(this));
 
     if(( pMap->nWID >= OWN_ATTR_VALUE_START && pMap->nWID <= OWN_ATTR_VALUE_END ) ||
        ( pMap->nWID >= SDRATTR_NOTPERSIST_FIRST && pMap->nWID <= SDRATTR_NOTPERSIST_LAST ))
@@ -3035,7 +3035,7 @@ uno::Any SAL_CALL SvxShape::_getPropertyDefault( const OUString& aPropertyName )
 
     // get default from ItemPool
     if(!SfxItemPool::IsWhich(pMap->nWID))
-        throw beans::UnknownPropertyException();
+        throw beans::UnknownPropertyException( "No WhichID " + OUString::number(pMap->nWID) + " for " + aPropertyName, static_cast<cppu::OWeakObject*>(this));
 
     SfxItemSet aSet( mpModel->GetItemPool(),    pMap->nWID, pMap->nWID);
     aSet.Put(mpModel->GetItemPool().GetDefaultItem(pMap->nWID));
commit 86bf3f8b69692a82fdf0d9d408f0690028e6e3e0
Author: Eike Rathke <erack at redhat.com>
Date:   Fri Nov 25 19:05:20 2016 +0100

    give us a chance to see *which* property failed
    
    Change-Id: I378bce4d8e1f57a51d88a59691d6917f58eedf20

diff --git a/sd/source/core/stlsheet.cxx b/sd/source/core/stlsheet.cxx
index cf76a45..c0b7a0d 100644
--- a/sd/source/core/stlsheet.cxx
+++ b/sd/source/core/stlsheet.cxx
@@ -974,7 +974,7 @@ void SAL_CALL SdStyleSheet::setPropertyValue( const OUString& aPropertyName, con
     const SfxItemPropertySimpleEntry* pEntry = getPropertyMapEntry( aPropertyName );
     if( pEntry == nullptr )
     {
-        throw UnknownPropertyException();
+        throw UnknownPropertyException( aPropertyName, static_cast<cppu::OWeakObject*>(this));
     }
     else
     {
@@ -1061,7 +1061,7 @@ Any SAL_CALL SdStyleSheet::getPropertyValue( const OUString& PropertyName ) thro
     const SfxItemPropertySimpleEntry* pEntry = getPropertyMapEntry( PropertyName );
     if( pEntry == nullptr )
     {
-        throw UnknownPropertyException();
+        throw UnknownPropertyException( PropertyName, static_cast<cppu::OWeakObject*>(this));
     }
     else
     {
@@ -1174,7 +1174,7 @@ PropertyState SAL_CALL SdStyleSheet::getPropertyState( const OUString& PropertyN
     const SfxItemPropertySimpleEntry* pEntry = getPropertyMapEntry( PropertyName );
 
     if( pEntry == nullptr )
-        throw UnknownPropertyException();
+        throw UnknownPropertyException( PropertyName, static_cast<cppu::OWeakObject*>(this));
 
     if( pEntry->nWID == WID_STYLE_FAMILY )
     {
@@ -1268,7 +1268,7 @@ void SAL_CALL SdStyleSheet::setPropertyToDefault( const OUString& PropertyName )
 
     const SfxItemPropertySimpleEntry* pEntry = getPropertyMapEntry( PropertyName );
     if( pEntry == nullptr )
-        throw UnknownPropertyException();
+        throw UnknownPropertyException( PropertyName, static_cast<cppu::OWeakObject*>(this));
 
     SfxItemSet &rStyleSet = GetItemSet();
 
@@ -1292,7 +1292,7 @@ Any SAL_CALL SdStyleSheet::getPropertyDefault( const OUString& aPropertyName ) t
 
     const SfxItemPropertySimpleEntry* pEntry = getPropertyMapEntry( aPropertyName );
     if( pEntry == nullptr )
-        throw UnknownPropertyException();
+        throw UnknownPropertyException( aPropertyName, static_cast<cppu::OWeakObject*>(this));
     Any aRet;
     if( pEntry->nWID == WID_STYLE_FAMILY )
     {
diff --git a/sd/source/ui/slideshow/slideshow.cxx b/sd/source/ui/slideshow/slideshow.cxx
index 902c869..2cbdf1e 100644
--- a/sd/source/ui/slideshow/slideshow.cxx
+++ b/sd/source/ui/slideshow/slideshow.cxx
@@ -503,7 +503,7 @@ void SAL_CALL SlideShow::setPropertyValue( const OUString& aPropertyName, const
     }
 
     default:
-        throw UnknownPropertyException();
+        throw UnknownPropertyException( OUString::number(pEntry ? pEntry->nWID : -1), static_cast<cppu::OWeakObject*>(this));
     }
 
     if( bIllegalArgument )
@@ -575,7 +575,7 @@ Any SAL_CALL SlideShow::getPropertyValue( const OUString& PropertyName ) throw(U
     }
 
     default:
-        throw UnknownPropertyException();
+        throw UnknownPropertyException( OUString::number(pEntry ? pEntry->nWID : -1), static_cast<cppu::OWeakObject*>(this));
     }
 }
 
diff --git a/sd/source/ui/unoidl/SdUnoDrawView.cxx b/sd/source/ui/unoidl/SdUnoDrawView.cxx
index 8d5fad8..4fc83e1 100644
--- a/sd/source/ui/unoidl/SdUnoDrawView.cxx
+++ b/sd/source/ui/unoidl/SdUnoDrawView.cxx
@@ -370,7 +370,7 @@ void SdUnoDrawView::setFastPropertyValue (
             }
             break;
         default:
-            throw beans::UnknownPropertyException();
+            throw beans::UnknownPropertyException( OUString::number(nHandle), static_cast<cppu::OWeakObject*>(this));
     }
 }
 
@@ -414,7 +414,7 @@ Any SAL_CALL SdUnoDrawView::getFastPropertyValue (
             break;
 
         default:
-            throw beans::UnknownPropertyException();
+            throw beans::UnknownPropertyException( OUString::number(nHandle), static_cast<cppu::OWeakObject*>(this));
     }
 
     return aValue;
diff --git a/sd/source/ui/unoidl/SdUnoOutlineView.cxx b/sd/source/ui/unoidl/SdUnoOutlineView.cxx
index cf97b61..21e0353 100644
--- a/sd/source/ui/unoidl/SdUnoOutlineView.cxx
+++ b/sd/source/ui/unoidl/SdUnoOutlineView.cxx
@@ -125,7 +125,7 @@ void SdUnoOutlineView::setFastPropertyValue (
         break;
 
         default:
-            throw beans::UnknownPropertyException();
+            throw beans::UnknownPropertyException( OUString::number(nHandle), static_cast<cppu::OWeakObject*>(this));
     }
 }
 
@@ -150,7 +150,7 @@ Any SAL_CALL SdUnoOutlineView::getFastPropertyValue (
             break;
 
         default:
-            throw beans::UnknownPropertyException();
+            throw beans::UnknownPropertyException( OUString::number(nHandle), static_cast<cppu::OWeakObject*>(this));
     }
 
     return aValue;
diff --git a/sd/source/ui/unoidl/SdUnoSlideView.cxx b/sd/source/ui/unoidl/SdUnoSlideView.cxx
index c220a74..15a3cc7 100644
--- a/sd/source/ui/unoidl/SdUnoSlideView.cxx
+++ b/sd/source/ui/unoidl/SdUnoSlideView.cxx
@@ -157,10 +157,9 @@ void SdUnoSlideView::setFastPropertyValue (
         css::lang::WrappedTargetException,
         css::uno::RuntimeException, std::exception)
 {
-    (void)nHandle;
     (void)rValue;
 
-    throw beans::UnknownPropertyException();
+    throw beans::UnknownPropertyException( OUString::number(nHandle), static_cast<cppu::OWeakObject*>(this));
 }
 
 Any SAL_CALL SdUnoSlideView::getFastPropertyValue (
@@ -169,10 +168,8 @@ Any SAL_CALL SdUnoSlideView::getFastPropertyValue (
         css::lang::WrappedTargetException,
         css::uno::RuntimeException, std::exception)
 {
-    (void)nHandle;
-
     if( nHandle != DrawController::PROPERTY_VIEWOFFSET )
-        throw beans::UnknownPropertyException();
+        throw beans::UnknownPropertyException( OUString::number(nHandle), static_cast<cppu::OWeakObject*>(this));
 
     return Any();
 }
diff --git a/sd/source/ui/unoidl/UnoDocumentSettings.cxx b/sd/source/ui/unoidl/UnoDocumentSettings.cxx
index 8e408bb..89a62dd 100644
--- a/sd/source/ui/unoidl/UnoDocumentSettings.cxx
+++ b/sd/source/ui/unoidl/UnoDocumentSettings.cxx
@@ -944,7 +944,7 @@ throw (UnknownPropertyException, PropertyVetoException,
             break;
 
             default:
-                throw UnknownPropertyException();
+                throw UnknownPropertyException( OUString::number((*ppEntries)->mnHandle), static_cast<cppu::OWeakObject*>(this));
         }
 
         if( !bOk )
@@ -1189,7 +1189,7 @@ throw (UnknownPropertyException, WrappedTargetException, RuntimeException, std::
             break;
 
             default:
-                throw UnknownPropertyException();
+                throw UnknownPropertyException( OUString::number((*ppEntries)->mnHandle), static_cast<cppu::OWeakObject*>(this));
         }
     }
 }
diff --git a/sd/source/ui/unoidl/unolayer.cxx b/sd/source/ui/unoidl/unolayer.cxx
index 4d44236..d40cd0c 100644
--- a/sd/source/ui/unoidl/unolayer.cxx
+++ b/sd/source/ui/unoidl/unolayer.cxx
@@ -235,7 +235,7 @@ void SAL_CALL SdLayer::setPropertyValue( const OUString& aPropertyName, const un
     }
 
     default:
-        throw beans::UnknownPropertyException();
+        throw beans::UnknownPropertyException( aPropertyName, static_cast<cppu::OWeakObject*>(this));
     }
 
     if( pLayerManager->GetDocShell() )
@@ -278,7 +278,7 @@ uno::Any SAL_CALL SdLayer::getPropertyValue( const OUString& PropertyName )
         aValue <<= OUString( pLayer->GetDescription() );
         break;
     default:
-        throw beans::UnknownPropertyException();
+        throw beans::UnknownPropertyException( PropertyName, static_cast<cppu::OWeakObject*>(this));
     }
 
     return aValue;
diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx
index 510256a..e44b7f9 100644
--- a/sd/source/ui/unoidl/unomodel.cxx
+++ b/sd/source/ui/unoidl/unomodel.cxx
@@ -1294,7 +1294,7 @@ void SAL_CALL SdXImpressDocument::setPropertyValue( const OUString& aPropertyNam
             setGrabBagItem(aValue);
             break;
         default:
-            throw beans::UnknownPropertyException();
+            throw beans::UnknownPropertyException( aPropertyName, static_cast<cppu::OWeakObject*>(this));
     }
 
     SetModified();
@@ -1418,7 +1418,7 @@ uno::Any SAL_CALL SdXImpressDocument::getPropertyValue( const OUString& Property
             getGrabBagItem(aAny);
             break;
         default:
-            throw beans::UnknownPropertyException();
+            throw beans::UnknownPropertyException( PropertyName, static_cast<cppu::OWeakObject*>(this));
     }
 
     return aAny;
diff --git a/sd/source/ui/unoidl/unopage.cxx b/sd/source/ui/unoidl/unopage.cxx
index 9e5f6fe..52cbf5b 100644
--- a/sd/source/ui/unoidl/unopage.cxx
+++ b/sd/source/ui/unoidl/unopage.cxx
@@ -1011,7 +1011,7 @@ void SAL_CALL SdGenericDrawPage::setPropertyValue( const OUString& aPropertyName
         }
 
         default:
-            throw beans::UnknownPropertyException();
+            throw beans::UnknownPropertyException( aPropertyName, static_cast<cppu::OWeakObject*>(this));
     }
 
     GetModel()->SetModified();
@@ -1327,7 +1327,7 @@ Any SAL_CALL SdGenericDrawPage::getPropertyValue( const OUString& PropertyName )
         break;
 
     default:
-        throw beans::UnknownPropertyException();
+        throw beans::UnknownPropertyException( PropertyName, static_cast<cppu::OWeakObject*>(this));
     }
     return aAny;
 }
diff --git a/sd/source/ui/unoidl/unopback.cxx b/sd/source/ui/unoidl/unopback.cxx
index 77b63c0..6995461 100644
--- a/sd/source/ui/unoidl/unopback.cxx
+++ b/sd/source/ui/unoidl/unopback.cxx
@@ -217,7 +217,7 @@ void SAL_CALL SdUnoPageBackground::setPropertyValue( const OUString& aPropertyNa
 
     if( pEntry == nullptr )
     {
-        throw beans::UnknownPropertyException();
+        throw beans::UnknownPropertyException( aPropertyName, static_cast<cppu::OWeakObject*>(this));
     }
     else
     {
@@ -275,7 +275,7 @@ uno::Any SAL_CALL SdUnoPageBackground::getPropertyValue( const OUString& Propert
 
     if( pEntry == nullptr )
     {
-        throw beans::UnknownPropertyException();
+        throw beans::UnknownPropertyException( PropertyName, static_cast<cppu::OWeakObject*>(this));
     }
     else
     {
@@ -332,7 +332,7 @@ beans::PropertyState SAL_CALL SdUnoPageBackground::getPropertyState( const OUStr
     const SfxItemPropertySimpleEntry* pEntry = getPropertyMapEntry(PropertyName);
 
     if( pEntry == nullptr )
-        throw beans::UnknownPropertyException();
+        throw beans::UnknownPropertyException( PropertyName, static_cast<cppu::OWeakObject*>(this));
 
     if( mpSet )
     {
@@ -396,7 +396,7 @@ void SAL_CALL SdUnoPageBackground::setPropertyToDefault( const OUString& Propert
     const SfxItemPropertySimpleEntry* pEntry = getPropertyMapEntry(PropertyName);
 
     if( pEntry == nullptr )
-        throw beans::UnknownPropertyException();
+        throw beans::UnknownPropertyException( PropertyName, static_cast<cppu::OWeakObject*>(this));
 
     if( mpSet )
     {
@@ -419,7 +419,7 @@ uno::Any SAL_CALL SdUnoPageBackground::getPropertyDefault( const OUString& aProp
 
     const SfxItemPropertySimpleEntry* pEntry = getPropertyMapEntry(aPropertyName);
     if( pEntry == nullptr || mpSet == nullptr )
-        throw beans::UnknownPropertyException();
+        throw beans::UnknownPropertyException( aPropertyName, static_cast<cppu::OWeakObject*>(this));
 
     uno::Any aAny;
     if( mpSet )
diff --git a/sd/source/ui/unoidl/unosrch.cxx b/sd/source/ui/unoidl/unosrch.cxx
index 9238445..f043d04 100644
--- a/sd/source/ui/unoidl/unosrch.cxx
+++ b/sd/source/ui/unoidl/unosrch.cxx
@@ -773,7 +773,7 @@ void SAL_CALL SdUnoSearchReplaceDescriptor::setPropertyValue( const OUString& aP
         bOk = (aValue >>= mbWords);
         break;
     default:
-        throw beans::UnknownPropertyException();
+        throw beans::UnknownPropertyException( aPropertyName, static_cast<cppu::OWeakObject*>(this));
     }
 
     if( !bOk )
@@ -801,7 +801,7 @@ uno::Any SAL_CALL SdUnoSearchReplaceDescriptor::getPropertyValue( const OUString
         aAny <<= mbWords;
         break;
     default:
-        throw beans::UnknownPropertyException();
+        throw beans::UnknownPropertyException( PropertyName, static_cast<cppu::OWeakObject*>(this));
     }
 
     return aAny;


More information about the Libreoffice-commits mailing list