LibreOffice Module sw (master) 1
|
#include <fmtanchr.hxx>
#include <fmtcntnt.hxx>
#include <acorrect.hxx>
#include <IDocumentRedlineAccess.hxx>
#include <IDocumentLayoutAccess.hxx>
#include <IDocumentUndoRedo.hxx>
#include <docsh.hxx>
#include <docary.hxx>
#include <mdiexp.hxx>
#include <mvsave.hxx>
#include <redline.hxx>
#include <rolbck.hxx>
#include <rootfrm.hxx>
#include <splargs.hxx>
#include <swcrsr.hxx>
#include <txtfrm.hxx>
#include <unoflatpara.hxx>
#include <SwGrammarMarkUp.hxx>
#include <docedt.hxx>
#include <frmfmt.hxx>
#include <ndtxt.hxx>
#include <undobj.hxx>
#include <frameformats.hxx>
#include <vector>
#include <com/sun/star/linguistic2/XProofreadingIterator.hpp>
#include <osl/diagnose.h>
Go to the source code of this file.
Functions | |
void | RestFlyInRange (SaveFlyArr &rArr, const SwPosition &rStartPos, const SwNode *pInsertPos, bool const isForceToStartPos) |
void | SaveFlyInRange (const SwNodeRange &rRg, SaveFlyArr &rArr) |
void | SaveFlyInRange (const SwPaM &rPam, const SwPosition &rInsPos, SaveFlyArr &rArr, bool bMoveAllFlys, SwHistory *const pHistory) |
void | DelFlyInRange (SwNode &rMkNd, SwNode &rPtNd, std::optional< sal_Int32 > oMkContentIdx, std::optional< sal_Int32 > oPtContentIdx) |
Delete and move all Flys at the paragraph, that are within the selection. More... | |
static std::vector< sal_uInt16 > | lcl_RangesToVector (const WhichRangesContainer &pRanges) |
Convert list of ranges of whichIds to a corresponding list of whichIds. More... | |
void | sw_GetJoinFlags (SwPaM &rPam, bool &rJoinText, bool &rJoinPrev) |
bool | sw_JoinText (SwPaM &rPam, bool bJoinPrev) |
static void | lcl_syncGrammarError (SwTextNode &rTextNode, linguistic2::ProofreadingResult &rResult, const ModelToViewHelper &rConversionMap) |
static bool | lcl_HyphenateNode (SwNode *pNd, void *pArgs) |
void DelFlyInRange | ( | SwNode & | rMkNd, |
SwNode & | rPtNd, | ||
std::optional< sal_Int32 > | oMkContentIdx, | ||
std::optional< sal_Int32 > | oPtContentIdx | ||
) |
Delete and move all Flys at the paragraph, that are within the selection.
If there is a Fly at the SPoint, it is moved onto the Mark.
Definition at line 208 of file docedt.cxx.
References AllMask, sw::FrameFormats< value_type >::begin(), CheckNoCntnt, DelFlyInRange(), IDocumentLayoutAccess::DelLayoutFormat(), sw::FrameFormats< value_type >::find(), SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), SwFormat::GetContent(), SwFormatAnchor::GetContentAnchor(), SwFormatContent::GetContentIdx(), SwNode::GetContentNode(), SwNode::GetDoc(), SwDoc::getIDocumentLayoutAccess(), SwNodeIndex::GetNode(), GetNode(), SwDoc::GetSpzFrameFormats(), i, IsDestroyFrameAnchoredAtChar(), IsSelectFrameAnchoredAtPara(), point(), RES_FLYFRMFMT(), sw::FrameFormats< value_type >::size(), SwFormat::Which(), and WriterfilterHack.
Referenced by sw::DocumentContentOperationsManager::DeleteRangeImplImpl(), sw::DocumentContentOperationsManager::DeleteSection(), DelFlyInRange(), and SwTOXBaseSection::Update().
|
static |
Definition at line 759 of file docedt.cxx.
References IDocumentLayoutAccess::GetCurrentLayout(), SwNode::GetDoc(), SwDoc::GetDocShell(), SwDoc::getIDocumentLayoutAccess(), SwContentNode::getLayoutFrame(), SwFrame::GetPhyPageNum(), SwNode::GetTextNode(), SwTextNode::Hyphenate(), SwTextFrame::IsHiddenNow(), and SetProgressState().
Referenced by SwDoc::Hyphenate().
|
static |
Convert list of ranges of whichIds to a corresponding list of whichIds.
Definition at line 313 of file docedt.cxx.
Referenced by sw_JoinText().
|
static |
Definition at line 491 of file docedt.cxx.
References ModelToViewHelper::ConvertToModelPosition(), SwTextNode::GetGrammarCheck(), i, SwTextNode::IsGrammarCheckDirty(), SwWrongList::LookForEntry(), and ModelToViewHelper::ModelPosition::mnPos.
Referenced by SwDoc::Spell().
void RestFlyInRange | ( | SaveFlyArr & | rArr, |
const SwPosition & | rStartPos, | ||
const SwNode * | pInsertPos, | ||
bool const | isForceToStartPos | ||
) |
Definition at line 53 of file docedt.cxx.
References SwPosition::Assign(), sw::CheckAnchoredFlyConsistency(), SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), SwPosition::GetContentIndex(), SwNode::GetContentNode(), IDocumentLayoutAccess::GetCurrentLayout(), SwNode::GetDoc(), SwFormat::GetDoc(), SwDoc::getIDocumentLayoutAccess(), SwContentNode::getLayoutFrame(), SwPosition::GetNode(), SwPosition::GetNodeIndex(), SwDoc::GetSpzFrameFormats(), SwFrameFormat::MakeFrames(), SwFormatAnchor::SetAnchor(), SwPosition::SetContent(), and SwFormat::SetFormatAttr().
Referenced by SwUndoRedlineDelete::InitHistory(), sw::DocumentContentOperationsManager::MoveNodeRange(), sw::DocumentContentOperationsManager::MoveRange(), and sw::DocumentContentOperationsManager::ReplaceRangeImpl().
void SaveFlyInRange | ( | const SwNodeRange & | rRg, |
SaveFlyArr & | rArr | ||
) |
Definition at line 106 of file docedt.cxx.
References SwNodeRange::aEnd, SwNodeRange::aStart, sw::FrameFormats< value_type >::begin(), sw::CheckAnchoredFlyConsistency(), sw::FrameFormats< value_type >::erase(), SwFormatAnchor::GetAnchorContentOffset(), SwFormatAnchor::GetAnchorId(), SwFormatAnchor::GetAnchorNode(), SwNode::GetDoc(), SwNodeIndex::GetIndex(), SwNode::GetIndex(), SwNodeIndex::GetNode(), SwDoc::GetSpzFrameFormats(), n, SwFormatAnchor::SetAnchor(), and sw::FrameFormats< value_type >::size().
Referenced by SwUndoRedlineDelete::InitHistory(), sw::DocumentContentOperationsManager::MoveNodeRange(), sw::DocumentContentOperationsManager::MoveRange(), and sw::DocumentContentOperationsManager::ReplaceRangeImpl().
void SaveFlyInRange | ( | const SwPaM & | rPam, |
const SwPosition & | rInsPos, | ||
SaveFlyArr & | rArr, | ||
bool | bMoveAllFlys, | ||
SwHistory *const | pHistory | ||
) |
Definition at line 136 of file docedt.cxx.
References SwHistory::AddChangeFlyAnchor(), SwPosition::Adjust(), AllMask, sw::FrameFormats< value_type >::begin(), sw::CheckAnchoredFlyConsistency(), CheckNoCntnt, SwFrameFormat::DelFrames(), SwPaM::End(), SwNode::EndOfSectionNode(), sw::FrameFormats< value_type >::erase(), SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), SwFormat::GetContent(), SwFormatAnchor::GetContentAnchor(), SwFormatContent::GetContentIdx(), SwPosition::GetContentIndex(), SwNode::GetDoc(), SwNode::GetIndex(), SwNodeIndex::GetNode(), SwPosition::GetNode(), SwPosition::GetNodeIndex(), SwPaM::GetPoint(), SwDoc::GetSpzFrameFormats(), SwNode::GetTextNode(), IsDestroyFrameAnchoredAtChar(), IsSelectFrameAnchoredAtPara(), SwNode::IsTextNode(), SwTextNode::Len(), n, SwFormatAnchor::SetAnchor(), SwFormat::SetFormatAttr(), sw::FrameFormats< value_type >::size(), and SwPaM::Start().
void sw_GetJoinFlags | ( | SwPaM & | rPam, |
bool & | rJoinText, | ||
bool & | rJoinPrev | ||
) |
Definition at line 326 of file docedt.cxx.
References SwPaM::Exchange(), SwPaM::GetMark(), SwPosition::GetNode(), SwPaM::GetPoint(), SwTextNode::GetText(), SwNode::GetTextNode(), and SwPaM::StartEnd().
Referenced by sw::DocumentContentOperationsManager::DeleteAndJoinImpl(), sw::DocumentContentOperationsManager::ReplaceRangeImpl(), and SwUndoCompDoc::UndoImpl().
bool sw_JoinText | ( | SwPaM & | rPam, |
bool | bJoinPrev | ||
) |
Definition at line 357 of file docedt.cxx.
References aBreakSetRange, aCharFormatSetRange, SwPosition::Assign(), SwContentNode::CanJoinNext(), sw::CheckResetRedlineMergeFlag(), SwDoc::CorrRel(), SfxItemSet::Count(), sw::mark::ContentIdxStore::Create(), SwTextNode::CutText(), SwNodes::Delete(), SwNode::First, SwTextNode::FormatToTextAttr(), SwDoc::GetAttrPool(), SwPaM::GetBound(), SwPosition::GetContentNode(), SwPaM::GetDoc(), SwDoc::GetIDocumentUndoRedo(), SwNodeIndex::GetIndex(), SfxItemSet::GetItemState(), SwNodeIndex::GetNode(), SwPosition::GetNode(), SwDoc::GetNodes(), SwPaM::GetPoint(), SwContentNode::GetpSwAttrSet(), SwNode::GetRedlineMergeFlag(), SwNode::GetTextNode(), SwContentNode::HasSwAttrSet(), SwNode::IsCreateFrameWhenHidingRedlines(), SwTextNode::JoinNext(), lcl_RangesToVector(), SwTextNode::Len(), sw::MoveDeletedPrevFrames(), sw::No, SwNode::NonFirst, sw::Predecessor, SfxItemSet::Put(), RES_BREAK(), RES_PAGEDESC(), SwTextNode::ResetAttr(), SAL_MAX_INT32, and SwTextNode::SetAttr().
Referenced by sw::DocumentContentOperationsManager::DeleteAndJoinImpl(), sw::DocumentContentOperationsManager::ReplaceRangeImpl(), and SwUndoCompDoc::UndoImpl().