2000-09-18 16:07:07 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2005-09-08 20:50:50 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2005-09-08 20:50:50 +00:00
|
|
|
* $RCSfile: pagectrl.cxx,v $
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2007-05-10 13:40:19 +00:00
|
|
|
* $Revision: 1.16 $
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2007-05-10 13:40:19 +00:00
|
|
|
* last change: $Author: kz $ $Date: 2007-05-10 14:40:19 $
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2005-09-08 20:50:50 +00:00
|
|
|
* The Contents of this file are made available subject to
|
|
|
|
* the terms of GNU Lesser General Public License Version 2.1.
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
|
|
|
*
|
2005-09-08 20:50:50 +00:00
|
|
|
* GNU Lesser General Public License Version 2.1
|
|
|
|
* =============================================
|
|
|
|
* Copyright 2005 by Sun Microsystems, Inc.
|
|
|
|
* 901 San Antonio Road, Palo Alto, CA 94303, USA
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2005-09-08 20:50:50 +00:00
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License version 2.1, as published by the Free Software Foundation.
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2005-09-08 20:50:50 +00:00
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2005-09-08 20:50:50 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
|
|
* MA 02111-1307 USA
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
2006-09-17 03:33:29 +00:00
|
|
|
// MARKER(update_precomp.py): autogen include statement, do not remove
|
|
|
|
#include "precompiled_svx.hxx"
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
// include ---------------------------------------------------------------
|
|
|
|
|
2007-05-10 13:40:19 +00:00
|
|
|
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
#ifndef _SV_BITMAP_HXX
|
|
|
|
#include <vcl/bitmap.hxx>
|
|
|
|
#endif
|
2002-06-17 13:19:47 +00:00
|
|
|
#ifndef _SVX_FRMDIRITEM_HXX
|
|
|
|
#include <frmdiritem.hxx>
|
|
|
|
#endif
|
2000-09-18 16:07:07 +00:00
|
|
|
#include "pageitem.hxx"
|
|
|
|
#include "pagectrl.hxx"
|
|
|
|
#include "boxitem.hxx"
|
|
|
|
|
2000-11-06 18:19:26 +00:00
|
|
|
#include <algorithm>
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
// struct PageWindow_Impl ------------------------------------------------
|
|
|
|
|
|
|
|
struct PageWindow_Impl
|
|
|
|
{
|
|
|
|
SvxBoxItem* pBorder;
|
|
|
|
Bitmap aBitmap;
|
|
|
|
FASTBOOL bBitmap;
|
2006-07-26 07:28:52 +00:00
|
|
|
sal_Bool bResetBackground;
|
2002-06-17 13:19:47 +00:00
|
|
|
sal_Bool bFrameDirection;
|
|
|
|
sal_Int32 nFrameDirection;
|
|
|
|
|
|
|
|
|
|
|
|
PageWindow_Impl() :
|
|
|
|
pBorder(0),
|
|
|
|
bBitmap(FALSE),
|
2006-07-26 07:28:52 +00:00
|
|
|
bResetBackground(sal_False),
|
2002-06-17 13:19:47 +00:00
|
|
|
bFrameDirection(sal_False),
|
|
|
|
nFrameDirection(0) {}
|
|
|
|
|
|
|
|
void EnableFrameDirection(sal_Bool bEnable){bFrameDirection = bEnable;}
|
|
|
|
void SetFrameDirection(sal_Int32 nDirection){nFrameDirection = nDirection;}
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
// STATIC DATA -----------------------------------------------------------
|
|
|
|
|
|
|
|
#define CELL_WIDTH 1600L
|
|
|
|
#define CELL_HEIGHT 800L
|
|
|
|
|
|
|
|
// class SvxPageWindow ---------------------------------------------------
|
|
|
|
|
|
|
|
SvxPageWindow::SvxPageWindow( Window* pParent, const ResId& rId ) :
|
|
|
|
|
|
|
|
Window( pParent, rId ),
|
|
|
|
|
|
|
|
nTop ( 0 ),
|
|
|
|
nBottom ( 0 ),
|
|
|
|
nLeft ( 0 ),
|
|
|
|
nRight ( 0 ),
|
2002-02-27 12:43:08 +00:00
|
|
|
aColor ( COL_TRANSPARENT ),
|
2000-09-18 16:07:07 +00:00
|
|
|
nHdLeft ( 0 ),
|
|
|
|
nHdRight ( 0 ),
|
|
|
|
nHdDist ( 0 ),
|
|
|
|
nHdHeight ( 0 ),
|
2002-02-27 12:43:08 +00:00
|
|
|
aHdColor ( COL_TRANSPARENT ),
|
2000-09-18 16:07:07 +00:00
|
|
|
pHdBorder ( 0 ),
|
|
|
|
nFtLeft ( 0 ),
|
|
|
|
nFtRight ( 0 ),
|
|
|
|
nFtDist ( 0 ),
|
|
|
|
nFtHeight ( 0 ),
|
2002-02-27 12:43:08 +00:00
|
|
|
aFtColor ( COL_TRANSPARENT ),
|
2000-09-18 16:07:07 +00:00
|
|
|
pFtBorder ( 0 ),
|
|
|
|
bFooter ( FALSE ),
|
|
|
|
bHeader ( FALSE ),
|
|
|
|
bTable ( FALSE ),
|
|
|
|
bHorz ( FALSE ),
|
|
|
|
bVert ( FALSE ),
|
|
|
|
eUsage ( SVX_PAGE_ALL )
|
|
|
|
|
|
|
|
{
|
|
|
|
pImpl = new PageWindow_Impl;
|
|
|
|
|
|
|
|
// defaultmaessing in Twips rechnen
|
|
|
|
SetMapMode( MapMode( MAP_TWIP ) );
|
|
|
|
aWinSize = GetOutputSizePixel();
|
|
|
|
aWinSize.Height() -= 4;
|
|
|
|
aWinSize.Width() -= 4;
|
|
|
|
|
|
|
|
aWinSize = PixelToLogic( aWinSize );
|
2005-03-18 14:41:42 +00:00
|
|
|
SetBackground();
|
2000-09-18 16:07:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
|
|
|
SvxPageWindow::~SvxPageWindow()
|
|
|
|
{
|
|
|
|
delete pImpl;
|
|
|
|
delete pHdBorder;
|
|
|
|
delete pFtBorder;
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2006-06-19 14:25:07 +00:00
|
|
|
void __EXPORT SvxPageWindow::Paint( const Rectangle& )
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
2000-11-09 17:26:22 +00:00
|
|
|
Fraction aXScale( aWinSize.Width(), std::max( (long) (aSize.Width() * 2 + aSize.Width() / 8), 1L ) );
|
2000-11-06 18:19:26 +00:00
|
|
|
Fraction aYScale( aWinSize.Height(), std::max( aSize.Height(), 1L ) );
|
2000-09-18 16:07:07 +00:00
|
|
|
MapMode aMapMode( GetMapMode() );
|
|
|
|
|
|
|
|
if ( aYScale < aXScale )
|
|
|
|
{
|
|
|
|
aMapMode.SetScaleX( aYScale );
|
|
|
|
aMapMode.SetScaleY( aYScale );
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
aMapMode.SetScaleX( aXScale );
|
|
|
|
aMapMode.SetScaleY( aXScale );
|
|
|
|
}
|
|
|
|
SetMapMode( aMapMode );
|
|
|
|
Size aSz( PixelToLogic( GetSizePixel() ) );
|
|
|
|
long nYPos = ( aSz.Height() - aSize.Height() ) / 2;
|
|
|
|
|
|
|
|
if ( eUsage == SVX_PAGE_ALL )
|
|
|
|
{
|
|
|
|
// alle Seiten gleich -> eine Seite malen
|
|
|
|
if ( aSize.Width() > aSize.Height() )
|
|
|
|
{
|
|
|
|
// Querformat in gleicher Gr"osse zeichnen
|
|
|
|
Fraction aX = aMapMode.GetScaleX();
|
|
|
|
Fraction aY = aMapMode.GetScaleY();
|
|
|
|
Fraction a2( 1.5 );
|
|
|
|
aX *= a2;
|
|
|
|
aY *= a2;
|
|
|
|
aMapMode.SetScaleX( aX );
|
|
|
|
aMapMode.SetScaleY( aY );
|
|
|
|
SetMapMode( aMapMode );
|
|
|
|
aSz = PixelToLogic( GetSizePixel() );
|
|
|
|
nYPos = ( aSz.Height() - aSize.Height() ) / 2;
|
|
|
|
long nXPos = ( aSz.Width() - aSize.Width() ) / 2;
|
|
|
|
DrawPage( Point( nXPos, nYPos ), TRUE, TRUE );
|
|
|
|
}
|
|
|
|
else
|
|
|
|
// Hochformat
|
|
|
|
DrawPage( Point( ( aSz.Width() - aSize.Width() ) / 2, nYPos ), TRUE, TRUE );
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
// Linke und rechte Seite unterschiedlich -> ggf. zwei Seiten malen
|
|
|
|
DrawPage( Point( 0, nYPos ), FALSE, (BOOL)( eUsage & SVX_PAGE_LEFT ) );
|
|
|
|
DrawPage( Point( aSize.Width() + aSize.Width() / 8, nYPos ), TRUE,
|
|
|
|
(BOOL)( eUsage & SVX_PAGE_RIGHT ) );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
void SvxPageWindow::DrawPage( const Point& rOrg, const BOOL bSecond, const BOOL bEnabled )
|
|
|
|
{
|
2002-02-27 12:43:08 +00:00
|
|
|
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
|
|
|
|
const Color& rFieldColor = rStyleSettings.GetFieldColor();
|
|
|
|
const Color& rFieldTextColor = rStyleSettings.GetFieldTextColor();
|
|
|
|
const Color& rDisableColor = rStyleSettings.GetDisableColor();
|
|
|
|
const Color& rDlgColor = rStyleSettings.GetDialogColor();
|
|
|
|
|
|
|
|
// background
|
2006-07-26 07:28:52 +00:00
|
|
|
if(!bSecond || pImpl->bResetBackground)
|
2002-02-27 12:43:08 +00:00
|
|
|
{
|
|
|
|
SetLineColor( Color(COL_TRANSPARENT) );
|
|
|
|
SetFillColor( rDlgColor );
|
2006-10-12 11:24:08 +00:00
|
|
|
Size winSize(GetOutputSize());
|
|
|
|
DrawRect( Rectangle( Point(0,0), winSize ) );
|
2006-07-26 07:28:52 +00:00
|
|
|
|
|
|
|
if ( pImpl->bResetBackground )
|
|
|
|
pImpl->bResetBackground = sal_False;
|
2002-02-27 12:43:08 +00:00
|
|
|
}
|
|
|
|
SetLineColor( rFieldTextColor );
|
2000-09-18 16:07:07 +00:00
|
|
|
// Schatten
|
|
|
|
Size aTempSize = aSize;
|
|
|
|
// Seite
|
|
|
|
if ( !bEnabled )
|
|
|
|
{
|
2002-02-27 12:43:08 +00:00
|
|
|
SetFillColor( rDisableColor );
|
2000-09-18 16:07:07 +00:00
|
|
|
DrawRect( Rectangle( rOrg, aTempSize ) );
|
|
|
|
return;
|
|
|
|
}
|
2002-02-27 12:43:08 +00:00
|
|
|
SetFillColor( rFieldColor );
|
2000-09-18 16:07:07 +00:00
|
|
|
DrawRect( Rectangle( rOrg, aTempSize ) );
|
|
|
|
|
|
|
|
// Border Top Bottom Left Right
|
|
|
|
Point aBegin( rOrg );
|
|
|
|
Point aEnd( rOrg );
|
|
|
|
|
|
|
|
long nL = nLeft;
|
|
|
|
long nR = nRight;
|
|
|
|
|
|
|
|
if ( eUsage == SVX_PAGE_MIRROR && !bSecond )
|
|
|
|
{
|
|
|
|
// f"ur gespiegelt drehen
|
|
|
|
nL = nRight;
|
|
|
|
nR = nLeft;
|
|
|
|
}
|
|
|
|
|
|
|
|
Rectangle aRect;
|
|
|
|
|
|
|
|
aRect.Left() = rOrg.X() + nL;
|
|
|
|
aRect.Right() = rOrg.X() + aTempSize.Width() - nR;
|
|
|
|
aRect.Top() = rOrg.Y() + nTop;
|
|
|
|
aRect.Bottom()= rOrg.Y() + aTempSize.Height() - nBottom;
|
|
|
|
|
|
|
|
Rectangle aHdRect( aRect );
|
|
|
|
Rectangle aFtRect( aRect );
|
|
|
|
|
|
|
|
if ( bHeader )
|
|
|
|
{
|
|
|
|
// ggf. Header anzeigen
|
|
|
|
aHdRect.Left() += nHdLeft;
|
|
|
|
aHdRect.Right() -= nHdRight;
|
|
|
|
aHdRect.Bottom() = aRect.Top() + nHdHeight;
|
|
|
|
aRect.Top() += nHdHeight + nHdDist;
|
|
|
|
SetFillColor( aHdColor );
|
|
|
|
DrawRect( aHdRect );
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( bFooter )
|
|
|
|
{
|
|
|
|
// ggf. Footer anzeigen
|
|
|
|
aFtRect.Left() += nFtLeft;
|
|
|
|
aFtRect.Right() -= nFtRight;
|
|
|
|
aFtRect.Top() = aRect.Bottom() - nFtHeight;
|
|
|
|
aRect.Bottom() -= nFtHeight + nFtDist;
|
|
|
|
SetFillColor( aFtColor );
|
|
|
|
DrawRect( aFtRect );
|
|
|
|
}
|
|
|
|
|
|
|
|
// Body malen
|
|
|
|
SetFillColor( aColor );
|
|
|
|
if ( pImpl->bBitmap )
|
|
|
|
{
|
|
|
|
DrawRect( aRect );
|
|
|
|
Point aBmpPnt = aRect.TopLeft();
|
|
|
|
Size aBmpSiz = aRect.GetSize();
|
|
|
|
long nDeltaX = aBmpSiz.Width() / 15;
|
|
|
|
long nDeltaY = aBmpSiz.Height() / 15;
|
|
|
|
aBmpPnt.X() += nDeltaX;
|
|
|
|
aBmpPnt.Y() += nDeltaY;
|
|
|
|
aBmpSiz.Width() -= nDeltaX * 2;
|
|
|
|
aBmpSiz.Height() -= nDeltaY * 2;
|
|
|
|
DrawBitmap( aBmpPnt, aBmpSiz, pImpl->aBitmap );
|
|
|
|
}
|
|
|
|
else
|
|
|
|
DrawRect( aRect );
|
|
|
|
|
2002-09-16 10:27:27 +00:00
|
|
|
if(pImpl->bFrameDirection && !bTable)
|
2002-06-17 13:19:47 +00:00
|
|
|
{
|
|
|
|
//pImpl->nFrameDirection
|
|
|
|
Point aPos;
|
|
|
|
Font aFont(GetFont());
|
|
|
|
const Size aSaveSize = aFont.GetSize();
|
|
|
|
Size aDrawSize( 0, aRect.GetHeight() / 6);
|
|
|
|
aFont.SetSize(aDrawSize);
|
|
|
|
SetFont(aFont);
|
2002-09-25 13:18:51 +00:00
|
|
|
String sText(String::CreateFromAscii("ABC"));
|
|
|
|
Point aMove(1, GetTextHeight());
|
2002-06-17 13:19:47 +00:00
|
|
|
sal_Unicode cArrow = 0x2193;
|
2002-09-25 13:18:51 +00:00
|
|
|
long nAWidth = GetTextWidth(String(sText.GetChar(0)));
|
2002-06-17 13:19:47 +00:00
|
|
|
switch(pImpl->nFrameDirection)
|
|
|
|
{
|
|
|
|
case FRMDIR_HORI_LEFT_TOP:
|
|
|
|
aPos = aRect.TopLeft();
|
|
|
|
aPos.X() += PixelToLogic(Point(1,1)).X();
|
|
|
|
aMove.Y() = 0;
|
|
|
|
cArrow = 0x2192;
|
|
|
|
break;
|
|
|
|
case FRMDIR_HORI_RIGHT_TOP:
|
|
|
|
aPos = aRect.TopRight();
|
2002-09-25 13:18:51 +00:00
|
|
|
aPos.X() -= nAWidth;
|
2002-06-17 13:19:47 +00:00
|
|
|
aMove.Y() = 0;
|
|
|
|
aMove.X() *= -1;
|
|
|
|
cArrow = 0x2190;
|
|
|
|
break;
|
|
|
|
case FRMDIR_VERT_TOP_LEFT:
|
|
|
|
aPos = aRect.TopLeft();
|
|
|
|
aPos.X() += PixelToLogic(Point(1,1)).X();
|
|
|
|
aMove.X() = 0;
|
|
|
|
break;
|
|
|
|
case FRMDIR_VERT_TOP_RIGHT:
|
|
|
|
aPos = aRect.TopRight();
|
2002-09-25 13:18:51 +00:00
|
|
|
aPos.X() -= nAWidth;
|
2002-06-17 13:19:47 +00:00
|
|
|
aMove.X() = 0;
|
|
|
|
break;
|
|
|
|
}
|
2002-09-25 13:18:51 +00:00
|
|
|
sText.Append(cArrow);
|
|
|
|
for(USHORT i = 0; i < sText.Len(); i++)
|
|
|
|
{
|
|
|
|
String sDraw(sText.GetChar(i));
|
|
|
|
long nHDiff = 0;
|
|
|
|
long nCharWidth = GetTextWidth(sDraw);
|
|
|
|
BOOL bHorizontal = 0 == aMove.Y();
|
|
|
|
if(!bHorizontal)
|
|
|
|
{
|
|
|
|
nHDiff = (nAWidth - nCharWidth)/2;
|
|
|
|
aPos.X() += nHDiff;
|
|
|
|
}
|
|
|
|
DrawText(aPos, sDraw);
|
|
|
|
if(bHorizontal)
|
|
|
|
{
|
|
|
|
aPos.X() += aMove.X() < 0 ? - nCharWidth : nCharWidth;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
aPos.X() -= nHDiff;
|
|
|
|
aPos.Y() += aMove.Y();
|
|
|
|
}
|
|
|
|
}
|
2002-06-17 13:19:47 +00:00
|
|
|
aFont.SetSize(aSaveSize);
|
|
|
|
SetFont(aFont);
|
|
|
|
|
|
|
|
}
|
2000-09-18 16:07:07 +00:00
|
|
|
if ( bTable )
|
|
|
|
{
|
|
|
|
// Tabelle malen, ggf. zentrieren
|
|
|
|
SetLineColor( Color(COL_LIGHTGRAY) );
|
|
|
|
|
|
|
|
long nW = aRect.GetWidth(), nH = aRect.GetHeight();
|
|
|
|
long nTW = CELL_WIDTH * 3, nTH = CELL_HEIGHT * 3;
|
2006-06-19 14:25:07 +00:00
|
|
|
long _nLeft = bHorz ? aRect.Left() + ((nW - nTW) / 2) : aRect.Left();
|
|
|
|
long _nTop = bVert ? aRect.Top() + ((nH - nTH) / 2) : aRect.Top();
|
|
|
|
Rectangle aCellRect( Point( _nLeft, _nTop ), Size( CELL_WIDTH, CELL_HEIGHT ) );
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
for ( USHORT i = 0; i < 3; ++i )
|
|
|
|
{
|
2006-06-19 14:25:07 +00:00
|
|
|
aCellRect.Left() = _nLeft;
|
|
|
|
aCellRect.Right() = _nLeft + CELL_WIDTH;
|
2000-09-18 16:07:07 +00:00
|
|
|
if ( i > 0 )
|
|
|
|
aCellRect.Move( 0, CELL_HEIGHT );
|
|
|
|
|
|
|
|
for ( USHORT j = 0; j < 3; ++j )
|
|
|
|
{
|
|
|
|
if ( j > 0 )
|
|
|
|
aCellRect.Move( CELL_WIDTH, 0 );
|
|
|
|
DrawRect( aCellRect );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
|
|
|
void SvxPageWindow::SetBorder( const SvxBoxItem& rNew )
|
|
|
|
{
|
|
|
|
delete pImpl->pBorder;
|
|
|
|
pImpl->pBorder = new SvxBoxItem( rNew );
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
|
|
|
void SvxPageWindow::SetBitmap( Bitmap* pBmp )
|
|
|
|
{
|
|
|
|
if ( pBmp )
|
|
|
|
{
|
|
|
|
pImpl->aBitmap = *pBmp;
|
|
|
|
pImpl->bBitmap = TRUE;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
pImpl->bBitmap = FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
|
|
|
void SvxPageWindow::SetHdBorder( const SvxBoxItem& rNew )
|
|
|
|
{
|
|
|
|
delete pHdBorder;
|
|
|
|
pHdBorder = new SvxBoxItem( rNew );
|
|
|
|
}
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
|
|
|
void SvxPageWindow::SetFtBorder( const SvxBoxItem& rNew )
|
|
|
|
{
|
|
|
|
delete pFtBorder;
|
|
|
|
pFtBorder = new SvxBoxItem( rNew );
|
|
|
|
}
|
2002-06-17 13:19:47 +00:00
|
|
|
/* -----------------------------13.06.2002 16:16------------------------------
|
|
|
|
|
|
|
|
---------------------------------------------------------------------------*/
|
|
|
|
void SvxPageWindow::EnableFrameDirection(sal_Bool bEnable)
|
|
|
|
{
|
|
|
|
pImpl->EnableFrameDirection(bEnable);
|
|
|
|
}
|
|
|
|
/* -----------------------------13.06.2002 16:16------------------------------
|
|
|
|
|
|
|
|
---------------------------------------------------------------------------*/
|
|
|
|
void SvxPageWindow::SetFrameDirection(sal_Int32 nFrameDirection)
|
|
|
|
{
|
|
|
|
pImpl->SetFrameDirection(nFrameDirection);
|
|
|
|
}
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2006-07-26 07:28:52 +00:00
|
|
|
void SvxPageWindow::ResetBackground()
|
|
|
|
{
|
|
|
|
pImpl->bResetBackground = sal_True;
|
|
|
|
}
|