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 <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 <com/sun/star/frame/XModel.hpp>
#include <osl/diagnose.h>
Go to the source code of this file.
Functions | |
void | RestFlyInRange (SaveFlyArr &rArr, const SwPosition &rStartPos, const SwNodeIndex *pInsertPos) |
void | SaveFlyInRange (const SwNodeRange &rRg, SaveFlyArr &rArr) |
void | SaveFlyInRange (const SwPaM &rPam, const SwPosition &rInsPos, SaveFlyArr &rArr, bool bMoveAllFlys) |
void | DelFlyInRange (const SwNodeIndex &rMkNdIdx, const SwNodeIndex &rPtNdIdx, SwIndex const *const pMkIdx, SwIndex const *const pPtIdx) |
Delete and move all Flys at the paragraph, that are within the selection. More... | |
static std::vector< sal_uInt16 > | lcl_RangesToVector (const sal_uInt16 *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 (const SwNodePtr &rpNd, void *pArgs) |
void DelFlyInRange | ( | const SwNodeIndex & | rMkNdIdx, |
const SwNodeIndex & | rPtNdIdx, | ||
SwIndex const *const | pMkIdx, | ||
SwIndex const *const | pPtIdx | ||
) |
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 204 of file docedt.cxx.
References AllMask, assert(), SwFrameFormats::begin(), CheckNoCntnt, DelFlyInRange(), IDocumentLayoutAccess::DelLayoutFormat(), SwNode::EndOfSectionNode(), SwFrameFormats::find(), SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), SwFormat::GetContent(), SwFormatAnchor::GetContentAnchor(), SwFormatContent::GetContentIdx(), SwNode::GetDoc(), SwDoc::getIDocumentLayoutAccess(), SwNodeIndex::GetNode(), GetNode(), SwDoc::GetSpzFrameFormats(), i, IsDestroyFrameAnchoredAtChar(), IsSelectFrameAnchoredAtPara(), point(), RES_FLYFRMFMT(), SwFrameFormats::size(), SwFormat::Which(), and WriterfilterHack.
Referenced by sw::DocumentContentOperationsManager::DeleteRangeImplImpl(), sw::DocumentContentOperationsManager::DeleteSection(), DelFlyInRange(), and SwTOXBaseSection::Update().
Definition at line 778 of file docedt.cxx.
References IDocumentLayoutAccess::GetCurrentLayout(), SwNode::GetDoc(), SwDoc::GetDocShell(), SwDoc::getIDocumentLayoutAccess(), SwContentNode::getLayoutFrame(), SwFrame::GetPhyPageNum(), SwNode::GetTextNode(), SwTextNode::Hyphenate(), and SetProgressState().
Referenced by SwDoc::Hyphenate().
|
static |
Convert list of ranges of whichIds to a corresponding list of whichIds.
Definition at line 310 of file docedt.cxx.
References i.
Referenced by sw_JoinText().
|
static |
Definition at line 496 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 SwNodeIndex * | pInsertPos | ||
) |
Definition at line 53 of file docedt.cxx.
References assert(), SwIndex::Assign(), sw::CheckAnchoredFlyConsistency(), SwFormat::GetAnchor(), SwNode::GetContentNode(), IDocumentLayoutAccess::GetCurrentLayout(), SwFormat::GetDoc(), SwNode::GetDoc(), SwDoc::getIDocumentLayoutAccess(), SwIndex::GetIndex(), SwNodeIndex::GetIndex(), SwContentNode::getLayoutFrame(), SwNodeIndex::GetNode(), SwDoc::GetSpzFrameFormats(), SwFrameFormat::MakeFrames(), SwPosition::nContent, SwPosition::nNode, SwFrameFormats::push_back(), and SwFormat::SetFormatAttr().
Referenced by sw::DocumentContentOperationsManager::MoveNodeRange(), and sw::DocumentContentOperationsManager::MoveRange().
void SaveFlyInRange | ( | const SwNodeRange & | rRg, |
SaveFlyArr & | rArr | ||
) |
Definition at line 105 of file docedt.cxx.
References SwNodeRange::aEnd, SwNodeRange::aStart, SwFrameFormats::begin(), sw::CheckAnchoredFlyConsistency(), SwFrameFormat::DelFrames(), SwFrameFormats::erase(), SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), SwFormatAnchor::GetContentAnchor(), SwNode::GetDoc(), SwIndex::GetIndex(), SwNodeIndex::GetIndex(), SwNodeIndex::GetNode(), SwDoc::GetSpzFrameFormats(), n, SwPosition::nContent, SwPosition::nNode, SwFormatAnchor::SetAnchor(), SwFormat::SetFormatAttr(), and SwFrameFormats::size().
Referenced by sw::DocumentContentOperationsManager::MoveNodeRange(), and sw::DocumentContentOperationsManager::MoveRange().
void SaveFlyInRange | ( | const SwPaM & | rPam, |
const SwPosition & | rInsPos, | ||
SaveFlyArr & | rArr, | ||
bool | bMoveAllFlys | ||
) |
Definition at line 135 of file docedt.cxx.
References AllMask, assert(), SwFrameFormats::begin(), sw::CheckAnchoredFlyConsistency(), CheckNoCntnt, SwFrameFormat::DelFrames(), SwPaM::End(), SwNode::EndOfSectionIndex(), SwFrameFormats::erase(), SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), SwFormat::GetContent(), SwFormatAnchor::GetContentAnchor(), SwFormatContent::GetContentIdx(), SwNode::GetDoc(), SwIndex::GetIndex(), SwNodeIndex::GetIndex(), SwNodeIndex::GetNode(), SwPaM::GetPoint(), SwDoc::GetSpzFrameFormats(), SwNode::GetTextNode(), IsDestroyFrameAnchoredAtChar(), IsSelectFrameAnchoredAtPara(), SwNode::IsTextNode(), SwTextNode::Len(), n, SwPosition::nContent, SwPosition::nNode, SwFormatAnchor::SetAnchor(), SwFormat::SetFormatAttr(), SwFrameFormats::size(), and SwPaM::Start().
Definition at line 328 of file docedt.cxx.
References SwPaM::End(), SwPaM::Exchange(), SwIndex::GetIndex(), SwPaM::GetMark(), SwNodeIndex::GetNode(), SwPaM::GetPoint(), SwTextNode::GetText(), SwNode::GetTextNode(), SwPosition::nContent, SwPosition::nNode, and SwPaM::Start().
Referenced by sw::DocumentContentOperationsManager::DeleteAndJoinImpl(), sw::DocumentContentOperationsManager::ReplaceRangeImpl(), and SwUndoCompDoc::UndoImpl().
bool sw_JoinText | ( | SwPaM & | rPam, |
bool | bJoinPrev | ||
) |
Definition at line 359 of file docedt.cxx.
References aBreakSetRange, aCharFormatSetRange, sw::CheckResetRedlineMergeFlag(), SwDoc::CorrRel(), sw::mark::ContentIdxStore::Create(), SwTextNode::CutText(), SwNodes::Delete(), SwNode::First, SwTextNode::FormatToTextAttr(), SwDoc::GetAttrPool(), SwPaM::GetBound(), SwPaM::GetDoc(), SwDoc::GetIDocumentUndoRedo(), SwIndex::GetIdxReg(), SwNodeIndex::GetIndex(), SwDoc::GetNodes(), SwPaM::GetPoint(), SwContentNode::GetpSwAttrSet(), SwNode::GetRedlineMergeFlag(), SwNode::GetTextNode(), SwContentNode::HasSwAttrSet(), lcl_RangesToVector(), SwTextNode::Len(), sw::MoveDeletedPrevFrames(), SwPosition::nContent, SwPosition::nNode, sw::No, SwNode::NonFirst, sw::Predecessor, SfxItemSet::Put(), RES_BREAK(), RES_PAGEDESC(), and SAL_MAX_INT32.
Referenced by sw::DocumentContentOperationsManager::DeleteAndJoinImpl(), sw::DocumentContentOperationsManager::ReplaceRangeImpl(), and SwUndoCompDoc::UndoImpl().