diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2006-12-01 14:33:12 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2006-12-01 14:33:12 +0000 |
commit | f0649d2a297e8cb810cde47a0744df097518f64d (patch) | |
tree | 200dffd0431b4caa5a7224f274a0a58bc7b2acd0 /sw/inc/ndhints.hxx | |
parent | 6f0c80b5057272b453f1ef1428ace2670c0d254c (diff) |
INTEGRATION: CWS swautomatic01 (1.7.324); FILE MERGED
2006/09/01 11:55:48 fme 1.7.324.6: RESYNC: (1.7-1.8); FILE MERGED
2006/06/13 10:28:36 fme 1.7.324.5: #i65476#: Automatic Styles
2006/06/07 14:49:36 fme 1.7.324.4: #i64576# Automatic styles
2006/06/02 12:57:44 fme 1.7.324.3: #i65476# AutoStyles
2006/06/01 10:54:41 fme 1.7.324.2: #i65476# AutoStyles
2006/05/29 06:27:03 fme 1.7.324.1: #i65476# AutoStyles
Diffstat (limited to 'sw/inc/ndhints.hxx')
-rw-r--r-- | sw/inc/ndhints.hxx | 34 |
1 files changed, 6 insertions, 28 deletions
diff --git a/sw/inc/ndhints.hxx b/sw/inc/ndhints.hxx index 7dff590e223a..c08d6bf35ca1 100644 --- a/sw/inc/ndhints.hxx +++ b/sw/inc/ndhints.hxx @@ -4,9 +4,9 @@ * * $RCSfile: ndhints.hxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: hr $ $Date: 2006-08-14 15:27:11 $ + * last change: $Author: rt $ $Date: 2006-12-01 15:33:12 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -45,7 +45,6 @@ #endif #include "numrule.hxx" -#include <vector> class SwTxtNode; class SwRegHistory; // steht im RolBck.hxx @@ -81,7 +80,6 @@ protected: public: void Insert( const SwTxtAttr *pHt ); - void Delete( const SwTxtAttr *pHt ); void DeleteAtPos( const USHORT nPosInStart ); BOOL Resort(); SwTxtAttr *Cut( const USHORT nPosInStart ); @@ -93,7 +91,6 @@ public: inline USHORT GetEndCount() const { return aHtEnd.Count(); } inline USHORT GetStartCount() const { return Count(); } inline USHORT GetStartOf( const SwTxtAttr *pHt ) const; - inline USHORT GetEndOf( const SwTxtAttr *pHt ) const; inline USHORT GetPos( const SwTxtAttr *pHt ) const // OS: in svmem.hxx wird fuer TCPP GetPos ohne const gerufen #ifdef TCPP @@ -131,14 +128,6 @@ private: BOOL bCalcHiddenParaField : 1; // bHasHiddenParaField ist invalid, CalcHiddenParaField() rufen BOOL Resort( const USHORT nPos ); - // loescht Hints, die keinen Zustaendigkeitsbereich mehr haben - void ClearDummies( SwTxtNode &rNode ); - // Merge verschmilzt aneinanderreichende Hints mit gleichen Attributen - // und gleichen Werten, falls nichts dagegen spricht, d.h. wenn dadurch - // keine Ueberlappungen mit gleichartigen Attr. entstehen, - // Ist der Rueckgabewert TRUE, so wurde verschmolzen und dabei u.a. auch - // ein Resort ausgeloest. - BOOL Merge( SwTxtNode &rNode, SwTxtAttr* pAttr = 0 ); // Haelt ein neues Attribut in pHistory fest. void NoteInHistory( SwTxtAttr *pAttr, const BOOL bNew = FALSE ); @@ -158,6 +147,9 @@ private: inline BOOL HasHiddenParaField() const { if( bCalcHiddenParaField ) ((SwpHints*)this)->CalcHiddenParaField(); return bHasHiddenParaField; } + void BuildPortions( SwTxtNode& rNode, SwTxtAttr& rNewHint, USHORT nMode ); + bool MergePortions( SwTxtNode& rNode ); + public: inline BOOL CanBeDeleted() const { return !Count(); } @@ -167,13 +159,7 @@ public: void Register( SwRegHistory* pHist ) { pHistory = pHist; } void DeRegister() { Register(0); } - void Insert( SwTxtAttr *pHt, SwTxtNode &rNode, USHORT nMode = 0 ); - - // Forget signalisiert, dass es ueberfluessig ist, das Attribut einzu- - // fuegen, da es keinen Zustaendigkeitsbereich haette. - BOOL Forget( const std::vector< const SwTxtAttr* >* pExclude, - const USHORT i, const USHORT nWhich, - const xub_StrLen nStrt, const xub_StrLen nEnd ); + void Insert( SwTxtAttr* pHt, SwTxtNode &rNode, USHORT nMode = 0 ); inline BOOL HasFtn() const { return bFtn; } inline BOOL IsInSplitNode() const { return bInSplitNode; } @@ -207,14 +193,6 @@ inline USHORT SwpHintsArr::GetStartOf( const SwTxtAttr *pHt ) const return nPos; } -inline USHORT SwpHintsArr::GetEndOf( const SwTxtAttr *pHt ) const -{ - USHORT nPos; - if( !aHtEnd.Seek_Entry( pHt, &nPos ) ) - nPos = USHRT_MAX; - return nPos; -} - inline SwTxtAttr *SwpHintsArr::Cut( const USHORT nPosInStart ) { SwTxtAttr *pHt = GetHt(nPosInStart); |