LibreOffice Module sw (master)  1
Functions
undel.cxx File Reference
#include <UndoDelete.hxx>
#include <hintids.hxx>
#include <unotools/charclass.hxx>
#include <frmfmt.hxx>
#include <fmtanchr.hxx>
#include <doc.hxx>
#include <UndoManager.hxx>
#include <IDocumentRedlineAccess.hxx>
#include <IDocumentStylePoolAccess.hxx>
#include <swtable.hxx>
#include <swundo.hxx>
#include <pam.hxx>
#include <ndtxt.hxx>
#include <UndoCore.hxx>
#include <rolbck.hxx>
#include <poolfmt.hxx>
#include <mvsave.hxx>
#include <docary.hxx>
#include <frmtool.hxx>
#include <txtfrm.hxx>
#include <rootfrm.hxx>
#include <strings.hrc>
#include <vector>
Include dependency graph for undel.cxx:

Go to the source code of this file.

Functions

static void lcl_MakeAutoFrames (const SwFrameFormats &rSpzArr, sal_uLong nMovedIndex)
 
static SwTextNodeFindFirstAndNextNode (SwDoc &rDoc, SwUndRng const &rRange, SwRedlineSaveDatas const &rRedlineSaveData, SwTextNode *&o_rpFirstMergedDeletedTextNode)
 
static void DelFullParaMoveFrames (SwDoc &rDoc, SwUndRng const &rRange, SwRedlineSaveDatas const &rRedlineSaveData)
 
static SwRewriter lcl_RewriterFromHistory (SwHistory &rHistory)
 
static bool lcl_IsSpecialCharacter (sal_Unicode nChar)
 
static OUString lcl_DenotedPortion (const OUString &rStr, sal_Int32 nStart, sal_Int32 nEnd)
 
OUString DenoteSpecialCharacters (const OUString &rStr)
 Denotes special characters in a string. More...
 
static void lcl_ReAnchorAtContentFlyFrames (const SwFrameFormats &rSpzArr, SwPosition &rPos, sal_uLong nOldIdx)
 

Function Documentation

static void DelFullParaMoveFrames ( SwDoc rDoc,
SwUndRng const &  rRange,
SwRedlineSaveDatas const &  rRedlineSaveData 
)
static
OUString DenoteSpecialCharacters ( const OUString &  rStr)

Denotes special characters in a string.

The rStr is split into parts containing special characters and parts not containing special characters. In a part containing special characters all characters are equal. These parts are maximal.

Parameters
rStrthe string to denote in

The resulting string is generated by concatenating the found parts. The parts without special characters are surrounded by "'". The parts containing special characters are denoted as "n x", where n is the length of the part and x is the representation of the special character (i. e. "tab(s)").

Returns
the denoted string

Definition at line 702 of file undel.cxx.

References SwRewriter::GetPlaceHolder(), i, lcl_DenotedPortion(), lcl_IsSpecialCharacter(), and UndoArg2.

Referenced by SwRangeRedline::GetDescr(), SwUndoRedlineDelete::GetRewriter(), SwUndoInsert::GetRewriter(), and SwUndoDelete::GetRewriter().

static SwTextNode* FindFirstAndNextNode ( SwDoc rDoc,
SwUndRng const &  rRange,
SwRedlineSaveDatas const &  rRedlineSaveData,
SwTextNode *&  o_rpFirstMergedDeletedTextNode 
)
static
static OUString lcl_DenotedPortion ( const OUString &  rStr,
sal_Int32  nStart,
sal_Int32  nEnd 
)
static
static bool lcl_IsSpecialCharacter ( sal_Unicode  nChar)
static
static void lcl_MakeAutoFrames ( const SwFrameFormats rSpzArr,
sal_uLong  nMovedIndex 
)
static
static void lcl_ReAnchorAtContentFlyFrames ( const SwFrameFormats rSpzArr,
SwPosition rPos,
sal_uLong  nOldIdx 
)
static
static SwRewriter lcl_RewriterFromHistory ( SwHistory rHistory)
static

Definition at line 599 of file undel.cxx.

References SwRewriter::AddRule(), SwHistory::Count(), n, SwResId(), and UndoArg2.

Referenced by SwUndoDelete::GetRewriter().