fix of comments
fix some comments made in 31b7640f7137964916062e64fca18869a18f5118
This commit is contained in:
parent
1609457325
commit
378ee95b08
2 changed files with 8 additions and 8 deletions
|
@ -325,23 +325,23 @@ public:
|
|||
sal_uInt16 GetTxtFmtCollCount() const;
|
||||
SwTxtFmtColl& GetTxtFmtColl( sal_uInt16 nTxtFmtColl) const;
|
||||
/**
|
||||
* Get the named character format of the current selection.
|
||||
* Get the named paragraph format of the current selection.
|
||||
*
|
||||
* @see GetPaMTxtFmtColl()
|
||||
*
|
||||
* @return the named character format of the first node that contains one.
|
||||
* @return the named paragraph format of the first node that contains one.
|
||||
* Nodes are sort by order of appearance in the selections ;
|
||||
* selections are sort by their order of creation
|
||||
* (last created selection first, oldest selection at last).
|
||||
*/
|
||||
SwTxtFmtColl* GetCurTxtFmtColl() const;
|
||||
/**
|
||||
* Get the named character format of the selection(s) described by a SwPaM.
|
||||
* Get the named paragraph format of the selection(s) described by a SwPaM.
|
||||
*
|
||||
* @param pPaM
|
||||
* input parameter - the selection where to look for the character format.
|
||||
* input parameter - the selection where to look for the paragraph format.
|
||||
*
|
||||
* @return the named character format of the first node that contains one.
|
||||
* @return the named paragraph format of the first node that contains one.
|
||||
*/
|
||||
SwTxtFmtColl* GetPaMTxtFmtColl( SwPaM* pPaM ) const;
|
||||
|
||||
|
|
|
@ -268,17 +268,17 @@ SwTxtFmtColl* SwEditShell::GetPaMTxtFmtColl( SwPaM* pPaM ) const
|
|||
|
||||
if( pNd->IsTxtNode() )
|
||||
{
|
||||
// if it's a text node get its named character format
|
||||
// if it's a text node get its named paragraph format
|
||||
SwTxtFmtColl* pFmt = static_cast<SwTxtNode*>(pNd)->GetTxtColl();
|
||||
|
||||
// if the character format exist stop here and return it
|
||||
// if the paragraph format exist stop here and return it
|
||||
if( pFmt != NULL )
|
||||
return pFmt;
|
||||
}
|
||||
}
|
||||
} while ( ( pPaM = static_cast<SwPaM*>(pPaM->GetNext()) ) != pStartPaM );
|
||||
|
||||
// if none of the selected node contain a named character format
|
||||
// if none of the selected node contain a named paragraph format
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue