LibreOffice Module sw (master) 1
Functions
crsrsh.cxx File Reference
#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>
Include dependency graph for crsrsh.cxx:

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 SwFramelcl_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 SwStartNodelcl_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)
 

Function Documentation

◆ CheckRange()

static void CheckRange ( SwCursor pCurrentCursor)
static

Check if pCurrentCursor points into already existing ranges and delete those.

Parameters
Pointerto SwCursor object

Definition at line 88 of file crsrsh.cxx.

References SwPaM::GetNext(), SwCursor::GetNext(), and SwPaM::StartEnd().

Referenced by SwCursorShell::UpdateCursor().

◆ EndsWith()

static SwCursorShell::StartsWith EndsWith ( SwStartNode const &  rStart)
static

◆ FindParentText()

static SwStartNode const * FindParentText ( SwShellCursor const &  rCursor)
static

◆ FindTextStart()

static SwStartNode const * FindTextStart ( SwPosition const &  rPos)
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().

◆ IsAtStartOrEndOfFrame()

static bool IsAtStartOrEndOfFrame ( SwCursorShell const *const  pShell,
SwShellCursor const *const  pShellCursor,
SwMoveFnCollection const &  fnPosPara 
)
static

◆ lcl_CheckHiddenPara()

static void lcl_CheckHiddenPara ( SwPosition rPos)
static

◆ lcl_CheckHiddenSection()

static bool lcl_CheckHiddenSection ( SwPosition rPos)
static

◆ lcl_CursorOk()

static bool lcl_CursorOk ( SwPaM aPam)
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.

Parameters
aPamthe 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().

◆ lcl_FillRecognizerData()

static void lcl_FillRecognizerData ( std::vector< OUString > &  rSmartTagTypes,
uno::Sequence< uno::Reference< container::XStringKeyMap > > &  rStringKeyMaps,
const SwWrongList rSmartTagList,
sal_Int32  nCurrent 
)
static

◆ lcl_FillTextRange()

static void lcl_FillTextRange ( uno::Reference< text::XTextRange > &  rRange,
SwTextNode rNode,
sal_Int32  nBegin,
sal_Int32  nLen 
)
static

Definition at line 4064 of file crsrsh.cxx.

References SwXTextRange::CreateXTextRange(), and SwNode::GetDoc().

Referenced by SwCursorShell::GetSmartTagTerm().

◆ lcl_IsInHeaderFooter()

static SwFrame * lcl_IsInHeaderFooter ( SwNode rNd,
Point rPt 
)
static

◆ lcl_NodeContext()

static const SwStartNode * lcl_NodeContext ( const SwNode rNode)
static

◆ StartsWith()

static SwCursorShell::StartsWith StartsWith ( SwStartNode const &  rStart)
static

◆ sw_PosOk()

static bool sw_PosOk ( const SwPosition aPos)
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.

Parameters
aPosthe 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().