|
LibreOffice Module sw (master) 1
|
#include <config_wasm_strip.h>#include <com/sun/star/text/XTextRange.hpp>#include <hintids.hxx>#include <svx/srchdlg.hxx>#include <sfx2/viewsh.hxx>#include <SwSmartTagMgr.hxx>#include <doc.hxx>#include <rootfrm.hxx>#include <pagefrm.hxx>#include <cntfrm.hxx>#include <viewimp.hxx>#include <pam.hxx>#include <swselectionlist.hxx>#include "BlockCursor.hxx"#include <ndtxt.hxx>#include <flyfrm.hxx>#include <dview.hxx>#include <viewopt.hxx>#include <crsrsh.hxx>#include <tabfrm.hxx>#include <txtfrm.hxx>#include <sectfrm.hxx>#include <swtable.hxx>#include "callnk.hxx"#include <viscrs.hxx>#include <section.hxx>#include <docsh.hxx>#include <scriptinfo.hxx>#include <globdoc.hxx>#include <pamtyp.hxx>#include <mdiexp.hxx>#include <fmteiro.hxx>#include <wrong.hxx>#include <unotextrange.hxx>#include <vcl/svapp.hxx>#include <vcl/settings.hxx>#include <GrammarContact.hxx>#include <OnlineAccessibilityCheck.hxx>#include <comphelper/flagguard.hxx>#include <strings.hrc>#include <IDocumentLayoutAccess.hxx>#include <LibreOfficeKit/LibreOfficeKitEnums.h>#include <comphelper/lok.hxx>#include <comphelper/sequence.hxx>#include <sfx2/lokhelper.hxx>#include <editeng/editview.hxx>#include <editeng/frmdir.hxx>#include <sal/log.hxx>#include <PostItMgr.hxx>#include <DocumentSettingManager.hxx>#include <vcl/uitest/logger.hxx>#include <vcl/uitest/eventdescription.hxx>#include <tabcol.hxx>#include <wrtsh.hxx>#include <undobj.hxx>#include <view.hxx>#include <hints.hxx>#include <tools/json_writer.hxx>Go to the source code of this file.
Functions | |
| static void | CheckRange (SwCursor *pCurrentCursor) |
| Check if pCurrentCursor points into already existing ranges and delete those. More... | |
| static SwStartNode const * | FindTextStart (SwPosition const &rPos) |
| find XText start node More... | |
| static SwStartNode const * | FindParentText (SwShellCursor const &rCursor) |
| static SwCursorShell::StartsWith | StartsWith (SwStartNode const &rStart) |
| static SwCursorShell::StartsWith | EndsWith (SwStartNode const &rStart) |
| static bool | IsAtStartOrEndOfFrame (SwCursorShell const *const pShell, SwShellCursor const *const pShellCursor, SwMoveFnCollection const &fnPosPara) |
| static SwFrame * | lcl_IsInHeaderFooter (SwNode &rNd, Point &rPt) |
| static bool | lcl_CheckHiddenSection (SwPosition &rPos) |
| static void | lcl_CheckHiddenPara (SwPosition &rPos) |
| Try to set the cursor to the next visible content node. More... | |
| static const SwStartNode * | lcl_NodeContext (const SwNode &rNode) |
| static bool | sw_PosOk (const SwPosition &aPos) |
| Checks if a position is valid. More... | |
| static bool | lcl_CursorOk (SwPaM &aPam) |
| Checks if a PaM is valid. More... | |
| static void | lcl_FillRecognizerData (std::vector< OUString > &rSmartTagTypes, uno::Sequence< uno::Reference< container::XStringKeyMap > > &rStringKeyMaps, const SwWrongList &rSmartTagList, sal_Int32 nCurrent) |
| static void | lcl_FillTextRange (uno::Reference< text::XTextRange > &rRange, SwTextNode &rNode, sal_Int32 nBegin, sal_Int32 nLen) |
|
static |
Check if pCurrentCursor points into already existing ranges and delete those.
| Pointer | to SwCursor object |
Definition at line 88 of file crsrsh.cxx.
References SwPaM::GetNext(), SwCursor::GetNext(), and SwPaM::StartEnd().
Referenced by SwCursorShell::UpdateCursor().
|
static |
Definition at line 793 of file crsrsh.cxx.
References End, SwNode::EndOfSectionIndex(), SwNode::GetIndex(), SwNode::GetNodes(), SwNode::GetNodeType(), SwNode::GetTextNode(), SwCursorShell::HiddenPara, i, SwTextNode::IsHidden(), SwNode::IsTableNode(), SwCursorShell::None, SwNode::StartOfSectionNode(), SwCursorShell::Table, and Text.
|
static |
Definition at line 712 of file crsrsh.cxx.
References SwPaM::End(), SwNode::EndOfSectionNode(), FindTextStart(), SwNode::GetIndex(), SwNode::IsSectionNode(), SwNode::IsTableNode(), SwPaM::Start(), and SwNode::StartOfSectionNode().
Referenced by SwCursorShell::ExtendedSelectAll(), SwCursorShell::ExtendedSelectedAll(), SwCursorShell::MoveStartText(), and SwCursorShell::StartsWith_().
|
static |
find XText start node
Definition at line 702 of file crsrsh.cxx.
References SwPosition::GetNode(), SwNode::IsSectionNode(), SwNode::IsTableNode(), and SwNode::StartOfSectionNode().
Referenced by FindParentText().
|
static |
Definition at line 957 of file crsrsh.cxx.
References fnParaEnd, fnParaStart, SwViewShell::GetLayout(), SwContentNode::getLayoutFrame(), SwPaM::GetPoint(), SwPaM::GetPointContentNode(), SwShellCursor::GetPtPos(), SwTextFrame::GetText(), SwFrame::IsTextFrame(), and SwTextFrame::MapModelToViewPos().
Referenced by SwCursorShell::MovePara().
|
static |
Try to set the cursor to the next visible content node.
Definition at line 1835 of file crsrsh.cxx.
References SwPosition::Assign(), SwNodeIndex::GetNode(), SwPosition::GetNode(), SwNodeIndex::GetNodes(), SwNode::GetTextNode(), SwNodes::GoNext(), SwTextNode::HasHiddenCharAttribute(), and SwNode::IsTextNode().
Referenced by SwCursorShell::UpdateCursor().
|
static |
Definition at line 1819 of file crsrsh.cxx.
References SwPosition::Assign(), SwNode::EndOfSectionNode(), SwNodes::FindPrvNxtFrameNode(), SwNode::FindSectionNode(), SwPosition::GetNode(), SwPosition::GetNodes(), SwSectionNode::GetSection(), SwSection::IsHiddenFlag(), and SAL_WARN_IF.
Referenced by SwCursorShell::UpdateCursor().
|
static |
Checks if a PaM is valid.
For a PaM to be valid its point must be valid. Additionally if the PaM has a mark this has to be valid, too.
| aPam | the PaM to check |
Definition at line 3926 of file crsrsh.cxx.
References SwPaM::GetMark(), SwPaM::GetPoint(), SwPaM::HasMark(), and sw_PosOk().
Referenced by SwCursorShell::ClearUpCursors().
|
static |
Definition at line 4035 of file crsrsh.cxx.
References comphelper::containerToSequence(), SwWrongList::Count(), SwWrongList::GetElement(), i, SwWrongList::Len(), SwWrongArea::maType, SwWrongArea::mxPropertyBag, and SwWrongList::Pos().
Referenced by SwCursorShell::GetSmartTagTerm().
|
static |
Definition at line 4064 of file crsrsh.cxx.
References SwXTextRange::CreateXTextRange(), and SwNode::GetDoc().
Referenced by SwCursorShell::GetSmartTagTerm().
Definition at line 1020 of file crsrsh.cxx.
References SwNode::GetContentNode(), IDocumentLayoutAccess::GetCurrentLayout(), SwNode::GetDoc(), SwDoc::getIDocumentLayoutAccess(), SwContentNode::getLayoutFrame(), SwFrame::GetUpper(), SwFrame::IsFlyFrame(), SwFrame::IsFooterFrame(), and SwFrame::IsHeaderFrame().
Referenced by SwCursorShell::IsInHeaderFooter(), and SwCursorShell::SetCursor().
|
static |
Definition at line 3897 of file crsrsh.cxx.
References SwStartNode::GetStartNodeType(), SwNode::IsSectionNode(), SwNode::IsTableNode(), SwNode::StartOfSectionNode(), and SwTableBoxStartNode.
Referenced by SwCursorShell::ClearUpCursors().
|
static |
Definition at line 769 of file crsrsh.cxx.
References SwNode::EndOfSectionIndex(), SwNode::GetIndex(), SwNode::GetNodes(), SwNode::GetNodeType(), SwNode::GetTextNode(), SwCursorShell::HiddenPara, i, SwTextNode::IsHidden(), SwCursorShell::None, Section, SwCursorShell::Table, Table, and Text.
|
static |
Checks if a position is valid.
To be valid the position's node must be a content node and the content must not be unregistered.
| aPos | the position to check. |
Definition at line 3914 of file crsrsh.cxx.
References SwNode::GetContentNode(), SwPosition::GetContentNode(), and SwPosition::GetNode().
Referenced by SwCursorShell::ClearUpCursors(), and lcl_CursorOk().