diff options
Diffstat (limited to 'svx')
49 files changed, 120 insertions, 120 deletions
diff --git a/svx/source/dialog/SpellDialog.cxx b/svx/source/dialog/SpellDialog.cxx index 019939a9f7..b2b81714dc 100644 --- a/svx/source/dialog/SpellDialog.cxx +++ b/svx/source/dialog/SpellDialog.cxx @@ -1374,7 +1374,7 @@ long SentenceEditWindow_Impl::PreNotify( NotifyEvent& rNEvt ) bool bIsErrorActive = pErrorAttr && pErrorAttr->GetStart() == m_nErrorStart || pErrorAttrLeft && pErrorAttrLeft->GetStart() == m_nErrorStart; - DBG_ASSERT(nSelectionType != INVALID, "selection type not set!") + DBG_ASSERT(nSelectionType != INVALID, "selection type not set!"); const KeyCode& rKeyCode = rKeyEvt.GetKeyCode(); bool bDelete = rKeyCode.GetCode() == KEY_DELETE; @@ -1453,7 +1453,7 @@ long SentenceEditWindow_Impl::PreNotify( NotifyEvent& rNEvt ) } if(nAction == ACTION_EXPAND) { - DBG_ASSERT(pErrorAttrLeft || pErrorAttr, "where is the error") + DBG_ASSERT(pErrorAttrLeft || pErrorAttr, "where is the error"); //text has been added on the right and only the 'error attribute has to be corrected if(pErrorAttrLeft) { @@ -1649,7 +1649,7 @@ void SentenceEditWindow_Impl::ChangeMarkedWord(const String& rNewWord, LanguageT ExtTextEngine* pTextEngine = GetTextEngine(); pTextEngine->UndoActionStart( TEXTUNDO_INSERT ); const TextCharAttrib* pErrorAttrib = pTextEngine->FindCharAttrib( TextPaM(0, m_nErrorStart), TEXTATTR_SPELL_ERROR ); - DBG_ASSERT(pErrorAttrib, "no error attribute found") + DBG_ASSERT(pErrorAttrib, "no error attribute found"); // Reference <XSpellAlternatives> xAlternatives; const SpellErrorDescription* pSpellErrorDescription = 0; if(pErrorAttrib) @@ -1741,7 +1741,7 @@ void SentenceEditWindow_Impl::SetAlternatives( Reference< XSpellAlternatives> xA { TextPaM aCursor(0, m_nErrorStart); DBG_ASSERT(static_cast<const SpellErrorAttrib*>( - GetTextEngine()->FindAttrib( aCursor, TEXTATTR_SPELL_ERROR)), "no error set?") + GetTextEngine()->FindAttrib( aCursor, TEXTATTR_SPELL_ERROR)), "no error set?"); ::rtl::OUString aWord; lang::Locale aLocale; @@ -1866,7 +1866,7 @@ svx::SpellPortions SentenceEditWindow_Impl::CreateSpellPortions() const //start should always be Null eLang = aStart->eLanguage; USHORT nStart = aStart->nPosition; - DBG_ASSERT(!nStart, "invalid start position - language attribute missing?") + DBG_ASSERT(!nStart, "invalid start position - language attribute missing?"); ++aStart; while(aStart != aBreakPositions.end()) @@ -1917,7 +1917,7 @@ svx::SpellPortions SentenceEditWindow_Impl::CreateSpellPortions() const void SentenceEditWindow_Impl::Undo() { SfxUndoManager& rUndoMgr = GetTextEngine()->GetUndoManager(); - DBG_ASSERT(GetUndoActionCount(), "no undo actions available" ) + DBG_ASSERT(GetUndoActionCount(), "no undo actions available" ); if(!GetUndoActionCount()) return; bool bSaveUndoEdit = IsUndoEditMode(); @@ -1985,7 +1985,7 @@ void SentenceEditWindow_Impl::MoveErrorEnd(long nOffset) -----------------------------------------------------------------------*/ void SentenceEditWindow_Impl::SetUndoEditMode(bool bSet) { - DBG_ASSERT(!bSet || m_bIsUndoEditMode != bSet, "SetUndoEditMode with equal values?") + DBG_ASSERT(!bSet || m_bIsUndoEditMode != bSet, "SetUndoEditMode with equal values?"); m_bIsUndoEditMode = bSet; //disable all buttons except the Change SpellDialog* pSpellDialog = GetSpellDialog(); diff --git a/svx/source/dialog/SpellDialogChildWindow.cxx b/svx/source/dialog/SpellDialogChildWindow.cxx index f7d9f9d849..95688f8255 100644 --- a/svx/source/dialog/SpellDialogChildWindow.cxx +++ b/svx/source/dialog/SpellDialogChildWindow.cxx @@ -95,7 +95,7 @@ void SpellDialogChildWindow::AddAutoCorrection( const String& /*rNew*/, LanguageType /*eLanguage*/) { - DBG_ERROR("AutoCorrection should have been overloaded - if available") + DBG_ERROR("AutoCorrection should have been overloaded - if available"); } /*-- 16.06.2008 10:11:57--------------------------------------------------- @@ -109,7 +109,7 @@ bool SpellDialogChildWindow::HasGrammarChecking() -----------------------------------------------------------------------*/ bool SpellDialogChildWindow::IsGrammarChecking() { - DBG_ERROR("Grammar checking should have been overloaded - if available") + DBG_ERROR("Grammar checking should have been overloaded - if available"); return false; } /*-- 18.06.2008 12:26:35--------------------------------------------------- @@ -117,7 +117,7 @@ bool SpellDialogChildWindow::IsGrammarChecking() -----------------------------------------------------------------------*/ void SpellDialogChildWindow::SetGrammarChecking(bool ) { - DBG_ERROR("Grammar checking should have been overloaded - if available") + DBG_ERROR("Grammar checking should have been overloaded - if available"); } /*-- 16.06.2008 10:12:22--------------------------------------------------- diff --git a/svx/source/dialog/autocdlg.cxx b/svx/source/dialog/autocdlg.cxx index 076b9a59f4..9078e27028 100644 --- a/svx/source/dialog/autocdlg.cxx +++ b/svx/source/dialog/autocdlg.cxx @@ -927,7 +927,7 @@ void OfaACorrCheckListBox::SetCheckButtonState( SvLBoxEntry* pEntry, USHORT nCol { SvLBoxButton* pItem = (SvLBoxButton*)(pEntry->GetItem(nCol + 1)); - DBG_ASSERT(pItem,"SetCheckButton:Item not found") + DBG_ASSERT(pItem,"SetCheckButton:Item not found"); if (((SvLBoxItem*)pItem)->IsA() == SV_ITEM_ID_LBOXBUTTON) { switch( eState ) @@ -956,7 +956,7 @@ SvButtonState OfaACorrCheckListBox::GetCheckButtonState( SvLBoxEntry* pEntry, US { SvButtonState eState = SV_BUTTON_UNCHECKED; SvLBoxButton* pItem = (SvLBoxButton*)(pEntry->GetItem(nCol + 1)); - DBG_ASSERT(pItem,"GetChButnState:Item not found") + DBG_ASSERT(pItem,"GetChButnState:Item not found"); if (((SvLBoxItem*)pItem)->IsA() == SV_ITEM_ID_LBOXBUTTON) { @@ -1446,7 +1446,7 @@ IMPL_LINK(OfaAutocorrReplacePage, NewDelHdl, PushButton*, pBtn) SvLBoxEntry* _pEntry = aReplaceTLB.FirstSelected(); if(pBtn == &aDeleteReplacePB) { - DBG_ASSERT(_pEntry, "keine Eintrag selektiert") + DBG_ASSERT(_pEntry, "keine Eintrag selektiert"); if(_pEntry) { aReplaceTLB.GetModel()->Remove(_pEntry); diff --git a/svx/source/dialog/backgrnd.cxx b/svx/source/dialog/backgrnd.cxx index 33dc4995b7..8cad4292dd 100644 --- a/svx/source/dialog/backgrnd.cxx +++ b/svx/source/dialog/backgrnd.cxx @@ -983,7 +983,7 @@ BOOL SvxBackgroundTabPage::FillItemSet( SfxItemSet& rCoreSet ) { const SfxPoolItem* pOldChar = GetOldItem( rCoreSet, SID_ATTR_BRUSH_CHAR ); - DBG_ASSERT(pParaBck_Impl, "pParaBck_Impl == NULL ?") + DBG_ASSERT(pParaBck_Impl, "pParaBck_Impl == NULL ?"); if ( pOldChar && //#111173# crash report shows that pParaBck_Impl can be NULL, the cause is unknown pParaBck_Impl && diff --git a/svx/source/dialog/chardlg.cxx b/svx/source/dialog/chardlg.cxx index 9344e50946..b41b180dfc 100644 --- a/svx/source/dialog/chardlg.cxx +++ b/svx/source/dialog/chardlg.cxx @@ -807,7 +807,7 @@ const FontList* SvxCharNamePage::GetFontList() const if ( pItem != NULL ) { DBG_ASSERT(NULL != ( (SvxFontListItem*)pItem )->GetFontList(), - "Where is the font list?") + "Where is the font list?"); m_pImpl->m_pFontList = static_cast<const SvxFontListItem*>(pItem )->GetFontList()->Clone(); m_pImpl->m_bMustDelete = TRUE; } diff --git a/svx/source/dialog/dbregister.cxx b/svx/source/dialog/dbregister.cxx index 07b3ba09a4..0a38f57481 100644 --- a/svx/source/dialog/dbregister.cxx +++ b/svx/source/dialog/dbregister.cxx @@ -468,7 +468,7 @@ String DbRegistrationOptionsPage::getFileLocation(const String& _sLocation) } catch( Exception& ) { - DBG_ERRORFILE( "DbRegistrationOptionsPage::EditLocationHdl: exception from folder picker" ) + DBG_ERRORFILE( "DbRegistrationOptionsPage::EditLocationHdl: exception from folder picker" ); } return String(); diff --git a/svx/source/dialog/fontsubs.cxx b/svx/source/dialog/fontsubs.cxx index 637d50bd71..1c2fe6f9e7 100644 --- a/svx/source/dialog/fontsubs.cxx +++ b/svx/source/dialog/fontsubs.cxx @@ -578,7 +578,7 @@ void SvxFontSubstCheckListBox::SetCheckButtonState( SvLBoxEntry* pEntry, USHORT { SvLBoxButton* pItem = (SvLBoxButton*)(pEntry->GetItem(nCol + 1)); - DBG_ASSERT(pItem,"SetCheckButton:Item not found") + DBG_ASSERT(pItem,"SetCheckButton:Item not found"); if (((SvLBoxItem*)pItem)->IsA() == SV_ITEM_ID_LBOXBUTTON) { switch( eState ) @@ -607,7 +607,7 @@ SvButtonState SvxFontSubstCheckListBox::GetCheckButtonState( SvLBoxEntry* pEntry { SvButtonState eState = SV_BUTTON_UNCHECKED; SvLBoxButton* pItem = (SvLBoxButton*)(pEntry->GetItem(nCol + 1)); - DBG_ASSERT(pItem,"GetChButnState:Item not found") + DBG_ASSERT(pItem,"GetChButnState:Item not found"); if (((SvLBoxItem*)pItem)->IsA() == SV_ITEM_ID_LBOXBUTTON) { diff --git a/svx/source/dialog/frmsel.cxx b/svx/source/dialog/frmsel.cxx index 277245137d..88bbbb8ef2 100644 --- a/svx/source/dialog/frmsel.cxx +++ b/svx/source/dialog/frmsel.cxx @@ -526,7 +526,7 @@ const FrameBorder& FrameSelectorImpl::GetBorder( FrameBorderType eBorder ) const size_t nIndex = GetIndexFromFrameBorderType( eBorder ); if( nIndex < maAllBorders.size() ) return *maAllBorders[ nIndex ]; - DBG_ERRORFILE( "svx::FrameSelectorImpl::GetBorder - unknown border type" ) + DBG_ERRORFILE( "svx::FrameSelectorImpl::GetBorder - unknown border type" ); return maTop; } diff --git a/svx/source/dialog/grfpage.cxx b/svx/source/dialog/grfpage.cxx index 5031deec37..aabc03766f 100644 --- a/svx/source/dialog/grfpage.cxx +++ b/svx/source/dialog/grfpage.cxx @@ -757,7 +757,7 @@ void SvxGrfCropPage::GraphicHasChanged( BOOL bFound ) IMPL_LINK( SvxGrfCropPage, Timeout, Timer *, EMPTYARG ) { - DBG_ASSERT(pLastCropField,"Timeout ohne Feld?") + DBG_ASSERT(pLastCropField,"Timeout ohne Feld?"); CropHdl(pLastCropField); pLastCropField = 0; return 0; diff --git a/svx/source/dialog/hangulhanjadlg.cxx b/svx/source/dialog/hangulhanjadlg.cxx index 01b2cd191d..1ee49881f0 100644 --- a/svx/source/dialog/hangulhanjadlg.cxx +++ b/svx/source/dialog/hangulhanjadlg.cxx @@ -964,7 +964,7 @@ namespace svx if ( m_pHangulBelow->IsChecked() ) return HHC::eRubyHangulBelow; - DBG_ERROR( "HangulHanjaConversionDialog::GetConversionFormat: no radio checked?" ) + DBG_ERROR( "HangulHanjaConversionDialog::GetConversionFormat: no radio checked?" ); return HHC::eSimpleConversion; } diff --git a/svx/source/dialog/hyphen.cxx b/svx/source/dialog/hyphen.cxx index b7ffd3b2f2..81ae5961cf 100644 --- a/svx/source/dialog/hyphen.cxx +++ b/svx/source/dialog/hyphen.cxx @@ -303,7 +303,7 @@ String SvxHyphenWordDialog::EraseUnusableHyphens_Impl( } } } - DBG_ASSERT(nIdx != STRING_NOTFOUND, "no usable hyphenation position") + DBG_ASSERT(nIdx != STRING_NOTFOUND, "no usable hyphenation position"); // remove not usable hyphens from string nPos = nIdx == STRING_NOTFOUND ? 0 : nIdx + 1; diff --git a/svx/source/dialog/linkdlg.cxx b/svx/source/dialog/linkdlg.cxx index 6d8dc805c6..cb4fe626f8 100644 --- a/svx/source/dialog/linkdlg.cxx +++ b/svx/source/dialog/linkdlg.cxx @@ -176,9 +176,9 @@ IMPL_LINK( SvBaseLinksDlg, LinksSelectHdl, SvTabListBox *, pSvTabListBox ) { pEntry = i == 0 ? pSvTabListBox->FirstSelected() : pSvTabListBox->NextSelected(pEntry); - DBG_ASSERT(pEntry, "Wo ist der Entry?") + DBG_ASSERT(pEntry, "Wo ist der Entry?"); pLink = (SvBaseLink*)pEntry->GetUserData(); - DBG_ASSERT(pLink, "Wo ist der Link?") + DBG_ASSERT(pLink, "Wo ist der Link?"); if( (OBJECT_CLIENT_FILE & pLink->GetObjType()) != OBJECT_CLIENT_FILE ) pSvTabListBox->Select( pEntry, FALSE ); @@ -343,7 +343,7 @@ IMPL_LINK( SvBaseLinksDlg, UpdateNowClickHdl, PushButton *, EMPTYARG ) /* IMPL_LINK_INLINE_START( SvBaseLinksDlg, OpenSourceClickHdl, PushButton *, pPushButton ) { - DBG_ASSERT( !this, "Open noch nicht impl." ) + DBG_ASSERT( !this, "Open noch nicht impl." ); return 0; } IMPL_LINK_INLINE_END( SvBaseLinksDlg, OpenSourceClickHdl, PushButton *, pPushButton ) @@ -379,9 +379,9 @@ IMPL_LINK( SvBaseLinksDlg, ChangeSourceClickHdl, PushButton *, pPushButton ) pEntry = i==0 ? Links().FirstSelected() : Links().NextSelected( pEntry ); - DBG_ASSERT(pEntry,"Wo ist der Entry") + DBG_ASSERT(pEntry,"Wo ist der Entry"); pLink = (SvBaseLink*)pEntry->GetUserData(); - DBG_ASSERT(pLink,"Wo ist der Link") + DBG_ASSERT(pLink,"Wo ist der Link"); pLinkMgr->GetDisplayNames( pLink, &sType, &sFile, &sLinkName, &sFilter ); INetURLObject aUrl_(sFile); INetURLObject aUrl2(aPath, INET_PROT_FILE); diff --git a/svx/source/dialog/numpages.cxx b/svx/source/dialog/numpages.cxx index 93d0553670..68318b5fa3 100644 --- a/svx/source/dialog/numpages.cxx +++ b/svx/source/dialog/numpages.cxx @@ -141,7 +141,7 @@ Reference<XDefaultNumberingProvider> lcl_GetNumberingProvider() Reference < XInterface > xI = xMSF->createInstance( ::rtl::OUString::createFromAscii( "com.sun.star.text.DefaultNumberingProvider" ) ); Reference<XDefaultNumberingProvider> xRet(xI, UNO_QUERY); - DBG_ASSERT(xRet.is(), "service missing: \"com.sun.star.text.DefaultNumberingProvider\"") + DBG_ASSERT(xRet.is(), "service missing: \"com.sun.star.text.DefaultNumberingProvider\""); return xRet; } @@ -392,7 +392,7 @@ void SvxSingleNumPickTabPage::Reset( const SfxItemSet& rSet ) nNumItemId = rSet.GetPool()->GetWhich(SID_ATTR_NUMBERING_RULE); eState = rSet.GetItemState(nNumItemId, FALSE, &pItem); } - DBG_ASSERT(eState == SFX_ITEM_SET, "kein Item gefunden!") + DBG_ASSERT(eState == SFX_ITEM_SET, "kein Item gefunden!"); delete pSaveNum; pSaveNum = new SvxNumRule(*((SvxNumBulletItem*)pItem)->GetNumRule()); @@ -412,7 +412,7 @@ IMPL_LINK(SvxSingleNumPickTabPage, NumSelectHdl_Impl, ValueSet*, EMPTYARG) bPreset = FALSE; bModified = TRUE; USHORT nIdx = pExamplesVS->GetSelectItemId() - 1; - DBG_ASSERT(aNumSettingsArr.Count() > nIdx, "wrong index") + DBG_ASSERT(aNumSettingsArr.Count() > nIdx, "wrong index"); if(aNumSettingsArr.Count() <= nIdx) return 0; SvxNumSettings_ImplPtr _pSet = aNumSettingsArr.GetObject(nIdx); @@ -583,7 +583,7 @@ void SvxBulletPickTabPage::Reset( const SfxItemSet& rSet ) nNumItemId = rSet.GetPool()->GetWhich(SID_ATTR_NUMBERING_RULE); eState = rSet.GetItemState(nNumItemId, FALSE, &pItem); } - DBG_ASSERT(eState == SFX_ITEM_SET, "kein Item gefunden!") + DBG_ASSERT(eState == SFX_ITEM_SET, "kein Item gefunden!"); delete pSaveNum; pSaveNum = new SvxNumRule(*((SvxNumBulletItem*)pItem)->GetNumRule()); @@ -813,7 +813,7 @@ void SvxNumPickTabPage::Reset( const SfxItemSet& rSet ) nNumItemId = rSet.GetPool()->GetWhich(SID_ATTR_NUMBERING_RULE); eState = rSet.GetItemState(nNumItemId, FALSE, &pItem); } - DBG_ASSERT(eState == SFX_ITEM_SET, "kein Item gefunden!") + DBG_ASSERT(eState == SFX_ITEM_SET, "kein Item gefunden!"); delete pSaveNum; pSaveNum = new SvxNumRule(*((SvxNumBulletItem*)pItem)->GetNumRule()); @@ -1118,7 +1118,7 @@ void SvxBitmapPickTabPage::Reset( const SfxItemSet& rSet ) nNumItemId = rSet.GetPool()->GetWhich(SID_ATTR_NUMBERING_RULE); eState = rSet.GetItemState(nNumItemId, FALSE, &pItem); } - DBG_ASSERT(eState == SFX_ITEM_SET, "kein Item gefunden!") + DBG_ASSERT(eState == SFX_ITEM_SET, "kein Item gefunden!"); delete pSaveNum; pSaveNum = new SvxNumRule(*((SvxNumBulletItem*)pItem)->GetNumRule()); @@ -1550,7 +1550,7 @@ void SvxNumOptionsTabPage::Reset( const SfxItemSet& rSet ) nNumItemId = rSet.GetPool()->GetWhich(SID_ATTR_NUMBERING_RULE); eState = rSet.GetItemState(nNumItemId, FALSE, &pItem); } - DBG_ASSERT(eState == SFX_ITEM_SET, "kein Item gefunden!") + DBG_ASSERT(eState == SFX_ITEM_SET, "kein Item gefunden!"); delete pSaveNum; pSaveNum = new SvxNumRule(*((SvxNumBulletItem*)pItem)->GetNumRule()); @@ -3451,7 +3451,7 @@ void SvxNumPositionTabPage::Reset( const SfxItemSet& rSet ) nNumItemId = rSet.GetPool()->GetWhich(SID_ATTR_NUMBERING_RULE); eState = rSet.GetItemState(nNumItemId, FALSE, &pItem); } - DBG_ASSERT(eState == SFX_ITEM_SET, "kein Item gefunden!") + DBG_ASSERT(eState == SFX_ITEM_SET, "kein Item gefunden!"); delete pSaveNum; pSaveNum = new SvxNumRule(*((SvxNumBulletItem*)pItem)->GetNumRule()); diff --git a/svx/source/dialog/opengrf.cxx b/svx/source/dialog/opengrf.cxx index 26db7df62d..f6564449ae 100644 --- a/svx/source/dialog/opengrf.cxx +++ b/svx/source/dialog/opengrf.cxx @@ -258,7 +258,7 @@ sal_Bool SvxOpenGraphicDialog::IsAsLink() const if( mpImpl->xCtrlAcc.is() ) { Any aVal = mpImpl->xCtrlAcc->getValue( ExtendedFilePickerElementIds::CHECKBOX_LINK, 0 ); - DBG_ASSERT(aVal.hasValue(), "Value CBX_INSERT_AS_LINK not found") + DBG_ASSERT(aVal.hasValue(), "Value CBX_INSERT_AS_LINK not found"); return aVal.hasValue() ? *(sal_Bool*) aVal.getValue() : sal_False; } } diff --git a/svx/source/dialog/optasian.cxx b/svx/source/dialog/optasian.cxx index abf87fc665..82ada7f5a4 100644 --- a/svx/source/dialog/optasian.cxx +++ b/svx/source/dialog/optasian.cxx @@ -123,7 +123,7 @@ sal_Bool SvxAsianLayoutPage_Impl::hasForbiddenCharacters(LanguageType eLang) SvxForbiddenChars_Impl* SvxAsianLayoutPage_Impl::getForbiddenCharacters(LanguageType eLang) { SvxForbiddenChars_Impl* pImp = aChangedLanguagesTbl.Get(eLang); - DBG_ASSERT(pImp, "language not available") + DBG_ASSERT(pImp, "language not available"); if(pImp) return pImp; return 0; @@ -251,7 +251,7 @@ BOOL SvxAsianLayoutPage::FillItemSet( SfxItemSet& ) } catch(Exception&) { - DBG_ERROR("exception in XForbiddenCharacters") + DBG_ERROR("exception in XForbiddenCharacters"); } } eLastUsedLanguageTypeForForbiddenCharacters = aLanguageLB.GetSelectLanguage(); @@ -389,7 +389,7 @@ IMPL_LINK(SvxAsianLayoutPage, LanguageHdl, SvxLanguageBox*, EMPTYARG ) } catch(Exception&) { - DBG_ERROR("exception in XForbiddenCharacters") + DBG_ERROR("exception in XForbiddenCharacters"); } } } @@ -458,7 +458,7 @@ IMPL_LINK(SvxAsianLayoutPage, ModifyHdl, Edit*, pEdit) } catch(Exception&) { - DBG_ERROR("exception in XForbiddenCharacters") + DBG_ERROR("exception in XForbiddenCharacters"); } } pImpl->aConfig.SetStartEndChars( aLocale, bEnable ? &sStart : 0, bEnable ? &sEnd : 0); diff --git a/svx/source/dialog/optcolor.cxx b/svx/source/dialog/optcolor.cxx index 01cec72b52..6a2f305775 100644 --- a/svx/source/dialog/optcolor.cxx +++ b/svx/source/dialog/optcolor.cxx @@ -1018,7 +1018,7 @@ ColorConfigCtrl_Impl::~ColorConfigCtrl_Impl() ---------------------------------------------------------------------------*/ void ColorConfigCtrl_Impl::Update() { - DBG_ASSERT(pColorConfig, "Configuration not set" ) + DBG_ASSERT(pColorConfig, "Configuration not set" ); sal_Int32 i; for( i = 0; i < ColorConfigEntryCount; i++ ) { @@ -1237,7 +1237,7 @@ void ColorConfigCtrl_Impl::DataChanged( const DataChangedEvent& rDCEvt ) ---------------------------------------------------------------------------*/ IMPL_LINK(ColorConfigCtrl_Impl, ClickHdl, CheckBox*, pBox) { - DBG_ASSERT(pColorConfig, "Configuration not set" ) + DBG_ASSERT(pColorConfig, "Configuration not set" ); for( sal_Int32 i = 0; i < ColorConfigEntryCount; i++ ) { @@ -1258,7 +1258,7 @@ IMPL_LINK(ColorConfigCtrl_Impl, ClickHdl, CheckBox*, pBox) ---------------------------------------------------------------------------*/ IMPL_LINK(ColorConfigCtrl_Impl, ColorHdl, ColorListBox*, pBox) { - DBG_ASSERT(pColorConfig, "Configuration not set" ) + DBG_ASSERT(pColorConfig, "Configuration not set" ); sal_Int32 i = 0; for( ; i < ColorConfigEntryCount; i++ ) { @@ -1514,7 +1514,7 @@ IMPL_LINK(SvxColorOptionsTabPage, SaveDeleteHdl_Impl, PushButton*, pButton ) } else { - DBG_ASSERT(aColorSchemeLB.GetEntryCount() > 1, "don't delete the last scheme") + DBG_ASSERT(aColorSchemeLB.GetEntryCount() > 1, "don't delete the last scheme"); QueryBox aQuery(pButton, SVX_RES(RID_SVXQB_DELETE_COLOR_CONFIG)); aQuery.SetText(String(SVX_RES(RID_SVXSTR_COLOR_CONFIG_DELETE))); if(RET_YES == aQuery.Execute()) diff --git a/svx/source/dialog/optdict.cxx b/svx/source/dialog/optdict.cxx index 8404621e86..d1cdff343a 100644 --- a/svx/source/dialog/optdict.cxx +++ b/svx/source/dialog/optdict.cxx @@ -602,7 +602,7 @@ IMPL_LINK(SvxEditDictionaryDialog, NewDelHdl, PushButton*, pBtn) if(pBtn == &aDeletePB) { - DBG_ASSERT(pEntry, "keine Eintrag selektiert") + DBG_ASSERT(pEntry, "keine Eintrag selektiert"); String aStr; aWordED.SetText(aStr); diff --git a/svx/source/dialog/optfltr.cxx b/svx/source/dialog/optfltr.cxx index 6e9167641e..f8d185f107 100644 --- a/svx/source/dialog/optfltr.cxx +++ b/svx/source/dialog/optfltr.cxx @@ -360,7 +360,7 @@ void OfaMSFilterTabPage2::MSFltrSimpleTable::SetCheckButtonState( { SvLBoxButton* pItem = (SvLBoxButton*)(pEntry->GetItem(nCol + 1)); - DBG_ASSERT(pItem,"SetCheckButton:Item not found") + DBG_ASSERT(pItem,"SetCheckButton:Item not found"); if (((SvLBoxItem*)pItem)->IsA() == SV_ITEM_ID_LBOXBUTTON) { switch( eState ) @@ -388,7 +388,7 @@ SvButtonState OfaMSFilterTabPage2::MSFltrSimpleTable::GetCheckButtonState( { SvButtonState eState = SV_BUTTON_UNCHECKED; SvLBoxButton* pItem = (SvLBoxButton*)(pEntry->GetItem(nCol + 1)); - DBG_ASSERT(pItem,"GetChButnState:Item not found") + DBG_ASSERT(pItem,"GetChButnState:Item not found"); if (((SvLBoxItem*)pItem)->IsA() == SV_ITEM_ID_LBOXBUTTON) { diff --git a/svx/source/dialog/optinet2.cxx b/svx/source/dialog/optinet2.cxx index 6d52210fad..21fd8cc466 100644 --- a/svx/source/dialog/optinet2.cxx +++ b/svx/source/dialog/optinet2.cxx @@ -991,7 +991,7 @@ IMPL_LINK( SvxSearchTabPage, DeleteSearchHdl_Impl, PushButton *, EMPTYARG) { aChangePB.Enable(FALSE); //add by BerryJia for fixing Bug102610 Time:2002-8-29 11:00 (China Standard Time GMT+08:00) USHORT nPos = aSearchLB.GetSelectEntryPos(); - DBG_ASSERT(nPos != LISTBOX_ENTRY_NOTFOUND, "kein Eintrag selektiert!") + DBG_ASSERT(nPos != LISTBOX_ENTRY_NOTFOUND, "kein Eintrag selektiert!"); aSearchConfig.RemoveData(aSearchLB.GetSelectEntry()); aSearchLB.RemoveEntry(nPos); aSearchLB.SelectEntryPos(0); @@ -1012,7 +1012,7 @@ IMPL_LINK( SvxSearchTabPage, SearchEntryHdl_Impl, ListBox*, pBox ) return 0; const SvxSearchEngineData* pData = aSearchConfig.GetData(sSelection); - DBG_ASSERT(pData, "SearchEngine not available") + DBG_ASSERT(pData, "SearchEngine not available"); if(pData) { aSearchNameED.SetText(sSelection); diff --git a/svx/source/dialog/optpath.cxx b/svx/source/dialog/optpath.cxx index 15eaf6a511..54695490fa 100644 --- a/svx/source/dialog/optpath.cxx +++ b/svx/source/dialog/optpath.cxx @@ -644,7 +644,7 @@ IMPL_LINK( SvxPathTabPage, PathHdl_Impl, PushButton *, EMPTYARG ) } catch( Exception& ) { - DBG_ERRORFILE( "SvxPathTabPage::PathHdl_Impl: exception from folder picker" ) + DBG_ERRORFILE( "SvxPathTabPage::PathHdl_Impl: exception from folder picker" ); } } return 0; diff --git a/svx/source/dialog/optsave.cxx b/svx/source/dialog/optsave.cxx index acd9a63c66..2ef0d21407 100644 --- a/svx/source/dialog/optsave.cxx +++ b/svx/source/dialog/optsave.cxx @@ -150,7 +150,7 @@ SvxAlienFilterWarningConfig_Impl::SvxAlienFilterWarningConfig_Impl() : aPropNames.getArray()[0] = C2U("ShowAlienFilterWarning"); Sequence<Any> aValues = GetProperties(aPropNames); const Any* pValues = aValues.getConstArray(); - DBG_ASSERT(aValues.getLength() == aPropNames.getLength(), "GetProperties failed") + DBG_ASSERT(aValues.getLength() == aPropNames.getLength(), "GetProperties failed"); if(aValues.getLength() == aPropNames.getLength() && pValues[0].hasValue() && pValues[0].getValueType() == ::getBooleanCppuType()) @@ -555,7 +555,7 @@ void SfxSaveTabPage::Reset( const SfxItemSet& ) pImpl->xFact = Reference<XNameContainer>( xMSF->createInstance(C2U("com.sun.star.document.FilterFactory")), UNO_QUERY); - DBG_ASSERT(pImpl->xFact.is(), "service com.sun.star.document.FilterFactory unavailable") + DBG_ASSERT(pImpl->xFact.is(), "service com.sun.star.document.FilterFactory unavailable"); Reference< XContainerQuery > xQuery(pImpl->xFact, UNO_QUERY); if(xQuery.is()) { @@ -609,7 +609,7 @@ void SfxSaveTabPage::Reset( const SfxItemSet& ) } catch(Exception& ) { - DBG_ERROR("exception in FilterFactory access") + DBG_ERROR("exception in FilterFactory access"); } pImpl->bInitialized = sal_True; diff --git a/svx/source/dialog/rubydialog.cxx b/svx/source/dialog/rubydialog.cxx index 3898a94ad7..495366ead5 100644 --- a/svx/source/dialog/rubydialog.cxx +++ b/svx/source/dialog/rubydialog.cxx @@ -384,7 +384,7 @@ void SvxRubyDialog::Activate() } catch(Exception&) { - DBG_ERROR("exception in style access") + DBG_ERROR("exception in style access"); } if(sCharStyleSelect.Len()) aCharStyleLB.SelectEntry(sCharStyleSelect); @@ -443,7 +443,7 @@ void SvxRubyDialog::GetText() aEditArr[i + 1]->GetText() != aEditArr[i + 1]->GetSavedValue())) { Sequence<PropertyValues>& aRubyValues = pImpl->GetRubyValues(); - DBG_ASSERT(aRubyValues.getLength() > (i / 2 + nTempLastPos), "wrong index" ) + DBG_ASSERT(aRubyValues.getLength() > (i / 2 + nTempLastPos), "wrong index" ); SetModified(TRUE); Sequence<PropertyValue> &rProps = aRubyValues.getArray()[i / 2 + nTempLastPos]; PropertyValue* pProps = rProps.getArray(); @@ -591,7 +591,7 @@ IMPL_LINK(SvxRubyDialog, ApplyHdl_Impl, PushButton*, EMPTYARG) } catch(Exception& ) { - DBG_ERROR("Exception caught") + DBG_ERROR("Exception caught"); } } return 0; diff --git a/svx/source/dialog/svxbmpnumvalueset.cxx b/svx/source/dialog/svxbmpnumvalueset.cxx index f6d2cde4de..13f571e45b 100644 --- a/svx/source/dialog/svxbmpnumvalueset.cxx +++ b/svx/source/dialog/svxbmpnumvalueset.cxx @@ -294,7 +294,7 @@ void SvxNumValueSet::UserDraw( const UserDrawEvent& rUDEvt ) } catch(Exception&) { - DBG_ERROR("Exception in DefaultNumberingProvider::makeNumberingString") + DBG_ERROR("Exception in DefaultNumberingProvider::makeNumberingString"); } } // knapp neben dem linken Rand beginnen @@ -366,7 +366,7 @@ void SvxNumValueSet::UserDraw( const UserDrawEvent& rUDEvt ) } catch(Exception&) { - DBG_ERROR("Exception in DefaultNumberingProvider::makeNumberingString") + DBG_ERROR("Exception in DefaultNumberingProvider::makeNumberingString"); } aLeft.Y() -= (pDev->GetTextHeight()/2); @@ -450,7 +450,7 @@ void SvxNumValueSet::UserDraw( const UserDrawEvent& rUDEvt ) static sal_Bool bAssert = FALSE; if(!bAssert) { - DBG_ERROR("exception in ::UserDraw") + DBG_ERROR("exception in ::UserDraw"); bAssert = sal_True; } } diff --git a/svx/source/dialog/svxruler.cxx b/svx/source/dialog/svxruler.cxx index 5202efc024..13d479b294 100644 --- a/svx/source/dialog/svxruler.cxx +++ b/svx/source/dialog/svxruler.cxx @@ -1504,7 +1504,7 @@ long SvxRuler::GetLeftFrameMargin() const { // #126721# for some unknown reason the current column is set to 0xffff DBG_ASSERT(!pColumnItem || pColumnItem->GetActColumn() < pColumnItem->Count(), - "issue #126721# - invalid current column!") + "issue #126721# - invalid current column!"); long nLeft = pColumnItem && pColumnItem->Count() && pColumnItem->GetActColumn() < pColumnItem->Count() ? (*pColumnItem)[pColumnItem->GetActColumn()].nStart : 0; diff --git a/svx/source/dialog/swframeposstrings.cxx b/svx/source/dialog/swframeposstrings.cxx index cb4092f314..1b1b40fc05 100644 --- a/svx/source/dialog/swframeposstrings.cxx +++ b/svx/source/dialog/swframeposstrings.cxx @@ -72,7 +72,7 @@ SvxSwFramePosString::~SvxSwFramePosString() -----------------------------------------------------------------------*/ const String& SvxSwFramePosString::GetString(StringId eId) { - DBG_ASSERT(eId >= 0 && eId < STR_MAX, "invalid StringId") + DBG_ASSERT(eId >= 0 && eId < STR_MAX, "invalid StringId"); if(!(eId >= 0 && eId < STR_MAX)) eId = LEFT; return pImpl->aStrings[eId]; diff --git a/svx/source/dialog/swpossizetabpage.cxx b/svx/source/dialog/swpossizetabpage.cxx index b88c581d74..338ca71988 100644 --- a/svx/source/dialog/swpossizetabpage.cxx +++ b/svx/source/dialog/swpossizetabpage.cxx @@ -1874,7 +1874,7 @@ void SvxSwPosSizeTabPage::SetView( const SdrView* pSdrView ) m_pSdrView = pSdrView; if(!m_pSdrView) { - DBG_ERROR("No SdrView* set") + DBG_ERROR("No SdrView* set"); return; } @@ -1942,7 +1942,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") + DBG_ERROR("AutoWidth/AutoHeight should be enabled"); } } else diff --git a/svx/source/dialog/treeopt.cxx b/svx/source/dialog/treeopt.cxx index d42dcaf315..80009e6cf1 100644 --- a/svx/source/dialog/treeopt.cxx +++ b/svx/source/dialog/treeopt.cxx @@ -1101,7 +1101,7 @@ IMPL_LINK( OfaTreeOptionsDialog, SelectHdl_Impl, Timer*, EMPTYARG ) SvLBoxEntry* pParent = pBox->GetParent(pEntry); pBox->EndSelection(); - DBG_ASSERT(!bInSelectHdl_Impl, "Timeout handler called twice") + DBG_ASSERT(!bInSelectHdl_Impl, "Timeout handler called twice"); if(bInSelectHdl_Impl || pCurrentPageEntry == pEntry) return 0; //#111938# lock the SelectHdl_Impl to prevent multiple executes @@ -1242,7 +1242,7 @@ IMPL_LINK( OfaTreeOptionsDialog, SelectHdl_Impl, Timer*, EMPTYARG ) rColPage.Construct(); } - DBG_ASSERT( pPageInfo->m_pPage, "tabpage could not created") + DBG_ASSERT( pPageInfo->m_pPage, "tabpage could not created"); if ( pPageInfo->m_pPage ) { SvtViewOptions aTabPageOpt( E_TABPAGE, String::CreateFromInt32( pPageInfo->m_nPageId ) ); diff --git a/svx/source/editeng/acorrcfg.cxx b/svx/source/editeng/acorrcfg.cxx index 3e7eb771fd..0745a5e259 100644 --- a/svx/source/editeng/acorrcfg.cxx +++ b/svx/source/editeng/acorrcfg.cxx @@ -146,7 +146,7 @@ void SvxBaseAutoCorrCfg::Load(sal_Bool bInit) if(bInit) EnableNotification(aNames); const Any* pValues = aValues.getConstArray(); - DBG_ASSERT(aValues.getLength() == aNames.getLength(), "GetProperties failed") + DBG_ASSERT(aValues.getLength() == aNames.getLength(), "GetProperties failed"); if(aValues.getLength() == aNames.getLength()) { long nFlags = 0; // default alles aus @@ -417,7 +417,7 @@ void SvxSwAutoCorrCfg::Load(sal_Bool bInit) if(bInit) EnableNotification(aNames); const Any* pValues = aValues.getConstArray(); - DBG_ASSERT(aValues.getLength() == aNames.getLength(), "GetProperties failed") + DBG_ASSERT(aValues.getLength() == aNames.getLength(), "GetProperties failed"); if(aValues.getLength() == aNames.getLength()) { SvxSwAutoFmtFlags& rSwFlags = rParent.pAutoCorrect->GetSwFlags(); diff --git a/svx/source/editeng/editdoc.cxx b/svx/source/editeng/editdoc.cxx index 726a6ae220..cbc443cea4 100644 --- a/svx/source/editeng/editdoc.cxx +++ b/svx/source/editeng/editdoc.cxx @@ -640,8 +640,8 @@ BOOL EditSelection::IsInvalid() const BOOL EditSelection::Adjust( const ContentList& rNodes ) { - DBG_ASSERT( aStartPaM.GetIndex() <= aStartPaM.GetNode()->Len(), "Index im Wald in Adjust(1)" ) - DBG_ASSERT( aEndPaM.GetIndex() <= aEndPaM.GetNode()->Len(), "Index im Wald in Adjust(2)" ) + DBG_ASSERT( aStartPaM.GetIndex() <= aStartPaM.GetNode()->Len(), "Index im Wald in Adjust(1)" ); + DBG_ASSERT( aEndPaM.GetIndex() <= aEndPaM.GetNode()->Len(), "Index im Wald in Adjust(2)" ); ContentNode* pStartNode = aStartPaM.GetNode(); ContentNode* pEndNode = aEndPaM.GetNode(); @@ -649,8 +649,8 @@ BOOL EditSelection::Adjust( const ContentList& rNodes ) USHORT nStartNode = rNodes.GetPos( pStartNode ); USHORT nEndNode = rNodes.GetPos( pEndNode ); - DBG_ASSERT( nStartNode != USHRT_MAX, "Node im Wald in Adjust(1)" ) - DBG_ASSERT( nEndNode != USHRT_MAX, "Node im Wald in Adjust(2)" ) + DBG_ASSERT( nStartNode != USHRT_MAX, "Node im Wald in Adjust(1)" ); + DBG_ASSERT( nEndNode != USHRT_MAX, "Node im Wald in Adjust(2)" ); BOOL bSwap = FALSE; if ( nStartNode > nEndNode ) diff --git a/svx/source/editeng/impedit2.cxx b/svx/source/editeng/impedit2.cxx index cc71eb5730..ce740ad01e 100644 --- a/svx/source/editeng/impedit2.cxx +++ b/svx/source/editeng/impedit2.cxx @@ -2242,7 +2242,7 @@ EditPaM ImpEditEngine::ImpConnectParagraphs( ContentNode* pLeft, ContentNode* pR EditPaM ImpEditEngine::DeleteLeftOrRight( const EditSelection& rSel, BYTE nMode, BYTE nDelMode ) { - DBG_ASSERT( !EditSelection( rSel ).DbgIsBuggy( aEditDoc ), "Index im Wald in DeleteLeftOrRight" ) + DBG_ASSERT( !EditSelection( rSel ).DbgIsBuggy( aEditDoc ), "Index im Wald in DeleteLeftOrRight" ); if ( rSel.HasRange() ) // dann nur Sel. loeschen return ImpDeleteSelection( rSel ); @@ -2337,8 +2337,8 @@ EditPaM ImpEditEngine::ImpDeleteSelection( EditSelection aSel ) CursorMoved( aStartPaM.GetNode() ); // nur damit neu eingestellte Attribute verschwinden... CursorMoved( aEndPaM.GetNode() ); // nur damit neu eingestellte Attribute verschwinden... - DBG_ASSERT( aStartPaM.GetIndex() <= aStartPaM.GetNode()->Len(), "Index im Wald in ImpDeleteSelection" ) - DBG_ASSERT( aEndPaM.GetIndex() <= aEndPaM.GetNode()->Len(), "Index im Wald in ImpDeleteSelection" ) + DBG_ASSERT( aStartPaM.GetIndex() <= aStartPaM.GetNode()->Len(), "Index im Wald in ImpDeleteSelection" ); + DBG_ASSERT( aEndPaM.GetIndex() <= aEndPaM.GetNode()->Len(), "Index im Wald in ImpDeleteSelection" ); USHORT nStartNode = aEditDoc.GetPos( aStartPaM.GetNode() ); USHORT nEndNode = aEditDoc.GetPos( aEndPaM.GetNode() ); diff --git a/svx/source/editeng/impedit3.cxx b/svx/source/editeng/impedit3.cxx index 3b1f2a1a94..753db3208e 100644 --- a/svx/source/editeng/impedit3.cxx +++ b/svx/source/editeng/impedit3.cxx @@ -2107,7 +2107,7 @@ void ImpEditEngine::ImpFindKashidas( ContentNode* pNode, USHORT nStart, USHORT n ( 0x629 == cCh || 0x62D == cCh || 0x62F == cCh || 0x627 == cCh || 0x644 == cCh || 0x643 == cCh ) ) { - DBG_ASSERT( 0 != cPrevCh, "No previous character" ) + DBG_ASSERT( 0 != cPrevCh, "No previous character" ); // check if character is connectable to previous character, if ( lcl_ConnectToPrev( cCh, cPrevCh ) ) @@ -2121,7 +2121,7 @@ void ImpEditEngine::ImpFindKashidas( ContentNode* pNode, USHORT nStart, USHORT n // before media Bah if ( nIdx && nIdx + 1 < aWord.Len() && 0x628 == cCh ) { - DBG_ASSERT( 0 != cPrevCh, "No previous character" ) + DBG_ASSERT( 0 != cPrevCh, "No previous character" ); // check if next character is Reh, Yeh or Alef Maksura xub_Unicode cNextCh = aWord.GetChar( nIdx + 1 ); @@ -2140,7 +2140,7 @@ void ImpEditEngine::ImpFindKashidas( ContentNode* pNode, USHORT nStart, USHORT n if ( nIdx && nIdx + 1 == aWord.Len() && 0x60C <= cCh && 0x6FE >= cCh ) { - DBG_ASSERT( 0 != cPrevCh, "No previous character" ) + DBG_ASSERT( 0 != cPrevCh, "No previous character" ); // check if character is connectable to previous character, if ( lcl_ConnectToPrev( cCh, cPrevCh ) ) diff --git a/svx/source/editeng/impedit4.cxx b/svx/source/editeng/impedit4.cxx index b4823d6f34..e7975bb7fd 100644 --- a/svx/source/editeng/impedit4.cxx +++ b/svx/source/editeng/impedit4.cxx @@ -1945,7 +1945,7 @@ void ImpEditEngine::EndSpelling() -----------------------------------------------------------------------*/ void ImpEditEngine::StartSpelling(EditView& rEditView, sal_Bool bMultipleDoc) { - DBG_ASSERT(!pSpellInfo, "pSpellInfo already set?") + DBG_ASSERT(!pSpellInfo, "pSpellInfo already set?"); pSpellInfo = new SpellInfo; pSpellInfo->bMultipleDoc = bMultipleDoc; rEditView.pImpEditView->SetEditSelection( aEditDoc.GetStartPaM() ); @@ -2178,7 +2178,7 @@ void ImpEditEngine::ApplyChangedSentence(EditView& rEditView, const ::svx::Spell { #ifdef SVX_LIGHT #else - DBG_ASSERT(pSpellInfo, "pSpellInfo not initialized") + DBG_ASSERT(pSpellInfo, "pSpellInfo not initialized"); if(pSpellInfo) { UndoActionStart( EDITUNDO_INSERT ); diff --git a/svx/source/editeng/svxacorr.cxx b/svx/source/editeng/svxacorr.cxx index db0152d520..b7861e9154 100644 --- a/svx/source/editeng/svxacorr.cxx +++ b/svx/source/editeng/svxacorr.cxx @@ -1388,7 +1388,7 @@ void SvxAutoCorrect::SaveCplSttExceptList( LanguageType eLang ) #ifndef PRODUCT else { - DBG_ERROR("speichern einer leeren Liste?") + DBG_ERROR("speichern einer leeren Liste?"); } #endif } @@ -1404,7 +1404,7 @@ void SvxAutoCorrect::SaveWrdSttExceptList(LanguageType eLang) #ifndef PRODUCT else { - DBG_ERROR("speichern einer leeren Liste?") + DBG_ERROR("speichern einer leeren Liste?"); } #endif } @@ -1424,7 +1424,7 @@ BOOL SvxAutoCorrect::AddCplSttException( const String& rNew, { pLists = pLangTable->Seek(ULONG(LANGUAGE_DONTKNOW)); } - DBG_ASSERT(pLists, "keine Autokorrekturdatei") + DBG_ASSERT(pLists, "keine Autokorrekturdatei"); return pLists->AddToCplSttExceptList(rNew); } @@ -1441,7 +1441,7 @@ BOOL SvxAutoCorrect::AddWrtSttException( const String& rNew, else if(pLangTable->IsKeyValid(ULONG(LANGUAGE_DONTKNOW))|| CreateLanguageFile(LANGUAGE_DONTKNOW, TRUE)) pLists = pLangTable->Seek(ULONG(LANGUAGE_DONTKNOW)); - DBG_ASSERT(pLists, "keine Autokorrekturdatei") + DBG_ASSERT(pLists, "keine Autokorrekturdatei"); return pLists->AddToWrdSttExceptList(rNew); } @@ -1524,7 +1524,7 @@ BOOL SvxAutoCorrect::GetPrevAutoCorrWord( SvxAutoCorrDoc& rDoc, BOOL SvxAutoCorrect::CreateLanguageFile( LanguageType eLang, BOOL bNewFile ) { - DBG_ASSERT(!pLangTable->IsKeyValid(ULONG(eLang)), "Sprache ist bereits vorhanden") + DBG_ASSERT(!pLangTable->IsKeyValid(ULONG(eLang)), "Sprache ist bereits vorhanden"); String sUserDirFile( GetAutoCorrFileName( eLang, TRUE, FALSE )), sShareDirFile( sUserDirFile ); diff --git a/svx/source/editeng/unolingu.cxx b/svx/source/editeng/unolingu.cxx index 89e040b97e..78005d69ca 100644 --- a/svx/source/editeng/unolingu.cxx +++ b/svx/source/editeng/unolingu.cxx @@ -249,7 +249,7 @@ void SvxLinguConfigUpdate::UpdateAll( sal_Bool bForceCheck ) DBG_ASSERT( nNeedUpdating == 1, "SvxLinguConfigUpdate::UpdateAll already updated!" ); uno::Reference< XLinguServiceManager > xLngSvcMgr( GetLngSvcMgr_Impl() ); - DBG_ASSERT( xLngSvcMgr.is(), "service manager missing") + DBG_ASSERT( xLngSvcMgr.is(), "service manager missing"); if (!xLngSvcMgr.is()) return; diff --git a/svx/source/items/frmitems.cxx b/svx/source/items/frmitems.cxx index c721d7431d..5b1bef3c9c 100644 --- a/svx/source/items/frmitems.cxx +++ b/svx/source/items/frmitems.cxx @@ -4426,7 +4426,7 @@ CntWallpaperItem* SvxBrushItem::CreateCntWallpaperItem() const ---------------------------------------------------------------------------*/ void SvxBrushItem::ApplyGraphicTransparency_Impl() { - DBG_ASSERT(pImpl->pGraphicObject, "no GraphicObject available" ) + DBG_ASSERT(pImpl->pGraphicObject, "no GraphicObject available" ); if(pImpl->pGraphicObject) { GraphicAttr aAttr(pImpl->pGraphicObject->GetAttr()); diff --git a/svx/source/items/numitem.cxx b/svx/source/items/numitem.cxx index 022f41d172..5a4a7c916d 100644 --- a/svx/source/items/numitem.cxx +++ b/svx/source/items/numitem.cxx @@ -86,7 +86,7 @@ SvxNumberType::SvxNumberType(sal_Int16 nType) : Reference < XInterface > xI = xMSF->createInstance( ::rtl::OUString::createFromAscii( "com.sun.star.text.DefaultNumberingProvider" ) ); Reference<XDefaultNumberingProvider> xRet(xI, UNO_QUERY); - DBG_ASSERT(xRet.is(), "service missing: \"com.sun.star.text.DefaultNumberingProvider\"") + DBG_ASSERT(xRet.is(), "service missing: \"com.sun.star.text.DefaultNumberingProvider\""); xFormatter = Reference<XNumberingFormatter> (xRet, UNO_QUERY); } catch(Exception& ) @@ -960,7 +960,7 @@ int SvxNumRule::operator==( const SvxNumRule& rCopy) const * --------------------------------------------------*/ const SvxNumberFormat* SvxNumRule::Get(USHORT nLevel)const { - DBG_ASSERT(nLevel < SVX_MAX_NUM, "falsches Level" ) + DBG_ASSERT(nLevel < SVX_MAX_NUM, "falsches Level" ); if( nLevel < SVX_MAX_NUM ) return aFmtsSet[nLevel] ? aFmts[nLevel] : 0; else @@ -977,7 +977,7 @@ const SvxNumberFormat& SvxNumRule::GetLevel(USHORT nLevel)const pStdOutlineNumFmt = new SvxNumberFormat(SVX_NUM_NUMBER_NONE); } - DBG_ASSERT(nLevel < SVX_MAX_NUM, "falsches Level" ) + DBG_ASSERT(nLevel < SVX_MAX_NUM, "falsches Level" ); return ( ( nLevel < SVX_MAX_NUM ) && aFmts[nLevel] ) ? *aFmts[nLevel] : eNumberingType == SVX_RULETYPE_NUMBERING ? @@ -989,7 +989,7 @@ const SvxNumberFormat& SvxNumRule::GetLevel(USHORT nLevel)const * --------------------------------------------------*/ void SvxNumRule::SetLevel( USHORT i, const SvxNumberFormat& rNumFmt, BOOL bIsValid ) { - DBG_ASSERT(i < SVX_MAX_NUM, "falsches Level" ) + DBG_ASSERT(i < SVX_MAX_NUM, "falsches Level" ); if( (i < SVX_MAX_NUM) && (!aFmtsSet[i] || !(rNumFmt == *Get( i ))) ) { @@ -1004,7 +1004,7 @@ void SvxNumRule::SetLevel( USHORT i, const SvxNumberFormat& rNumFmt, BOOL bIsVal * --------------------------------------------------*/ void SvxNumRule::SetLevel(USHORT nLevel, const SvxNumberFormat* pFmt) { - DBG_ASSERT(nLevel < SVX_MAX_NUM, "falsches Level" ) + DBG_ASSERT(nLevel < SVX_MAX_NUM, "falsches Level" ); if( nLevel < SVX_MAX_NUM ) { diff --git a/svx/source/msfilter/msdffimp.cxx b/svx/source/msfilter/msdffimp.cxx index 3afadc6359..683457b680 100644 --- a/svx/source/msfilter/msdffimp.cxx +++ b/svx/source/msfilter/msdffimp.cxx @@ -346,11 +346,11 @@ void Impl_OlePres::Write( SvStream & rStm ) // Immer auf 1/100 mm, bis Mtf-Loesung gefunden // Annahme (keine Skalierung, keine Org-Verschiebung) DBG_ASSERT( pMtf->GetPrefMapMode().GetScaleX() == Fraction( 1, 1 ), - "X-Skalierung im Mtf" ) + "X-Skalierung im Mtf" ); DBG_ASSERT( pMtf->GetPrefMapMode().GetScaleY() == Fraction( 1, 1 ), - "Y-Skalierung im Mtf" ) + "Y-Skalierung im Mtf" ); DBG_ASSERT( pMtf->GetPrefMapMode().GetOrigin() == Point(), - "Origin-Verschiebung im Mtf" ) + "Origin-Verschiebung im Mtf" ); MapUnit nMU = pMtf->GetPrefMapMode().GetMapUnit(); if( MAP_100TH_MM != nMU ) { @@ -367,7 +367,7 @@ void Impl_OlePres::Write( SvStream & rStm ) } else { - DBG_ERROR( "unknown format" ) + DBG_ERROR( "unknown format" ); } ULONG nEndPos = rStm.Tell(); rStm.Seek( nPos ); diff --git a/svx/source/msfilter/msocximex.cxx b/svx/source/msfilter/msocximex.cxx index fac5e6884a..415c5b4bec 100644 --- a/svx/source/msfilter/msocximex.cxx +++ b/svx/source/msfilter/msocximex.cxx @@ -1348,7 +1348,7 @@ const uno::Reference< container::XIndexContainer >& xFormPropSet->setPropertyValue( WW8_ASCII2STR("Name"), aTmp ); uno::Reference< form::XForm > xForm( xCreate, uno::UNO_QUERY ); - DBG_ASSERT(xForm.is(), "keine Form?") + DBG_ASSERT(xForm.is(), "keine Form?"); uno::Reference< container::XIndexContainer > xForms( xNameCont, uno::UNO_QUERY ); diff --git a/svx/source/options/htmlcfg.cxx b/svx/source/options/htmlcfg.cxx index af5df740bd..d88542e014 100644 --- a/svx/source/options/htmlcfg.cxx +++ b/svx/source/options/htmlcfg.cxx @@ -128,7 +128,7 @@ SvxHtmlOptions::SvxHtmlOptions() : const Sequence<OUString>& aNames = GetPropertyNames(); Sequence<Any> aValues = GetProperties(aNames); const Any* pValues = aValues.getConstArray(); - DBG_ASSERT(aValues.getLength() == aNames.getLength(), "GetProperties failed") + DBG_ASSERT(aValues.getLength() == aNames.getLength(), "GetProperties failed"); if(aValues.getLength() == aNames.getLength()) { pImp->nFlags = 0; diff --git a/svx/source/options/optlingu.cxx b/svx/source/options/optlingu.cxx index adcd0afc96..4fef35c855 100644 --- a/svx/source/options/optlingu.cxx +++ b/svx/source/options/optlingu.cxx @@ -297,7 +297,7 @@ void lcl_SetCheckButton( SvLBoxEntry* pEntry, BOOL bCheck ) { SvLBoxButton* pItem = (SvLBoxButton*)(pEntry->GetFirstItem(SV_ITEM_ID_LBOXBUTTON)); - DBG_ASSERT(pItem,"SetCheckButton:Item not found") + DBG_ASSERT(pItem,"SetCheckButton:Item not found"); if (((SvLBoxItem*)pItem)->IsA() == SV_ITEM_ID_LBOXBUTTON) { if (bCheck) @@ -732,7 +732,7 @@ void lcl_MergeDisplayArray( { DBG_ASSERT( !pEntry->xSpell.is() && pEntry->sSpellImplName.getLength() == 0, - "merge conflict" ) + "merge conflict" ); pEntry->sSpellImplName = rToAdd.sSpellImplName; pEntry->xSpell = rToAdd.xSpell; } @@ -740,7 +740,7 @@ void lcl_MergeDisplayArray( { DBG_ASSERT( !pEntry->xHyph.is() && pEntry->sHyphImplName.getLength() == 0, - "merge conflict" ) + "merge conflict" ); pEntry->sHyphImplName = rToAdd.sHyphImplName; pEntry->xHyph = rToAdd.xHyph; } @@ -748,7 +748,7 @@ void lcl_MergeDisplayArray( { DBG_ASSERT( !pEntry->xThes.is() && pEntry->sThesImplName.getLength() == 0, - "merge conflict" ) + "merge conflict" ); pEntry->sThesImplName = rToAdd.sThesImplName; pEntry->xThes = rToAdd.xThes; } @@ -769,7 +769,7 @@ SvxLinguData_Impl::SvxLinguData_Impl() : uno::Reference < XInterface > xI = xMSF->createInstance( C2U( "com.sun.star.linguistic2.LinguServiceManager" ) ); xLinguSrvcMgr = uno::Reference<XLinguServiceManager>(xI, UNO_QUERY); - DBG_ASSERT(xLinguSrvcMgr.is(), "No linguistic service available!") + DBG_ASSERT(xLinguSrvcMgr.is(), "No linguistic service available!"); if(xLinguSrvcMgr.is()) { Locale aCurrentLocale; diff --git a/svx/source/options/srchcfg.cxx b/svx/source/options/srchcfg.cxx index b66baa6cb2..60ef1a1143 100644 --- a/svx/source/options/srchcfg.cxx +++ b/svx/source/options/srchcfg.cxx @@ -240,7 +240,7 @@ sal_uInt16 SvxSearchConfig::Count() ---------------------------------------------------------------------------*/ const SvxSearchEngineData& SvxSearchConfig::GetData(sal_uInt16 nPos) { - DBG_ASSERT(nPos < pImpl->aEngineArr.Count(), "wrong array index") + DBG_ASSERT(nPos < pImpl->aEngineArr.Count(), "wrong array index"); return *pImpl->aEngineArr[nPos]; } /* -----------------------------19.03.01 10:38-------------------------------- diff --git a/svx/source/outliner/outliner.cxx b/svx/source/outliner/outliner.cxx index d055a2c9c5..9e29502f25 100644 --- a/svx/source/outliner/outliner.cxx +++ b/svx/source/outliner/outliner.cxx @@ -147,7 +147,7 @@ Paragraph* Outliner::Insert(const XubString& rText, ULONG nAbsPos, sal_Int16 nDe pEditEngine->SetUpdateMode( bUpdate ); } bFirstParaIsEmpty = FALSE; - DBG_ASSERT(pEditEngine->GetParagraphCount()==pParaList->GetParagraphCount(),"SetText failed") + DBG_ASSERT(pEditEngine->GetParagraphCount()==pParaList->GetParagraphCount(),"SetText failed"); return pPara; } @@ -393,7 +393,7 @@ OutlinerParaObject* Outliner::CreateParaObject( USHORT nStartPara, USHORT nCount void Outliner::SetText( const XubString& rText, Paragraph* pPara ) { DBG_CHKTHIS(Outliner,0); - DBG_ASSERT(pPara,"SetText:No Para") + DBG_ASSERT(pPara,"SetText:No Para"); BOOL bUpdate = pEditEngine->GetUpdateMode(); pEditEngine->SetUpdateMode( FALSE ); @@ -470,7 +470,7 @@ void Outliner::SetText( const XubString& rText, Paragraph* pPara ) } } - DBG_ASSERT(pParaList->GetParagraphCount()==pEditEngine->GetParagraphCount(),"SetText failed!") + DBG_ASSERT(pParaList->GetParagraphCount()==pEditEngine->GetParagraphCount(),"SetText failed!"); bFirstParaIsEmpty = FALSE; ImplBlockInsertionCallbacks( FALSE ); pEditEngine->SetUpdateMode( bUpdate ); @@ -597,8 +597,8 @@ void Outliner::SetText( const OutlinerParaObject& rPObj ) ImplBlockInsertionCallbacks( FALSE ); pEditEngine->SetUpdateMode( bUpdate ); - DBG_ASSERT( pParaList->GetParagraphCount()==rPObj.Count(),"SetText failed") - DBG_ASSERT( pEditEngine->GetParagraphCount()==rPObj.Count(),"SetText failed") + DBG_ASSERT( pParaList->GetParagraphCount()==rPObj.Count(),"SetText failed"); + DBG_ASSERT( pEditEngine->GetParagraphCount()==rPObj.Count(),"SetText failed"); } void Outliner::AddText( const OutlinerParaObject& rPObj ) @@ -629,7 +629,7 @@ void Outliner::AddText( const OutlinerParaObject& rPObj ) pPara = new Paragraph( rPObj.pParagraphDataArr[ n ] ); pParaList->Insert( pPara, LIST_APPEND ); USHORT nP = sal::static_int_cast< USHORT >(nPara+n); - DBG_ASSERT(pParaList->GetAbsPos(pPara)==nP,"AddText:Out of sync") + DBG_ASSERT(pParaList->GetAbsPos(pPara)==nP,"AddText:Out of sync"); ImplInitDepth( nP, pPara->GetDepth(), FALSE ); } DBG_ASSERT( pEditEngine->GetParagraphCount()==pParaList->GetParagraphCount(), "SetText: OutOfSync" ); @@ -1409,7 +1409,7 @@ void Outliner::DepthChangedHdl() ULONG Outliner::GetAbsPos( Paragraph* pPara ) { DBG_CHKTHIS(Outliner,0); - DBG_ASSERT(pPara,"GetAbsPos:No Para") + DBG_ASSERT(pPara,"GetAbsPos:No Para"); return pParaList->GetAbsPos( pPara ); } diff --git a/svx/source/outliner/outlobj.cxx b/svx/source/outliner/outlobj.cxx index 8eebbd05cf..5097e944d6 100644 --- a/svx/source/outliner/outlobj.cxx +++ b/svx/source/outliner/outlobj.cxx @@ -169,10 +169,10 @@ OutlinerParaObject* OutlinerParaObject::Create( SvStream& rStream, SfxItemPool* while ( nCount ) { EditTextObject* pText = EditTextObject::Create( rStream, NULL ); - DBG_ASSERT(pText,"CreateEditTextObject failed") + DBG_ASSERT(pText,"CreateEditTextObject failed"); sal_uInt32 nSync = 0; rStream >> nSync; - DBG_ASSERT(nSync==nSyncRef,"Stream out of sync") + DBG_ASSERT(nSync==nSyncRef,"Stream out of sync"); USHORT nDepth; rStream >> nDepth; Paragraph* pPara = new Paragraph( nDepth ); @@ -216,7 +216,7 @@ OutlinerParaObject* OutlinerParaObject::Create( SvStream& rStream, SfxItemPool* { sal_uInt32 _nSync = 0; rStream >> _nSync; - DBG_ASSERT(_nSync==nSyncRef,"Stream out of sync") + DBG_ASSERT(_nSync==nSyncRef,"Stream out of sync"); } } if( nVersion == 3 ) diff --git a/svx/source/outliner/outlvw.cxx b/svx/source/outliner/outlvw.cxx index 1456c638ae..705d219166 100644 --- a/svx/source/outliner/outlvw.cxx +++ b/svx/source/outliner/outlvw.cxx @@ -648,7 +648,7 @@ void OutlinerView::Indent( short nDiff ) // Absatz gesucht und aufgeplustert. #ifdef DBG_UTIL Paragraph* _pPara = pOwner->pParaList->GetParagraph( aSel.nStartPara ); - DBG_ASSERT(_pPara->IsVisible(),"Selected Paragraph invisible ?!") + DBG_ASSERT(_pPara->IsVisible(),"Selected Paragraph invisible ?!"); #endif Paragraph* pPrev= pOwner->pParaList->GetParagraph( aSel.nStartPara-1 ); diff --git a/svx/source/stbctrls/zoomsliderctrl.cxx b/svx/source/stbctrls/zoomsliderctrl.cxx index 8a03c1c183..a452521ed2 100644 --- a/svx/source/stbctrls/zoomsliderctrl.cxx +++ b/svx/source/stbctrls/zoomsliderctrl.cxx @@ -227,7 +227,7 @@ void SvxZoomSliderControl::StateChanged( USHORT /*nSID*/, SfxItemState eState, c mpImpl->mnMinZoom < mpImpl->mnSliderCenter && mpImpl->mnMaxZoom >= mpImpl->mnCurrentZoom && mpImpl->mnMaxZoom > mpImpl->mnSliderCenter, - "Looks like the zoom slider item is corrupted" ) + "Looks like the zoom slider item is corrupted" ); const com::sun::star::uno::Sequence < sal_Int32 > rSnappingPoints = static_cast<const SvxZoomSliderItem*>( pState )->GetSnappingPoints(); mpImpl->maSnappingPointOffsets.clear(); diff --git a/svx/source/svdraw/svdotext.cxx b/svx/source/svdraw/svdotext.cxx index b34ba12ccf..be501563c5 100644 --- a/svx/source/svdraw/svdotext.cxx +++ b/svx/source/svdraw/svdotext.cxx @@ -294,7 +294,7 @@ SdrTextObj::~SdrTextObj() void SdrTextObj::FitFrameToTextSize() { - DBG_ASSERT(pModel!=NULL,"SdrTextObj::FitFrameToTextSize(): pModel=NULL!") + DBG_ASSERT(pModel!=NULL,"SdrTextObj::FitFrameToTextSize(): pModel=NULL!"); ImpJustifyRect(aRect); SdrText* pText = getActiveText(); diff --git a/svx/source/tbxctrls/linectrl.cxx b/svx/source/tbxctrls/linectrl.cxx index 206d263033..dca3dd00e7 100644 --- a/svx/source/tbxctrls/linectrl.cxx +++ b/svx/source/tbxctrls/linectrl.cxx @@ -273,7 +273,7 @@ void SvxLineWidthToolBoxControl::StateChanged( if ( eState == SFX_ITEM_AVAILABLE ) { - DBG_ASSERT( pState->ISA(XLineWidthItem), "falscher ItemType" ) + DBG_ASSERT( pState->ISA(XLineWidthItem), "falscher ItemType" ); // Core-Unit an MetricField uebergeben // Darf nicht in CreateItemWin() geschehen! diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx index 36c79be32f..1d0b4c155c 100644 --- a/svx/source/tbxctrls/tbcontrl.cxx +++ b/svx/source/tbxctrls/tbcontrl.cxx @@ -1821,7 +1821,7 @@ struct SvxStyleToolBoxControl::Impl } catch(const uno::Exception& ) { - DBG_ERROR("error while initializing style names") + DBG_ERROR("error while initializing style names"); } } }; @@ -2127,7 +2127,7 @@ void SvxStyleToolBoxControl::Update() if ( !pItem ) { - DBG_WARNING( "Unknown Family" ) // can happen + DBG_WARNING( "Unknown Family" ); // can happen } } else if ( pPool != pStyleSheetPool ) diff --git a/svx/source/unodraw/unoprov.cxx b/svx/source/unodraw/unoprov.cxx index 612482ae9e..c07f7ae35b 100644 --- a/svx/source/unodraw/unoprov.cxx +++ b/svx/source/unodraw/unoprov.cxx @@ -955,7 +955,7 @@ void SvxUnoPropertyMapProvider::Sort(USHORT nId) SfxItemPropertyMap* SvxUnoPropertyMapProvider::GetMap(UINT16 nPropertyId) { - DBG_ASSERT(nPropertyId < SVXMAP_END, "Id ?" ) + DBG_ASSERT(nPropertyId < SVXMAP_END, "Id ?" ); if(!aMapArr[nPropertyId]) { switch(nPropertyId) { case SVXMAP_SHAPE: aMapArr[SVXMAP_SHAPE]=ImplGetSvxShapePropertyMap(); break; |