Kaydet (Commit) 61aab4c0 authored tarafından Jens-Heiner Rechtien's avatar Jens-Heiner Rechtien

INTEGRATION: CWS warnings01 (1.3.222); FILE MERGED

2006/05/05 11:03:39 os 1.3.222.2: warnings removed
2006/04/20 14:49:44 cl 1.3.222.1: warning free code changes
üst 5d2b90d1
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: swframeexample.cxx,v $ * $RCSfile: swframeexample.cxx,v $
* *
* $Revision: 1.3 $ * $Revision: 1.4 $
* *
* last change: $Author: rt $ $Date: 2005-09-08 22:09:05 $ * last change: $Author: hr $ $Date: 2006-06-19 15:31:13 $
* *
* 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.
...@@ -34,8 +34,6 @@ ...@@ -34,8 +34,6 @@
************************************************************************/ ************************************************************************/
#pragma hdrstop
#ifndef _TL_POLY_HXX #ifndef _TL_POLY_HXX
#include <tools/poly.hxx> #include <tools/poly.hxx>
#endif #endif
...@@ -80,14 +78,14 @@ SvxSwFrameExample::SvxSwFrameExample( Window *pParent, const ResId& rResID ) : ...@@ -80,14 +78,14 @@ SvxSwFrameExample::SvxSwFrameExample( Window *pParent, const ResId& rResID ) :
Window(pParent, rResID), Window(pParent, rResID),
nAnchor (TextContentAnchorType_AT_PAGE),
nHAlign (HoriOrientation::CENTER), nHAlign (HoriOrientation::CENTER),
nHRel (RelOrientation::FRAME), nHRel (RelOrientation::FRAME),
nVAlign (VertOrientation::TOP), nVAlign (VertOrientation::TOP),
nVRel (RelOrientation::PRINT_AREA), nVRel (RelOrientation::PRINT_AREA),
aRelPos (Point(0,0)),
nWrap (WrapTextMode_NONE), nWrap (WrapTextMode_NONE),
bTrans (FALSE) nAnchor (TextContentAnchorType_AT_PAGE),
bTrans (FALSE),
aRelPos (Point(0,0))
{ {
InitColors_Impl(); InitColors_Impl();
SetMapMode(MAP_PIXEL); SetMapMode(MAP_PIXEL);
...@@ -486,7 +484,6 @@ Rectangle SvxSwFrameExample::DrawInnerFrame_Impl(const Rectangle &rRect, const C ...@@ -486,7 +484,6 @@ Rectangle SvxSwFrameExample::DrawInnerFrame_Impl(const Rectangle &rRect, const C
if (nAnchor == TextContentAnchorType_AT_FRAME && &rRect == &aPagePrtArea) if (nAnchor == TextContentAnchorType_AT_FRAME && &rRect == &aPagePrtArea)
{ {
// Testabsatz zeichnen // Testabsatz zeichnen
const long nTxtLineHeight = aTextLine.GetHeight();
Rectangle aTxt(aTextLine); Rectangle aTxt(aTextLine);
sal_Int32 nStep = aTxt.GetHeight() + 2; sal_Int32 nStep = aTxt.GetHeight() + 2;
USHORT nLines = (USHORT)(aParaPrtArea.GetHeight() / (aTextLine.GetHeight() + 2)); USHORT nLines = (USHORT)(aParaPrtArea.GetHeight() / (aTextLine.GetHeight() + 2));
...@@ -503,7 +500,7 @@ Rectangle SvxSwFrameExample::DrawInnerFrame_Impl(const Rectangle &rRect, const C ...@@ -503,7 +500,7 @@ Rectangle SvxSwFrameExample::DrawInnerFrame_Impl(const Rectangle &rRect, const C
return aRect; return aRect;
} }
void SvxSwFrameExample::Paint(const Rectangle &rRect) void SvxSwFrameExample::Paint(const Rectangle&)
{ {
InitAllRects_Impl(); InitAllRects_Impl();
......
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