summaryrefslogtreecommitdiff
path: root/cui/source/dialogs
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-03-01 17:55:09 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-03-02 15:00:30 +0100
commitfdeb50167836803f1a79082ddd25e4ae8ac20611 (patch)
tree3e9ff2e3cba72052ce97b0b16575791d2cdbdf6f /cui/source/dialogs
parent096b61aa08ee37c6d6818791a7c5fb94d2f1ef7d (diff)
Move DBG_ERROR to OSL_FAIL
Diffstat (limited to 'cui/source/dialogs')
-rw-r--r--cui/source/dialogs/cuigaldlg.cxx2
-rw-r--r--cui/source/dialogs/cuigrfflt.cxx2
-rw-r--r--cui/source/dialogs/dlgname.cxx2
-rw-r--r--cui/source/dialogs/hangulhanjadlg.cxx4
-rw-r--r--cui/source/dialogs/hltpbase.cxx2
-rw-r--r--cui/source/dialogs/insdlg.cxx8
-rw-r--r--cui/source/dialogs/showcols.cxx4
-rw-r--r--cui/source/dialogs/zoom.cxx8
8 files changed, 16 insertions, 16 deletions
diff --git a/cui/source/dialogs/cuigaldlg.cxx b/cui/source/dialogs/cuigaldlg.cxx
index 9a31c62a2ffd..0e67419122ce 100644
--- a/cui/source/dialogs/cuigaldlg.cxx
+++ b/cui/source/dialogs/cuigaldlg.cxx
@@ -1058,7 +1058,7 @@ IMPL_LINK( TPGalleryThemeProperties, ClickSearchHdl, void *, EMPTYARG )
catch(IllegalArgumentException)
{
#ifdef DBG_UTIL
- DBG_ERROR( "Folder picker failed with illegal arguments" );
+ OSL_FAIL( "Folder picker failed with illegal arguments" );
#endif
}
}
diff --git a/cui/source/dialogs/cuigrfflt.cxx b/cui/source/dialogs/cuigrfflt.cxx
index cc5981f2ef97..82e95178a2bb 100644
--- a/cui/source/dialogs/cuigrfflt.cxx
+++ b/cui/source/dialogs/cuigrfflt.cxx
@@ -447,7 +447,7 @@ Graphic GraphicFilterEmboss::GetFilteredGraphic( const Graphic& rGraphic,
switch( maCtlLight.GetActualRP() )
{
- default: DBG_ERROR("svx::GraphicFilterEmboss::GetFilteredGraphic(), unknown Reference Point!" );
+ default: OSL_FAIL("svx::GraphicFilterEmboss::GetFilteredGraphic(), unknown Reference Point!" );
case( RP_LT ): nAzim = 4500, nElev = 4500; break;
case( RP_MT ): nAzim = 9000, nElev = 4500; break;
case( RP_RT ): nAzim = 13500, nElev = 4500; break;
diff --git a/cui/source/dialogs/dlgname.cxx b/cui/source/dialogs/dlgname.cxx
index c5941a6f8419..e624b0ef2d5d 100644
--- a/cui/source/dialogs/dlgname.cxx
+++ b/cui/source/dialogs/dlgname.cxx
@@ -223,7 +223,7 @@ void SvxMessDialog::SetButtonText( USHORT nBtnId, const String& rNewTxt )
break;
default:
- DBG_ERROR( "Falsche Button-Nummer!!!" );
+ OSL_FAIL( "Falsche Button-Nummer!!!" );
}
}
diff --git a/cui/source/dialogs/hangulhanjadlg.cxx b/cui/source/dialogs/hangulhanjadlg.cxx
index 299673965ce1..01d01525bc1f 100644
--- a/cui/source/dialogs/hangulhanjadlg.cxx
+++ b/cui/source/dialogs/hangulhanjadlg.cxx
@@ -906,7 +906,7 @@ namespace svx
case HHC::eRubyHangulAbove: m_pHangulAbove->Check(); break;
case HHC::eRubyHangulBelow: m_pHangulBelow->Check(); break;
default:
- DBG_ERROR( "HangulHanjaConversionDialog::SetConversionFormat: unknown type!" );
+ OSL_FAIL( "HangulHanjaConversionDialog::SetConversionFormat: unknown type!" );
}
}
@@ -928,7 +928,7 @@ namespace svx
if ( m_pHangulBelow->IsChecked() )
return HHC::eRubyHangulBelow;
- DBG_ERROR( "HangulHanjaConversionDialog::GetConversionFormat: no radio checked?" );
+ OSL_FAIL( "HangulHanjaConversionDialog::GetConversionFormat: no radio checked?" );
return HHC::eSimpleConversion;
}
diff --git a/cui/source/dialogs/hltpbase.cxx b/cui/source/dialogs/hltpbase.cxx
index cdf0c492c24c..0b4abd3a03f9 100644
--- a/cui/source/dialogs/hltpbase.cxx
+++ b/cui/source/dialogs/hltpbase.cxx
@@ -532,7 +532,7 @@ BOOL SvxHyperlinkTabPageBase::FileExists( const INetURLObject& rURL )
}
catch( ... )
{
- DBG_ERROR( "FileExists: ucb error" );
+ OSL_FAIL( "FileExists: ucb error" );
}
}
diff --git a/cui/source/dialogs/insdlg.cxx b/cui/source/dialogs/insdlg.cxx
index e12ad0ddfce1..041ef64e5d26 100644
--- a/cui/source/dialogs/insdlg.cxx
+++ b/cui/source/dialogs/insdlg.cxx
@@ -676,7 +676,7 @@ short SvInsertAppletDialog::Execute()
}
catch ( uno::Exception& )
{
- DBG_ERROR( "No Applet!" );
+ OSL_FAIL( "No Applet!" );
}
}
else
@@ -726,7 +726,7 @@ short SvInsertAppletDialog::Execute()
}
catch ( uno::Exception& )
{
- DBG_ERROR( "No Applet!" );
+ OSL_FAIL( "No Applet!" );
}
}
}
@@ -909,7 +909,7 @@ short SfxInsertFloatingFrameDialog::Execute()
}
catch ( uno::Exception& )
{
- DBG_ERROR( "No IFrame!" );
+ OSL_FAIL( "No IFrame!" );
}
}
else
@@ -996,7 +996,7 @@ short SfxInsertFloatingFrameDialog::Execute()
}
catch ( uno::Exception& )
{
- DBG_ERROR( "No IFrame!" );
+ OSL_FAIL( "No IFrame!" );
}
}
}
diff --git a/cui/source/dialogs/showcols.cxx b/cui/source/dialogs/showcols.cxx
index e43d8b5dd8b3..f5b9affb4d80 100644
--- a/cui/source/dialogs/showcols.cxx
+++ b/cui/source/dialogs/showcols.cxx
@@ -83,7 +83,7 @@ IMPL_LINK( FmShowColsDialog, OnClickedOk, Button*, EMPTYARG )
}
catch(...)
{
- DBG_ERROR("FmShowColsDialog::OnClickedOk Exception occurred!");
+ OSL_FAIL("FmShowColsDialog::OnClickedOk Exception occurred!");
}
}
}
@@ -121,7 +121,7 @@ void FmShowColsDialog::SetColumns(const ::com::sun::star::uno::Reference< ::com:
}
catch(...)
{
- DBG_ERROR("FmShowColsDialog::SetColumns Exception occurred!");
+ OSL_FAIL("FmShowColsDialog::SetColumns Exception occurred!");
}
// if the col is hidden, put it into the list
diff --git a/cui/source/dialogs/zoom.cxx b/cui/source/dialogs/zoom.cxx
index fb5c9c2bf8d9..42eda26ff2ff 100644
--- a/cui/source/dialogs/zoom.cxx
+++ b/cui/source/dialogs/zoom.cxx
@@ -139,7 +139,7 @@ void SvxZoomDialog::SetButtonText( USHORT nBtnId, const String& rNewTxt )
break;
default:
- DBG_ERROR( "wrong button number" );
+ OSL_FAIL( "wrong button number" );
}
}
@@ -162,7 +162,7 @@ void SvxZoomDialog::HideButton( USHORT nBtnId )
break;
default:
- DBG_ERROR( "Falsche Button-Nummer!!!" );
+ OSL_FAIL( "Falsche Button-Nummer!!!" );
}
}
@@ -424,7 +424,7 @@ IMPL_LINK( SvxZoomDialog, ViewLayoutUserHdl, RadioButton *, pBtn )
}
else
{
- DBG_ERROR( "Wrong Button" );
+ OSL_FAIL( "Wrong Button" );
return 0;
}
@@ -506,7 +506,7 @@ IMPL_LINK( SvxZoomDialog, OKHdl, Button *, pBtn )
}
else
{
- DBG_ERROR( "Wrong Button" );
+ OSL_FAIL( "Wrong Button" );
return 0;
}
pOutSet = new SfxItemSet( rSet );