diff options
Diffstat (limited to 'sw/source/core/inc/frame.hxx')
-rw-r--r-- | sw/source/core/inc/frame.hxx | 385 |
1 files changed, 201 insertions, 184 deletions
diff --git a/sw/source/core/inc/frame.hxx b/sw/source/core/inc/frame.hxx index 7e9a9d99c8e4..62ed01cce55d 100644 --- a/sw/source/core/inc/frame.hxx +++ b/sw/source/core/inc/frame.hxx @@ -135,8 +135,8 @@ class SwAnchoredObject; class SwFrm; typedef long (SwFrm:: *SwFrmGet)() const; -typedef BOOL (SwFrm:: *SwFrmMax)( long ); -typedef void (SwFrm:: *SwFrmMakePos)( const SwFrm*, const SwFrm*, BOOL ); +typedef sal_Bool (SwFrm:: *SwFrmMax)( long ); +typedef void (SwFrm:: *SwFrmMakePos)( const SwFrm*, const SwFrm*, sal_Bool ); typedef long (*SwOperator)( long, long ); typedef void (SwFrm:: *SwFrmSet)( long, long ); @@ -344,9 +344,13 @@ class SwFrm: public SwClient, public SfxBroadcaster SwCntntFrm* _FindPrevCnt( const bool _bInSameFtn = false ); +<<<<<<< local void _UpdateAttrFrm( const SfxPoolItem*, const SfxPoolItem*, BYTE & ); +======= + void _UpdateAttrFrm( SfxPoolItem*, SfxPoolItem*, sal_uInt8 & ); +>>>>>>> other SwFrm* _GetIndNext(); - void SetDirFlags( BOOL bVert ); + void SetDirFlags( sal_Bool bVert ); SwFrm( SwFrm & ); //Kopieren ist nicht erlaubt. @@ -358,52 +362,56 @@ protected: SwRect aFrm; //Absolute Dokumentposition und groesse des Frm SwRect aPrt; //Position der PrtArea rel zum Frm und groesse der PrtArea - USHORT bFlag01: 1; - USHORT bFlag02: 1; - USHORT bFlag03: 1; - USHORT bFlag04: 1; - USHORT bFlag05: 1; - USHORT bReverse: 1; // Next line above/at the right side instead + sal_uInt16 bFlag01: 1; + sal_uInt16 bFlag02: 1; + sal_uInt16 bFlag03: 1; + sal_uInt16 bFlag04: 1; + sal_uInt16 bFlag05: 1; + sal_uInt16 bReverse: 1; // Next line above/at the right side instead // under/at the left side of the previous line. - USHORT bInvalidR2L: 1; - USHORT bDerivedR2L: 1; - USHORT bRightToLeft: 1; - USHORT bInvalidVert: 1; - USHORT bDerivedVert: 1; - USHORT bVertical: 1; - USHORT nType: 4; //Who am I? - - BOOL bValidPos: 1; - BOOL bValidPrtArea: 1; - BOOL bValidSize: 1; - BOOL bValidLineNum: 1; - BOOL bFixSize: 1; - BOOL bUnUsed1: 1; - BOOL bCompletePaint: 1; //Frame wird ganz gepaintet wenn TRUE, auch + sal_uInt16 bInvalidR2L: 1; + sal_uInt16 bDerivedR2L: 1; + sal_uInt16 bRightToLeft: 1; + sal_uInt16 bInvalidVert: 1; + sal_uInt16 bDerivedVert: 1; + sal_uInt16 bVertical: 1; + sal_uInt16 nType: 4; //Who am I? + + sal_Bool bValidPos: 1; + sal_Bool bValidPrtArea: 1; + sal_Bool bValidSize: 1; + sal_Bool bValidLineNum: 1; + sal_Bool bFixSize: 1; + sal_Bool bUnUsed1: 1; + sal_Bool bCompletePaint: 1; //Frame wird ganz gepaintet wenn sal_True, auch //wenn der Inhalt nur teilw. veraendert ist; - //Bei CntntFrms wird ausschliesslich wenn TRUE + //Bei CntntFrms wird ausschliesslich wenn sal_True //der Border (von Action) gemalt. - BOOL bRetouche: 1; //Der Frame ist fuer Retusche verantwortlich - //wenn TRUE. + sal_Bool bRetouche: 1; //Der Frame ist fuer Retusche verantwortlich + //wenn sal_True. public: - BOOL bUnUsed2: 1; + sal_Bool bUnUsed2: 1; protected: - BOOL bInfInvalid: 1; //InfoFlags sind Invalid. - BOOL bInfBody: 1; //Frm steht im DokumentBody. - BOOL bInfTab: 1; //Frm steht in einer Tabelle. - BOOL bInfFly: 1; //Frm steht in einem Fly. - BOOL bInfFtn: 1; //Frm steht in einer Fussnote. - BOOL bInfSct: 1; //Frm steht in einem Bereich. - BOOL bColLocked: 1; //Grow/Shrink sperren bei spaltigen Section- + sal_Bool bInfInvalid: 1; //InfoFlags sind Invalid. + sal_Bool bInfBody: 1; //Frm steht im DokumentBody. + sal_Bool bInfTab: 1; //Frm steht in einer Tabelle. + sal_Bool bInfFly: 1; //Frm steht in einem Fly. + sal_Bool bInfFtn: 1; //Frm steht in einer Fussnote. + sal_Bool bInfSct: 1; //Frm steht in einem Bereich. + sal_Bool bColLocked: 1; //Grow/Shrink sperren bei spaltigen Section- //oder Fly-Frames, wird im Format gesetzt - void ColLock() { bColLocked = TRUE; } - void ColUnlock() { bColLocked = FALSE; } + void ColLock() { bColLocked = sal_True; } + void ColUnlock() { bColLocked = sal_False; } +<<<<<<< local // Only used by SwRootFrm Ctor to get 'this' into mpRoot... void setRootFrm( SwRootFrm* pRoot ) { mpRoot = pRoot; } SwPageFrm *InsertPage( SwPageFrm *pSibling, BOOL bFtn ); +======= + SwPageFrm *InsertPage( SwPageFrm *pSibling, sal_Bool bFtn ); +>>>>>>> other void PrepareMake(); void OptPrepareMake(); void MakePos(); @@ -415,19 +423,19 @@ protected: // <-- virtual void MakeAll() = 0; //Adjustierung der Frames einer Seite - SwTwips AdjustNeighbourhood( SwTwips nDiff, BOOL bTst = FALSE ); + SwTwips AdjustNeighbourhood( SwTwips nDiff, sal_Bool bTst = sal_False ); //Aendern nur die Framesize, nicht die PrtArea-SSize - virtual SwTwips ShrinkFrm( SwTwips, BOOL bTst = FALSE, BOOL bInfo = FALSE ) = 0; - virtual SwTwips GrowFrm ( SwTwips, BOOL bTst = FALSE, BOOL bInfo = FALSE ) = 0; + virtual SwTwips ShrinkFrm( SwTwips, sal_Bool bTst = sal_False, sal_Bool bInfo = sal_False ) = 0; + virtual SwTwips GrowFrm ( SwTwips, sal_Bool bTst = sal_False, sal_Bool bInfo = sal_False ) = 0; SwModify *GetDep() { return GetRegisteredInNonConst(); } const SwModify *GetDep() const { return GetRegisteredIn(); } SwFrm( SwModify*, SwFrm* ); - void CheckDir( UINT16 nDir, BOOL bVert, BOOL bOnlyBiDi, BOOL bBrowse ); + void CheckDir( sal_uInt16 nDir, sal_Bool bVert, sal_Bool bOnlyBiDi, sal_Bool bBrowse ); /** enumeration for the different invalidations @@ -452,7 +460,7 @@ protected: OD 2004-05-19 #i28701# Method has *only* to contain actions, which has to be performed on - *every* assignment of the corresponding flag to <FALSE>. + *every* assignment of the corresponding flag to <sal_False>. @author OD */ @@ -465,15 +473,15 @@ protected: public: TYPEINFO(); //Bereits in Basisklasse Client drin. - USHORT GetType() const { return 0x1 << nType; } + sal_uInt16 GetType() const { return 0x1 << nType; } static SwCache &GetCache() { return *pCache; } static SwCache *GetCachePtr() { return pCache; } static void SetCache( SwCache *pNew ) { pCache = pNew; } //Aendern die PrtArea-SSize und die FrmSize. - SwTwips Shrink( SwTwips, BOOL bTst = FALSE, BOOL bInfo = FALSE ); - SwTwips Grow ( SwTwips, BOOL bTst = FALSE, BOOL bInfo = FALSE ); + SwTwips Shrink( SwTwips, sal_Bool bTst = sal_False, sal_Bool bInfo = sal_False ); + SwTwips Grow ( SwTwips, sal_Bool bTst = sal_False, sal_Bool bInfo = sal_False ); //Wir brauchen unterschiedliche Methoden (wg. Performance) fuer das //Einfuegenin den Layout Baum: @@ -490,7 +498,7 @@ public: //For internal use only; wer es anders macht wird //in einen Sack gesteckt und muss zwei Tage drin hocken bleiben. //Fuert Spezialbehandlung fuer _Get[Next|Prev]Leaf() durch (Tabellen). - SwLayoutFrm *GetLeaf( MakePageType eMakePage, BOOL bFwd ); + SwLayoutFrm *GetLeaf( MakePageType eMakePage, sal_Bool bFwd ); SwLayoutFrm *GetNextLeaf ( MakePageType eMakePage ); SwLayoutFrm *GetNextFtnLeaf( MakePageType eMakePage ); SwLayoutFrm *GetNextSctLeaf( MakePageType eMakePage ); @@ -499,10 +507,10 @@ public: SwLayoutFrm *GetPrevFtnLeaf( MakePageType eMakeFtn = MAKEPAGE_FTN ); SwLayoutFrm *GetPrevSctLeaf( MakePageType eMakeFtn = MAKEPAGE_FTN ); SwLayoutFrm *GetPrevCellLeaf( MakePageType eMakeFtn = MAKEPAGE_FTN ); - const SwLayoutFrm *GetLeaf ( MakePageType eMakePage, BOOL bFwd, + const SwLayoutFrm *GetLeaf ( MakePageType eMakePage, sal_Bool bFwd, const SwFrm *pAnch ) const; - BOOL WrongPageDesc( SwPageFrm* pNew ); + sal_Bool WrongPageDesc( SwPageFrm* pNew ); // --> OD 2004-07-02 #i28701# - new methods to append/remove drawing objects void AppendDrawObj( SwAnchoredObject& _rNewObj ); @@ -521,37 +529,37 @@ public: virtual void PaintBorder( const SwRect&, const SwPageFrm *pPage, const SwBorderAttrs & ) const; void PaintBaBo( const SwRect&, const SwPageFrm *pPage = 0, - const BOOL bLowerBorder = FALSE ) const; + const sal_Bool bLowerBorder = sal_False ) const; void PaintBackground( const SwRect&, const SwPageFrm *pPage, const SwBorderAttrs &, - const BOOL bLowerMode = FALSE, - const BOOL bLowerBorder = FALSE ) const; + const sal_Bool bLowerMode = sal_False, + const sal_Bool bLowerBorder = sal_False ) const; void PaintBorderLine( const SwRect&, const SwRect&, const SwPageFrm*, const Color *pColor ) const; //Retouche, nicht im Bereich des uebergebenen Rect! void Retouche( const SwPageFrm *pPage, const SwRect &rRect ) const; - BOOL GetBackgroundBrush( const SvxBrushItem*& rpBrush, + sal_Bool GetBackgroundBrush( const SvxBrushItem*& rpBrush, const Color*& rpColor, SwRect &rOrigRect, - BOOL bLowerMode ) const; + sal_Bool bLowerMode ) const; inline void SetCompletePaint() const; inline void ResetCompletePaint() const; - inline BOOL IsCompletePaint() const { return bCompletePaint; } + inline sal_Bool IsCompletePaint() const { return bCompletePaint; } inline void SetRetouche() const; inline void ResetRetouche() const; - inline BOOL IsRetouche() const { return bRetouche; } + inline sal_Bool IsRetouche() const { return bRetouche; } void SetInfFlags(); //Setzen der InfoFlags - inline void InvalidateInfFlags() { bInfInvalid = TRUE; } - inline BOOL IsInDocBody() const; //Benutzen die InfoFlags. - inline BOOL IsInFtn() const; //ggf. werden die Flags ermittelt. - inline BOOL IsInTab() const; - inline BOOL IsInFly() const; - inline BOOL IsInSct() const; + inline void InvalidateInfFlags() { bInfInvalid = sal_True; } + inline sal_Bool IsInDocBody() const; //Benutzen die InfoFlags. + inline sal_Bool IsInFtn() const; //ggf. werden die Flags ermittelt. + inline sal_Bool IsInTab() const; + inline sal_Bool IsInFly() const; + inline sal_Bool IsInSct() const; // If frame is inside a split table row, this function returns // the corresponding row frame in the follow table. @@ -563,18 +571,18 @@ public: bool IsInBalancedSection() const; - inline BOOL IsReverse() const { return bReverse; } - inline void SetReverse( BOOL bNew ){ bReverse = bNew ? 1 : 0; } - inline BOOL IsVertical() const; - inline BOOL GetVerticalFlag() const; - inline void SetVertical( BOOL bNew ){ bVertical = bNew ? 1 : 0; } - inline void SetDerivedVert( BOOL bNew ){ bDerivedVert = bNew ? 1 : 0; } - inline void SetInvalidVert( BOOL bNew) { bInvalidVert = bNew ? 1 : 0; } - inline BOOL IsRightToLeft() const; - inline BOOL GetRightToLeftFlag() const; - inline void SetRightToLeft( BOOL bNew ){ bRightToLeft = bNew ? 1 : 0; } - inline void SetDerivedR2L( BOOL bNew ) { bDerivedR2L = bNew ? 1 : 0; } - inline void SetInvalidR2L( BOOL bNew ) { bInvalidR2L = bNew ? 1 : 0; } + inline sal_Bool IsReverse() const { return bReverse; } + inline void SetReverse( sal_Bool bNew ){ bReverse = bNew ? 1 : 0; } + inline sal_Bool IsVertical() const; + inline sal_Bool GetVerticalFlag() const; + inline void SetVertical( sal_Bool bNew ){ bVertical = bNew ? 1 : 0; } + inline void SetDerivedVert( sal_Bool bNew ){ bDerivedVert = bNew ? 1 : 0; } + inline void SetInvalidVert( sal_Bool bNew) { bInvalidVert = bNew ? 1 : 0; } + inline sal_Bool IsRightToLeft() const; + inline sal_Bool GetRightToLeftFlag() const; + inline void SetRightToLeft( sal_Bool bNew ){ bRightToLeft = bNew ? 1 : 0; } + inline void SetDerivedR2L( sal_Bool bNew ) { bDerivedR2L = bNew ? 1 : 0; } + inline void SetInvalidR2L( sal_Bool bNew ) { bInvalidR2L = bNew ? 1 : 0; } void CheckDirChange(); // returns upper left frame position for LTR and // upper right frame position for Asian / RTL frames @@ -583,7 +591,7 @@ public: /** determine, if frame is moveable in given environment OD 08.08.2003 #110978# - method replaced 'old' method <BOOL IsMoveable() const>. + method replaced 'old' method <sal_Bool IsMoveable() const>. Determines, if frame is moveable in given environment. if no environment is given (parameter _pLayoutFrm == 0L), the movability in the actual environment (<this->GetUpper()) is checked. @@ -596,26 +604,26 @@ public: @return boolean, indicating, if frame is moveable in given environment */ -// BOOL IsMoveable() const; +// sal_Bool IsMoveable() const; bool IsMoveable( const SwLayoutFrm* _pLayoutFrm = 0L ) const; //Ist es fuer den (Txt)Frm in der aktuellen Umgebung erlaubt eine //Fussnote einzufuegen (nicht z.B. in wiederholten TabellenHeadlines). - BOOL IsFtnAllowed() const; + sal_Bool IsFtnAllowed() const; virtual void Format( const SwBorderAttrs *pAttrs = 0 ); - virtual void CheckDirection( BOOL bVert ); + virtual void CheckDirection( sal_Bool bVert ); void ReinitializeFrmSizeAttrFlags(); const SwAttrSet *GetAttrSet() const; - inline BOOL HasFixSize() const { return bFixSize; } - inline void SetFixSize( BOOL bNew ) { bFixSize = bNew; } + inline sal_Bool HasFixSize() const { return bFixSize; } + inline void SetFixSize( sal_Bool bNew ) { bFixSize = bNew; } //Prueft alle Seiten ab der Uebergebenen und korrigiert ggf. - static void CheckPageDescs( SwPageFrm *pStart, BOOL bNotifyFields = TRUE ); + static void CheckPageDescs( SwPageFrm *pStart, sal_Bool bNotifyFields = sal_True ); //Koennen 0 liefern, einmal const einmal nicht SwFrm *GetNext() { return pNext; } @@ -624,7 +632,7 @@ public: SwRootFrm *getRootFrm(){ return mpRoot; } SwPageFrm *FindPageFrm(); SwFrm *FindColFrm(); - SwFtnBossFrm *FindFtnBossFrm( BOOL bFootnotes = FALSE ); + SwFtnBossFrm *FindFtnBossFrm( sal_Bool bFootnotes = sal_False ); SwTabFrm *ImplFindTabFrm(); SwFtnFrm *ImplFindFtnFrm(); SwFlyFrm *ImplFindFlyFrm(); @@ -645,7 +653,12 @@ public: // <-- inline SwFrm *FindPrev(); inline const SwPageFrm *FindPageFrm() const; +<<<<<<< local inline const SwFtnBossFrm *FindFtnBossFrm( BOOL bFtn = FALSE ) const; +======= + inline const SwRootFrm *FindRootFrm() const; + inline const SwFtnBossFrm *FindFtnBossFrm( sal_Bool bFtn = sal_False ) const; +>>>>>>> other inline const SwFrm *FindColFrm() const; inline const SwFrm *FindFooterOrHeader() const; inline const SwTabFrm *FindTabFrm() const; @@ -697,10 +710,10 @@ public: { return ( pNext || !IsInSct() ) ? pNext : _GetIndNext(); } const SwFrm* GetIndNext() const { return ((SwFrm*)this)->GetIndNext(); } - USHORT GetPhyPageNum() const; //Seitennummer ohne Offset - USHORT GetVirtPageNum() const; //Seitenummer mit Offset - BOOL OnRightPage() const { return 0 != GetPhyPageNum() % 2; }; - BOOL WannaRightPage() const; + sal_uInt16 GetPhyPageNum() const; //Seitennummer ohne Offset + sal_uInt16 GetVirtPageNum() const; //Seitenummer mit Offset + sal_Bool OnRightPage() const { return 0 != GetPhyPageNum() % 2; }; + sal_Bool WannaRightPage() const; inline const SwLayoutFrm *GetPrevLayoutLeaf() const; @@ -721,7 +734,7 @@ public: const SwRect PaintArea() const; // The UnionFrm is the union of frm- and prt-area, normally identical // to the frm-area except the case of negative prt-margins. - const SwRect UnionFrm( BOOL bBorder = FALSE ) const; + const SwRect UnionFrm( sal_Bool bBorder = sal_False ) const; //Der Zugriff auf die Member wird hier ausnahmsweiste gestattet, //dies soll aber nicht dazu dienen die Werte wahllos zu veraendern; @@ -735,13 +748,13 @@ public: virtual void Cut() = 0; virtual void Paste( SwFrm* pParent, SwFrm* pSibling = 0 ) = 0; - void ValidateLineNum() { bValidLineNum = TRUE; } + void ValidateLineNum() { bValidLineNum = sal_True; } - BOOL GetValidPosFlag() const { return bValidPos; } - BOOL GetValidPrtAreaFlag()const { return bValidPrtArea; } - BOOL GetValidSizeFlag() const { return bValidSize; } - BOOL GetValidLineNumFlag()const { return bValidLineNum; } - BOOL IsValid() const { return bValidPos && bValidSize && bValidPrtArea; } + sal_Bool GetValidPosFlag() const { return bValidPos; } + sal_Bool GetValidPrtAreaFlag()const { return bValidPrtArea; } + sal_Bool GetValidSizeFlag() const { return bValidSize; } + sal_Bool GetValidLineNumFlag()const { return bValidLineNum; } + sal_Bool IsValid() const { return bValidPos && bValidSize && bValidPrtArea; } //Invalideren nur den Frm // OD 2004-05-19 #i28701# - add call to method <_ActionOnInvalidation(..)> @@ -754,7 +767,7 @@ public: { if ( bValidSize && _InvalidationAllowed( INVALID_SIZE ) ) { - bValidSize = FALSE; + bValidSize = sal_False; _ActionOnInvalidation( INVALID_SIZE ); } } @@ -762,7 +775,7 @@ public: { if ( bValidPrtArea && _InvalidationAllowed( INVALID_PRTAREA ) ) { - bValidPrtArea = FALSE; + bValidPrtArea = sal_False; _ActionOnInvalidation( INVALID_PRTAREA ); } } @@ -770,7 +783,7 @@ public: { if ( bValidPos && _InvalidationAllowed( INVALID_POS ) ) { - bValidPos = FALSE; + bValidPos = sal_False; _ActionOnInvalidation( INVALID_POS ); } } @@ -778,7 +791,7 @@ public: { if ( bValidLineNum && _InvalidationAllowed( INVALID_LINENUM ) ) { - bValidLineNum = FALSE; + bValidLineNum = sal_False; _ActionOnInvalidation( INVALID_LINENUM ); } } @@ -787,7 +800,7 @@ public: if ( ( bValidSize || bValidPrtArea || bValidPos ) && _InvalidationAllowed( INVALID_ALL ) ) { - bValidSize = bValidPrtArea = bValidPos = FALSE; + bValidSize = bValidPrtArea = bValidPos = sal_False; _ActionOnInvalidation( INVALID_ALL ); } } @@ -803,8 +816,8 @@ public: void ImplInvalidatePos(); void ImplInvalidateLineNum(); - inline void InvalidateNextPos( BOOL bNoFtn = FALSE ); - void ImplInvalidateNextPos( BOOL bNoFtn = FALSE ); + inline void InvalidateNextPos( sal_Bool bNoFtn = sal_False ); + void ImplInvalidateNextPos( sal_Bool bNoFtn = sal_False ); /** method to invalidate printing area of next frame @@ -818,9 +831,9 @@ public: virtual bool FillSelection( SwSelectionList& rList, const SwRect& rRect ) const; - virtual BOOL GetCrsrOfst( SwPosition *, Point&, + virtual sal_Bool GetCrsrOfst( SwPosition *, Point&, SwCrsrMoveState* = 0 ) const; - virtual BOOL GetCharRect( SwRect &, const SwPosition&, + virtual sal_Bool GetCharRect( SwRect &, const SwPosition&, SwCrsrMoveState* = 0 ) const; virtual void Paint( SwRect const&, SwPrintData const*const pPrintData = NULL ) const; @@ -829,43 +842,43 @@ public: // Wer den void* falsch Casted ist selbst schuld! // Auf jedenfall muss der void* auf 0 geprueft werden. virtual void Prepare( const PrepareHint ePrep = PREP_CLEAR, - const void *pVoid = 0, BOOL bNotify = TRUE ); - - //TRUE wenn's die richtige Klasse ist, FALSE sonst - inline BOOL IsLayoutFrm() const; - inline BOOL IsRootFrm() const; - inline BOOL IsPageFrm() const; - inline BOOL IsColumnFrm() const; - inline BOOL IsFtnBossFrm() const; // Fussnotenbosse sind PageFrms und ColumnFrms - inline BOOL IsHeaderFrm() const; - inline BOOL IsFooterFrm() const; - inline BOOL IsFtnContFrm() const; - inline BOOL IsFtnFrm() const; - inline BOOL IsBodyFrm() const; - inline BOOL IsColBodyFrm() const; // in layfrm.hxx implementiert, BodyFrm unterhalb ColumnFrm - inline BOOL IsPageBodyFrm() const; // in layfrm.hxx implementiert, BodyFrm unterhalb PageFrm - inline BOOL IsFlyFrm() const; - inline BOOL IsSctFrm() const; - inline BOOL IsTabFrm() const; - inline BOOL IsRowFrm() const; - inline BOOL IsCellFrm() const; - inline BOOL IsCntntFrm() const; - inline BOOL IsTxtFrm() const; - inline BOOL IsNoTxtFrm() const; - inline BOOL IsFlowFrm() const; //Frms deren PrtArea von den Nachbarn + const void *pVoid = 0, sal_Bool bNotify = sal_True ); + + //sal_True wenn's die richtige Klasse ist, sal_False sonst + inline sal_Bool IsLayoutFrm() const; + inline sal_Bool IsRootFrm() const; + inline sal_Bool IsPageFrm() const; + inline sal_Bool IsColumnFrm() const; + inline sal_Bool IsFtnBossFrm() const; // Fussnotenbosse sind PageFrms und ColumnFrms + inline sal_Bool IsHeaderFrm() const; + inline sal_Bool IsFooterFrm() const; + inline sal_Bool IsFtnContFrm() const; + inline sal_Bool IsFtnFrm() const; + inline sal_Bool IsBodyFrm() const; + inline sal_Bool IsColBodyFrm() const; // in layfrm.hxx implementiert, BodyFrm unterhalb ColumnFrm + inline sal_Bool IsPageBodyFrm() const; // in layfrm.hxx implementiert, BodyFrm unterhalb PageFrm + inline sal_Bool IsFlyFrm() const; + inline sal_Bool IsSctFrm() const; + inline sal_Bool IsTabFrm() const; + inline sal_Bool IsRowFrm() const; + inline sal_Bool IsCellFrm() const; + inline sal_Bool IsCntntFrm() const; + inline sal_Bool IsTxtFrm() const; + inline sal_Bool IsNoTxtFrm() const; + inline sal_Bool IsFlowFrm() const; //Frms deren PrtArea von den Nachbarn //abhaengen und die halt im Inhaltsfluss //stehen. - inline BOOL IsRetoucheFrm() const; //Frms die Retouchefaehig sind bzw. die + inline sal_Bool IsRetoucheFrm() const; //Frms die Retouchefaehig sind bzw. die //u.U. hinter sich Retouchieren muessen. - inline BOOL IsAccessibleFrm() const; + inline sal_Bool IsAccessibleFrm() const; void PrepareCrsr(); //Die CrsrShell darf. //Ist der Frm (bzw. die Section in der er steht) geschuetzt? //Auch Fly in Fly in ... und Fussnoten - BOOL IsProtected() const; + sal_Bool IsProtected() const; - BOOL IsColLocked() const { return bColLocked; } + sal_Bool IsColLocked() const { return bColLocked; } virtual ~SwFrm(); @@ -886,16 +899,16 @@ public: long GetPrtBottom() const; long GetPrtRight() const; long GetPrtTop() const; - BOOL SetMinLeft( long ); - BOOL SetMaxBottom( long ); - BOOL SetMaxRight( long ); - BOOL SetMinTop( long ); - void MakeBelowPos( const SwFrm*, const SwFrm*, BOOL ); - void MakeUpperPos( const SwFrm*, const SwFrm*, BOOL ); - void MakeLeftPos( const SwFrm*, const SwFrm*, BOOL ); - void MakeRightPos( const SwFrm*, const SwFrm*, BOOL ); - inline BOOL IsNeighbourFrm() const - { return GetType() & FRM_NEIGHBOUR ? TRUE : FALSE; } + sal_Bool SetMinLeft( long ); + sal_Bool SetMaxBottom( long ); + sal_Bool SetMaxRight( long ); + sal_Bool SetMinTop( long ); + void MakeBelowPos( const SwFrm*, const SwFrm*, sal_Bool ); + void MakeUpperPos( const SwFrm*, const SwFrm*, sal_Bool ); + void MakeLeftPos( const SwFrm*, const SwFrm*, sal_Bool ); + void MakeRightPos( const SwFrm*, const SwFrm*, sal_Bool ); + inline sal_Bool IsNeighbourFrm() const + { return GetType() & FRM_NEIGHBOUR ? sal_True : sal_False; } // --> OD 2006-05-10 #i65250# inline sal_uInt32 GetFrmId() const { return mnFrmId; } @@ -910,78 +923,82 @@ public: bool IsInCoveredCell() const; // FME 2007-08-30 #i81146# new loop control +<<<<<<< local void ValidateThisAndAllLowers( const USHORT nStage ); bool KnowsFormat( const SwFmt& rFmt ) const; void RegisterToFormat( SwFmt& rFmt ); +======= + void ValidateThisAndAllLowers( const sal_uInt16 nStage ); +>>>>>>> other }; -inline BOOL SwFrm::IsInDocBody() const +inline sal_Bool SwFrm::IsInDocBody() const { if ( bInfInvalid ) ((SwFrm*)this)->SetInfFlags(); return bInfBody; } -inline BOOL SwFrm::IsInFtn() const +inline sal_Bool SwFrm::IsInFtn() const { if ( bInfInvalid ) ((SwFrm*)this)->SetInfFlags(); return bInfFtn; } -inline BOOL SwFrm::IsInTab() const +inline sal_Bool SwFrm::IsInTab() const { if ( bInfInvalid ) ((SwFrm*)this)->SetInfFlags(); return bInfTab; } -inline BOOL SwFrm::IsInFly() const +inline sal_Bool SwFrm::IsInFly() const { if ( bInfInvalid ) ((SwFrm*)this)->SetInfFlags(); return bInfFly; } -inline BOOL SwFrm::IsInSct() const +inline sal_Bool SwFrm::IsInSct() const { if ( bInfInvalid ) ((SwFrm*)this)->SetInfFlags(); return bInfSct; } -BOOL SwFrm::IsVertical() const +sal_Bool SwFrm::IsVertical() const { if( bInvalidVert ) - ((SwFrm*)this)->SetDirFlags( TRUE ); + ((SwFrm*)this)->SetDirFlags( sal_True ); return bVertical != 0; } -BOOL SwFrm::GetVerticalFlag() const +sal_Bool SwFrm::GetVerticalFlag() const { return bVertical != 0; } -inline BOOL SwFrm::IsRightToLeft() const +inline sal_Bool SwFrm::IsRightToLeft() const { if( bInvalidR2L ) - ((SwFrm*)this)->SetDirFlags( FALSE ); + ((SwFrm*)this)->SetDirFlags( sal_False ); return bRightToLeft != 0; } -BOOL SwFrm::GetRightToLeftFlag() const +sal_Bool SwFrm::GetRightToLeftFlag() const { return bRightToLeft != 0; } inline void SwFrm::SetCompletePaint() const { - ((SwFrm*)this)->bCompletePaint = TRUE; + ((SwFrm*)this)->bCompletePaint = sal_True; } inline void SwFrm::ResetCompletePaint() const { - ((SwFrm*)this)->bCompletePaint = FALSE; + ((SwFrm*)this)->bCompletePaint = sal_False; } inline void SwFrm::SetRetouche() const { - ((SwFrm*)this)->bRetouche = TRUE; + ((SwFrm*)this)->bRetouche = sal_True; } inline void SwFrm::ResetRetouche() const { - ((SwFrm*)this)->bRetouche = FALSE; + ((SwFrm*)this)->bRetouche = sal_False; } inline SwLayoutFrm *SwFrm::GetNextLayoutLeaf() @@ -1031,14 +1048,14 @@ inline void SwFrm::InvalidateAll() { if ( bValidPrtArea && bValidSize && bValidPos ) ImplInvalidatePos(); - bValidPrtArea = bValidSize = bValidPos = FALSE; + bValidPrtArea = bValidSize = bValidPos = sal_False; // OD 2004-05-19 #i28701# _ActionOnInvalidation( INVALID_ALL ); } } -inline void SwFrm::InvalidateNextPos( BOOL bNoFtn ) +inline void SwFrm::InvalidateNextPos( sal_Bool bNoFtn ) { if ( pNext && !pNext->IsSctFrm() ) pNext->InvalidatePos(); @@ -1088,7 +1105,7 @@ inline SwTabFrm *SwFrm::FindTabFrm() { return IsInTab() ? ImplFindTabFrm() : 0; } -inline const SwFtnBossFrm *SwFrm::FindFtnBossFrm( BOOL bFtn ) const +inline const SwFtnBossFrm *SwFrm::FindFtnBossFrm( sal_Bool bFtn ) const { return ((SwFrm*)this)->FindFtnBossFrm( bFtn ); } @@ -1169,88 +1186,88 @@ inline const SwFrm *SwFrm::FindPrev() const } -inline BOOL SwFrm::IsLayoutFrm() const +inline sal_Bool SwFrm::IsLayoutFrm() const { - return GetType() & FRM_LAYOUT ? TRUE : FALSE; + return GetType() & FRM_LAYOUT ? sal_True : sal_False; } -inline BOOL SwFrm::IsRootFrm() const +inline sal_Bool SwFrm::IsRootFrm() const { return nType == FRMC_ROOT; } -inline BOOL SwFrm::IsPageFrm() const +inline sal_Bool SwFrm::IsPageFrm() const { return nType == FRMC_PAGE; } -inline BOOL SwFrm::IsColumnFrm() const +inline sal_Bool SwFrm::IsColumnFrm() const { return nType == FRMC_COLUMN; } -inline BOOL SwFrm::IsFtnBossFrm() const +inline sal_Bool SwFrm::IsFtnBossFrm() const { - return GetType() & FRM_FTNBOSS ? TRUE : FALSE; + return GetType() & FRM_FTNBOSS ? sal_True : sal_False; } -inline BOOL SwFrm::IsHeaderFrm() const +inline sal_Bool SwFrm::IsHeaderFrm() const { return nType == FRMC_HEADER; } -inline BOOL SwFrm::IsFooterFrm() const +inline sal_Bool SwFrm::IsFooterFrm() const { return nType == FRMC_FOOTER; } -inline BOOL SwFrm::IsFtnContFrm() const +inline sal_Bool SwFrm::IsFtnContFrm() const { return nType == FRMC_FTNCONT; } -inline BOOL SwFrm::IsFtnFrm() const +inline sal_Bool SwFrm::IsFtnFrm() const { return nType == FRMC_FTN; } -inline BOOL SwFrm::IsBodyFrm() const +inline sal_Bool SwFrm::IsBodyFrm() const { return nType == FRMC_BODY; } -inline BOOL SwFrm::IsFlyFrm() const +inline sal_Bool SwFrm::IsFlyFrm() const { return nType == FRMC_FLY; } -inline BOOL SwFrm::IsSctFrm() const +inline sal_Bool SwFrm::IsSctFrm() const { return nType == FRMC_SECTION; } -inline BOOL SwFrm::IsTabFrm() const +inline sal_Bool SwFrm::IsTabFrm() const { return nType == FRMC_TAB; } -inline BOOL SwFrm::IsRowFrm() const +inline sal_Bool SwFrm::IsRowFrm() const { return nType == FRMC_ROW; } -inline BOOL SwFrm::IsCellFrm() const +inline sal_Bool SwFrm::IsCellFrm() const { return nType == FRMC_CELL; } -inline BOOL SwFrm::IsCntntFrm() const +inline sal_Bool SwFrm::IsCntntFrm() const { - return GetType() & FRM_CNTNT ? TRUE : FALSE; + return GetType() & FRM_CNTNT ? sal_True : sal_False; } -inline BOOL SwFrm::IsTxtFrm() const +inline sal_Bool SwFrm::IsTxtFrm() const { return nType == FRMC_TXT; } -inline BOOL SwFrm::IsNoTxtFrm() const +inline sal_Bool SwFrm::IsNoTxtFrm() const { return nType == FRMC_NOTXT; } -inline BOOL SwFrm::IsFlowFrm() const +inline sal_Bool SwFrm::IsFlowFrm() const { - return GetType() & 0xCA00 ? TRUE : FALSE; //TabFrm, CntntFrm, SectionFrm + return GetType() & 0xCA00 ? sal_True : sal_False; //TabFrm, CntntFrm, SectionFrm } -inline BOOL SwFrm::IsRetoucheFrm() const +inline sal_Bool SwFrm::IsRetoucheFrm() const { - return GetType() & 0xCA40 ? TRUE : FALSE; //TabFrm, CntntFrm, SectionFrm, Ftnfrm + return GetType() & 0xCA40 ? sal_True : sal_False; //TabFrm, CntntFrm, SectionFrm, Ftnfrm } -inline BOOL SwFrm::IsAccessibleFrm() const +inline sal_Bool SwFrm::IsAccessibleFrm() const { - return GetType() & FRM_ACCESSIBLE ? TRUE : FALSE; + return GetType() & FRM_ACCESSIBLE ? sal_True : sal_False; } #endif |