| 
									
										
										
										
											2010-10-14 08:30:41 +02:00
										 |  |  | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  | /*************************************************************************
 | 
					
						
							|  |  |  |  * | 
					
						
							| 
									
										
										
										
											2008-04-10 13:22:46 +00:00
										 |  |  |  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  |  * | 
					
						
							| 
									
										
										
										
											2010-02-12 15:01:35 +01:00
										 |  |  |  * Copyright 2000, 2010 Oracle and/or its affiliates. | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  |  * | 
					
						
							| 
									
										
										
										
											2008-04-10 13:22:46 +00:00
										 |  |  |  * OpenOffice.org - a multi-platform office productivity suite | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  |  * | 
					
						
							| 
									
										
										
										
											2008-04-10 13:22:46 +00:00
										 |  |  |  * This file is part of OpenOffice.org. | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  |  * | 
					
						
							| 
									
										
										
										
											2008-04-10 13:22:46 +00:00
										 |  |  |  * OpenOffice.org is free software: you can redistribute it and/or modify | 
					
						
							|  |  |  |  * it under the terms of the GNU Lesser General Public License version 3 | 
					
						
							|  |  |  |  * only, as published by the Free Software Foundation. | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  |  * | 
					
						
							| 
									
										
										
										
											2008-04-10 13:22:46 +00:00
										 |  |  |  * OpenOffice.org 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 version 3 for more details | 
					
						
							|  |  |  |  * (a copy is included in the LICENSE file that accompanied this code). | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  |  * | 
					
						
							| 
									
										
										
										
											2008-04-10 13:22:46 +00:00
										 |  |  |  * You should have received a copy of the GNU Lesser General Public License | 
					
						
							|  |  |  |  * version 3 along with OpenOffice.org.  If not, see | 
					
						
							|  |  |  |  * <http://www.openoffice.org/license.html>
 | 
					
						
							|  |  |  |  * for a copy of the LGPLv3 License. | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  |  * | 
					
						
							|  |  |  |  ************************************************************************/ | 
					
						
							|  |  |  | #ifndef _PAGEFRM_HXX
 | 
					
						
							|  |  |  | #define _PAGEFRM_HXX
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-10-16 00:05:16 +02:00
										 |  |  | #include <svl/svarray.hxx>
 | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | #include "ftnboss.hxx"
 | 
					
						
							|  |  |  | #include <tools/mempool.hxx>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-01-12 10:43:45 +01:00
										 |  |  | #include <SidebarWindowsTypes.hxx>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  | class SwFlyFrm; | 
					
						
							| 
									
										
										
										
											2005-09-28 10:09:34 +00:00
										 |  |  | class SwFlyFrmFmt; | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  | class SwPageDesc; | 
					
						
							|  |  |  | class SwCntntFrm; | 
					
						
							|  |  |  | struct SwPosition; | 
					
						
							|  |  |  | struct SwCrsrMoveState; | 
					
						
							|  |  |  | class SdrObject; | 
					
						
							|  |  |  | class SwAttrSetChg; | 
					
						
							| 
									
										
										
										
											2008-03-07 13:54:05 +00:00
										 |  |  | class Font; | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-02-12 22:48:50 +01:00
										 |  |  | // #i28701# - replaced by class <SwSortedObjs>
 | 
					
						
							| 
									
										
										
										
											2004-08-02 13:06:36 +00:00
										 |  |  | class SwSortedObjs; | 
					
						
							| 
									
										
										
										
											2011-02-12 22:48:50 +01:00
										 |  |  | // #i28701#
 | 
					
						
							| 
									
										
										
										
											2004-08-02 13:06:36 +00:00
										 |  |  | class SwAnchoredObject; | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | enum SwPageChg | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     CHG_NEWPAGE, | 
					
						
							|  |  |  |     CHG_CUTPAGE, | 
					
						
							|  |  |  |     CHG_CHGPAGE | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class SwPageFrm: public SwFtnBossFrm | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     friend class SwFrm; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-02-12 22:48:50 +01:00
										 |  |  |     // #i28701# - use <SwSortedObjs>
 | 
					
						
							| 
									
										
										
										
											2004-08-02 13:06:36 +00:00
										 |  |  |     SwSortedObjs *pSortedObjs; | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |     SwPageDesc *pDesc;      //PageDesc der die Seite beschreibt.
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-01-17 15:06:54 +01:00
										 |  |  |     sal_uInt16  nPhyPageNum;        //Physikalische Seitennummer.
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     sal_Bool bInvalidCntnt      :1; | 
					
						
							|  |  |  |     sal_Bool bInvalidLayout     :1; | 
					
						
							|  |  |  |     sal_Bool bInvalidFlyCntnt   :1; | 
					
						
							|  |  |  |     sal_Bool bInvalidFlyLayout  :1; | 
					
						
							|  |  |  |     sal_Bool bInvalidFlyInCnt   :1; | 
					
						
							|  |  |  |     sal_Bool bFtnPage           :1; //Diese Seite ist fuer Dokumentende-Fussnoten.
 | 
					
						
							|  |  |  |     sal_Bool bEmptyPage         :1; //Dies ist eine explizite Leerseite
 | 
					
						
							|  |  |  |     sal_Bool bEndNotePage       :1; //'Fussnotenseite' fuer Endnoten
 | 
					
						
							|  |  |  |     sal_Bool bInvalidSpelling   :1; //Das Online-Spelling ist gefordert
 | 
					
						
							|  |  |  |     sal_Bool bInvalidSmartTags :1;  //checking for smarttags is needed  // SMARTTAGS
 | 
					
						
							|  |  |  |     sal_Bool bInvalidAutoCmplWrds :1; //Auto-Complete Wordliste aktualisieren
 | 
					
						
							|  |  |  |     sal_Bool bInvalidWordCount  :1; | 
					
						
							|  |  |  |     sal_Bool bHasGrid           :1; // Grid for Asian layout
 | 
					
						
							| 
									
										
										
										
											2004-08-02 13:06:36 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-02-12 22:48:50 +01:00
										 |  |  |     // #i28701# - boolean, indicating that layout of page frame
 | 
					
						
							| 
									
										
										
										
											2004-08-02 13:06:36 +00:00
										 |  |  |     // is in progress.
 | 
					
						
							|  |  |  |     bool mbLayoutInProgress; | 
					
						
							| 
									
										
										
										
											2003-03-27 14:45:43 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |     static const sal_Int8 mnShadowPxWidth; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-02-09 15:55:27 +01:00
										 |  |  |     void _UpdateAttr( const SfxPoolItem*, const SfxPoolItem*, sal_uInt8 &, | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  |                       SwAttrSetChg *pa = 0, SwAttrSetChg *pb = 0 ); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     // Anpassen der max. Fussnotenhoehen in den einzelnen Spalten
 | 
					
						
							|  |  |  |     void SetColMaxFtnHeight(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-05-03 10:47:40 +02:00
										 |  |  |     /** determine rectangle for horizontal page shadow
 | 
					
						
							| 
									
										
										
										
											2003-03-27 14:45:43 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-02-12 22:48:50 +01:00
										 |  |  |         #i9719#
 | 
					
						
							| 
									
										
										
										
											2003-03-27 14:45:43 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         @param _rPageRect | 
					
						
							|  |  |  |         input parameter - constant instance reference of the page rectangle. | 
					
						
							|  |  |  |         Generally, it's the frame area of the page, but for empty pages in print | 
					
						
							|  |  |  |         preview, this parameter is useful. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         @param _pViewShell | 
					
						
							|  |  |  |         input parameter - instance of the view shell, for which the rectangle | 
					
						
							|  |  |  |         has to be generated. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         @param _orBottomShadowRect | 
					
						
							|  |  |  |         output parameter - instance reference of the bottom shadow rectangle for | 
					
						
							|  |  |  |         the given page rectangle | 
					
						
							|  |  |  |     */ | 
					
						
							| 
									
										
										
										
											2008-03-07 13:54:05 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-05-03 10:47:40 +02:00
										 |  |  |     static void GetHorizontalShadowRect( const SwRect& _rPageRect, | 
					
						
							| 
									
										
										
										
											2011-05-03 11:02:12 +02:00
										 |  |  |                                      const ViewShell*    _pViewShell, | 
					
						
							| 
									
										
										
										
											2008-03-07 13:54:05 +00:00
										 |  |  |                                      SwRect&       _orBottomShadowRect, | 
					
						
							| 
									
										
										
										
											2011-04-26 18:04:12 +02:00
										 |  |  |                                      bool bPaintLeftShadow, | 
					
						
							| 
									
										
										
										
											2011-05-03 10:47:40 +02:00
										 |  |  |                                      bool bPaintRightShadow, | 
					
						
							| 
									
										
										
										
											2008-03-07 13:54:05 +00:00
										 |  |  |                                      bool bRightSidebar ); | 
					
						
							| 
									
										
										
										
											2003-03-27 14:45:43 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-02-19 12:43:40 +00:00
										 |  |  |     /** adds the sidebar used for notes to right and left border
 | 
					
						
							| 
									
										
										
										
											2011-02-12 22:48:50 +01:00
										 |  |  |         #i6193#
 | 
					
						
							| 
									
										
										
										
											2008-02-19 12:43:40 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         @param aRect | 
					
						
							|  |  |  |         input parameter - current rect, we change borders if we want a sidebar | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         @param _pViewShell | 
					
						
							|  |  |  |         input parameter - instance of the view shell, for which the rectangle | 
					
						
							|  |  |  |         has to be generated. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         @param bPx | 
					
						
							|  |  |  |         input parameter - if set to true, we add in pixel | 
					
						
							|  |  |  |     */ | 
					
						
							| 
									
										
										
										
											2008-03-07 13:54:05 +00:00
										 |  |  |     static void AddSidebarBorders( Rectangle& aRect, ViewShell* _pViewShell, bool bRight, bool bPx = false); | 
					
						
							|  |  |  |     static void AddSidebarBorders(       SwRect& aRect, ViewShell* _pViewShell, bool bRight, bool bPx = false); | 
					
						
							| 
									
										
										
										
											2008-02-19 12:43:40 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  | protected: | 
					
						
							|  |  |  |     virtual void MakeAll(); | 
					
						
							| 
									
										
										
										
											2010-12-17 09:02:23 +01:00
										 |  |  |     virtual void Modify( const SfxPoolItem*, const SfxPoolItem* ); | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | public: | 
					
						
							|  |  |  |     DECL_FIXEDMEMPOOL_NEWDEL(SwPageFrm) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-06-13 15:22:56 +02:00
										 |  |  |     SwPageFrm( SwFrmFmt*, SwFrm*, SwPageDesc* ); | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  |     ~SwPageFrm(); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     //public, damit die ViewShell beim Umschalten vom BrowseMode darauf
 | 
					
						
							|  |  |  |     //zugreifen kann.
 | 
					
						
							|  |  |  |     void PrepareHeader();   //Kopf-/Fusszeilen anlegen/entfernen.
 | 
					
						
							|  |  |  |     void PrepareFooter(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-08-02 13:06:36 +00:00
										 |  |  |     const SwSortedObjs  *GetSortedObjs() const  { return pSortedObjs; } | 
					
						
							|  |  |  |           SwSortedObjs  *GetSortedObjs()          { return pSortedObjs; } | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-02-12 22:48:50 +01:00
										 |  |  |     // #i28701# - new methods to append/remove drawing objects
 | 
					
						
							| 
									
										
										
										
											2004-08-02 13:06:36 +00:00
										 |  |  |     void AppendDrawObjToPage( SwAnchoredObject& _rNewObj ); | 
					
						
							|  |  |  |     void RemoveDrawObjFromPage( SwAnchoredObject& _rToRemoveObj ); | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-08-02 13:06:36 +00:00
										 |  |  |     void AppendFlyToPage( SwFlyFrm *pNew ); | 
					
						
							|  |  |  |     void RemoveFlyFromPage( SwFlyFrm *pToRemove ); | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  |     void MoveFly( SwFlyFrm *pToMove, SwPageFrm *pDest );//optimiertes Remove/Append
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     void  SetPageDesc( SwPageDesc *, SwFrmFmt * ); | 
					
						
							|  |  |  |           SwPageDesc *GetPageDesc() { return pDesc; } | 
					
						
							|  |  |  |     const SwPageDesc *GetPageDesc() const { return pDesc; } | 
					
						
							|  |  |  |           SwPageDesc *FindPageDesc(); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                  SwCntntFrm  *FindLastBodyCntnt(); | 
					
						
							|  |  |  |     inline       SwCntntFrm  *FindFirstBodyCntnt(); | 
					
						
							|  |  |  |     inline const SwCntntFrm  *FindFirstBodyCntnt() const; | 
					
						
							|  |  |  |     inline const SwCntntFrm  *FindLastBodyCntnt() const; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-04-27 09:12:52 +02:00
										 |  |  |     SwRect GetBoundRect() const; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  |     //Spezialisiertes GetCntntPos() fuer Felder in Rahmen.
 | 
					
						
							|  |  |  |     void GetCntntPosition( const Point &rPt, SwPosition &rPos ) const; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-01-17 15:06:54 +01:00
										 |  |  |     sal_Bool IsEmptyPage() const { return bEmptyPage; } //explizite Leerseite.
 | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |     void    UpdateFtnNum(); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     //Immer nach dem Paste rufen. Erzeugt die Seitengeb. Rahmen und Formatiert
 | 
					
						
							|  |  |  |     //generischen Inhalt.
 | 
					
						
							| 
									
										
										
										
											2011-01-17 15:06:54 +01:00
										 |  |  |     void PreparePage( sal_Bool bFtn ); | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |     //Schickt an alle ContentFrames ein Prepare wg. geaenderter Registervorlage
 | 
					
						
							|  |  |  |     void PrepareRegisterChg(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-02-12 22:48:50 +01:00
										 |  |  |     // #i50432# - adjust method description and synopsis.
 | 
					
						
							| 
									
										
										
										
											2005-09-28 10:09:34 +00:00
										 |  |  |     // Appends a fly frame - the given one or a new one - at the page frame.
 | 
					
						
							|  |  |  |     // Needed for <Modify> and <MakeFrms>
 | 
					
						
							|  |  |  |     // - return value not needed any more
 | 
					
						
							|  |  |  |     // - second parameter is of type <SwFlyFrmFmt*>
 | 
					
						
							|  |  |  |     // - third parameter only needed for assertion, but calling method assures
 | 
					
						
							|  |  |  |     //   this assertion. Thus, delete it.
 | 
					
						
							|  |  |  |     void PlaceFly( SwFlyFrm* pFly, SwFlyFrmFmt* pFmt ); | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-01-17 15:06:54 +01:00
										 |  |  |     virtual sal_Bool GetCrsrOfst( SwPosition *, Point&, | 
					
						
							| 
									
										
										
										
											2004-05-17 15:16:13 +00:00
										 |  |  |                               SwCrsrMoveState* = 0 ) const; | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  |         // erfrage vom Client Informationen
 | 
					
						
							| 
									
										
										
										
											2011-01-17 15:06:54 +01:00
										 |  |  |     virtual sal_Bool GetInfo( SfxPoolItem& ) const; | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |     virtual void Cut(); | 
					
						
							|  |  |  |     virtual void Paste( SwFrm* pParent, SwFrm* pSibling = 0 ); | 
					
						
							| 
									
										
										
										
											2011-01-17 15:06:54 +01:00
										 |  |  |     virtual void  CheckDirection( sal_Bool bVert ); | 
					
						
							|  |  |  |     void CheckGrid( sal_Bool bInvalidate ); | 
					
						
							| 
									
										
										
										
											2002-01-23 12:51:59 +00:00
										 |  |  |     void PaintGrid( OutputDevice* pOut, SwRect &rRect ) const; | 
					
						
							| 
									
										
										
										
											2011-01-17 15:06:54 +01:00
										 |  |  |     sal_Bool HasGrid() const { return bHasGrid; } | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-07-05 09:42:49 +02:00
										 |  |  |     void PaintDecorators( OutputDevice* pOut ) const; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  |     //Zeilennummern usw malen
 | 
					
						
							|  |  |  |     void RefreshExtraData( const SwRect & ) const; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     //Hilfslinien malen.
 | 
					
						
							|  |  |  |     void RefreshSubsidiary( const SwRect& ) const; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     //Fussnotenschnittstelle
 | 
					
						
							| 
									
										
										
										
											2011-01-17 15:06:54 +01:00
										 |  |  |     sal_Bool IsFtnPage() const                                  { return bFtnPage; } | 
					
						
							|  |  |  |     sal_Bool IsEndNotePage() const                              { return bEndNotePage; } | 
					
						
							|  |  |  |     void SetFtnPage( sal_Bool b )                               { bFtnPage = b; } | 
					
						
							|  |  |  |     void SetEndNotePage( sal_Bool b )                           { bEndNotePage = b; } | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-01-17 15:06:54 +01:00
										 |  |  |     inline  sal_uInt16 GetPhyPageNum() const        { return nPhyPageNum;} | 
					
						
							|  |  |  |     inline  void SetPhyPageNum( sal_uInt16 nNum )   { nPhyPageNum = nNum;} | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  |     inline  void DecrPhyPageNum()               { --nPhyPageNum;     } | 
					
						
							|  |  |  |     inline  void IncrPhyPageNum()               { ++nPhyPageNum;     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     //Validieren, invalidieren und abfragen des Status der Seite.
 | 
					
						
							|  |  |  |     //Layout/Cntnt und jeweils Fly/nicht Fly werden getrennt betrachtet.
 | 
					
						
							|  |  |  |     inline void InvalidateFlyLayout() const; | 
					
						
							|  |  |  |     inline void InvalidateFlyCntnt() const; | 
					
						
							|  |  |  |     inline void InvalidateFlyInCnt() const; | 
					
						
							|  |  |  |     inline void InvalidateLayout() const; | 
					
						
							|  |  |  |     inline void InvalidateCntnt() const; | 
					
						
							|  |  |  |     inline void InvalidateSpelling() const; | 
					
						
							| 
									
										
										
										
											2007-01-02 15:48:20 +00:00
										 |  |  |     inline void InvalidateSmartTags() const; | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  |     inline void InvalidateAutoCompleteWords() const; | 
					
						
							| 
									
										
										
										
											2006-07-10 14:28:03 +00:00
										 |  |  |     inline void InvalidateWordCount() const; | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  |     inline void ValidateFlyLayout() const; | 
					
						
							|  |  |  |     inline void ValidateFlyCntnt() const; | 
					
						
							|  |  |  |     inline void ValidateFlyInCnt() const; | 
					
						
							|  |  |  |     inline void ValidateLayout() const; | 
					
						
							|  |  |  |     inline void ValidateCntnt() const; | 
					
						
							|  |  |  |     inline void ValidateSpelling()  const; | 
					
						
							| 
									
										
										
										
											2007-01-02 15:48:20 +00:00
										 |  |  |     inline void ValidateSmartTags() const;        // SMARTTAGS
 | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  |     inline void ValidateAutoCompleteWords() const; | 
					
						
							| 
									
										
										
										
											2006-07-10 14:28:03 +00:00
										 |  |  |     inline void ValidateWordCount() const; | 
					
						
							| 
									
										
										
										
											2011-01-17 15:06:54 +01:00
										 |  |  |     inline sal_Bool IsInvalid() const; | 
					
						
							|  |  |  |     inline sal_Bool IsInvalidFly() const; | 
					
						
							| 
									
										
										
										
											2011-05-03 11:02:12 +02:00
										 |  |  |     sal_Bool IsRightShadowNeeded() const; | 
					
						
							|  |  |  |     sal_Bool IsLeftShadowNeeded() const; | 
					
						
							| 
									
										
										
										
											2011-01-17 15:06:54 +01:00
										 |  |  |     sal_Bool IsInvalidFlyLayout() const { return bInvalidFlyLayout; } | 
					
						
							|  |  |  |     sal_Bool IsInvalidFlyCntnt() const { return bInvalidFlyCntnt; } | 
					
						
							|  |  |  |     sal_Bool IsInvalidFlyInCnt() const { return bInvalidFlyInCnt; } | 
					
						
							|  |  |  |     sal_Bool IsInvalidLayout() const { return bInvalidLayout; } | 
					
						
							|  |  |  |     sal_Bool IsInvalidCntnt() const { return (bInvalidCntnt || bInvalidFlyInCnt); } | 
					
						
							|  |  |  |     sal_Bool IsInvalidSpelling() const { return bInvalidSpelling; } | 
					
						
							|  |  |  |     sal_Bool IsInvalidSmartTags() const { return bInvalidSmartTags; }   // SMARTTAGS
 | 
					
						
							|  |  |  |     sal_Bool IsInvalidAutoCompleteWords() const { return bInvalidAutoCmplWrds; } | 
					
						
							|  |  |  |     sal_Bool IsInvalidWordCount() const { return bInvalidWordCount; } | 
					
						
							| 
									
										
										
										
											2002-09-03 06:51:04 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-02-12 22:48:50 +01:00
										 |  |  |     /** SwPageFrm::GetDrawBackgrdColor
 | 
					
						
							| 
									
										
										
										
											2002-09-03 06:51:04 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         determine the color, that is respectively will be drawn as background | 
					
						
							|  |  |  |         for the page frame. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         @return reference to an instance of class Color | 
					
						
							|  |  |  |     */ | 
					
						
							|  |  |  |     const Color& GetDrawBackgrdColor() const; | 
					
						
							| 
									
										
										
										
											2002-11-20 12:14:44 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |     /** paint margin area of a page
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         implement paint of margin area; margin area will be painted for a | 
					
						
							|  |  |  |         view shell with a window and if the document is not in online layout. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         @param _rOutputRect | 
					
						
							|  |  |  |         input parameter - constant instance reference of the rectangle, for | 
					
						
							|  |  |  |         which an output has to be generated. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         @param _pViewShell | 
					
						
							|  |  |  |         input parameter - instance of the view shell, on which the output | 
					
						
							|  |  |  |         has to be generated. | 
					
						
							|  |  |  |     */ | 
					
						
							|  |  |  |     void PaintMarginArea( const SwRect& _rOutputRect, | 
					
						
							|  |  |  |                           ViewShell* _pViewShell ) const; | 
					
						
							| 
									
										
										
										
											2003-03-27 14:45:43 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |     /** paint page border and shadow
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-02-12 22:48:50 +01:00
										 |  |  |         #i9719#
 | 
					
						
							| 
									
										
										
										
											2003-03-27 14:45:43 +00:00
										 |  |  |         implement paint of page border and shadow | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         @param _rPageRect | 
					
						
							|  |  |  |         input parameter - constant instance reference of the page rectangle. | 
					
						
							|  |  |  |         Generally, it's the frame area of the page, but for empty pages in print | 
					
						
							|  |  |  |         preview, this parameter is useful. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         @param _pViewShell | 
					
						
							|  |  |  |         input parameter - instance of the view shell, on which the output | 
					
						
							|  |  |  |         has to be generated. | 
					
						
							| 
									
										
										
										
											2011-02-28 23:04:30 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |         @param bPaintRightShadow | 
					
						
							|  |  |  |         Should we paint shadow on the right or not (used in book mode) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         @param bFullBottomShadow | 
					
						
							|  |  |  |         Should we have a bottom shadow of the same size as the pages or | 
					
						
							|  |  |  |         not (for right pages in book mode in a LTR environment). | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         @param bRightSidebar | 
					
						
							|  |  |  |         Is the note sidebar on the right or not (used to adjust the | 
					
						
							|  |  |  |         shadow with & position). | 
					
						
							| 
									
										
										
										
											2003-03-27 14:45:43 +00:00
										 |  |  |     */ | 
					
						
							| 
									
										
										
										
											2008-03-07 13:54:05 +00:00
										 |  |  |     static void PaintBorderAndShadow( const SwRect& _rPageRect, | 
					
						
							| 
									
										
										
										
											2011-05-03 11:02:12 +02:00
										 |  |  |                                       const ViewShell*    _pViewShell, | 
					
						
							| 
									
										
										
										
											2011-05-03 10:47:40 +02:00
										 |  |  |                                       bool bPaintLeftShadow, | 
					
						
							| 
									
										
										
										
											2008-03-07 13:54:05 +00:00
										 |  |  |                                       bool bPaintRightShadow, | 
					
						
							|  |  |  |                                       bool bRightSidebar ); | 
					
						
							| 
									
										
										
										
											2003-03-27 14:45:43 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |     /** get bound rectangle of border and shadow for repaints
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-02-12 22:48:50 +01:00
										 |  |  |         #i9719#
 | 
					
						
							| 
									
										
										
										
											2003-03-27 14:45:43 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |         @param _rPageRect | 
					
						
							|  |  |  |         input parameter - constant instance reference of the page rectangle. | 
					
						
							|  |  |  |         Generally, it's the frame area of the page, but for empty pages in print | 
					
						
							|  |  |  |         preview, this parameter is useful. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         @param _pViewShell | 
					
						
							|  |  |  |         input parameter - instance of the view shell, for which the rectangle | 
					
						
							|  |  |  |         has to be generated. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         @param _orBorderAndShadowBoundRect | 
					
						
							|  |  |  |         output parameter - instance reference of the bounded border and shadow | 
					
						
							|  |  |  |         rectangle for the given page rectangle | 
					
						
							|  |  |  |     */ | 
					
						
							| 
									
										
										
										
											2008-03-07 13:54:05 +00:00
										 |  |  |     static void GetBorderAndShadowBoundRect( const SwRect& _rPageRect, | 
					
						
							| 
									
										
										
										
											2011-05-03 11:02:12 +02:00
										 |  |  |                                              const ViewShell*    _pViewShell, | 
					
						
							| 
									
										
										
										
											2008-03-07 13:54:05 +00:00
										 |  |  |                                              SwRect& _orBorderAndShadowBoundRect, | 
					
						
							| 
									
										
										
										
											2011-05-03 11:02:12 +02:00
										 |  |  |                                              const bool bLeftShadow, | 
					
						
							|  |  |  |                                              const bool bRightShadow, | 
					
						
							|  |  |  |                                              const bool bRightSidebar | 
					
						
							|  |  |  |                                             ); | 
					
						
							| 
									
										
										
										
											2003-03-27 14:45:43 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-01-17 15:06:54 +01:00
										 |  |  |     static void PaintNotesSidebar(const SwRect& _rPageRect, ViewShell* _pViewShell, sal_uInt16 nPageNum, bool bRight); | 
					
						
							| 
									
										
										
										
											2008-03-07 13:54:05 +00:00
										 |  |  |     static void PaintNotesSidebarArrows(const Point &aMiddleFirst, const Point &aMiddleSecond, ViewShell* _pViewShell, const Color aColorUp, const Color aColorDown); | 
					
						
							| 
									
										
										
										
											2008-02-19 12:43:40 +00:00
										 |  |  |     /**
 | 
					
						
							|  |  |  |         asks the page on which side a margin should be shown, e.g for notes | 
					
						
							|  |  |  |         returns true for left side, false for right side | 
					
						
							|  |  |  |     */ | 
					
						
							| 
									
										
										
										
											2010-01-12 10:43:45 +01:00
										 |  |  |     sw::sidebarwindows::SidebarPosition SidebarPosition() const; | 
					
						
							| 
									
										
										
										
											2008-02-19 12:43:40 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-11-22 14:35:52 +00:00
										 |  |  |     virtual bool FillSelection( SwSelectionList& rList, const SwRect& rRect ) const; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-03-27 14:45:43 +00:00
										 |  |  |     inline sal_Int8 ShadowPxWidth() const | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         return mnShadowPxWidth; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2004-02-02 17:19:37 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |     const SwRect PrtWithoutHeaderAndFooter() const; | 
					
						
							| 
									
										
										
										
											2004-08-02 13:06:36 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-02-12 22:48:50 +01:00
										 |  |  |     // #i28701#
 | 
					
						
							| 
									
										
										
										
											2004-08-02 13:06:36 +00:00
										 |  |  |     inline bool IsLayoutInProgress() const | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         return mbLayoutInProgress; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |     inline void SetLayoutInProgress( const bool _bLayoutInProgress ) | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         mbLayoutInProgress = _bLayoutInProgress; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2008-03-07 13:54:05 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |     // in case this is am empty page, this function returns the 'reference' page
 | 
					
						
							|  |  |  |     const SwPageFrm& GetFormatPage() const; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     // return font used to paint the "empty page" string
 | 
					
						
							|  |  |  |     static const Font& GetEmptyPageFont(); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     static SwTwips GetSidebarBorderWidth( const ViewShell* ); | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | inline SwCntntFrm *SwPageFrm::FindFirstBodyCntnt() | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     SwLayoutFrm *pBody = FindBodyCont(); | 
					
						
							|  |  |  |     return pBody ? pBody->ContainsCntnt() : 0; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | inline const SwCntntFrm *SwPageFrm::FindFirstBodyCntnt() const | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     const SwLayoutFrm *pBody = FindBodyCont(); | 
					
						
							|  |  |  |     return pBody ? pBody->ContainsCntnt() : 0; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | inline const SwCntntFrm *SwPageFrm::FindLastBodyCntnt() const | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     return ((SwPageFrm*)this)->FindLastBodyCntnt(); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | inline void SwPageFrm::InvalidateFlyLayout() const | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2011-01-17 15:06:54 +01:00
										 |  |  |     ((SwPageFrm*)this)->bInvalidFlyLayout = sal_True; | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  | } | 
					
						
							|  |  |  | inline void SwPageFrm::InvalidateFlyCntnt() const | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2011-01-17 15:06:54 +01:00
										 |  |  |     ((SwPageFrm*)this)->bInvalidFlyCntnt = sal_True; | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  | } | 
					
						
							|  |  |  | inline void SwPageFrm::InvalidateFlyInCnt() const | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2011-01-17 15:06:54 +01:00
										 |  |  |     ((SwPageFrm*)this)->bInvalidFlyInCnt = sal_True; | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  | } | 
					
						
							|  |  |  | inline void SwPageFrm::InvalidateLayout() const | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2011-01-17 15:06:54 +01:00
										 |  |  |     ((SwPageFrm*)this)->bInvalidLayout = sal_True; | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  | } | 
					
						
							|  |  |  | inline void SwPageFrm::InvalidateCntnt() const | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2011-01-17 15:06:54 +01:00
										 |  |  |     ((SwPageFrm*)this)->bInvalidCntnt = sal_True; | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  | } | 
					
						
							|  |  |  | inline void SwPageFrm::InvalidateSpelling() const | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2011-01-17 15:06:54 +01:00
										 |  |  |     ((SwPageFrm*)this)->bInvalidSpelling = sal_True; | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2007-01-02 15:48:20 +00:00
										 |  |  | // SMARTTAGS
 | 
					
						
							|  |  |  | inline void    SwPageFrm::InvalidateSmartTags() const | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2011-01-17 15:06:54 +01:00
										 |  |  |    ((SwPageFrm*)this)->bInvalidSmartTags = sal_True; | 
					
						
							| 
									
										
										
										
											2007-01-02 15:48:20 +00:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  | inline void SwPageFrm::InvalidateAutoCompleteWords() const | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2011-01-17 15:06:54 +01:00
										 |  |  |     ((SwPageFrm*)this)->bInvalidAutoCmplWrds = sal_True; | 
					
						
							| 
									
										
										
										
											2006-07-10 14:28:03 +00:00
										 |  |  | } | 
					
						
							|  |  |  | inline void SwPageFrm::InvalidateWordCount() const | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2011-01-17 15:06:54 +01:00
										 |  |  |     ((SwPageFrm*)this)->bInvalidWordCount = sal_True; | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  | } | 
					
						
							|  |  |  | inline void SwPageFrm::ValidateFlyLayout() const | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2011-01-17 15:06:54 +01:00
										 |  |  |     ((SwPageFrm*)this)->bInvalidFlyLayout = sal_False; | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  | } | 
					
						
							|  |  |  | inline void SwPageFrm::ValidateFlyCntnt() const | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2011-01-17 15:06:54 +01:00
										 |  |  |     ((SwPageFrm*)this)->bInvalidFlyCntnt = sal_False; | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  | } | 
					
						
							|  |  |  | inline void SwPageFrm::ValidateFlyInCnt() const | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2011-01-17 15:06:54 +01:00
										 |  |  |     ((SwPageFrm*)this)->bInvalidFlyInCnt = sal_False; | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  | } | 
					
						
							|  |  |  | inline void SwPageFrm::ValidateLayout() const | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2011-01-17 15:06:54 +01:00
										 |  |  |     ((SwPageFrm*)this)->bInvalidLayout = sal_False; | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  | } | 
					
						
							|  |  |  | inline void SwPageFrm::ValidateCntnt() const | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2011-01-17 15:06:54 +01:00
										 |  |  |     ((SwPageFrm*)this)->bInvalidCntnt = sal_False; | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  | } | 
					
						
							|  |  |  | inline void SwPageFrm::ValidateSpelling() const | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2011-01-17 15:06:54 +01:00
										 |  |  |     ((SwPageFrm*)this)->bInvalidSpelling = sal_False; | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2007-01-02 15:48:20 +00:00
										 |  |  | // SMARTTAGS
 | 
					
						
							|  |  |  | inline void    SwPageFrm::ValidateSmartTags() const | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2011-01-17 15:06:54 +01:00
										 |  |  |    ((SwPageFrm*)this)->bInvalidSmartTags = sal_False; | 
					
						
							| 
									
										
										
										
											2007-01-02 15:48:20 +00:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  | inline void SwPageFrm::ValidateAutoCompleteWords() const | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2011-01-17 15:06:54 +01:00
										 |  |  |     ((SwPageFrm*)this)->bInvalidAutoCmplWrds = sal_False; | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2006-07-10 14:28:03 +00:00
										 |  |  | inline void SwPageFrm::ValidateWordCount() const | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2011-01-17 15:06:54 +01:00
										 |  |  |     ((SwPageFrm*)this)->bInvalidWordCount = sal_False; | 
					
						
							| 
									
										
										
										
											2006-07-10 14:28:03 +00:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-01-17 15:06:54 +01:00
										 |  |  | inline sal_Bool SwPageFrm::IsInvalid() const | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  | { | 
					
						
							|  |  |  |     return (bInvalidCntnt || bInvalidLayout || bInvalidFlyInCnt); | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2011-01-17 15:06:54 +01:00
										 |  |  | inline sal_Bool SwPageFrm::IsInvalidFly() const | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  | { | 
					
						
							|  |  |  |     return bInvalidFlyLayout || bInvalidFlyCntnt; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2002-02-05 14:00:23 +00:00
										 |  |  | #define GETGRID( pPage ) const SwTextGridItem *pGrid = NULL; \
 | 
					
						
							|  |  |  |  {if( pPage && pPage->HasGrid() && GRID_NONE==(pGrid=(SwTextGridItem*)&pPage->\ | 
					
						
							| 
									
										
										
										
											2008-06-13 08:52:54 +00:00
										 |  |  |      GetPageDesc()->GetMaster().GetFmtAttr(RES_TEXTGRID))->GetGridType() ) \ | 
					
						
							| 
									
										
										
										
											2002-02-05 14:00:23 +00:00
										 |  |  |     pGrid = NULL;} | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-03-07 15:25:16 +00:00
										 |  |  | #define GETGRIDWIDTH( pGrid , pDoc )  pDoc->IsSquaredPageMode() ? \
 | 
					
						
							|  |  |  |     pGrid->GetBaseHeight(): pGrid->GetBaseWidth() | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2000-09-18 23:08:29 +00:00
										 |  |  | #endif  //_PAGEFRM_HXX
 | 
					
						
							| 
									
										
										
										
											2010-10-14 08:30:41 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |