summaryrefslogtreecommitdiffstats
path: root/sc/source/ui/pagedlg
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/pagedlg')
-rw-r--r--sc/source/ui/pagedlg/areasdlg.cxx2
-rw-r--r--sc/source/ui/pagedlg/tphfedit.cxx8
-rw-r--r--sc/source/ui/pagedlg/tptable.cxx2
3 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/ui/pagedlg/areasdlg.cxx b/sc/source/ui/pagedlg/areasdlg.cxx
index 7b73e7e56599..fab711f70ffc 100644
--- a/sc/source/ui/pagedlg/areasdlg.cxx
+++ b/sc/source/ui/pagedlg/areasdlg.cxx
@@ -150,7 +150,7 @@ ScPrintAreasDlg::ScPrintAreasDlg( SfxBindings* pB, SfxChildWindow* pCW, Window*
ScTabViewShell* pScViewSh = PTR_CAST( ScTabViewShell, SfxViewShell::Current() );
ScDocShell* pScDocSh = PTR_CAST( ScDocShell, SfxObjectShell::Current() );
- DBG_ASSERT( pScDocSh, "Current DocumentShell not found :-(" );
+ OSL_ENSURE( pScDocSh, "Current DocumentShell not found :-(" );
pDoc = pScDocSh->GetDocument();
diff --git a/sc/source/ui/pagedlg/tphfedit.cxx b/sc/source/ui/pagedlg/tphfedit.cxx
index 3a8730b5b09b..65e72318d334 100644
--- a/sc/source/ui/pagedlg/tphfedit.cxx
+++ b/sc/source/ui/pagedlg/tphfedit.cxx
@@ -207,8 +207,8 @@ void ScEditWindow::SetCharAttriutes()
ScTabViewShell* pTabViewSh = PTR_CAST(ScTabViewShell, SfxViewShell::Current());
- DBG_ASSERT( pDocSh, "Current DocShell not found" );
- DBG_ASSERT( pViewSh, "Current ViewShell not found" );
+ OSL_ENSURE( pDocSh, "Current DocShell not found" );
+ OSL_ENSURE( pViewSh, "Current ViewShell not found" );
if ( pDocSh && pViewSh )
{
@@ -217,11 +217,11 @@ void ScEditWindow::SetCharAttriutes()
SfxItemSet aSet( pEdView->GetAttribs() );
ScAbstractDialogFactory* pFact = ScAbstractDialogFactory::Create();
- DBG_ASSERT(pFact, "ScAbstractFactory create fail!");
+ OSL_ENSURE(pFact, "ScAbstractFactory create fail!");
SfxAbstractTabDialog* pDlg = pFact->CreateScCharDlg( GetParent(), &aSet,
pDocSh,RID_SCDLG_CHAR );
- DBG_ASSERT(pDlg, "Dialog create fail!");
+ OSL_ENSURE(pDlg, "Dialog create fail!");
pDlg->SetText( ScGlobal::GetRscString( STR_TEXTATTRS ) );
if ( pDlg->Execute() == RET_OK )
{
diff --git a/sc/source/ui/pagedlg/tptable.cxx b/sc/source/ui/pagedlg/tptable.cxx
index 59d58f2913db..79c202d8c202 100644
--- a/sc/source/ui/pagedlg/tptable.cxx
+++ b/sc/source/ui/pagedlg/tptable.cxx
@@ -268,7 +268,7 @@ void ScTablePage::Reset( const SfxItemSet& rCoreSet )
if( aLbScaleMode.GetSelectEntryCount() == 0 )
{
// fall back to 100%
- DBG_ERRORFILE( "ScTablePage::Reset - missing scaling item" );
+ OSL_FAIL( "ScTablePage::Reset - missing scaling item" );
aLbScaleMode.SelectEntryPos( SC_TPTABLE_SCALE_PERCENT );
aEdScaleAll.SetValue( 100 );
}