Kaydet (Commit) 6c7bb6df authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS swqbf88 (1.61.26); FILE MERGED

2006/10/20 14:48:30 fme 1.61.26.1: #127138# Do not remove the last text node in RemoveInvisibleContent
üst f20c3bed
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: porlay.cxx,v $ * $RCSfile: porlay.cxx,v $
* *
* $Revision: 1.61 $ * $Revision: 1.62 $
* *
* last change: $Author: obo $ $Date: 2006-09-16 21:37:55 $ * last change: $Author: vg $ $Date: 2006-11-01 15:13:17 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -105,6 +105,7 @@ ...@@ -105,6 +105,7 @@
#include <IDocumentRedlineAccess.hxx> #include <IDocumentRedlineAccess.hxx>
#include <IDocumentSettingAccess.hxx> #include <IDocumentSettingAccess.hxx>
#include <IDocumentContentOperations.hxx>
using namespace ::com::sun::star; using namespace ::com::sun::star;
using namespace ::com::sun::star::i18n::ScriptType; using namespace ::com::sun::star::i18n::ScriptType;
...@@ -1369,6 +1370,29 @@ USHORT SwScriptInfo::MaskHiddenRanges( const SwTxtNode& rNode, XubString& rText, ...@@ -1369,6 +1370,29 @@ USHORT SwScriptInfo::MaskHiddenRanges( const SwTxtNode& rNode, XubString& rText,
return nNumOfHiddenChars; return nNumOfHiddenChars;
} }
/*************************************************************************
* SwScriptInfo::DeleteHiddenRanges(..)
* Takes a SwTxtNode and deletes the hidden ranges from the node.
**************************************************************************/
void SwScriptInfo::DeleteHiddenRanges( SwTxtNode& rNode )
{
PositionList aList;
xub_StrLen nHiddenStart;
xub_StrLen nHiddenEnd;
GetBoundsOfHiddenRange( rNode, 0, nHiddenStart, nHiddenEnd, &aList );
PositionList::const_reverse_iterator rFirst( aList.end() );
PositionList::const_reverse_iterator rLast( aList.begin() );
while ( rFirst != rLast )
{
nHiddenEnd = *(rFirst++);
nHiddenStart = *(rFirst++);
SwPaM aPam( rNode, nHiddenStart, rNode, nHiddenEnd );
rNode.getIDocumentContentOperations()->Delete( aPam );
}
}
/************************************************************************* /*************************************************************************
* SwScriptInfo::GetBoundsOfHiddenRange(..) * SwScriptInfo::GetBoundsOfHiddenRange(..)
* static version * static version
......
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