Kaydet (Commit) 1938b5bf authored tarafından Jens-Heiner Rechtien's avatar Jens-Heiner Rechtien

INTEGRATION: CWS warnings01 (1.11.222); FILE MERGED

2006/05/04 14:47:01 os 1.11.222.2: warnings removed
2006/04/20 14:49:41 cl 1.11.222.1: warning free code changes
üst 9175bb88
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: pagectrl.cxx,v $ * $RCSfile: pagectrl.cxx,v $
* *
* $Revision: 1.11 $ * $Revision: 1.12 $
* *
* last change: $Author: rt $ $Date: 2005-09-08 21:50:50 $ * last change: $Author: hr $ $Date: 2006-06-19 15:25:07 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -35,8 +35,6 @@ ...@@ -35,8 +35,6 @@
// include --------------------------------------------------------------- // include ---------------------------------------------------------------
#pragma hdrstop
#define ITEMID_BOX 0 #define ITEMID_BOX 0
#define ITEMID_FRAMEDIR 0 #define ITEMID_FRAMEDIR 0
#ifndef _SV_BITMAP_HXX #ifndef _SV_BITMAP_HXX
...@@ -132,7 +130,7 @@ SvxPageWindow::~SvxPageWindow() ...@@ -132,7 +130,7 @@ SvxPageWindow::~SvxPageWindow()
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
void __EXPORT SvxPageWindow::Paint( const Rectangle& rRect ) void __EXPORT SvxPageWindow::Paint( const Rectangle& )
{ {
Fraction aXScale( aWinSize.Width(), std::max( (long) (aSize.Width() * 2 + aSize.Width() / 8), 1L ) ); Fraction aXScale( aWinSize.Width(), std::max( (long) (aSize.Width() * 2 + aSize.Width() / 8), 1L ) );
Fraction aYScale( aWinSize.Height(), std::max( aSize.Height(), 1L ) ); Fraction aYScale( aWinSize.Height(), std::max( aSize.Height(), 1L ) );
...@@ -198,8 +196,8 @@ void SvxPageWindow::DrawPage( const Point& rOrg, const BOOL bSecond, const BOOL ...@@ -198,8 +196,8 @@ void SvxPageWindow::DrawPage( const Point& rOrg, const BOOL bSecond, const BOOL
{ {
SetLineColor( Color(COL_TRANSPARENT) ); SetLineColor( Color(COL_TRANSPARENT) );
SetFillColor( rDlgColor ); SetFillColor( rDlgColor );
Size aWinSize(GetOutputSize()); Size _aWinSize(GetOutputSize());
DrawRect( Rectangle( Point(0,0), aWinSize ) ); DrawRect( Rectangle( Point(0,0), _aWinSize ) );
} }
SetLineColor( rFieldTextColor ); SetLineColor( rFieldTextColor );
// Schatten // Schatten
...@@ -351,14 +349,14 @@ void SvxPageWindow::DrawPage( const Point& rOrg, const BOOL bSecond, const BOOL ...@@ -351,14 +349,14 @@ void SvxPageWindow::DrawPage( const Point& rOrg, const BOOL bSecond, const BOOL
long nW = aRect.GetWidth(), nH = aRect.GetHeight(); long nW = aRect.GetWidth(), nH = aRect.GetHeight();
long nTW = CELL_WIDTH * 3, nTH = CELL_HEIGHT * 3; long nTW = CELL_WIDTH * 3, nTH = CELL_HEIGHT * 3;
long nLeft = bHorz ? aRect.Left() + ((nW - nTW) / 2) : aRect.Left(); long _nLeft = bHorz ? aRect.Left() + ((nW - nTW) / 2) : aRect.Left();
long nTop = bVert ? aRect.Top() + ((nH - nTH) / 2) : aRect.Top(); long _nTop = bVert ? aRect.Top() + ((nH - nTH) / 2) : aRect.Top();
Rectangle aCellRect( Point( nLeft, nTop ), Size( CELL_WIDTH, CELL_HEIGHT ) ); Rectangle aCellRect( Point( _nLeft, _nTop ), Size( CELL_WIDTH, CELL_HEIGHT ) );
for ( USHORT i = 0; i < 3; ++i ) for ( USHORT i = 0; i < 3; ++i )
{ {
aCellRect.Left() = nLeft; aCellRect.Left() = _nLeft;
aCellRect.Right() = nLeft + CELL_WIDTH; aCellRect.Right() = _nLeft + CELL_WIDTH;
if ( i > 0 ) if ( i > 0 )
aCellRect.Move( 0, CELL_HEIGHT ); aCellRect.Move( 0, CELL_HEIGHT );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment