summaryrefslogtreecommitdiff
path: root/sw/inc/swrect.hxx
diff options
context:
space:
mode:
authorRobert Roth <robert.roth.off@gmail.com>2010-11-04 01:06:10 +0200
committerCaolán McNamara <caolanm@redhat.com>2010-11-08 12:56:35 +0000
commita3eaf5d08b5a0a0a2caa2df0f0f44e7235dc6f7e (patch)
treea282697d5da2542832fd5b24dd5977a4b7759ed0 /sw/inc/swrect.hxx
parentf1851b84abe2316e50d4f135e4a169c852821bfa (diff)
Commented code fragments, meaningless and bogus comments removed.
Diffstat (limited to 'sw/inc/swrect.hxx')
-rw-r--r--sw/inc/swrect.hxx24
1 files changed, 10 insertions, 14 deletions
diff --git a/sw/inc/swrect.hxx b/sw/inc/swrect.hxx
index 82dddd49cecc..186af3878cbf 100644
--- a/sw/inc/swrect.hxx
+++ b/sw/inc/swrect.hxx
@@ -44,10 +44,10 @@ public:
inline SwRect( const Point& rLT, const Point& rRB );
inline SwRect( long X, long Y, long Width, long Height );
- //SV-SS z.B. SwRect( pWin->GetClipRect() );
+ //SV-SS e.g. SwRect( pWin->GetClipRect() );
SwRect( const Rectangle &rRect );
- //Set-Methoden
+ //Set-Methods
inline void Chg( const Point& rNP, const Size &rNS );
inline void Pos( const Point& rNew );
inline void Pos( const long nNewX, const long nNewY );
@@ -60,7 +60,7 @@ public:
inline void Top( const long nTop );
inline void Bottom( const long nBottom );
- //Get-Methoden
+ //Get-Methods
inline const Point &Pos() const;
inline const Size &SSize() const;
inline long Width() const;
@@ -104,13 +104,9 @@ public:
inline SwRect &operator+=( const Size &rSz );
inline SwRect &operator-=( const Size &rSz );
- //SV-SS z.B. pWin->DrawRect( aSwRect.SVRect() );
+ //SV-SS e.g. pWin->DrawRect( aSwRect.SVRect() );
inline Rectangle SVRect() const;
- //Zortech wuerde hier fehlerhaften Code erzeugen.
-// inline operator SRectangle() const;
-// inline operator Rectangle() const { return Rectangle( aPos, aSize ); }
-
// Ausgabeoperator fuer die Debugging-Gemeinde
friend SvStream &operator<<( SvStream &rStream, const SwRect &rRect );
@@ -158,7 +154,7 @@ public:
BOOL OverStepRight( long ) const;
};
-// Implementation in in swrect.cxx
+// Implementation in swrect.cxx
extern SvStream &operator<<( SvStream &rStream, const SwRect &rRect );
typedef void (SwRect:: *SwRectSet)( const long nNew );
@@ -170,7 +166,7 @@ typedef long (SwRect:: *SwRectDist)( long ) const;
typedef void (SwRect:: *SwRectSetTwice)( long, long );
typedef void (SwRect:: *SwRectSetPos)( const Point& );
-//---------------------------------- Set-Methoden
+// Set-Methods
inline void SwRect::Chg( const Point& rNP, const Size &rNS )
{
m_Point = rNP;
@@ -221,7 +217,7 @@ inline void SwRect::Bottom( const long nBottom )
m_Size.setHeight(nBottom - m_Point.getY() + 1);
}
-//----------------------------------- Get-Methoden
+// Get-Methods
inline const Point &SwRect::Pos() const
{
return m_Point;
@@ -263,7 +259,7 @@ inline long SwRect::Bottom() const
return m_Size.getHeight() ? m_Point.getY() + m_Size.getHeight() - 1 : m_Point.getY();
}
-//----------------------------------- operatoren
+// operators
inline SwRect &SwRect::operator = ( const SwRect &rRect )
{
m_Point = rRect.m_Point;
@@ -304,7 +300,7 @@ inline SwRect &SwRect::operator-=( const Size &rSz )
}
-//--------------------------- Sonstiges
+// other
inline Rectangle SwRect::SVRect() const
{
ASSERT( !IsEmpty(), "SVRect() without Width or Height" );
@@ -334,7 +330,7 @@ inline void SwRect::Clear()
m_Size.setHeight(0);
}
-//-------------------------- CToren
+// constructors
inline SwRect::SwRect() :
m_Point( 0, 0 ),
m_Size( 0, 0 )