Files
libreoffice/sw/source/core/inc/rootfrm.hxx

378 lines
15 KiB
C++
Raw Normal View History

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
re-base on ALv2 code. Includes: Patches contributed by Oliver-Rainer Wittmann sw34bf06: #i117783# - Writer's implementation of XPagePrintable - apply print settings to new printing routines http://svn.apache.org/viewvc?view=revision&revision=1172115 sw34bf06: #o12311627# use <rtl_random> methods to create unique ids for list styles and list ids http://svn.apache.org/viewvc?view=revision&revision=1172112 sw34bf06 #i114725#,#i115828# - method <SwDoc::ClearDoc()> - clear list structures completely http://svn.apache.org/viewvc?view=revision&revision=1172122 i#118572 - remove ui string and help content regarding usage of Java Mail in Writer's Mail Merge as Java Mail is not used. http://svn.apache.org/viewvc?view=revision&revision=1197035 Patches contributed by Mathias Bauer cws mba34issues01: #i117718#: provide filter name in case storage of medium does not allow to detect one http://svn.apache.org/viewvc?view=revision&revision=1172350 cws mba34issues01: #i117721#: directly provide parameters retrieved from SfxMedium http://svn.apache.org/viewvc?view=revision&revision=1172353 gnumake4 work variously http://svn.apache.org/viewvc?view=revision&revision=1394707 http://svn.apache.org/viewvc?view=revision&revision=1394326 http://svn.apache.org/viewvc?view=revision&revision=1396797 http://svn.apache.org/viewvc?view=revision&revision=1397315 cws mba34issues01: #i117723#: convert assertion into trace http://svn.apache.org/viewvc?view=revision&revision=1172355 cws mba34issues01: #i117699#: keep layout alive until swdoc dies http://svn.apache.org/viewvc?view=revision&revision=1172362 cws mba34issues01: #i117943#: missing color attributes in RTF clipboard http://svn.apache.org/viewvc?view=revision&revision=1172363 Patch contributed by Henning Brinkmann imported patch i#103878 http://svn.apache.org/viewvc?view=revision&revision=1172109 Patches contributed by Michael Stahl sw34bf06: #i117955#: WW8 export: disable storing of section breaks in endnotes http://svn.apache.org/viewvc?view=revision&revision=1172119 Patch contributed by imacat Fixed the Asian language work count. http://svn.apache.org/viewvc?view=revision&revision=1241345 Patch contributed by Pedro Giffuni i#20878 - Add comment with BZ issue for reference. http://svn.apache.org/viewvc?view=revision&revision=1244517 Patch contributed by Andre Fischer Do not add targets for junit tests when junit is disabled. http://svn.apache.org/viewvc?view=revision&revision=1241508 add writerperfect dependency.
2011-03-31 10:05:04 +02:00
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_SW_SOURCE_CORE_INC_ROOTFRM_HXX
#define INCLUDED_SW_SOURCE_CORE_INC_ROOTFRM_HXX
2000-09-18 23:08:29 +00:00
#include "layfrm.hxx"
#include <viewsh.hxx>
#include <doc.hxx>
2000-09-18 23:08:29 +00:00
class SwCntntFrm;
class SwViewShell;
2000-09-18 23:08:29 +00:00
class SdrPage;
class SwFrmFmt;
class SwPaM;
class SwCursor;
class SwShellCrsr;
class SwTableCursor;
class SwLayVout;
class SwDestroyList;
class SwCurrShells;
class SwViewOption;
class SwSelectionList;
2000-09-18 23:08:29 +00:00
struct SwPosition;
struct SwCrsrMoveState;
#define INV_SIZE 1
#define INV_PRTAREA 2
#define INV_POS 4
#define INV_TABLE 8
#define INV_SECTION 16
#define INV_LINENUM 32
#define INV_DIRECTION 64
2000-09-18 23:08:29 +00:00
#include <vector>
/// The root element of a Writer document layout.
2000-09-18 23:08:29 +00:00
class SwRootFrm: public SwLayoutFrm
{
//Muss das Superfluous temporaer abschalten.
friend void AdjustSizeChgNotify( SwRootFrm *pRoot );
//Pflegt pLastPage (Cut() und Paste() vom SwPageFrm
friend inline void SetLastPage( SwPageFrm* );
// Fuer das Anlegen und Zerstoeren des virtuellen Outputdevice-Managers
friend void _FrmInit(); //erzeugt pVout
friend void _FrmFinit(); //loescht pVout
std::vector<SwRect> maPageRects;// returns the current rectangle for each page frame
// the rectangle is extended to the top/bottom/left/right
// for pages located at the outer borders
SwRect maPagesArea; // the area covered by the pages
long mnViewWidth; // the current page layout bases on this view width
sal_uInt16 mnColumns; // the current page layout bases on this number of columns
bool mbBookMode; // the current page layout is in book view
bool mbSidebarChanged; // the notes sidebar state has changed
bool mbNeedGrammarCheck; // true when sth needs to be checked (not necessarily started yet!)
2000-09-18 23:08:29 +00:00
static SwLayVout *pVout;
static bool bInPaint; //Schutz gegen doppelte Paints.
static sal_Bool bNoVirDev; //Bei SystemPaints kein virt. Device
sal_Bool bCheckSuperfluous :1; //Leere Seiten suchen?
sal_Bool bIdleFormat :1; //Idle-Formatierer anwerfen?
sal_Bool bBrowseWidthValid :1; //Ist nBrowseWidth gueltig?
sal_Bool bTurboAllowed :1;
sal_Bool bAssertFlyPages :1; //Ggf. weitere Seiten fuer Flys einfuegen?
sal_Bool bIsVirtPageNum :1; //gibt es eine virtuelle Seitennummer ?
sal_Bool bIsNewLayout :1; //Layout geladen oder neu erzeugt.
sal_Bool bCallbackActionEnabled:1; //Keine Action in Benachrichtung erwuenscht
2000-09-18 23:08:29 +00:00
//siehe dcontact.cxx, ::Changed()
bool bLayoutFreezed;
2000-09-18 23:08:29 +00:00
//Fuer den BrowseMode. nBrowseWidth ist die Aeussere Kante des am weitesten
//rechts stehenden Objectes. Die rechte Kante der Seiten soll im BrowseMode
//nicht kleiner werden als dieser Wert.
long nBrowseWidth;
//Wenn nur _ein: CntntFrm zu formatieren ist, so steht dieser in pTurbo.
const SwCntntFrm *pTurbo;
//Die letzte Seite wollen wir uns nicht immer muehsam zusammensuchen.
SwPageFrm *pLastPage;
2012-04-15 18:39:40 +02:00
// [ Comment from the original StarOffice checkin ]:
// The root takes care of the shell access. Via the document
// it should be possible to get at the root frame, and thus always
// have access to the shell.
// the pointer pCurrShell is the pointer to any of the shells for
// the document.
// Because sometimes it matters which shell is used, it is necessary to
// know the active shell.
// this is approximated by setting the pointer pCurrShell when a
// shell gets the focus (FEShell). Acditionally the pointer will be
// set temporarily by SwCurrShell typically via SET_CURR_SHELL
// The macro and class can be found in the SwViewShell. These object can
2012-04-15 18:39:40 +02:00
// be created nested (also for different kinds of Shells). They are
// collected into the Array pCurrShells.
// Futhermore it can happen that a shell is activated while a curshell
// object is still 'active'. This one will be entered into pWaitingCurrShell
// and will be activated by the last d'tor of CurrShell.
// One other problem is the destruction of a shell while it is active.
// The pointer pCurrShell is then reset to an arbitrary other shell.
// If at the time of the destruction of a shell, which is still referneced
// by a curshell object, that will be cleaned up as well.
2000-09-18 23:08:29 +00:00
friend class CurrShell;
friend void SetShell( SwViewShell *pSh );
2000-09-18 23:08:29 +00:00
friend void InitCurrShells( SwRootFrm *pRoot );
SwViewShell *pCurrShell;
SwViewShell *pWaitingCurrShell;
2000-09-18 23:08:29 +00:00
SwCurrShells *pCurrShells;
//Eine Page im DrawModel pro Dokument, hat immer die Groesse der Root.
SdrPage *pDrawPage;
SwDestroyList* pDestroy;
sal_uInt16 nPhyPageNums; //Anzahl der Seiten.
sal_uInt16 nAccessibleShells; // Number of accessible shells
2000-09-18 23:08:29 +00:00
void ImplCalcBrowseWidth();
void ImplInvalidateBrowseWidth();
void _DeleteEmptySct(); // zerstoert ggf. die angemeldeten SectionFrms
void _RemoveFromList( SwSectionFrm* pSct ); // entfernt SectionFrms aus der Delete-Liste
protected:
virtual void MakeAll() SAL_OVERRIDE;
2000-09-18 23:08:29 +00:00
public:
//MasterObjekte aus der Page entfernen (von den Ctoren gerufen).
static void RemoveMasterObjs( SdrPage *pPg );
void AllCheckPageDescs() const;
void AllInvalidateAutoCompleteWords() const;
void AllAddPaintRect() const;
void AllRemoveFtns() ;
void AllInvalidateSmartTagsOrSpelling(bool bSmartTags) const;
2000-09-18 23:08:29 +00:00
//Virtuelles Device ausgeben (z.B. wenn Animationen ins Spiel kommen)
static sal_Bool FlushVout();
2000-09-18 23:08:29 +00:00
//Clipping sparen, wenn im Vout eh genau das Cliprechteck ausgegeben wird
static sal_Bool HasSameRect( const SwRect& rRect );
2000-09-18 23:08:29 +00:00
SwRootFrm( SwFrmFmt*, SwViewShell* );
virtual ~SwRootFrm();
void Init(SwFrmFmt*);
2000-09-18 23:08:29 +00:00
SwViewShell *GetCurrShell() const { return pCurrShell; }
void DeRegisterShell( SwViewShell *pSh );
2000-09-18 23:08:29 +00:00
//Start-/EndAction fuer alle Shells auf moeglichst hoeher
//(Shell-Ableitungs-)Ebene aufsetzen. Fuer die StarONE Anbindung, die
//die Shells nicht dirkt kennt.
//Der ChangeLinkd der CrsrShell (UI-Benachrichtigung) wird im EndAllAction
//automatisch gecallt.
void StartAllAction();
void EndAllAction( sal_Bool bVirDev = sal_False );
2000-09-18 23:08:29 +00:00
// fuer bestimmte UNO-Aktionen (Tabellencursor) ist es notwendig, dass alle Actions
// kurzfristig zurueckgesetzt werden. Dazu muss sich jede SwViewShell ihren alten Action-zaehler
2000-09-18 23:08:29 +00:00
// merken
void UnoRemoveAllActions();
void UnoRestoreAllActions();
const SdrPage* GetDrawPage() const { return pDrawPage; }
SdrPage* GetDrawPage() { return pDrawPage; }
void SetDrawPage( SdrPage* pNew ){ pDrawPage = pNew; }
virtual bool GetCrsrOfst( SwPosition *, Point&,
SwCrsrMoveState* = 0, bool bTestBackground = false ) const SAL_OVERRIDE;
virtual void Paint( SwRect const&,
SwPrintData const*const pPrintData = NULL ) const SAL_OVERRIDE;
virtual SwTwips ShrinkFrm( SwTwips, sal_Bool bTst = sal_False, sal_Bool bInfo = sal_False ) SAL_OVERRIDE;
virtual SwTwips GrowFrm ( SwTwips, sal_Bool bTst = sal_False, sal_Bool bInfo = sal_False ) SAL_OVERRIDE;
#ifdef DBG_UTIL
virtual void Cut() SAL_OVERRIDE;
virtual void Paste( SwFrm* pParent, SwFrm* pSibling = 0 ) SAL_OVERRIDE;
2000-09-18 23:08:29 +00:00
#endif
virtual bool FillSelection( SwSelectionList& rList, const SwRect& rRect ) const SAL_OVERRIDE;
Point GetNextPrevCntntPos( const Point &rPoint, sal_Bool bNext ) const;
virtual Size ChgSize( const Size& aNewSize ) SAL_OVERRIDE;
2000-09-18 23:08:29 +00:00
void SetIdleFlags()
{
bIdleFormat = sal_True;
SwViewShell* lcl_pCurrShell = GetCurrShell();
// May be NULL if called from SfxBaseModel::dispose
// (this happens in the build test 'rtfexport').
if (lcl_pCurrShell != NULL)
lcl_pCurrShell->GetDoc()->StartBackgroundJobs();
}
sal_Bool IsIdleFormat() const { return bIdleFormat; }
void ResetIdleFormat() { bIdleFormat = sal_False; }
2000-09-18 23:08:29 +00:00
bool IsNeedGrammarCheck() const { return mbNeedGrammarCheck; }
void SetNeedGrammarCheck( bool bVal )
{
mbNeedGrammarCheck = bVal;
if ( bVal )
{
SwViewShell* lcl_pCurrShell = GetCurrShell();
// May be NULL if called from SfxBaseModel::dispose
// (this happens in the build test 'rtfexport').
if (lcl_pCurrShell != NULL)
lcl_pCurrShell->GetDoc()->StartBackgroundJobs();
}
}
2000-09-18 23:08:29 +00:00
//Sorgt dafuer, dass alle gewuenschten Seitengebunden Flys eine Seite finden
void SetAssertFlyPages() { bAssertFlyPages = sal_True; }
2000-09-18 23:08:29 +00:00
void AssertFlyPages();
sal_Bool IsAssertFlyPages() { return bAssertFlyPages; }
2000-09-18 23:08:29 +00:00
//Stellt sicher, dass ab der uebergebenen Seite auf allen Seiten die
//Seitengebundenen Rahmen auf der richtigen Seite (Seitennummer) stehen.
void AssertPageFlys( SwPageFrm * );
//Saemtlichen Inhalt invalidieren, Size oder PrtArea
void InvalidateAllCntnt( sal_uInt8 nInvalidate = INV_SIZE );
2000-09-18 23:08:29 +00:00
/** method to invalidate/re-calculate the position of all floating
screen objects (Writer fly frames and drawing objects), which are
anchored to paragraph or to character.
OD 2004-03-16 #i11860#
*/
void InvalidateAllObjPos();
2000-09-18 23:08:29 +00:00
//Ueberfluessige Seiten entfernen.
void SetSuperfluous() { bCheckSuperfluous = sal_True; }
sal_Bool IsSuperfluous() const { return bCheckSuperfluous; }
2000-09-18 23:08:29 +00:00
void RemoveSuperfluous();
//abfragen/setzen der aktuellen Seite und der Gesamtzahl der Seiten.
//Es wird soweit wie notwendig Formatiert.
sal_uInt16 GetCurrPage( const SwPaM* ) const;
sal_uInt16 SetCurrPage( SwCursor*, sal_uInt16 nPageNum );
Point GetPagePos( sal_uInt16 nPageNum ) const;
sal_uInt16 GetPageNum() const { return nPhyPageNums; }
2000-09-18 23:08:29 +00:00
void DecrPhyPageNums() { --nPhyPageNums; }
void IncrPhyPageNums() { ++nPhyPageNums; }
sal_Bool IsVirtPageNum() const { return bIsVirtPageNum; }
inline void SetVirtPageNum( const sal_Bool bOf ) const;
sal_Bool IsDummyPage( sal_uInt16 nPageNum ) const;
2000-09-18 23:08:29 +00:00
// Point rPt: The point that should be used to find the page
// Size pSize: If given, we return the (first) page that overlaps with the
// rectangle defined by rPt and pSize
// bool bExtend: Extend each page to the left/right/top/botton up to the
// next page border
const SwPageFrm* GetPageAtPos( const Point& rPt, const Size* pSize = 0, bool bExtend = false ) const;
Resolves: #i33737# enable in-place editing of Input Fields (cherry picked from commit c2afeb1c3f11e8f420b59f3786eb8626c99ff595) Conflicts: sw/inc/IDocumentContentOperations.hxx sw/inc/crsrsh.hxx sw/inc/doc.hxx sw/inc/editsh.hxx sw/inc/expfld.hxx sw/inc/fldbas.hxx sw/inc/fmtfld.hxx sw/inc/hintids.hxx sw/inc/ndtxt.hxx sw/inc/txatbase.hxx sw/inc/txtfld.hxx sw/inc/txtrfmrk.hxx sw/inc/txttxmrk.hxx sw/inc/viscrs.hxx sw/source/core/bastyp/init.cxx sw/source/core/crsr/crsrsh.cxx sw/source/core/crsr/crstrvl.cxx sw/source/core/crsr/findattr.cxx sw/source/core/crsr/findtxt.cxx sw/source/core/crsr/swcrsr.cxx sw/source/core/crsr/viscrs.cxx sw/source/core/doc/dbgoutsw.cxx sw/source/core/doc/doc.cxx sw/source/core/doc/docfld.cxx sw/source/core/doc/docfmt.cxx sw/source/core/doc/docnum.cxx sw/source/core/doc/docredln.cxx sw/source/core/doc/docruby.cxx sw/source/core/doc/doctxm.cxx sw/source/core/doc/visiturl.cxx sw/source/core/docnode/nodes.cxx sw/source/core/edit/edatmisc.cxx sw/source/core/edit/edattr.cxx sw/source/core/edit/edfld.cxx sw/source/core/edit/edfldexp.cxx sw/source/core/edit/editsh.cxx sw/source/core/edit/edlingu.cxx sw/source/core/edit/ednumber.cxx sw/source/core/fields/expfld.cxx sw/source/core/fields/fldbas.cxx sw/source/core/fields/reffld.cxx sw/source/core/frmedt/fefly1.cxx sw/source/core/inc/docfld.hxx sw/source/core/inc/rolbck.hxx sw/source/core/inc/swfont.hxx sw/source/core/layout/flycnt.cxx sw/source/core/layout/laycache.cxx sw/source/core/layout/trvlfrm.cxx sw/source/core/text/atrhndl.hxx sw/source/core/text/atrstck.cxx sw/source/core/text/inftxt.cxx sw/source/core/text/porfld.cxx sw/source/core/text/porfld.hxx sw/source/core/text/txtfld.cxx sw/source/core/tox/tox.cxx sw/source/core/tox/txmsrt.cxx sw/source/core/txtnode/atrfld.cxx sw/source/core/txtnode/ndhints.cxx sw/source/core/txtnode/ndtxt.cxx sw/source/core/txtnode/thints.cxx sw/source/core/txtnode/txatbase.cxx sw/source/core/txtnode/txatritr.cxx sw/source/core/txtnode/txtedt.cxx sw/source/core/undo/SwUndoField.cxx sw/source/core/undo/rolbck.cxx sw/source/core/undo/unsect.cxx sw/source/core/undo/untbl.cxx sw/source/core/unocore/unocrsrhelper.cxx sw/source/core/unocore/unofield.cxx sw/source/core/unocore/unoframe.cxx sw/source/core/unocore/unorefmk.cxx sw/source/core/view/vprint.cxx sw/source/filter/ascii/ascatr.cxx sw/source/filter/html/htmlatr.cxx sw/source/filter/rtf/rtffly.cxx sw/source/filter/ww1/fltshell.cxx sw/source/filter/ww1/w1filter.cxx sw/source/filter/ww8/wrtw8esh.cxx sw/source/filter/ww8/wrtw8nds.cxx sw/source/filter/ww8/ww8atr.cxx sw/source/filter/ww8/ww8par.cxx sw/source/filter/ww8/ww8par3.cxx sw/source/filter/ww8/ww8par5.cxx sw/source/ui/app/applab.cxx sw/source/ui/docvw/edtwin.cxx sw/source/ui/docvw/edtwin2.cxx sw/source/ui/envelp/envfmt.cxx sw/source/ui/fldui/fldedt.cxx sw/source/ui/fldui/fldmgr.cxx sw/source/ui/inc/wrtsh.hxx sw/source/ui/lingu/hhcwrp.cxx sw/source/ui/shells/basesh.cxx sw/source/ui/shells/drwtxtex.cxx sw/source/ui/shells/grfsh.cxx sw/source/ui/shells/tabsh.cxx sw/source/ui/shells/textfld.cxx sw/source/ui/shells/textidx.cxx sw/source/ui/shells/textsh.cxx sw/source/ui/shells/textsh1.cxx sw/source/ui/shells/txtattr.cxx sw/source/ui/uiview/formatclipboard.cxx sw/source/ui/uiview/view.cxx sw/source/ui/uiview/view2.cxx sw/source/ui/uiview/viewsrch.cxx sw/source/ui/uiview/viewstat.cxx sw/source/ui/uiview/viewtab.cxx sw/source/ui/wrtsh/wrtsh1.cxx sw/source/ui/wrtsh/wrtsh2.cxx Change-Id: I6758d6719e1fd523797cc6ee2648ffcb47d52595
2013-11-18 11:29:24 +00:00
void CalcFrmRects(
SwShellCrsr&,
const sal_Bool bIsTblSel );
// Calculates the cells included from the current selection
// false: There was no result because of an invalid layout
// true: Everything worked fine.
bool MakeTblCrsrs( SwTableCursor& );
2000-09-18 23:08:29 +00:00
void DisallowTurbo() const { ((SwRootFrm*)this)->bTurboAllowed = sal_False; }
void ResetTurboFlag() const { ((SwRootFrm*)this)->bTurboAllowed = sal_True; }
sal_Bool IsTurboAllowed() const { return bTurboAllowed; }
2000-09-18 23:08:29 +00:00
void SetTurbo( const SwCntntFrm *pCntnt ) { pTurbo = pCntnt; }
void ResetTurbo() { pTurbo = 0; }
const SwCntntFrm *GetTurbo() { return pTurbo; }
//Fussnotennummern aller Seiten auf den neuesten Stand bringen.
void UpdateFtnNums(); //nur bei Seitenweiser Nummerierung!
//Alle Fussnoten (nicht etwa die Referenzen) entfernen.
void RemoveFtns( SwPageFrm *pPage = 0, sal_Bool bPageOnly = sal_False,
sal_Bool bEndNotes = sal_False );
void CheckFtnPageDescs( sal_Bool bEndNote );
2000-09-18 23:08:29 +00:00
const SwPageFrm *GetLastPage() const { return pLastPage; }
SwPageFrm *GetLastPage() { return pLastPage; }
static bool IsInPaint() { return bInPaint; }
2000-09-18 23:08:29 +00:00
static void SetNoVirDev( const sal_Bool bNew ) { bNoVirDev = bNew; }
2000-09-18 23:08:29 +00:00
inline long GetBrowseWidth() const;
void SetBrowseWidth( long n ) { bBrowseWidthValid = sal_True; nBrowseWidth = n;}
2000-09-18 23:08:29 +00:00
inline void InvalidateBrowseWidth();
sal_Bool IsNewLayout() const { return bIsNewLayout; }
void ResetNewLayout() { bIsNewLayout = sal_False;}
2000-09-18 23:08:29 +00:00
// Hier werden leere SwSectionFrms zur Zerstoerung angemeldet
// und spaeter zerstoert oder wieder abgemeldet
void InsertEmptySct( SwSectionFrm* pDel );
void DeleteEmptySct() { if( pDestroy ) _DeleteEmptySct(); }
void RemoveFromList( SwSectionFrm* pSct ) { if( pDestroy ) _RemoveFromList( pSct ); }
#ifdef DBG_UTIL
bool IsInDelList( SwSectionFrm* pSct ) const;
2000-09-18 23:08:29 +00:00
#endif
void SetCallbackActionEnabled( sal_Bool b ) { bCallbackActionEnabled = b; }
sal_Bool IsCallbackActionEnabled() const { return bCallbackActionEnabled; }
sal_Bool IsAnyShellAccessible() const { return nAccessibleShells > 0; }
void AddAccessibleShell() { ++nAccessibleShells; }
void RemoveAccessibleShell() { --nAccessibleShells; }
/** get page frame by phyiscal page number
OD 14.01.2003 #103492#
looping through the lowers, which are page frame, in order to find the
page frame with the given physical page number.
if no page frame is found, 0 is returned.
Note: Empty page frames are also returned.
@param _nPageNum
input parameter - physical page number of page frame to be searched and
returned.
@return pointer to the page frame with the given physical page number
*/
SwPageFrm* GetPageByPageNum( sal_uInt16 _nPageNum ) const;
void CheckViewLayout( const SwViewOption* pViewOpt, const SwRect* pVisArea );
bool IsLeftToRightViewLayout() const;
const SwRect& GetPagesArea() const { return maPagesArea; }
void SetSidebarChanged() { mbSidebarChanged = true; }
bool IsLayoutFreezed() const { return bLayoutFreezed; }
void FreezeLayout( bool freeze ) { bLayoutFreezed = freeze; }
2000-09-18 23:08:29 +00:00
};
inline long SwRootFrm::GetBrowseWidth() const
{
if ( !bBrowseWidthValid )
((SwRootFrm*)this)->ImplCalcBrowseWidth();
return nBrowseWidth;
}
inline void SwRootFrm::InvalidateBrowseWidth()
{
if ( bBrowseWidthValid )
ImplInvalidateBrowseWidth();
}
inline void SwRootFrm::SetVirtPageNum( const sal_Bool bOf) const
2000-09-18 23:08:29 +00:00
{
((SwRootFrm*)this)->bIsVirtPageNum = bOf;
}
#endif // INCLUDED_SW_SOURCE_CORE_INC_ROOTFRM_HXX
2000-09-18 23:08:29 +00:00
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */