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 <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 <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 bool | IsAtStartOrEndOfFrame (SwCursorShell const *const pShell, SwShellCursor const *const pShellCursor, SwMoveFnCollection const &fnPosPara) |
static SwFrame * | lcl_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 SwStartNode * | lcl_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) |
|
static |
Check if pCurrentCursor points into already existing ranges and delete those.
Pointer | to SwCursor object |
Definition at line 87 of file crsrsh.cxx.
References SwPaM::GetNext(), SwCursor::GetNext(), and SwPaM::StartEnd().
Referenced by SwCursorShell::UpdateCursor().
|
static |
Definition at line 669 of file crsrsh.cxx.
References fnParaEnd, fnParaStart, SwPaM::GetContentNode(), SwViewShell::GetLayout(), SwContentNode::getLayoutFrame(), SwPaM::GetPoint(), 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 1530 of file crsrsh.cxx.
References SwNodeIndex::GetNode(), SwNodeIndex::GetNodes(), SwNode::GetTextNode(), SwNodes::GoNext(), SwTextNode::HasHiddenCharAttribute(), SwNode::IsTextNode(), and SwPosition::nNode.
Referenced by SwCursorShell::UpdateCursor().
|
static |
Definition at line 1513 of file crsrsh.cxx.
References SwNode::EndOfSectionNode(), SwNodes::FindPrvNxtFrameNode(), SwNode::FindSectionNode(), SwNodeIndex::GetNode(), SwNodeIndex::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 3601 of file crsrsh.cxx.
References SwPaM::GetMark(), SwPaM::GetPoint(), SwPaM::HasMark(), and sw_PosOk().
Referenced by SwCursorShell::ClearUpCursors().
|
static |
Definition at line 3695 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 3724 of file crsrsh.cxx.
References aIndex, SwXTextRange::CreateXTextRange(), SwNode::GetDoc(), and SwPosition::nContent.
Referenced by SwCursorShell::GetSmartTagTerm().
|
static |
Definition at line 732 of file crsrsh.cxx.
References SwNode::GetContentNode(), IDocumentLayoutAccess::GetCurrentLayout(), SwNode::GetDoc(), SwDoc::getIDocumentLayoutAccess(), SwContentNode::getLayoutFrame(), SwNodeIndex::GetNode(), SwFrame::GetUpper(), SwFrame::IsFlyFrame(), SwFrame::IsFooterFrame(), and SwFrame::IsHeaderFrame().
Referenced by SwCursorShell::IsInHeaderFooter(), and SwCursorShell::SetCursor().
|
static |
Definition at line 3572 of file crsrsh.cxx.
References SwStartNode::GetStartNodeType(), SwNode::IsSectionNode(), SwNode::IsTableNode(), SwNode::StartOfSectionNode(), and SwTableBoxStartNode.
Referenced by SwCursorShell::ClearUpCursors().
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.
aPos | the position to check. |
Definition at line 3589 of file crsrsh.cxx.
Referenced by SwCursorShell::ClearUpCursors(), and lcl_CursorOk().