LibreOffice Module sw (master)  1
Classes | Functions
crsrsh.cxx File Reference
#include <memory>
#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 <IGrammarContact.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 <boost/property_tree/json_parser.hpp>
Include dependency graph for crsrsh.cxx:

Go to the source code of this file.

Classes

class  SwNotifyAccAboutInvalidTextSelections
 

Functions

static void CheckRange (SwCursor *pCurrentCursor)
 Check if pCurrentCursor points into already existing ranges and delete those. More...
 
static bool IsAtStartOrEndOfFrame (SwCursorShell const *const pShell, SwShellCursor const *const pShellCursor, SwMoveFnCollection const &fnPosPara)
 
static SwFramelcl_IsInHeaderFooter (const SwNodeIndex &rIdx, Point &rPt)
 
static bool lcl_CheckHiddenSection (SwNodeIndex &rIdx)
 
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)
 
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

static void CheckRange ( SwCursor pCurrentCursor)
static

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

Parameters
Pointerto SwCursor object

Definition at line 83 of file crsrsh.cxx.

References SwPaM::GetMark(), SwCursor::GetNext(), SwPaM::GetNext(), SwPaM::GetPoint(), and SwPaM::Start().

Referenced by SwCursorShell::UpdateCursor().

static bool IsAtStartOrEndOfFrame ( SwCursorShell const *const  pShell,
SwShellCursor const *const  pShellCursor,
SwMoveFnCollection const &  fnPosPara 
)
static
static void lcl_CheckHiddenPara ( SwPosition rPos)
static
static bool lcl_CheckHiddenSection ( SwNodeIndex rIdx)
static
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 3527 of file crsrsh.cxx.

References SwPaM::GetMark(), SwPaM::GetPoint(), SwPaM::HasMark(), and sw_PosOk().

Referenced by SwCursorShell::ClearUpCursors().

static void lcl_FillRecognizerData ( std::vector< OUString > &  rSmartTagTypes,
uno::Sequence< uno::Reference< container::XStringKeyMap > > &  rStringKeyMaps,
const SwWrongList rSmartTagList,
sal_Int32  nCurrent 
)
static
static void lcl_FillTextRange ( uno::Reference< text::XTextRange > &  rRange,
SwTextNode rNode,
sal_Int32  nBegin,
sal_Int32  nLen 
)
static
static SwFrame* lcl_IsInHeaderFooter ( const SwNodeIndex rIdx,
Point rPt 
)
static
static const SwStartNode* lcl_NodeContext ( const SwNode rNode)
static
bool sw_PosOk ( const SwPosition aPos)

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 3515 of file crsrsh.cxx.

References SwNode::GetContentNode(), SwIndex::GetIdxReg(), SwNodeIndex::GetNode(), SwPosition::nContent, and SwPosition::nNode.

Referenced by SwCursorShell::ClearUpCursors(), and lcl_CursorOk().