summaryrefslogtreecommitdiff
path: root/sw/source/core/docnode/swbaslnk.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/docnode/swbaslnk.cxx')
-rw-r--r--sw/source/core/docnode/swbaslnk.cxx19
1 files changed, 9 insertions, 10 deletions
diff --git a/sw/source/core/docnode/swbaslnk.cxx b/sw/source/core/docnode/swbaslnk.cxx
index d34f60952e2f..d04fd3fee03b 100644
--- a/sw/source/core/docnode/swbaslnk.cxx
+++ b/sw/source/core/docnode/swbaslnk.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -37,12 +38,9 @@
#include <comphelper/mediadescriptor.hxx>
#include <sfx2/docfile.hxx>
#include <sfx2/lnkbase.hxx>
-#include <sfx2/linkmgr.hxx>
#include <sfx2/objsh.hxx>
#include <editeng/boxitem.hxx>
-#ifndef _SVX_SVXIDS_HRC
#include <svx/svxids.hrc> // fuer die EventIds
-#endif
#include <sfx2/linkmgr.hxx>
#include <svtools/soerr.hxx>
#include <fmtfsize.hxx>
@@ -74,10 +72,10 @@ SV_IMPL_REF( SwServerObject )
void lcl_CallModify( SwGrfNode& rGrfNd, SfxPoolItem& rItem )
{
- //JP 4.7.2001: call fist all not SwNoTxtFrames, then the SwNoTxtFrames.
+ //call fist all not SwNoTxtFrames, then the SwNoTxtFrames.
// The reason is, that in the SwNoTxtFrames the Graphic
// after a Paint will be swapped out! So all other "behind"
- // them havent't a loaded Graphic. - #86501#
+ // them havent't a loaded Graphic.
rGrfNd.LockModify();
SwClientIter aIter( rGrfNd ); // TODO
@@ -101,7 +99,7 @@ void SwBaseLink::DataChanged( const String& rMimeType,
{
if( !pCntntNode )
{
- ASSERT(!this, "DataChanged ohne ContentNode" );
+ OSL_ENSURE(!this, "DataChanged ohne ContentNode" );
return ;
}
@@ -195,8 +193,7 @@ void SwBaseLink::DataChanged( const String& rMimeType,
// zugreifen zu muessen (sonst erfolgt ein SwapIn!).
if( bGraphicArrived )
{
- // Bug #34735#: immer mit der korrekten Grafik-Size
- // arbeiten
+ // immer mit der korrekten Grafik-Size arbeiten
if( aGrfSz.Height() && aGrfSz.Width() &&
aSz.Height() && aSz.Width() &&
aGrfSz != aSz )
@@ -417,7 +414,7 @@ sal_Bool SwBaseLink::SwapIn( sal_Bool bWaitForData, sal_Bool bNativFormat )
if( bWaitForData && !GetObj() )
{
- ASSERT( !this, "das SvxFileObject wurde in einem GetData geloescht!" );
+ OSL_ENSURE( !this, "das SvxFileObject wurde in einem GetData geloescht!" );
bRes = sal_False;
}
else if( 0 != ( bRes = aValue.hasValue() ) )
@@ -474,7 +471,7 @@ const SwNode* SwBaseLink::GetAnchor() const
}
}
- ASSERT( !this, "GetAnchor nicht ueberlagert" );
+ OSL_ENSURE( !this, "GetAnchor nicht ueberlagert" );
return 0;
}
@@ -501,3 +498,5 @@ sal_Bool SwBaseLink::IsInRange( sal_uLong, sal_uLong, xub_StrLen, xub_StrLen ) c
SwBaseLink::~SwBaseLink()
{
}
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */