Kaydet (Commit) e2dc30d6 authored tarafından Michael Stahl's avatar Michael Stahl

sw_redlinehide_2: remove GetTextUntilEndOfNode()

This is pretty silly, the only caller is actually interested in the
position of the cursor, not any text at all.

Change-Id: Ibf016d5526e18775c0e6e365b9823723267e76d5
üst 29c8641f
......@@ -566,9 +566,6 @@ public:
// get the selected text at the current cursor. it will be filled with
// fields etc.
OUString GetSelText() const;
// return only the text starting from the current cursor position (to the
// end of the node)
OUString GetTextUntilEndOfNode() const;
// Check of SPoint or Mark of current cursor are placed within a table.
inline const SwTableNode* IsCursorInTable() const;
......
......@@ -2350,21 +2350,6 @@ OUString SwCursorShell::GetSelText() const
return aText;
}
/// get text only from current cursor position (until end of node)
OUString SwCursorShell::GetTextUntilEndOfNode() const
{
OUString aText;
if( m_pCurrentCursor->GetPoint()->nNode.GetIndex() ==
m_pCurrentCursor->GetMark()->nNode.GetIndex() )
{
SwTextNode* pTextNd = m_pCurrentCursor->GetNode().GetTextNode();
if( pTextNd )
aText = pTextNd->GetText().copy(
m_pCurrentCursor->GetPoint()->nContent.GetIndex() );
}
return aText;
}
/** get the nth character of the current SSelection
@param bEnd Start counting from the end? From start otherwise.
......
......@@ -453,7 +453,7 @@ void SwMailMergeLayoutPage::InsertGreeting(SwWrtShell& rShell, SwMailMergeConfig
//we may end up inside of a paragraph if the left margin is not at DEFAULT_LEFT_DISTANCE
rShell.MovePara(GoCurrPara, fnParaStart);
}
bool bSplitNode = !rShell.GetTextUntilEndOfNode().isEmpty();
bool bSplitNode = !rShell.IsEndPara();
sal_Int32 nMoves = rConfigItem.GetGreetingMoves();
if( !bExample && 0 != nMoves )
{
......
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