LibreOffice Module sw (master)
1
|
#include <UndoDelete.hxx>
#include <libxml/xmlwriter.h>
#include <editeng/formatbreakitem.hxx>
#include <hintids.hxx>
#include <osl/diagnose.h>
#include <rtl/ustrbuf.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 <frameformats.hxx>
#include <fmtpdsc.hxx>
#include <vector>
Go to the source code of this file.
Functions | |
static void | lcl_MakeAutoFrames (const SwFrameFormats &rSpzArr, SwNodeOffset nMovedIndex) |
static SwTextNode * | FindFirstAndNextNode (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 (std::u16string_view rStr, sal_Int32 nStart, sal_Int32 nEnd, bool bQuoted) |
OUString | DenoteSpecialCharacters (const OUString &rStr, bool bQuoted) |
Denotes special characters in a string. More... | |
static void | lcl_ReAnchorAtContentFlyFrames (const SwFrameFormats &rSpzArr, const SwPosition &rPos, SwNodeOffset nOldIdx) |
|
static |
Definition at line 121 of file undel.cxx.
References FindFirstAndNextNode(), SwIterator< TElementType, TSource, eMode >::First(), SwNode::GetIndex(), and SwIterator< TElementType, TSource, eMode >::Next().
Referenced by SwUndoDelete::RedoImpl(), and SwUndoDelete::SwUndoDelete().
OUString DenoteSpecialCharacters | ( | const OUString & | rStr, |
bool | bQuoted = true |
||
) |
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.
rStr | the string to denote in |
bQuoted | add quotation marks to the text |
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)").
Definition at line 717 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 |
Definition at line 72 of file undel.cxx.
References SwDoc::GetNodes(), SwNode::GetTextNode(), i, SwUndRng::m_nEndContent, SwUndRng::m_nEndNode, SwUndRng::m_nSttNode, and SwRedlineSaveDatas::size().
Referenced by DelFullParaMoveFrames(), and SwUndoDelete::UndoImpl().
|
static |
Definition at line 662 of file undel.cxx.
References SwRewriter::AddRule(), SwRewriter::Apply(), CH_TXT_ATR_FIELDEND, CH_TXT_ATR_FIELDSEP, CH_TXT_ATR_FIELDSTART, CH_TXT_ATR_FORMELEMENT, CH_TXT_ATR_INPUTFIELDEND, CH_TXT_ATR_INPUTFIELDSTART, CH_TXTATR_BREAKWORD, CH_TXTATR_INWORD, CH_TXTATR_NEWLINE, CH_TXTATR_TAB, SwRewriter::GetPlaceHolder(), lcl_IsSpecialCharacter(), nCount, SwResId(), UndoArg1, and UndoArg2.
Referenced by DenoteSpecialCharacters().
|
static |
Definition at line 639 of file undel.cxx.
References CH_TXT_ATR_FIELDEND, CH_TXT_ATR_FIELDSEP, CH_TXT_ATR_FIELDSTART, CH_TXT_ATR_FORMELEMENT, CH_TXT_ATR_INPUTFIELDEND, CH_TXT_ATR_INPUTFIELDSTART, CH_TXTATR_BREAKWORD, CH_TXTATR_INWORD, CH_TXTATR_NEWLINE, and CH_TXTATR_TAB.
Referenced by DenoteSpecialCharacters(), and lcl_DenotedPortion().
|
static |
Definition at line 57 of file undel.cxx.
References SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), SwFormatAnchor::GetContentAnchor(), SwNodeIndex::GetIndex(), SwFrameFormat::MakeFrames(), n, SwPosition::nNode, and SwFrameFormats::size().
Referenced by SwUndoDelete::SwUndoDelete(), and SwUndoDelete::UndoImpl().
|
static |
Definition at line 821 of file undel.cxx.
References SwFrameFormats::empty(), SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), SwFormatAnchor::GetContentAnchor(), SwNodeIndex::GetIndex(), n, SwPosition::nNode, SwFormatAnchor::SetAnchor(), SwFormat::SetFormatAttr(), and SwFrameFormats::size().
Referenced by SwUndoDelete::UndoImpl().
|
static |
Definition at line 612 of file undel.cxx.
References SwRewriter::AddRule(), SwHistory::Count(), n, SwResId(), and UndoArg2.
Referenced by SwUndoDelete::GetRewriter().