Kaydet (Commit) e61b20dc authored tarafından Noel Grandin's avatar Noel Grandin

rename CollapsAttribs -> CollapseAttribs

Change-Id: Ic70f67fb7e0e557a3a726f44aef25931def49835
üst 17b1bbb5
......@@ -1406,7 +1406,7 @@ void ContentNode::ExpandAttribs( sal_Int32 nIndex, sal_Int32 nNew, SfxItemPool&
#endif
}
void ContentNode::CollapsAttribs( sal_Int32 nIndex, sal_Int32 nDeleted, SfxItemPool& rItemPool )
void ContentNode::CollapseAttribs( sal_Int32 nIndex, sal_Int32 nDeleted, SfxItemPool& rItemPool )
{
if ( !nDeleted )
return;
......@@ -2392,7 +2392,7 @@ void EditDoc::RemoveChars( EditPaM aPaM, sal_Int32 nChars )
{
// Maybe remove Features!
aPaM.GetNode()->Erase( aPaM.GetIndex(), nChars );
aPaM.GetNode()->CollapsAttribs( aPaM.GetIndex(), nChars, GetItemPool() );
aPaM.GetNode()->CollapseAttribs( aPaM.GetIndex(), nChars, GetItemPool() );
SetModified( true );
}
......
......@@ -254,7 +254,7 @@ public:
const CharAttribList& GetCharAttribs() const { return aCharAttribList; }
void ExpandAttribs( sal_Int32 nIndex, sal_Int32 nNewChars, SfxItemPool& rItemPool );
void CollapsAttribs( sal_Int32 nIndex, sal_Int32 nDelChars, SfxItemPool& rItemPool );
void CollapseAttribs( sal_Int32 nIndex, sal_Int32 nDelChars, SfxItemPool& rItemPool );
void AppendAttribs( ContentNode* pNextNode );
void CopyAndCutAttribs( ContentNode* pPrevNode, SfxItemPool& rPool, bool bKeepEndingAttribs );
......
......@@ -229,7 +229,7 @@ void TextNode::ExpandAttribs( sal_Int32 nIndex, sal_Int32 nNew )
maCharAttribs.ResortAttribs();
}
void TextNode::CollapsAttribs( sal_Int32 nIndex, sal_Int32 nDeleted )
void TextNode::CollapseAttribs( sal_Int32 nIndex, sal_Int32 nDeleted )
{
if ( !nDeleted )
return;
......@@ -306,7 +306,7 @@ void TextNode::InsertText( sal_Int32 nPos, sal_Unicode c )
void TextNode::RemoveText( sal_Int32 nPos, sal_Int32 nChars )
{
maText = maText.replaceAt( nPos, nChars, "" );
CollapsAttribs( nPos, nChars );
CollapseAttribs( nPos, nChars );
}
TextNode* TextNode::Split( sal_Int32 nPos )
......
......@@ -68,7 +68,7 @@ private:
protected:
void ExpandAttribs( sal_Int32 nIndex, sal_Int32 nNewChars );
void CollapsAttribs( sal_Int32 nIndex, sal_Int32 nDelChars );
void CollapseAttribs( sal_Int32 nIndex, sal_Int32 nDelChars );
public:
TextNode( const OUString& rText );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment