office-gobmx/sw/inc/ndtxt.hxx
Rüdiger Timm bd31812455 INTEGRATION: CWS swqbf62 (1.42.52); FILE MERGED
2006/04/25 13:23:30 od 1.42.52.1: #b64311# class <SwTxtNode>
	 - remove unneccesary method <IsContinuous()>
2006-05-05 08:13:21 +00:00

703 lines
24 KiB
C++

/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: ndtxt.hxx,v $
*
* $Revision: 1.43 $
*
* last change: $Author: rt $ $Date: 2006-05-05 09:13:21 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
*
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2005 by Sun Microsystems, Inc.
* 901 San Antonio Road, Palo Alto, CA 94303, USA
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
************************************************************************/
#ifndef _NDTXT_HXX
#define _NDTXT_HXX
#ifndef INCLUDED_SWDLLAPI_H
#include "swdllapi.h"
#endif
#ifndef _NODE_HXX
#include <node.hxx>
#endif
#ifndef _HINTIDS_HXX
#include <hintids.hxx>
#endif
#ifndef _NDHINTS_HXX
#include <ndhints.hxx>
#endif
#ifndef _ERRHDL_HXX
#include <errhdl.hxx>
#endif
namespace utl {
class TransliterationWrapper;
};
class SwNumRules;
class SwTxtFmtColl;
class SwCntntFrm;
class SwTxtFld; // Fuer GetTxtFld()
class SwAttrSet;
class SwUndoTransliterate;
struct SwSpellArgs; // for Spell(), splargs.hxx
struct SwConversionArgs; // for Convert(), splargs.hxx
class SwInterHyphInfo; // for Hyphenate(), splargs.hxx
class SwWrongList; // fuer OnlineSpelling
class SwNodeNum;
class OutputDevice;
class SwScriptInfo;
struct SwDocStat;
// Konstanten fuer das Text-Insert:
#define INS_DEFAULT 0x0000 // keine Extras
#define INS_EMPTYEXPAND 0x0001 // leere Hints beim Einfuegen aufspannen
#define INS_NOHINTEXPAND 0x0002 // Hints an der InsPos nicht aufspannen
namespace com { namespace sun { namespace star { namespace uno {
template < class > class Sequence;
}}}}
// --------------------
// SwTxtNode
// --------------------
class SW_DLLPUBLIC SwTxtNode: public SwCntntNode
{
// fuer das Erzeugen des ersten TextNode
friend class SwDoc; // CTOR und AppendTxtNode()
friend class SwNodes;
friend class SwTxtFrm;
friend class SwScriptInfo;
friend void SwpHints::Insert( SwTxtAttr*, SwTxtNode&, USHORT );
//Kann 0 sein, nur dann nicht 0 wenn harte Attribute drin stehen.
//Also niemals direkt zugreifen!
SwpHints *pSwpHints;
SwWrongList *pWrong; // Rechtschreibfehler nach Online-Spelling
// --> OD 2005-11-02 #i51089 - TUNING#
mutable SwNodeNum* mpNodeNum; // Numerierung fuer diesen Absatz
// <--
XubString aText;
SwNodeNum::tSwNumTreeNumber nStart;
// Some of the chars this para are hidden. Paragraph has to be reformatted
// on changing the view to print preview.
mutable BOOL bContainsHiddenChars : 1;
// The whole paragraph is hidden because of the hidden text attribute
mutable BOOL bHiddenCharsHidePara : 1;
// The last two flags have to be recalculated if this flag is set:
mutable BOOL bRecalcHiddenCharFlags : 1;
bool bCounted;
bool bNotifiable;
mutable BOOL bLastOutlineState : 1;
BYTE nOutlineLevel;
SW_DLLPRIVATE SwTxtNode( const SwNodeIndex &rWhere, SwTxtFmtColl *pTxtColl,
SwAttrSet* pAutoAttr = 0 );
// Kopiert die Attribute an nStart nach pDest.
SW_DLLPRIVATE void CopyAttr( SwTxtNode *pDest, const xub_StrLen nStart, const xub_StrLen nOldPos);
SW_DLLPRIVATE SwTxtNode* _MakeNewTxtNode( const SwNodeIndex&, BOOL bNext = TRUE,
BOOL bChgFollow = TRUE );
SW_DLLPRIVATE void _Cut( SwTxtNode *pDest, const SwIndex &rDestStart,
const SwIndex &rStart, xub_StrLen nLen, BOOL bUpdate = TRUE );
SW_DLLPRIVATE SwTxtAttr* MakeTxtAttr( const SfxPoolItem& rNew, xub_StrLen nStt, xub_StrLen nEnd,
BOOL bPool = TRUE );
// Verlagere alles umfassende harte Attribute in den AttrSet des Absatzes
SW_DLLPRIVATE void MoveTxtAttr_To_AttrSet(); // wird von SplitNode gerufen.
// lege den spz. AttrSet an
SW_DLLPRIVATE virtual void NewAttrSet( SwAttrPool& );
SW_DLLPRIVATE void Replace0xFF( XubString& rTxt, xub_StrLen& rTxtStt,
xub_StrLen nEndPos, BOOL bExpandFlds ) const;
// Optimization: Asking for information about hidden characters at SwScriptInfo
// updates these flags.
inline bool IsCalcHiddenCharFlags() const { return bRecalcHiddenCharFlags; }
inline void SetHiddenCharAttribute( bool bNewHiddenCharsHidePara, bool bNewContainsHiddenChars ) const
{
bHiddenCharsHidePara = bNewHiddenCharsHidePara;
bContainsHiddenChars = bNewContainsHiddenChars;
bRecalcHiddenCharFlags = false;
}
SW_DLLPRIVATE void CalcHiddenCharFlags() const;
SW_DLLPRIVATE SwNumRule * _GetNumRule(BOOL bInParent = TRUE) const;
SW_DLLPRIVATE void SetLanguageAndFont( const SwPaM &rPaM,
LanguageType nLang, USHORT nLangWhichId,
const Font *pFont, USHORT nFontWhichId );
public:
const String& GetTxt() const { return aText; }
// Zugriff auf SwpHints
inline SwpHints &GetSwpHints();
inline const SwpHints &GetSwpHints() const;
inline SwpHints *GetpSwpHints() { return pSwpHints; }
inline const SwpHints *GetpSwpHints() const { return pSwpHints; }
void SetWrong( SwWrongList *pNew );
inline SwWrongList *GetWrong() { return pWrong; }
inline const SwWrongList *GetWrong() const { return pWrong; }
inline BOOL HasHints() const { return pSwpHints ? TRUE : FALSE; }
inline SwpHints &GetOrCreateSwpHints();
virtual ~SwTxtNode();
virtual xub_StrLen Len() const;
// steht in itratr
void GetMinMaxSize( ULONG nIndex, ULONG& rMin, ULONG &rMax, ULONG &rAbs,
OutputDevice* pOut = 0 ) const;
/*
* Einfuegen anderer Datentypen durch Erzeugen eines
* temporaeren Strings.
*/
SwTxtNode& Insert( xub_Unicode c, const SwIndex &rIdx );
SwTxtNode& Insert( const XubString &rStr, const SwIndex &rIdx,
const USHORT nMode = INS_DEFAULT );
SwTxtNode& Erase( const SwIndex &rIdx, xub_StrLen nCount = STRING_LEN,
const USHORT nMode = INS_DEFAULT );
// Aktionen auf Attributen
// loesche alle TextAttribute die als Attribut im Set vorhanden sind
// (Set-Pointer != 0 ) oder alle deren Which-Wert mit nWhich mappen
// oder wenn Which = 0, alle.
void RstAttr( const SwIndex &rIdx, xub_StrLen nLen, USHORT nWhich = 0,
const SfxItemSet* pSet = 0, BOOL bInclRefToxMark = FALSE );
void GCAttr();
// loesche das Text-Attribut (muss beim Pool abgemeldet werden!)
void DestroyAttr( SwTxtAttr* pAttr );
// loesche alle Attribute aus dem SwpHintsArray.
void ClearSwpHintsArr( int bDelAll = TRUE, int bDelFields = TRUE );
// uebernehme den Pointer auf das Text-Attribut
BOOL Insert( SwTxtAttr *pAttr, USHORT nMode = 0 );
// lege ein neues TextAttribut an und fuege es ins SwpHints-Array ein
// returne den neuen Pointer (oder 0 bei Fehlern)!
SwTxtAttr* Insert( const SfxPoolItem& rAttr,
xub_StrLen nStt, xub_StrLen nEnd, USHORT nMode = 0 );
// setze diese Attribute am TextNode. Wird der gesamte Bereich umspannt,
// dann setze sie nur im AutoAttrSet (SwCntntNode:: SetAttr)
BOOL SetAttr( const SfxItemSet& rSet,
xub_StrLen nStt, xub_StrLen nEnd, USHORT nMode = 0 );
// erfrage die Attribute vom TextNode ueber den Bereich
BOOL GetAttr( SfxItemSet& rSet, xub_StrLen nStt, xub_StrLen nEnd,
BOOL bOnlyTxtAttr = FALSE,
BOOL bGetFromChrFmt = TRUE ) const;
// uebertrage Attribute eines AttrSets ( AutoFmt ) in das SwpHintsArray
void FmtToTxtAttr( SwTxtNode* pNd );
// loeschen eines einzelnen Attributes (fuer SwUndoAttr)
// ( nur das Attribut loeschen, dass mit Which,Start und End oder
// mit pTxtHint identisch ist (es gibt nur ein gueltiges))
// AUSNAHME: ToxMarks !!!
void Delete( USHORT nTxtWhich, xub_StrLen nStart, xub_StrLen nEnd = 0 );
void Delete( SwTxtAttr * pTxtAttr, BOOL bThisOnly = FALSE );
// Aktionen auf Text und Attributen
void Copy(SwTxtNode *pDest, const SwIndex &rStart, USHORT nLen);
void Copy(SwTxtNode *pDest, const SwIndex &rDestStart,
const SwIndex &rStart, xub_StrLen nLen);
void Cut(SwTxtNode *pDest, const SwIndex &rStart, xub_StrLen nLen);
inline void Cut(SwTxtNode *pDest, const SwIndex &rDestStart,
const SwIndex &rStart, xub_StrLen nLen);
// ersetze im String an Position nIdx das Zeichen
void Replace( const SwIndex& rStart, xub_Unicode cCh );
void Replace( const SwIndex& rStart, xub_StrLen nLen, const XubString& rText );
void ReplaceTextOnly( xub_StrLen nPos, xub_StrLen nLen, const XubString& rText,
const ::com::sun::star::uno::Sequence<sal_Int32>& rOffsets );
// virtuelle Methoden aus dem CntntNode
virtual SwCntntFrm *MakeFrm();
virtual SwCntntNode *SplitNode( const SwPosition & );
virtual SwCntntNode *JoinNext();
virtual SwCntntNode *JoinPrev();
SwCntntNode *AppendNode( const SwPosition & );
// setze ggf. das DontExpand-Flag an INet bzw. Zeichenvorlagen
BOOL DontExpandFmt( const SwIndex& rIdx, BOOL bFlag = TRUE,
BOOL bFmtToTxtAttributes = TRUE );
// gebe das vorgegebene Attribut, welches an der TextPosition (rIdx)
// gesetzt ist zurueck. Gibt es keines, returne 0-Pointer
// gesetzt heisst: Start <= rIdx < End
SwTxtAttr *GetTxtAttr( const SwIndex& rIdx, USHORT nWhichHt,
BOOL bExpand = FALSE ) const;
// Diese Methode liefert nur Textattribute auf der Position nIdx
// zurueck, die kein EndIdx besitzen und denselben Which besitzen.
// Ueblicherweise steht an dieser Position ein CH_TXTATR.
// Bei RES_TXTATR_END entfaellt die Pruefung auf den Which-Wert.
SwTxtAttr *GetTxtAttr( const xub_StrLen nIdx,
const USHORT nWhichHt = RES_TXTATR_END ) const;
SwTxtFld *GetTxtFld( const SwIndex& rIdx )
{ return (SwTxtFld *)GetTxtAttr( rIdx, RES_TXTATR_FIELD ); }
// Aktuelles Wort zurueckliefern
XubString GetCurWord(xub_StrLen);
USHORT Spell(SwSpellArgs*);
USHORT Convert( SwConversionArgs & );
inline SwTxtFmtColl *GetTxtColl() const;
virtual SwFmtColl *ChgFmtColl( SwFmtColl* );
void _ChgTxtCollUpdateNum( const SwTxtFmtColl* pOld,
const SwTxtFmtColl* pNew );
// kopiere die Collection mit allen Autoformaten zum Dest-Node
// dieser kann auch in einem anderen Dokument stehen!
// (Methode steht im ndcopy.cxx!!)
void CopyCollFmt( SwTxtNode& rDestNd );
//const SwNodeNum* _GetNodeNum() const { return pNdNum; }
//
// BEGIN OF BULLET/NUMBERING/OUTLINE STUFF:
//
/**
Returns numbering rule of this text node.
@param bInParent serach in parent attributes, too
@return numbering rule of this text node or NULL if none is set
*/
SwNumRule *GetNumRule(BOOL bInParent = TRUE) const;
SwNumRule *GetNumRuleSync(BOOL bInParent = TRUE);
/** create number for this text node, if not already existing
OD 2005-11-02 #i51089 - TUNING#
@return number of this node
*/
inline SwNodeNum* CreateNum() const
{
if ( !mpNodeNum )
{
mpNodeNum = new SwNodeNum;
mpNodeNum->SetTxtNode( const_cast<SwTxtNode*>(this) );
}
return mpNodeNum;
}
inline const SwNodeNum* GetNum() const
{
return mpNodeNum;
}
SwNodeNum::tNumberVector GetNumberVector() const;
/**
Returns if this text node is an outline.
@retval TRUE this text node is an outline
@retval FALSE else
*/
BOOL IsOutline() const;
BOOL IsOutlineStateChanged() const;
void UpdateOutlineState();
/** -> #i23730#
Returns if this text node may be numbered.
A text node may be numbered if
- it has no SwNodeNum
- it has a SwNodeNum and it has a numbering rule and the according
SwNumFmt defines a numbering type that is an enumeration.
@retval TRUE this text node may be numbered
@retval FALSE else
*/
//BOOL MayBeNumbered() const;
/**
Notify this textnode that its numbering rule has changed.
*/
void NumRuleChgd();
/** Returns outline of numbering string
OD 2005-11-17 #128041#
Introduce parameter <_bInclPrefixAndSuffixStrings> in order to control,
if the prefix and the suffix strings have to been included or not.
@param _bInclPrefixAndSuffixStrings
optional input parameter - boolean indicating, if the prefix and the
suffix strings have to been included or not. default value = <true>
*/
XubString GetNumString( const bool _bInclPrefixAndSuffixStrings = true ) const;
/**
Returns the additional indents of this text node and its numbering.
@param bTxtLeft ???
@return additional indents
*/
long GetLeftMarginWithNum( BOOL bTxtLeft = FALSE ) const;
/**
Returns the combined first line indent of this text node and
its numbering.
@param the first line indent of this text node taking the
numbering into account (return parameter)
If the paragraph has a SwNodeNum and it has a numbering rule:
- if the number is not shown (! IsNum()) the first line offset is 0
- else if old numbering is active the first line offset is the first
line offset of the numbering (aka spacing to text).
- else the first line offset is the sum of the text node's first line
offset and that of the numbering.
@retval TRUE this node has SwNodeNum and has numbering rule
@retval FALSE else
*/
BOOL GetFirstLineOfsWithNum( short& rFirstOffset ) const;
/** -> #i29560
Returns if this text node has a number.
This text node has a number if it has a SwNodeNum and a
numbering rule and the numbering format specified for the
level of the SwNodeNum is of an enumeration type.
@retval TRUE This text node has a number.
@retval FALSE else
*/
BOOL HasNumber() const;
/** -> #i29560
Returns if this text node has a bullet.
This text node has a bullet if it has a SwNodeNum and a
numbering rule and the numbering format specified for the
level of the SwNodeNum is of a bullet type.
@retval TRUE This text node has a bullet.
@retval FALSE else
*/
BOOL HasBullet() const;
/** -> #i27615#
Returns is this text node is numbered.
This node is numbered if it has a SwNodeNum and it has a
numbering rule and has not a hidden SwNodeNum.
ATTENTION: Returns TRUE even if the SwNumFmt has type
SVX_NUM_NUMBER_NONE.
@retval TRUE This node is numbered.
@retval FALSE else
*/
BOOL IsNumbered() const;
/** -> #i27615#
Returns if this text node has a marked label.
This text node has a marked label if it has a label and it has
a numbering rule and the level of the label is marked in the
numbering rule.
@retval TRUE This text node has a marked label.
@retval FALSE else
*/
BOOL HasMarkedLabel() const;
/**
Returns the numbering level of this text node.
The level returned is the real level, no flags included.
@return the level of this node or NO_NUMBERING if it has no
numbering label.
*/
int GetLevel() const;
/**
Sets the numbering level of this text node.
@param nLevel level to set (no flags)
*/
void SetLevel(int nLevel);
/**
Returns outline level of this textn node.
If a text node has an outline number (i.e. it has an SwNodeNum
and a outline numbering rule) the outline level is the level of
this SwNodeNum.
If a text node has no outline number and has a paragraph style
attached the outline level is the outline level of the
paragraph style.
Otherwise the text node has no outline level (NO_NUMBERING).
NOTE: The outline level of text nodes is subject to change. The
plan is to have an SwTxtNode::nOutlineLevel member that is
updated from a paragraph style upon appliance of that paragraph
style.
@return outline level or NO_NUMBERING if there is no outline level
*/
int GetOutlineLevel() const;
/**
Sets the out line level *at* a text node.
@param nLevel the level to be set
If the text node has an outline number the level is set at the
outline number.
If the text node has no outline number but has a paragraph
style applied the outline level is set at the paragraph style.
NOTE: This is subject to change, see GetOutlineLevel.
*/
//void SetOutlineLevel(int nLevel);
/**
Returns the width of leading tabs/blanks in this paragraph.
This space will be converted into numbering indent if the paragraph
is set to be numbered.
@return the width of the leading whitespace
*/
USHORT GetWidthOfLeadingTabs() const;
/**
Returns if the paragraph has a visible numbering or bullet.
This includes all kinds of numbering/bullet/outlines.
Note: This function returns false, if the numbering format is
SVX_NUM_NUMBER_NONE or if the numbering/bullet has been deleted.
@return TRUE if the paragraph has a visible numbering/bullet/outline
*/
bool HasVisibleNumberingOrBullet() const;
//
// END OF BULLET/NUMBERING/OUTLINE STUFF:
//
USHORT GetLang( const xub_StrLen nBegin, const xub_StrLen nLen = 0,
USHORT nScript = 0 ) const;
// steht in ndcopy.cxx
BOOL IsSymbol( const xub_StrLen nBegin ) const; // steht in itratr.cxx
virtual SwCntntNode* MakeCopy( SwDoc*, const SwNodeIndex& ) const;
// interaktive Trennung: wir finden den TxtFrm und rufen sein CalcHyph
BOOL Hyphenate( SwInterHyphInfo &rHyphInf );
void DelSoftHyph( const xub_StrLen nStart, const xub_StrLen nEnd );
// Liefert einen String mit expandierten Feldern zurueck
// opt. die Kapitel/Nummer-String zurueck
XubString GetExpandTxt( const xub_StrLen nIdx = 0,
const xub_StrLen nLen = STRING_LEN,
const BOOL bWithNum = FALSE ) const;
BOOL GetExpandTxt( SwTxtNode& rDestNd, const SwIndex* pDestIdx = 0,
xub_StrLen nIdx = 0, xub_StrLen nLen = STRING_LEN,
BOOL bWithNum = FALSE, BOOL bWithFtn = TRUE,
BOOL bReplaceTabsWithSpaces = FALSE ) const;
XubString GetRedlineTxt( xub_StrLen nIdx = 0,
xub_StrLen nLen = STRING_LEN,
BOOL bExpandFlds = FALSE,
BOOL bWithNum = FALSE ) const;
//Liefert fuer die Initalfunktion tatsaechliche Anzahl der Initialzeichen
//bei nWishLen == 0 die des ersten Wortes
USHORT GetDropLen( USHORT nWishLen) const;
// Passes back info needed on the dropcap dimensions
bool GetDropSize(int& rFontHeight, int& rDropHeight, int& rDropDescent) const;
//
// Hidden Paragraph Field:
//
inline BOOL CalcHiddenParaField()
{ if(pSwpHints) return pSwpHints->CalcHiddenParaField(); return FALSE; }
// Setzen des CalcVisible-Flags
inline void SetCalcHiddenParaField(){ if(pSwpHints) pSwpHints->SetCalcHiddenParaField(); }
// Ist der Absatz sichtbar
inline BOOL HasHiddenParaField() const
{ return pSwpHints ? pSwpHints->HasHiddenParaField() : FALSE; }
//
// Hidden Paragraph Field:
//
inline bool HasHiddenCharAttribute( bool bWholePara ) const
{
if ( bRecalcHiddenCharFlags )
CalcHiddenCharFlags();
return bWholePara ? bHiddenCharsHidePara : bContainsHiddenChars;
}
inline void SetCalcHiddenCharFlags() const { bRecalcHiddenCharFlags = TRUE; }
// --> FME 2004-06-08 #i12836# enhanced pdf
//
// Returns if the node is hidden due to
// 1. HiddenParaField
// 2. HiddenCharAttribute
// 3. HiddenSection
//
bool IsHidden() const;
// <--
//
// Footnotes:
//
inline BOOL HasFtn() const {return pSwpHints ? pSwpHints->HasFtn() : FALSE;}
inline SwTxtAttr* MakeTmpTxtAttr( const SfxPoolItem& rNew )
{ return MakeTxtAttr( rNew, 0, 0, FALSE ); }
TYPEINFO(); // fuer rtti
// fuers Umhaengen der TxtFmtCollections (Outline-Nummerierung!!)
virtual void Modify( SfxPoolItem*, SfxPoolItem* );
// aus SwIndexReg
virtual void Update( const SwIndex & aPos, USHORT xub_StrLen,
BOOL bNegativ = FALSE, BOOL bDelete = FALSE );
// change text to Upper/Lower/Hiragana/Katagana/...
void TransliterateText( utl::TransliterationWrapper& rTrans,
xub_StrLen nStart, xub_StrLen nEnd,
SwUndoTransliterate* pUndo = 0 );
// count words in given range
void CountWords( SwDocStat& rStat, xub_StrLen nStart, xub_StrLen nEnd ) const;
// #111840#
/**
Returns position of certain text attribute.
@param pAttr text attribute to search
@return position of given attribute or NULL in case of failure
*/
SwPosition * GetPosition(const SwTxtAttr * pAttr);
void SetStart(SwNodeNum::tSwNumTreeNumber nNum);
SwNodeNum::tSwNumTreeNumber GetStart() const;
bool IsNotifiable() const;
void SetCounted(bool _bCounted);
bool IsCounted() const;
// --> OD 2005-11-02 #i51089 - TUNING#
inline bool IsRestart() const
{
return GetNum() ? GetNum()->IsRestart() : false;
}
// <--
void SetRestart(bool bRestart) const;
void CopyNumber(SwTxtNode & rNode) const;
void SyncNumberAndNumRule();
void UnregisterNumber();
bool IsFirstOfNumRule() const;
USHORT GetScalingOfSelectedText( xub_StrLen nStt, xub_StrLen nEnd ) const;
DECL_FIXEDMEMPOOL_NEWDEL(SwTxtNode)
};
//-----------------------------------------------------------------------------
inline SwpHints &SwTxtNode::GetSwpHints()
{
ASSERT_ID( pSwpHints, ERR_NOHINTS);
return *pSwpHints;
}
inline const SwpHints &SwTxtNode::GetSwpHints() const
{
ASSERT_ID( pSwpHints, ERR_NOHINTS);
return *pSwpHints;
}
inline SwpHints& SwTxtNode::GetOrCreateSwpHints()
{
if( !pSwpHints )
pSwpHints = new SwpHints;
return *pSwpHints;
}
inline SwTxtFmtColl* SwTxtNode::GetTxtColl() const
{
return (SwTxtFmtColl*)GetRegisteredIn();
}
// fuer den IBM-Compiler nicht inlinen wg. 42876
#ifndef ICC
// Inline Metoden aus Node.hxx - erst hier ist der TxtNode bekannt !!
inline SwTxtNode *SwNode::GetTxtNode()
{
return ND_TEXTNODE == nNodeType ? (SwTxtNode*)this : 0;
}
inline const SwTxtNode *SwNode::GetTxtNode() const
{
return ND_TEXTNODE == nNodeType ? (const SwTxtNode*)this : 0;
}
#endif
inline void SwTxtNode::Cut(SwTxtNode *pDest, const SwIndex &rDestStart,
const SwIndex &rStart, xub_StrLen nLen)
{
_Cut( pDest, rDestStart, rStart, nLen, TRUE );
}
#endif