summaryrefslogtreecommitdiff
path: root/sw/source/core/objectpositioning/anchoredobjectposition.cxx
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2010-11-25 18:50:04 +0100
committerJan Holesovsky <kendy@suse.cz>2010-11-25 18:50:04 +0100
commit1a6bf8c433b128606af043a01a1366eab00b3d68 (patch)
tree446ad553d122fad153e3a28a52770dd7bd671e82 /sw/source/core/objectpositioning/anchoredobjectposition.cxx
parent2b20a3ef7a0b2ff030945d679b897c2062d7e0ff (diff)
parentc16ba8a04fd4599e439e7e039705e41691c43acb (diff)
Merge remote branch 'origin/libreoffice-3-3'
Conflicts: sw/inc/SwNumberTree.hxx sw/inc/calbck.hxx sw/inc/tox.hxx sw/inc/viscrs.hxx sw/source/core/doc/docnum.cxx sw/source/core/docnode/finalthreadmanager.cxx sw/source/core/docnode/ndnum.cxx sw/source/core/docnode/ndtbl.cxx sw/source/core/draw/dcontact.cxx sw/source/core/edit/edlingu.cxx sw/source/core/edit/ednumber.cxx sw/source/core/except/errhdl.cxx sw/source/core/fields/chpfld.cxx sw/source/core/fields/fldbas.cxx sw/source/core/frmedt/fetab.cxx sw/source/core/layout/flycnt.cxx sw/source/core/layout/makefile.mk sw/source/core/layout/pagechg.cxx sw/source/core/layout/tabfrm.cxx sw/source/core/ole/ndole.cxx sw/source/core/text/makefile.mk sw/source/core/txtnode/txtedt.cxx sw/source/filter/basflt/fltini.cxx sw/source/filter/html/swhtml.cxx sw/source/filter/ww1/fltshell.cxx sw/source/filter/ww1/w1sprm.cxx sw/source/filter/ww8/wrtw8nds.cxx sw/source/filter/ww8/wrtw8num.cxx sw/source/filter/ww8/ww8par3.cxx sw/source/filter/ww8/ww8par5.cxx sw/source/filter/ww8/ww8par6.cxx sw/source/filter/xml/xmltble.cxx sw/source/filter/xml/xmltbli.cxx sw/source/ui/dbui/dbinsdlg.cxx sw/source/ui/dbui/mmoutputpage.cxx sw/source/ui/dialog/swdlgfact.cxx sw/source/ui/docvw/edtwin.cxx sw/source/ui/docvw/srcedtw.cxx
Diffstat (limited to 'sw/source/core/objectpositioning/anchoredobjectposition.cxx')
-rw-r--r--sw/source/core/objectpositioning/anchoredobjectposition.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/sw/source/core/objectpositioning/anchoredobjectposition.cxx b/sw/source/core/objectpositioning/anchoredobjectposition.cxx
index e664eed096cc..29004a0e68f3 100644
--- a/sw/source/core/objectpositioning/anchoredobjectposition.cxx
+++ b/sw/source/core/objectpositioning/anchoredobjectposition.cxx
@@ -75,7 +75,7 @@ SwAnchoredObjectPosition::SwAnchoredObjectPosition( SdrObject& _rDrawObj )
( !mrDrawObj.ISA(SdrVirtObj) && // 'master' drawing object
!mrDrawObj.ISA(SwFlyDrawObj) ); // - indirectly checked
(void) bObjOfExceptedType;
- ASSERT( bObjOfExceptedType,
+ OSL_ENSURE( bObjOfExceptedType,
"SwAnchoredObjectPosition(..) - object of unexcepted type!" );
#endif
@@ -100,7 +100,7 @@ void SwAnchoredObjectPosition::_GetInfoAboutObj()
// determine contact object
{
mpContact = static_cast<SwContact*>(GetUserCall( &mrDrawObj ));
- ASSERT( mpContact,
+ OSL_ENSURE( mpContact,
"SwAnchoredObjectPosition::_GetInfoAboutObj() - missing SwContact-object." );
}
@@ -108,7 +108,7 @@ void SwAnchoredObjectPosition::_GetInfoAboutObj()
{
// OD 2004-03-30 #i26791#
mpAnchoredObj = mpContact->GetAnchoredObj( &mrDrawObj );
- ASSERT( mpAnchoredObj,
+ OSL_ENSURE( mpAnchoredObj,
"SwAnchoredObjectPosition::_GetInfoAboutObj() - missing anchored object." );
}
@@ -116,7 +116,7 @@ void SwAnchoredObjectPosition::_GetInfoAboutObj()
{
// OD 2004-03-23 #i26791#
mpAnchorFrm = mpAnchoredObj->AnchorFrm();
- ASSERT( mpAnchorFrm,
+ OSL_ENSURE( mpAnchorFrm,
"SwAnchoredObjectPosition::_GetInfoAboutObj() - missing anchor frame." );
}
@@ -124,7 +124,7 @@ void SwAnchoredObjectPosition::_GetInfoAboutObj()
{
// --> OD 2004-07-01 #i28701#
mpFrmFmt = &mpAnchoredObj->GetFrmFmt();
- ASSERT( mpFrmFmt,
+ OSL_ENSURE( mpFrmFmt,
"<SwAnchoredObjectPosition::_GetInfoAboutObj() - missing frame format." );
}
@@ -305,7 +305,7 @@ void SwAnchoredObjectPosition::_GetVertAlignmentValues(
}
else
{
- ASSERT( false,
+ OSL_ENSURE( false,
"<SwAnchoredObjectPosition::_GetVertAlignmentValues(..)> - invalid relative alignment" );
}
}
@@ -320,7 +320,7 @@ void SwAnchoredObjectPosition::_GetVertAlignmentValues(
}
else
{
- ASSERT( false,
+ OSL_ENSURE( false,
"<SwAnchoredObjectPosition::_GetVertAlignmentValues(..)> - invalid relative alignment" );
}
}
@@ -328,7 +328,7 @@ void SwAnchoredObjectPosition::_GetVertAlignmentValues(
// no break here, because text::RelOrientation::CHAR is invalid, if !mbAnchorToChar
default:
{
- ASSERT( false,
+ OSL_ENSURE( false,
"<SwAnchoredObjectPosition::_GetVertAlignmentValues(..)> - invalid relative alignment" );
}
}
@@ -386,7 +386,7 @@ SwTwips SwAnchoredObjectPosition::_GetVertRelPos(
break;
default:
{
- ASSERT( false,
+ OSL_ENSURE( false,
"<SwAnchoredObjectPosition::_GetVertRelPos(..) - invalid vertical positioning" );
}
}
@@ -876,7 +876,7 @@ SwTwips SwAnchoredObjectPosition::_AdjustHoriRelPosForDrawAside(
if ( !GetAnchorFrm().ISA(SwTxtFrm) ||
!GetAnchoredObj().ISA(SwFlyAtCntFrm) )
{
- ASSERT( false,
+ OSL_ENSURE( false,
"<SwAnchoredObjectPosition::_AdjustHoriRelPosForDrawAside(..) - usage for wrong anchor type" );
return _nProposedRelPosX;
}