22#include <officecfg/Office/Common.hxx>
23#include <osl/diagnose.h>
42 , m_bNbspRunNext(false)
43 , m_bDoParagraphSignatureValidation(true)
49 , m_bNbspRunNext(false)
50 , m_bDoParagraphSignatureValidation(true)
91 pEditShell->StartAction();
93 rCurrentShell.StartAction();
101 if(
auto pEditShell =
dynamic_cast<SwEditShell *
>(&rCurrentShell))
102 pEditShell->EndAction();
104 rCurrentShell.EndAction();
115 if ( rCurrentShell.GetWin() )
116 rCurrentShell.GetWin()->Invalidate();
132 switch(
GetCursor()->GetPointNode().GetNodeType() )
147 if ( !
GetDoc()->GetSpzFrameFormats()->empty() )
192 return mxDoc->GetTOXTypeCount(eTyp);
197 mxDoc->InsertTOXType(rTyp);
239 const SwView* pView)
const
246 const SwView* pView)
const
279 OUString
const& rMergedText(pFrame->
GetText());
281 rMergedText, sal_Int32(
nPos),
314 std::vector<OUString> aRet;
virtual void SetNewDoc(bool b)=0
virtual void ResetModified()=0
virtual void SetModified()=0
Must be called manually at changes of format.
virtual bool IsModified() const =0
Changes of document?
void DoAutoCorrect(SvxAutoCorrDoc &rDoc, const OUString &rTxt, sal_Int32 nPos, sal_Unicode cInsChar, bool bInsert, bool &io_bNbspRunNext, vcl::Window const *pFrameWin=nullptr)
static std::vector< OUString > GetChunkForAutoText(std::u16string_view rTxt, sal_Int32 nPos)
OUString GetPrevAutoCorrWord(SvxAutoCorrDoc const &rDoc, const OUString &rTxt, sal_Int32 nPos)
SwActContext(SwEditShell *pShell)
~SwActContext() COVERITY_NOEXCEPT_FALSE
SwContentFrame * getLayoutFrame(const SwRootFrame *, const SwPosition *pPos=nullptr, std::pair< Point, bool > const *pViewPosAndCalcFrame=nullptr) const
const SwTableNode * IsCursorInTable() const
Check if Point of current cursor is placed within a table.
SwCursor * GetCursor(bool bMakeTableCursor=true) const
Return pointer to the current shell cursor.
void EndAction(const bool bIdleEnd=false)
SwShellCursor * getShellCursor(bool bBlock)
Delivers the current shell cursor.
void EndCursorMove(const bool bIdleEnd=false)
void SaveTableBoxContent(const SwPosition *pPos=nullptr)
IDocumentState const & getIDocumentState() const
static SwAutoCompleteWord & GetAutoCompleteWords()
IDocumentUndoRedo & GetIDocumentUndoRedo()
sal_uInt16 GetCntType() const
Determine form of content. Return Type at CurrentCursor->SPoint.
virtual void CalcLayout() override
To enable set up of StartActions and EndActions.
bool DoesGroupUndo() const
void StartAllAction()
For all views of this document.
bool IsModified() const
Changes in document?
void SetUndoNoResetModified()
void InsertTOXType(const SwTOXType &rTyp)
void SetNewDoc()
Optimizing UI.
SwUndoId StartUndo(SwUndoId eUndoId=SwUndoId::EMPTY, const SwRewriter *pRewriter=nullptr)
Undo: set up Undo parenthesis, return nUndoId of this parenthesis.
static SwAutoCompleteWord & GetAutoCompleteWords()
Interface for access to AutoComplete-list.
bool m_bNbspRunNext
NO-BREAK SPACE state flag passed to and maintained by SvxAutoCorrect::DoAutoCorrect()
SwFrameFormat * GetTableFormat()
bool GetFirstRedoInfo(OUString *const o_pStr, SwUndoId *const o_pId, const SwView *pView=nullptr) const
void RestoreMetadataFieldsAndValidateParagraphSignatures()
Restore the metadata fields, if missing, from the RDF metadata and validate the signatures and update...
bool GetLastUndoInfo(OUString *const o_pStr, SwUndoId *const o_pId, const SwView *pView=nullptr) const
sal_uInt16 GetTOXTypeCount(TOXTypes eTyp) const
Manage types of content tables.
virtual ~SwEditShell() override
SwEditShell(SwDoc &, vcl::Window *, const SwViewOption *pOpt)
Ctor/Dtor.
std::vector< OUString > GetChunkForAutoText()
void DoGroupUndo(bool bUn)
SwUndoId EndUndo(SwUndoId eUndoId=SwUndoId::EMPTY, const SwRewriter *pRewriter=nullptr)
Closes parenthesis of nUndoId, not used by UI.
void AutoCorrect(SvxAutoCorrect &rACorr, bool bInsertMode, sal_Unicode cChar)
Call AutoCorrect.
void DoUndo(bool bOn=true)
Undo.
bool HasOtherCnt() const
Are there frames, footnotes, etc.
SwUndoId GetRepeatInfo(OUString *const o_pStr) const
OUString GetPrevAutoCorrWord(SvxAutoCorrect &rACorr)
SwMvContext(SwEditShell *pShell)
~SwMvContext() COVERITY_NOEXCEPT_FALSE
Base class of the Writer document model elements.
SwTextNode * GetTextNode()
Inline methods from Node.hxx.
SwNodeOffset GetIndex() const
SwNodeOffset StartOfSectionIndex() const
SwNode & GetEndOfAutotext() const
Section for all Flys/Header/Footers.
SwNode & GetEndOfInserts() const
Section for all footnotes.
PaM is Point and Mark: a selection of the document model.
SwNode & GetPointNode() const
const SwPosition * GetPoint() const
const SwTable & GetTable() const
SwTableFormat * GetFrameFormat()
Represents the visualization of a paragraph.
SwPosition MapViewToModelPos(TextFrameIndex nIndex) const
TextFrameIndex MapModelToViewPos(SwPosition const &rPos) const
const OUString & GetText() const
Returns the text portion we want to edit (for inline see underneath)
SwTextNode is a paragraph in the document model.
rtl::Reference< SwDoc > mxDoc
The document; never 0.
SwRootFrame * GetLayout() const
vcl::Window * GetWin() const
virtual void CalcLayout()
ring_container GetRingContainer()
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
o3tl::strong_int< sal_Int32, struct Tag_SwNodeOffset > SwNodeOffset