summaryrefslogtreecommitdiff
path: root/cui
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
commitfcfd8b64c4e427d4599dd9da4148860f732b6ec6 (patch)
tree37d4040aa4c8df9dc3d871c3509a238f4efde709 /cui
parentf6e0b00643e252001768e0b2e19de070654e9afe (diff)
Move DBG_ERROR to OSL_FAIL
Diffstat (limited to 'cui')
-rw-r--r--cui/source/customize/cfgutil.cxx2
-rw-r--r--cui/source/customize/selector.cxx2
-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
-rw-r--r--cui/source/options/optasian.cxx6
-rw-r--r--cui/source/options/optgdlg.cxx2
-rw-r--r--cui/source/options/optlingu.cxx10
-rw-r--r--cui/source/options/optsave.cxx2
-rw-r--r--cui/source/options/treeopt.cxx2
-rw-r--r--cui/source/tabpages/autocdlg.cxx2
-rw-r--r--cui/source/tabpages/macroass.cxx2
-rw-r--r--cui/source/tabpages/paragrph.cxx2
-rw-r--r--cui/source/tabpages/swpossizetabpage.cxx4
-rw-r--r--cui/source/tabpages/textattr.cxx2
20 files changed, 35 insertions, 35 deletions
diff --git a/cui/source/customize/cfgutil.cxx b/cui/source/customize/cfgutil.cxx
index 137ade821..d26b695b0 100644
--- a/cui/source/customize/cfgutil.cxx
+++ b/cui/source/customize/cfgutil.cxx
@@ -1510,7 +1510,7 @@ void SfxConfigGroupListBox_Impl::RequestingChilds( SvLBoxEntry *pEntry )
}
default:
- DBG_ERROR( "Falscher Gruppentyp!" );
+ OSL_FAIL( "Falscher Gruppentyp!" );
break;
}
}
diff --git a/cui/source/customize/selector.cxx b/cui/source/customize/selector.cxx
index d124dd4c0..5b486a038 100644
--- a/cui/source/customize/selector.cxx
+++ b/cui/source/customize/selector.cxx
@@ -953,7 +953,7 @@ void SvxConfigGroupListBox_Impl::RequestingChilds( SvLBoxEntry *pEntry )
}
default:
- DBG_ERROR( "Falscher Gruppentyp!" );
+ OSL_FAIL( "Falscher Gruppentyp!" );
break;
}
}
diff --git a/cui/source/dialogs/cuigaldlg.cxx b/cui/source/dialogs/cuigaldlg.cxx
index e8ed58d0c..e1c410dc7 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 889fff616..6e4d90d18 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 d4cb6fd7b..18cdc9ef2 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 88c0c0263..3d0a29e6a 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 9421836a1..1046afc5c 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 e12ad0ddf..041ef64e5 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 743e1f9c9..83938ff7a 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 651bd7617..12cbb9c1d 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 );
diff --git a/cui/source/options/optasian.cxx b/cui/source/options/optasian.cxx
index 4ddaf34fb..bf735d2bc 100644
--- a/cui/source/options/optasian.cxx
+++ b/cui/source/options/optasian.cxx
@@ -225,7 +225,7 @@ BOOL SvxAsianLayoutPage::FillItemSet( SfxItemSet& )
}
catch(Exception&)
{
- DBG_ERROR("exception in XForbiddenCharacters");
+ OSL_FAIL("exception in XForbiddenCharacters");
}
}
eLastUsedLanguageTypeForForbiddenCharacters = aLanguageLB.GetSelectLanguage();
@@ -359,7 +359,7 @@ IMPL_LINK(SvxAsianLayoutPage, LanguageHdl, SvxLanguageBox*, EMPTYARG )
}
catch(Exception&)
{
- DBG_ERROR("exception in XForbiddenCharacters");
+ OSL_FAIL("exception in XForbiddenCharacters");
}
}
}
@@ -422,7 +422,7 @@ IMPL_LINK(SvxAsianLayoutPage, ModifyHdl, Edit*, pEdit)
}
catch(Exception&)
{
- DBG_ERROR("exception in XForbiddenCharacters");
+ OSL_FAIL("exception in XForbiddenCharacters");
}
}
pImpl->aConfig.SetStartEndChars( aLocale, bEnable ? &sStart : 0, bEnable ? &sEnd : 0);
diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx
index ffe2829fc..3bd0eefef 100644
--- a/cui/source/options/optgdlg.cxx
+++ b/cui/source/options/optgdlg.cxx
@@ -940,7 +940,7 @@ BOOL OfaViewTabPage::FillItemSet( SfxItemSet& )
case 1: eSet = SFX_SYMBOLS_SIZE_SMALL; break;
case 2: eSet = SFX_SYMBOLS_SIZE_LARGE; break;
default:
- DBG_ERROR( "OfaViewTabPage::FillItemSet(): This state of aIconSizeLB should not be possible!" );
+ OSL_FAIL( "OfaViewTabPage::FillItemSet(): This state of aIconSizeLB should not be possible!" );
}
aMiscOptions.SetSymbolsSize( eSet );
}
diff --git a/cui/source/options/optlingu.cxx b/cui/source/options/optlingu.cxx
index 5012914d4..4f2fcbcf3 100644
--- a/cui/source/options/optlingu.cxx
+++ b/cui/source/options/optlingu.cxx
@@ -1845,7 +1845,7 @@ IMPL_LINK( SvxLinguTabPage, ClickHdl_Impl, PushButton *, pBtn )
case EID_NUM_POST_BREAK : nRID = STR_NUM_POST_BREAK_DLG; break;
case EID_NUM_MIN_WORDLEN: nRID = STR_NUM_MIN_WORDLEN_DLG; break;
default:
- DBG_ERROR( "unexpected case" );
+ OSL_FAIL( "unexpected case" );
}
OptionsBreakSet aDlg( this, nRID );
@@ -1865,7 +1865,7 @@ IMPL_LINK( SvxLinguTabPage, ClickHdl_Impl, PushButton *, pBtn )
}
else
{
- DBG_ERROR( "pBtn unexpected value" );
+ OSL_FAIL( "pBtn unexpected value" );
}
return 0;
@@ -1901,7 +1901,7 @@ IMPL_LINK( SvxLinguTabPage, SelectHdl_Impl, SvxCheckListBox *, pBox )
}
else
{
- DBG_ERROR( "pBox unexpected value" );
+ OSL_FAIL( "pBox unexpected value" );
}
return 0;
@@ -2122,7 +2122,7 @@ IMPL_LINK( SvxEditModulesDlg, SelectHdl_Impl, SvxCheckListBox *, pBox )
}
else
{
- DBG_ERROR( "pBox unexpected value" );
+ OSL_FAIL( "pBox unexpected value" );
}
return 0;
@@ -2467,7 +2467,7 @@ IMPL_LINK( SvxEditModulesDlg, ClickHdl_Impl, PushButton *, pBtn )
}
else
{
- DBG_ERROR( "pBtn unexpected value" );
+ OSL_FAIL( "pBtn unexpected value" );
}
return 0;
diff --git a/cui/source/options/optsave.cxx b/cui/source/options/optsave.cxx
index 86ef52f7e..6d8f59779 100644
--- a/cui/source/options/optsave.cxx
+++ b/cui/source/options/optsave.cxx
@@ -495,7 +495,7 @@ void SfxSaveTabPage::Reset( const SfxItemSet& )
case APP_IMPRESS : sReplace = C2U("com.sun.star.presentation.PresentationDocument");break;
case APP_DRAW : sReplace = C2U("com.sun.star.drawing.DrawingDocument");break;
case APP_MATH : sReplace = C2U("com.sun.star.formula.FormulaProperties");break;
- default: DBG_ERROR("illegal user data");
+ default: OSL_FAIL("illegal user data");
}
String sTmp(sCommand);
sTmp.SearchAndReplaceAscii("%1", sReplace);
diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx
index 8469d04be..f7f22d326 100644
--- a/cui/source/options/treeopt.cxx
+++ b/cui/source/options/treeopt.cxx
@@ -1692,7 +1692,7 @@ void OfaTreeOptionsDialog::ApplyItemSet( sal_uInt16 nId, const SfxItemSet& rSet
default:
{
- DBG_ERROR( "Unhandled option in ApplyItemSet" );
+ OSL_FAIL( "Unhandled option in ApplyItemSet" );
}
break;
}
diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx
index 4e51bd599..288cc83a5 100644
--- a/cui/source/tabpages/autocdlg.cxx
+++ b/cui/source/tabpages/autocdlg.cxx
@@ -2151,7 +2151,7 @@ IMPL_LINK( OfaQuoteTabPage, QuoteHdl, PushButton*, pBtn )
cDlg = pAutoCorrect->GetQuote('\"',FALSE,eLang); //add by BerryJia for Bug95846 Time:2002-8-13 15:50
break;
default:
- DBG_ERROR("svx::OfaQuoteTabPage::QuoteHdl(), how to initialize cDlg?" );
+ OSL_FAIL("svx::OfaQuoteTabPage::QuoteHdl(), how to initialize cDlg?" );
cDlg = 0;
break;
diff --git a/cui/source/tabpages/macroass.cxx b/cui/source/tabpages/macroass.cxx
index ddfe7f714..b9c560dc9 100644
--- a/cui/source/tabpages/macroass.cxx
+++ b/cui/source/tabpages/macroass.cxx
@@ -175,7 +175,7 @@ void _SfxMacroTabPage::EnableButtons( const String& rLangName )
sEventMacro = ((SvLBoxString*)pE->GetItem( LB_MACROS_ITEMPOS ))->GetText();
if ( rLangName.EqualsAscii("JavaScript") )
{
- DBG_ERROR( "_SfxMacroTabPage::EnableButtons(): this is not an up to date usage!" );
+ OSL_FAIL( "_SfxMacroTabPage::EnableButtons(): this is not an up to date usage!" );
}
else
{
diff --git a/cui/source/tabpages/paragrph.cxx b/cui/source/tabpages/paragrph.cxx
index c1d0df336..76c206cf5 100644
--- a/cui/source/tabpages/paragrph.cxx
+++ b/cui/source/tabpages/paragrph.cxx
@@ -268,7 +268,7 @@ BOOL SvxStdParagraphTabPage::FillItemSet( SfxItemSet& rOutSet )
break;
default:
- DBG_ERROR( "unbekannter Type fuer Zeilenabstand." );
+ OSL_FAIL( "unbekannter Type fuer Zeilenabstand." );
break;
}
eState = GetItemSet().GetItemState( nWhich );
diff --git a/cui/source/tabpages/swpossizetabpage.cxx b/cui/source/tabpages/swpossizetabpage.cxx
index 802440a55..7a53da94b 100644
--- a/cui/source/tabpages/swpossizetabpage.cxx
+++ b/cui/source/tabpages/swpossizetabpage.cxx
@@ -1787,7 +1787,7 @@ void SvxSwPosSizeTabPage::SetView( const SdrView* pSdrView )
m_pSdrView = pSdrView;
if(!m_pSdrView)
{
- DBG_ERROR("No SdrView* set");
+ OSL_FAIL("No SdrView* set");
return;
}
@@ -1858,7 +1858,7 @@ void SvxSwPosSizeTabPage::SetView( const SdrView* pSdrView )
( eKind==OBJ_TEXT || eKind==OBJ_TITLETEXT || eKind==OBJ_OUTLINETEXT) &&
( (SdrTextObj*) pObj )->HasText() )
{
- DBG_ERROR("AutoWidth/AutoHeight should be enabled");
+ OSL_FAIL("AutoWidth/AutoHeight should be enabled");
}
}
#endif
diff --git a/cui/source/tabpages/textattr.cxx b/cui/source/tabpages/textattr.cxx
index 2000dd4ca..c69a625ec 100644
--- a/cui/source/tabpages/textattr.cxx
+++ b/cui/source/tabpages/textattr.cxx
@@ -418,7 +418,7 @@ BOOL SvxTextAttrPage::FillItemSet( SfxItemSet& rAttrs)
switch( eState )
{
default: ; //prevent warning
- DBG_ERROR( "svx::SvxTextAttrPage::FillItemSet(), unhandled state!" );
+ OSL_FAIL( "svx::SvxTextAttrPage::FillItemSet(), unhandled state!" );
case STATE_NOCHECK: eFTS = SDRTEXTFIT_NONE; break;
case STATE_CHECK: eFTS = SDRTEXTFIT_AUTOFIT; break;
}