summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2011-04-13 17:46:26 +0200
committerKurt Zenker <kz@openoffice.org>2011-04-13 17:46:26 +0200
commit2cc5922ef0400811fd32f9368a8d1b2c9c5e71fb (patch)
tree3ec8a34d6e58d54746c14de492e9be3b908cfc96
parentdc076846a9c1ddbcabd33677e595e6fab414e062 (diff)
parentdef5162e292dddd88277e4a05739578defaef823 (diff)
CWS-TOOLING: integrate CWS gridfixes_OOO340
-rw-r--r--basic/source/app/brkpnts.cxx2
-rw-r--r--framework/source/fwe/classes/framelistanalyzer.cxx10
-rw-r--r--framework/source/helper/titlebarupdate.cxx32
-rw-r--r--framework/source/services/frame.cxx8
-rw-r--r--framework/source/uifactory/windowcontentfactorymanager.cxx5
-rw-r--r--scripting/source/dlgprov/dlgprov.component3
-rw-r--r--scripting/source/dlgprov/dlgprov.cxx2
-rw-r--r--sfx2/source/notify/eventsupplier.cxx15
8 files changed, 38 insertions, 39 deletions
diff --git a/basic/source/app/brkpnts.cxx b/basic/source/app/brkpnts.cxx
index e7687222d5da..2878d736e493 100644
--- a/basic/source/app/brkpnts.cxx
+++ b/basic/source/app/brkpnts.cxx
@@ -108,7 +108,7 @@ void BreakpointWindow::SetBPsInModule()
{
pModule->SetBP( (sal_uInt16)pBrk->nLine );
#if OSL_DEBUG_LEVEL > 1
- DBG_ASSERT( !pModule->IsCompiled() || pModule->IsBP( (USHORT)pBrk->nLine ), "Brechpunkt wurde nicht gesetzt" );
+ DBG_ASSERT( !pModule->IsCompiled() || pModule->IsBP( (sal_uInt16)pBrk->nLine ), "Brechpunkt wurde nicht gesetzt" );
#endif
pBrk = Next();
}
diff --git a/framework/source/fwe/classes/framelistanalyzer.cxx b/framework/source/fwe/classes/framelistanalyzer.cxx
index 1a33ebf91d7e..1585fb7b1342 100644
--- a/framework/source/fwe/classes/framelistanalyzer.cxx
+++ b/framework/source/fwe/classes/framelistanalyzer.cxx
@@ -48,6 +48,7 @@
// includes of other projects
#include <unotools/processfactory.hxx>
#include <vcl/svapp.hxx>
+#include <tools/diagnose_ex.h>
//_______________________________________________
// namespace
@@ -153,7 +154,7 @@ void FrameListAnalyzer::impl_analyze()
// check, if the reference frame includes the backing component.
// But look, if this analyze step is realy needed.
- if ((m_eDetectMode & E_BACKINGCOMPONENT) == E_BACKINGCOMPONENT)
+ if (((m_eDetectMode & E_BACKINGCOMPONENT) == E_BACKINGCOMPONENT) && m_xReferenceFrame.is() )
{
try
{
@@ -162,8 +163,13 @@ void FrameListAnalyzer::impl_analyze()
::rtl::OUString sModule = xModuleMgr->identify(m_xReferenceFrame);
m_bReferenceIsBacking = (sModule.equals(SERVICENAME_STARTMODULE));
}
+ catch(const css::frame::UnknownModuleException&)
+ {
+ }
catch(const css::uno::Exception&)
- {}
+ {
+ DBG_UNHANDLED_EXCEPTION();
+ }
}
// check, if the reference frame includes the help module.
diff --git a/framework/source/helper/titlebarupdate.cxx b/framework/source/helper/titlebarupdate.cxx
index 9b6501af4c20..a8282c135062 100644
--- a/framework/source/helper/titlebarupdate.cxx
+++ b/framework/source/helper/titlebarupdate.cxx
@@ -104,37 +104,15 @@
// other includes
//_________________________________________________________________________________________________________________
-#ifndef _COMPHELPER_SEQUENCEASHASHMAP_HXX
#include <comphelper/sequenceashashmap.hxx>
-#endif
-
-#ifndef _UTL_CONFIGMGR_HXX
#include <unotools/configmgr.hxx>
-#endif
-
-#ifndef _UTL_BOOTSTRAP_HXX
#include <unotools/bootstrap.hxx>
-#endif
-
-#ifndef _SV_WINDOW_HXX
#include <vcl/window.hxx>
-#endif
-
-#ifndef _SV_SYSWIN_HXX
#include <vcl/syswin.hxx>
-#endif
-
-#ifndef _TOOLKIT_HELPER_VCLUNOHELPER_HXX_
#include <toolkit/unohlp.hxx>
-#endif
-
-#ifndef _SV_SVAPP_HXX
#include <vcl/svapp.hxx>
-#endif
-
-#ifndef _SV_WRKWIN_HXX
#include <vcl/wrkwin.hxx>
-#endif
+#include <tools/diagnose_ex.h>
//_________________________________________________________________________________________________________________
// namespace
@@ -332,10 +310,14 @@ void TitleBarUpdate::impl_updateIcon(const css::uno::Reference< css::frame::XFra
{
try
{
- xSet->getPropertyValue( CONTROLLER_PROPNAME_ICONID ) >>= nIcon;
+ css::uno::Reference< css::beans::XPropertySetInfo > const xPSI( xSet->getPropertySetInfo(), css::uno::UNO_SET_THROW );
+ if ( xPSI->hasPropertyByName( CONTROLLER_PROPNAME_ICONID ) )
+ xSet->getPropertyValue( CONTROLLER_PROPNAME_ICONID ) >>= nIcon;
}
catch(const css::uno::Exception&)
- {}
+ {
+ DBG_UNHANDLED_EXCEPTION();
+ }
}
// c) if b) failed ... identify the used module and retrieve set icon from module config.
diff --git a/framework/source/services/frame.cxx b/framework/source/services/frame.cxx
index b9dd626cf06d..a2de01b9c333 100644
--- a/framework/source/services/frame.cxx
+++ b/framework/source/services/frame.cxx
@@ -103,6 +103,7 @@
#include <toolkit/awt/vclxwindow.hxx>
#include <comphelper/processfactory.hxx>
#include <unotools/moduleoptions.hxx>
+#include <tools/diagnose_ex.h>
#ifdef ENABLE_ASSERTIONS
#ifndef _RTL_STRBUF_HXX_
@@ -2882,10 +2883,13 @@ void Frame::implts_setIconOnWindow()
{
try
{
- xSet->getPropertyValue( DECLARE_ASCII("IconId") )>>= nIcon;
+ css::uno::Reference< css::beans::XPropertySetInfo > const xPSI( xSet->getPropertySetInfo(), css::uno::UNO_SET_THROW );
+ if ( xPSI->hasPropertyByName( CONTROLLER_PROPNAME_ICONID ) )
+ xSet->getPropertyValue( CONTROLLER_PROPNAME_ICONID ) >>= nIcon;
}
- catch( css::beans::UnknownPropertyException& )
+ catch( css::uno::Exception& )
{
+ DBG_UNHANDLED_EXCEPTION();
}
}
diff --git a/framework/source/uifactory/windowcontentfactorymanager.cxx b/framework/source/uifactory/windowcontentfactorymanager.cxx
index 352fc1ad21f7..1b510a294952 100644
--- a/framework/source/uifactory/windowcontentfactorymanager.cxx
+++ b/framework/source/uifactory/windowcontentfactorymanager.cxx
@@ -55,6 +55,7 @@
#include <rtl/ustrbuf.hxx>
#include <cppuhelper/weak.hxx>
#include <tools/urlobj.hxx>
+#include <tools/diagnose_ex.h>
#include <vcl/svapp.hxx>
//_________________________________________________________________________________________________________________
@@ -242,11 +243,9 @@ throw (uno::Exception, uno::RuntimeException)
{
xWindow = xFactory->createInstanceWithArgumentsAndContext( Arguments, Context );
}
- catch ( uno::RuntimeException& )
- {
- }
catch ( uno::Exception& )
{
+ DBG_UNHANDLED_EXCEPTION();
}
}
}
diff --git a/scripting/source/dlgprov/dlgprov.component b/scripting/source/dlgprov/dlgprov.component
index f7ceed336cf6..ba58de62fde4 100644
--- a/scripting/source/dlgprov/dlgprov.component
+++ b/scripting/source/dlgprov/dlgprov.component
@@ -33,4 +33,7 @@
<service name="com.sun.star.awt.DialogProvider"/>
<service name="com.sun.star.awt.DialogProvider2"/>
</implementation>
+ <implementation name="com.sun.star.comp.scripting.DialogModelProvider">
+ <service name="com.sun.star.awt.UnoControlDialogModelProvider"/>
+ </implementation>
</component>
diff --git a/scripting/source/dlgprov/dlgprov.cxx b/scripting/source/dlgprov/dlgprov.cxx
index 8a577ab03e1c..e80647cb1068 100644
--- a/scripting/source/dlgprov/dlgprov.cxx
+++ b/scripting/source/dlgprov/dlgprov.cxx
@@ -75,7 +75,7 @@ namespace comp_DialogModelProvider
::rtl::OUString SAL_CALL _getImplementationName()
{
- return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("DialogModelProvider"));
+ return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.comp.scripting.DialogModelProvider"));
}
uno::Sequence< ::rtl::OUString > SAL_CALL _getSupportedServiceNames()
diff --git a/sfx2/source/notify/eventsupplier.cxx b/sfx2/source/notify/eventsupplier.cxx
index fd1327e423ca..c2680d702414 100644
--- a/sfx2/source/notify/eventsupplier.cxx
+++ b/sfx2/source/notify/eventsupplier.cxx
@@ -39,6 +39,7 @@
#include <com/sun/star/util/XURLTransformer.hpp>
#endif
#include <tools/urlobj.hxx>
+#include <tools/diagnose_ex.h>
#include <svl/macitem.hxx>
#include <sfx2/appuno.hxx>
#include <sfx2/objsh.hxx>
@@ -842,14 +843,18 @@ void SfxGlobalEvents_Impl::implts_checkAndExecuteEventBindings(const css::docume
// <- SAFE
css::uno::Any aAny;
- if (xEvents.is())
+ if ( xEvents.is() && xEvents->hasByName( aEvent.EventName ) )
aAny = xEvents->getByName(aEvent.EventName);
Execute(aAny, aEvent, 0);
}
- catch(const css::uno::RuntimeException& exRun)
- { throw exRun; }
- catch(const css::uno::Exception&)
- {}
+ catch ( css::uno::RuntimeException const & )
+ {
+ throw;
+ }
+ catch ( css::uno::Exception const & )
+ {
+ DBG_UNHANDLED_EXCEPTION();
+ }
}
//-----------------------------------------------------------------------------