summaryrefslogtreecommitdiff
path: root/sw/inc/node.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/inc/node.hxx')
-rw-r--r--sw/inc/node.hxx168
1 files changed, 84 insertions, 84 deletions
diff --git a/sw/inc/node.hxx b/sw/inc/node.hxx
index 0ae7e1ca3be1..4ff69260b044 100644
--- a/sw/inc/node.hxx
+++ b/sw/inc/node.hxx
@@ -97,22 +97,22 @@ class SW_DLLPUBLIC SwNode : private /* public*/ BigPtrEntry
long nMySerial;
#endif
- BYTE nNodeType;
+ sal_uInt8 nNodeType;
// JP 28.03.96
// fuer Textnodes: Stufungslevel der Autoformatierung. Ist erstmal hier
// gelandet, weil noch Bits frei sind
- BYTE nAFmtNumLvl : 3;
- BOOL bSetNumLSpace : 1; // fuer Numerierung: TRUE Einzug setzen
- BOOL bIgnoreDontExpand : 1; // for Text Attributes - ignore the flag
+ sal_uInt8 nAFmtNumLvl : 3;
+ sal_Bool bSetNumLSpace : 1; // fuer Numerierung: sal_True Einzug setzen
+ sal_Bool bIgnoreDontExpand : 1; // for Text Attributes - ignore the flag
protected:
SwStartNode* pStartOfSection;
- SwNode( const SwNodeIndex &rWhere, const BYTE nNodeId );
+ SwNode( const SwNodeIndex &rWhere, const sal_uInt8 nNodeId );
// fuer den initialen StartNode
- SwNode( SwNodes& rNodes, ULONG nPos, const BYTE nNodeId );
+ SwNode( SwNodes& rNodes, sal_uLong nPos, const sal_uInt8 nNodeId );
public:
virtual ~SwNode();
@@ -121,26 +121,26 @@ public:
long int GetSerial() const { return nMySerial; }
#endif
- USHORT GetSectionLevel() const;
+ sal_uInt16 GetSectionLevel() const;
- inline ULONG StartOfSectionIndex() const;
+ inline sal_uLong StartOfSectionIndex() const;
inline const SwStartNode* StartOfSectionNode() const { return pStartOfSection; }
inline SwStartNode* StartOfSectionNode() { return pStartOfSection; }
- inline ULONG EndOfSectionIndex() const;
+ inline sal_uLong EndOfSectionIndex() const;
inline const SwEndNode* EndOfSectionNode() const;
inline SwEndNode* EndOfSectionNode();
- inline BYTE GetAutoFmtLvl() const { return nAFmtNumLvl; }
- inline void SetAutoFmtLvl( BYTE nVal ) { nAFmtNumLvl = nVal; }
+ inline sal_uInt8 GetAutoFmtLvl() const { return nAFmtNumLvl; }
+ inline void SetAutoFmtLvl( sal_uInt8 nVal ) { nAFmtNumLvl = nVal; }
- inline BOOL IsSetNumLSpace() const { return bSetNumLSpace; }
- inline void SetNumLSpace( BOOL bFlag ) { bSetNumLSpace = bFlag; }
+ inline sal_Bool IsSetNumLSpace() const { return bSetNumLSpace; }
+ inline void SetNumLSpace( sal_Bool bFlag ) { bSetNumLSpace = bFlag; }
- inline BOOL IsIgnoreDontExpand() const { return bIgnoreDontExpand; }
- inline void SetIgnoreDontExpand( BOOL bNew ) { bIgnoreDontExpand = bNew; }
+ inline sal_Bool IsIgnoreDontExpand() const { return bIgnoreDontExpand; }
+ inline void SetIgnoreDontExpand( sal_Bool bNew ) { bIgnoreDontExpand = bNew; }
- BYTE GetNodeType() const { return nNodeType; }
+ sal_uInt8 GetNodeType() const { return nNodeType; }
inline SwStartNode *GetStartNode();
inline const SwStartNode *GetStartNode() const;
@@ -168,23 +168,23 @@ public:
inline SwSectionNode *GetSectionNode();
inline const SwSectionNode *GetSectionNode() const;
- inline BOOL IsStartNode() const;
- inline BOOL IsCntntNode() const;
- inline BOOL IsEndNode() const;
- inline BOOL IsTxtNode() const;
- inline BOOL IsTableNode() const;
- inline BOOL IsSectionNode() const;
- inline BOOL IsOLENode() const;
- inline BOOL IsNoTxtNode() const;
- inline BOOL IsGrfNode() const;
+ inline sal_Bool IsStartNode() const;
+ inline sal_Bool IsCntntNode() const;
+ inline sal_Bool IsEndNode() const;
+ inline sal_Bool IsTxtNode() const;
+ inline sal_Bool IsTableNode() const;
+ inline sal_Bool IsSectionNode() const;
+ inline sal_Bool IsOLENode() const;
+ inline sal_Bool IsNoTxtNode() const;
+ inline sal_Bool IsGrfNode() const;
/**
Checks if this node is in redlines.
- @retval TRUE this node is in redlines
- @retval FALSE else
+ @retval sal_True this node is in redlines
+ @retval sal_False else
*/
- BOOL IsInRedlines() const;
+ sal_Bool IsInRedlines() const;
// suche den TabellenNode, in dem dieser steht. Wenn in keiner
// Tabelle wird 0 returnt.
@@ -276,18 +276,18 @@ public:
IDocumentListItems& getIDocumentListItems();
// liegt der Node im Sichtbarenbereich der Shell ?
- BOOL IsInVisibleArea( ViewShell* pSh = 0 ) const;
+ sal_Bool IsInVisibleArea( ViewShell* pSh = 0 ) const;
// befindet sich der Node in einem geschuetzten Bereich?
- BOOL IsInProtectSect() const;
+ sal_Bool IsInProtectSect() const;
// befindet sich der Node in irgendetwas geschuetzten ?
// (Bereich/Rahmen/Tabellenzellen/... incl. des Ankers bei
// Rahmen/Fussnoten/..)
- BOOL IsProtect() const;
+ sal_Bool IsProtect() const;
// suche den PageDesc, mit dem dieser Node formatiert ist. Wenn das
// Layout vorhanden ist wird ueber das gesucht, ansonsten gibt es nur
// die harte Tour ueber die Nodes nach vorne suchen!!
// OD 18.03.2003 #106326#
- const SwPageDesc* FindPageDesc( BOOL bCalcLay, sal_uInt32* pPgDescNdIdx = 0 ) const;
+ const SwPageDesc* FindPageDesc( sal_Bool bCalcLay, sal_uInt32* pPgDescNdIdx = 0 ) const;
// falls der Node in einem Fly steht, dann wird das entsprechende Format
// returnt
@@ -297,11 +297,11 @@ public:
// TabellenBox returnt
SwTableBox* GetTblBox() const;
- inline ULONG GetIndex() const { return GetPos(); }
+ inline sal_uLong GetIndex() const { return GetPos(); }
- const SwTxtNode* FindOutlineNodeOfLevel( BYTE nLvl ) const;
+ const SwTxtNode* FindOutlineNodeOfLevel( sal_uInt8 nLvl ) const;
- BYTE HasPrevNextLayNode() const;
+ sal_uInt8 HasPrevNextLayNode() const;
private:
// privater Constructor, weil nie kopiert werden darf !!
@@ -322,11 +322,11 @@ class SwStartNode: public SwNode
SwStartNodeType eSttNdTyp;
// fuer den initialen StartNode
- SwStartNode( SwNodes& rNodes, ULONG nPos );
+ SwStartNode( SwNodes& rNodes, sal_uLong nPos );
protected:
SwStartNode( const SwNodeIndex &rWhere,
- const BYTE nNodeType = ND_STARTNODE,
+ const sal_uInt8 nNodeType = ND_STARTNODE,
SwStartNodeType = SwNormalStartNode );
public:
DECL_FIXEDMEMPOOL_NEWDEL(SwStartNode)
@@ -353,7 +353,7 @@ class SwEndNode : public SwNode
friend class SwSectionNode; // um seinen EndNode anlegen zukoennen
// fuer den initialen StartNode
- SwEndNode( SwNodes& rNodes, ULONG nPos, SwStartNode& rSttNd );
+ SwEndNode( SwNodes& rNodes, sal_uLong nPos, SwStartNode& rSttNd );
protected:
SwEndNode( const SwNodeIndex &rWhere, SwStartNode& rSttNd );
@@ -382,7 +382,7 @@ class SW_DLLPUBLIC SwCntntNode: public SwModify, public SwNode, public SwIndexRe
mutable bool mbSetModifyAtAttr;
protected:
- SwCntntNode( const SwNodeIndex &rWhere, const BYTE nNodeType,
+ SwCntntNode( const SwNodeIndex &rWhere, const sal_uInt8 nNodeType,
SwFmtColl *pFmtColl );
virtual ~SwCntntNode();
@@ -395,7 +395,7 @@ protected:
// There some functions that like to remove items from the internal
// SwAttrSet (handle):
- USHORT ClearItemsFromAttrSet( const std::vector<USHORT>& rWhichIds );
+ sal_uInt16 ClearItemsFromAttrSet( const std::vector<sal_uInt16>& rWhichIds );
virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew);
@@ -418,23 +418,23 @@ public:
void MakeStartIndex( SwIndex * pIdx ) { pIdx->Assign( this, 0 ); }
void MakeEndIndex( SwIndex * pIdx ) { pIdx->Assign( this, Len() ); }
- BOOL GoNext(SwIndex *, USHORT nMode ) const;
- BOOL GoPrevious(SwIndex *, USHORT nMode ) const;
+ sal_Bool GoNext(SwIndex *, sal_uInt16 nMode ) const;
+ sal_Bool GoPrevious(SwIndex *, sal_uInt16 nMode ) const;
// Replacement for good old GetFrm(..):
SwCntntFrm *getLayoutFrm( const SwRootFrm*,
const Point* pDocPos = 0,
const SwPosition *pPos = 0,
- const BOOL bCalcFrm = TRUE ) const;
+ const sal_Bool bCalcFrm = sal_True ) const;
// Gibt die tatsaechlcheGroesse des Frames zurueck bzw. ein leeres
// Rechteck, wenn kein Layout existiert.
// Wird fuer die Export Filter benoetigt.
- SwRect FindLayoutRect( const BOOL bPrtArea = FALSE,
+ SwRect FindLayoutRect( const sal_Bool bPrtArea = sal_False,
const Point* pPoint = 0,
- const BOOL bCalcFrm = FALSE ) const;
- SwRect FindPageFrmRect( const BOOL bPrtArea = FALSE,
+ const sal_Bool bCalcFrm = sal_False ) const;
+ SwRect FindPageFrmRect( const sal_Bool bPrtArea = sal_False,
const Point* pPoint = 0,
- const BOOL bCalcFrm = FALSE ) const;
+ const sal_Bool bCalcFrm = sal_False ) const;
/*
* Methode erzeugt fuer den angegebenen Node alle Ansichten vom
* Dokument. Die erzeugten Contentframes werden in das entsprechende
@@ -457,30 +457,30 @@ public:
virtual SwCntntNode* MakeCopy( SwDoc*, const SwNodeIndex& ) const = 0;
// erfrage vom Client Informationen
- virtual BOOL GetInfo( SfxPoolItem& ) const;
+ virtual sal_Bool GetInfo( SfxPoolItem& ) const;
// SS fuer die PoolItems: (Harte-(Fmt)Attrbutierung)
- // Ist bInParent FALSE, wird nur in diesem Node nach dem Attribut gesucht.
- const SfxPoolItem& GetAttr( USHORT nWhich, BOOL bInParent=TRUE ) const;
- BOOL GetAttr( SfxItemSet& rSet, BOOL bInParent=TRUE ) const;
+ // Ist bInParent sal_False, wird nur in diesem Node nach dem Attribut gesucht.
+ const SfxPoolItem& GetAttr( sal_uInt16 nWhich, sal_Bool bInParent=sal_True ) const;
+ sal_Bool GetAttr( SfxItemSet& rSet, sal_Bool bInParent=sal_True ) const;
// --> OD 2008-03-13 #refactorlists#
// made virtual
- virtual BOOL SetAttr( const SfxPoolItem& );
- virtual BOOL SetAttr( const SfxItemSet& rSet );
- virtual BOOL ResetAttr( USHORT nWhich1, USHORT nWhich2 = 0 );
- virtual BOOL ResetAttr( const SvUShorts& rWhichArr );
- virtual USHORT ResetAllAttr();
+ virtual sal_Bool SetAttr( const SfxPoolItem& );
+ virtual sal_Bool SetAttr( const SfxItemSet& rSet );
+ virtual sal_Bool ResetAttr( sal_uInt16 nWhich1, sal_uInt16 nWhich2 = 0 );
+ virtual sal_Bool ResetAttr( const SvUShorts& rWhichArr );
+ virtual sal_uInt16 ResetAllAttr();
// <--
// liefert das Attribut, das nicht ueber die bedingte Vorlage kommt!
- const SfxPoolItem* GetNoCondAttr( USHORT nWhich, BOOL bInParents ) const;
+ const SfxPoolItem* GetNoCondAttr( sal_uInt16 nWhich, sal_Bool bInParents ) const;
// hat der Node schon eigene Auto-Attribute ?
// Zugriff auf SwAttrSet
inline const SwAttrSet &GetSwAttrSet() const;
inline const SwAttrSet *GetpSwAttrSet() const { return static_cast<const SwAttrSet*>(mpAttrSet.get()); }
- inline BOOL HasSwAttrSet() const { return mpAttrSet ? TRUE : FALSE; }
+ inline sal_Bool HasSwAttrSet() const { return mpAttrSet ? sal_True : sal_False; }
virtual SwFmtColl* ChgFmtColl( SwFmtColl* );
SwFmtColl* GetFmtColl() const { return (SwFmtColl*)GetRegisteredIn(); }
@@ -490,13 +490,13 @@ public:
void SetCondFmtColl( SwFmtColl* );
inline SwFmtColl* GetCondFmtColl() const;
- BOOL IsAnyCondition( SwCollCondition& rTmp ) const;
+ sal_Bool IsAnyCondition( SwCollCondition& rTmp ) const;
void ChkCondColl();
//FEATURE::CONDCOLL
// invalidiert die am Node gesetzte NumRule. Diese wird
// spaetestend in EndAction einer Shell geupdatet
- BOOL InvalidateNumRule();
+ sal_Bool InvalidateNumRule();
// --> OD 2005-02-21 #i42921# - determines the text direction for a certain
// position. Return -1, if text direction could *not* be determined.
@@ -548,7 +548,7 @@ public:
void MakeFrms( const SwNodeIndex & rIdx );
SwTableNode* MakeCopy( SwDoc*, const SwNodeIndex& ) const;
- void SetNewTable( SwTable* , BOOL bNewFrames=TRUE );
+ void SetNewTable( SwTable* , sal_Bool bNewFrames=sal_True );
private:
// privater Constructor, weil nie kopiert werden darf !!
@@ -604,7 +604,7 @@ public:
// ueberprueft bei _nicht_ versteckten Bereichen, ob es Inhalt gibt, der
// _nicht_ in einem versteckten (Unter-)Bereich liegt
- BOOL IsCntntHidden() const;
+ sal_Bool IsCntntHidden() const;
};
@@ -653,41 +653,41 @@ inline const SwCntntNode *SwNode::GetCntntNode() const
}
-inline BOOL SwNode::IsStartNode() const
+inline sal_Bool SwNode::IsStartNode() const
{
- return ND_STARTNODE & nNodeType ? TRUE : FALSE;
+ return ND_STARTNODE & nNodeType ? sal_True : sal_False;
}
-inline BOOL SwNode::IsCntntNode() const
+inline sal_Bool SwNode::IsCntntNode() const
{
- return ND_CONTENTNODE & nNodeType ? TRUE : FALSE;
+ return ND_CONTENTNODE & nNodeType ? sal_True : sal_False;
}
-inline BOOL SwNode::IsEndNode() const
+inline sal_Bool SwNode::IsEndNode() const
{
- return ND_ENDNODE == nNodeType ? TRUE : FALSE;
+ return ND_ENDNODE == nNodeType ? sal_True : sal_False;
}
-inline BOOL SwNode::IsTxtNode() const
+inline sal_Bool SwNode::IsTxtNode() const
{
- return ND_TEXTNODE == nNodeType ? TRUE : FALSE;
+ return ND_TEXTNODE == nNodeType ? sal_True : sal_False;
}
-inline BOOL SwNode::IsTableNode() const
+inline sal_Bool SwNode::IsTableNode() const
{
- return ND_TABLENODE == nNodeType ? TRUE : FALSE;
+ return ND_TABLENODE == nNodeType ? sal_True : sal_False;
}
-inline BOOL SwNode::IsSectionNode() const
+inline sal_Bool SwNode::IsSectionNode() const
{
- return ND_SECTIONNODE == nNodeType ? TRUE : FALSE;
+ return ND_SECTIONNODE == nNodeType ? sal_True : sal_False;
}
-inline BOOL SwNode::IsNoTxtNode() const
+inline sal_Bool SwNode::IsNoTxtNode() const
{
- return ND_NOTXTNODE & nNodeType ? TRUE : FALSE;
+ return ND_NOTXTNODE & nNodeType ? sal_True : sal_False;
}
-inline BOOL SwNode::IsOLENode() const
+inline sal_Bool SwNode::IsOLENode() const
{
- return ND_OLENODE == nNodeType ? TRUE : FALSE;
+ return ND_OLENODE == nNodeType ? sal_True : sal_False;
}
-inline BOOL SwNode::IsGrfNode() const
+inline sal_Bool SwNode::IsGrfNode() const
{
- return ND_GRFNODE == nNodeType ? TRUE : FALSE;
+ return ND_GRFNODE == nNodeType ? sal_True : sal_False;
}
inline const SwStartNode* SwNode::FindSttNodeByType( SwStartNodeType eTyp ) const
@@ -702,11 +702,11 @@ inline const SwSectionNode* SwNode::FindSectionNode() const
{
return ((SwNode*)this)->FindSectionNode();
}
-inline ULONG SwNode::StartOfSectionIndex() const
+inline sal_uLong SwNode::StartOfSectionIndex() const
{
return pStartOfSection->GetIndex();
}
-inline ULONG SwNode::EndOfSectionIndex() const
+inline sal_uLong SwNode::EndOfSectionIndex() const
{
const SwStartNode* pStNd = IsStartNode() ? (SwStartNode*)this : pStartOfSection;
return pStNd->pEndOfSection->GetIndex();
@@ -760,8 +760,8 @@ inline const SwAttrSet& SwCntntNode::GetSwAttrSet() const
//FEATURE::CONDCOLL
-inline const SfxPoolItem& SwCntntNode::GetAttr( USHORT nWhich,
- BOOL bInParents ) const
+inline const SfxPoolItem& SwCntntNode::GetAttr( sal_uInt16 nWhich,
+ sal_Bool bInParents ) const
{
return GetSwAttrSet().Get( nWhich, bInParents );
}