LibreOffice Module sw (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
SwEditShell Class Reference

#include <editsh.hxx>

Inheritance diagram for SwEditShell:
Collaboration diagram for SwEditShell:

Public Member Functions

void Insert (sal_Unicode, bool bOnlyCurrCursor=false)
 Edit (all selected ranges). More...
void Insert2 (const OUString &, const bool bForceExpandHints=false)
void Overwrite (const OUString &)
bool Replace (const OUString &rNewStr, bool bRegExpRplc)
 Replace a selected range in a TextNode by given string. More...
bool Delete (bool isArtificialSelection=false)
 Delete content of all ranges. More...
bool DelFullPara ()
 Remove a complete paragraph. More...
void TransliterateText (TransliterationFlags nType)
 Change text to Upper/Lower/Hiragana/Katakana/... More...
void CountWords (SwDocStat &rStat) const
 Count words in current selection. More...
bool ConvertFieldsToText ()
 Replace fields by text - mailmerge support. More...
void SetNumberingRestart ()
 Set all numbering start points to a fixed value - mailmerge support. More...
sal_uInt16 GetLinkUpdMode () const
 Embeds all local links (ranges/graphics). More...
void SetLinkUpdMode (sal_uInt16 nMode)
bool Copy (SwEditShell &rDestShell)
 Copy content of all ranges at current position of cursor to given Shell. More...
bool CopySelToDoc (SwDoc &rInsDoc)
 For copying via ClipBoard: If table is copied into table, move all cursors away from it. More...
void SplitNode (bool bAutoFormat=false, bool bCheckTableStart=true)
bool AppendTextNode ()
void AutoFormatBySplitNode ()
void DelINetAttrWithText ()
 If cursor is in an INetAttribute it will be deleted completely including the descriptive text (needed at drag & drop). More...
bool DontExpandFormat ()
 If Cursor is at the end of a character style in which the DontExpand-flag is not yet set, the latter will be set (==> return TRUE). More...
bool GetPaMAttr (SwPaM *pPaM, SfxItemSet &, const bool bMergeIndentValuesOfNumRule=false) const
 Apply / remove attributes. More...
bool GetCurAttr (SfxItemSet &, const bool bMergeIndentValuesOfNumRule=false) const
void SetAttrItem (const SfxPoolItem &, SetAttrMode nFlags=SetAttrMode::DEFAULT, const bool bParagraphSetting=false)
void SetAttrSet (const SfxItemSet &, SetAttrMode nFlags=SetAttrMode::DEFAULT, SwPaM *pCursor=nullptr, const bool bParagraphSetting=false)
std::vector< std::pair< const SfxPoolItem *, std::unique_ptr< SwPaM > > > GetItemWithPaM (sal_uInt16 nWhich)
 Get RES_CHRATR_* items of one type in the current selection. More...
void GetCurParAttr (SfxItemSet &rSet) const
 Get the paragraph format attribute(s) of the current selection. More...
void GetPaMParAttr (SwPaM *pPaM, SfxItemSet &rSet) const
 Get the paragraph format attribute(s) of the selection(s) described by a SwPaM. More...
void SetDefault (const SfxPoolItem &)
 Set attribute as new default attribute in document. More...
const SfxPoolItemGetDefault (sal_uInt16 nFormatHint) const
 Query default attribute of document. More...
template<class T >
const T & GetDefault (TypedWhichId< T > nWhich) const
void ResetAttr (const o3tl::sorted_vector< sal_uInt16 > &attrs=o3tl::sorted_vector< sal_uInt16 >(), SwPaM *pCursor=nullptr)
void GCAttr ()
SvtScriptType GetScriptType () const
 returns the script type of the selection More...
LanguageType GetCurLang () const
size_t GetTableFrameFormatCount (bool bUsed=false) const
 TABLE. More...
SwFrameFormatGetTableFrameFormat (size_t nFormat, bool bUsed=false) const
OUString GetUniqueTableName () const
sal_uInt16 GetCharFormatCount () const
 CHAR. More...
SwCharFormatGetCharFormat (sal_uInt16 nFormat) const
SwCharFormatGetCurCharFormat () const
void FillByEx (SwCharFormat *)
SwCharFormatMakeCharFormat (const OUString &rName)
SwCharFormatFindCharFormatByName (const OUString &rName) const
SwTextFormatCollGetDfltTextFormatColl () const
sal_uInt16 GetTextFormatCollCount () const
SwTextFormatCollGetTextFormatColl (sal_uInt16 nTextFormatColl) const
SwTextFormatCollGetCurTextFormatColl () const
 Get the named paragraph format of the current selection. More...
SwTextFormatCollGetPaMTextFormatColl (SwPaM *pPaM) const
 Get the named paragraph format of the selection(s) described by a SwPaM. More...
void SetTextFormatColl (SwTextFormatColl *, const bool bResetListAttrs=false)
 Add 2nd optional parameter <bResetListAttrs> - see also <SwDoc::SetTextFormatColl(..)> More...
SwTextFormatCollMakeTextFormatColl (const OUString &rFormatCollName, SwTextFormatColl *pDerivedFrom=nullptr)
void FillByEx (SwTextFormatColl *)
SwTextFormatCollFindTextFormatCollByName (const OUString &rName) const
SwTextFormatCollGetTextCollFromPool (sal_uInt16 nId)
SwFormatGetFormatFromPool (sal_uInt16 nId)
 return the requested automatic format - base-class ! More...
SwPageDescGetPageDescFromPool (sal_uInt16 nId)
bool IsUsed (const sw::BroadcastingModify &) const
 Query if the paragraph-/character-/frame-/page-style is used. More...
SwFrameFormatGetFrameFormatFromPool (sal_uInt16 nId)
SwCharFormatGetCharFormatFromPool (sal_uInt16 nId)
void SetClassification (const OUString &rName, SfxClassificationPolicyType eType)
void ApplyAdvancedClassification (std::vector< svx::ClassificationResult > const &rResult)
std::vector< svx::ClassificationResultCollectAdvancedClassification ()
SfxWatermarkItem GetWatermark () const
void SetWatermark (const SfxWatermarkItem &rText)
void SignParagraph ()
 Sign the paragraph at the cursor. More...
void ValidateParagraphSignatures (SwTextNode *pNode, bool updateDontRemove)
 Validate the paragraph signatures, if any, of the current text node. More...
void ValidateCurrentParagraphSignatures (bool updateDontRemove)
 Validate the current paragraph signatures, if any, at the cursor start. More...
void ValidateAllParagraphSignatures (bool updateDontRemove)
 Validate all paragraph signatures. More...
void RestoreMetadataFieldsAndValidateParagraphSignatures ()
 Restore the metadata fields, if missing, from the RDF metadata and validate the signatures and update the signature metadata fields. More...
void ClassifyDocPerHighestParagraphClass ()
 Ensure that the classification of the doc is never lower than the paragraph with the highest classification. More...
void ApplyParagraphClassification (std::vector< svx::ClassificationResult > aResult)
 Apply the classification to the paragraph at cursor. More...
std::vector< svx::ClassificationResultCollectParagraphClassification ()
bool IsCursorInParagraphMetadataField () const
 Returns true iff the cursor is within a paragraph metadata field. More...
bool RemoveParagraphMetadataFieldAtCursor ()
 Removes the paragraph metadata field at the current cursor, if any. More...
bool InsertField (SwField const &, const bool bForceExpandHints)
 add a field at the cursor position More...
void UpdateOneField (SwField &)
 One single field. More...
size_t GetFieldTypeCount (SwFieldIds nResId=SwFieldIds::Unknown) const
 count field types with a ResId, if SwFieldIds::Unknown count all More...
SwFieldTypeGetFieldType (size_t nField, SwFieldIds nResId=SwFieldIds::Unknown) const
 get field types with a ResId, if 0 get all More...
SwFieldTypeGetFieldType (SwFieldIds nResId, const OUString &rName) const
 get first type with given ResId and name More...
void RemoveFieldType (size_t nField)
 delete field type More...
void RemoveFieldType (SwFieldIds nResId, const OUString &rName)
 delete field type based on its name More...
void FieldToText (SwFieldType const *pType)
void ChangeAuthorityData (const SwAuthEntry *pNewData)
SwDBData const & GetDBData () const
 Database information. More...
void ChgDBData (const SwDBData &SwDBData)
void ChangeDBFields (const std::vector< OUString > &rOldNames, const OUString &rNewName)
void GetAllUsedDB (std::vector< OUString > &rDBNameList, std::vector< OUString > const *pAllDBNames)
bool IsAnyDatabaseFieldInDoc () const
bool IsFieldDataSourceAvailable (OUString &rUsedDataSource) const
 Check whether DB fields point to an available data source and returns it. More...
void UpdateExpFields (bool bCloseDB=false)
 only every expression fields update More...
void LockExpFields ()
void UnlockExpFields ()
bool IsExpFieldsLocked () const
SwFieldUpdateFlags GetFieldUpdateFlags () const
void SetFieldUpdateFlags (SwFieldUpdateFlags eFlags)
SwDBManagerGetDBManager () const
 For evaluation of DB fields (new DB-manager). More...
SwFieldTypeInsertFieldType (const SwFieldType &)
 insert field type More...
bool IsModified () const
 Changes in document? More...
void SetModified ()
void ResetModified ()
void SetUndoNoResetModified ()
void UpdateDocStat ()
 Document - Statistics. More...
const SwDocStatGetUpdatedDocStat ()
void Insert (const SwTOXMark &rMark)
void DeleteTOXMark (SwTOXMark const *pMark)
void GetCurTOXMarks (SwTOXMarks &rMarks) const
 Get all marks at current SPoint. More...
void InsertTableOf (const SwTOXBase &rTOX, const SfxItemSet *pSet=nullptr)
 Insert content table. Renew if required. More...
void UpdateTableOf (const SwTOXBase &rTOX, const SfxItemSet *pSet=nullptr)
 update tables of content More...
const SwTOXBaseGetCurTOX () const
 Get current listing before or at the Cursor. More...
const SwTOXBaseGetDefaultTOXBase (TOXTypes eTyp, bool bCreate=false)
void SetDefaultTOXBase (const SwTOXBase &rBase)
void SetTOXBaseReadonly (const SwTOXBase &rTOXBase, bool bReadonly)
sal_uInt16 GetTOXCount () const
const SwTOXBaseGetTOX (sal_uInt16 nPos) const
bool DeleteTOX (const SwTOXBase &rTOXBase, bool bDelNodes)
void SetUpdateTOX (bool bFlag)
 After reading file update all content tables. More...
bool IsUpdateTOX () const
sal_uInt16 GetTOXTypeCount (TOXTypes eTyp) const
 Manage types of content tables. More...
const SwTOXTypeGetTOXType (TOXTypes eTyp, sal_uInt16 nId) const
void InsertTOXType (const SwTOXType &rTyp)
OUString const & GetTOIAutoMarkURL () const
 AutoMark file. More...
void SetTOIAutoMarkURL (const OUString &rSet)
void ApplyAutoMark ()
void GetTOIKeys (SwTOIKeyType eTyp, std::vector< OUString > &rArr) const
 Key for managing index. More...
void SetOutlineNumRule (const SwNumRule &)
const SwNumRuleGetOutlineNumRule () const
bool OutlineUpDown (short nOffset=1)
bool MoveOutlinePara (SwOutlineNodes::difference_type nOffset)
bool IsProtectedOutlinePara () const
const SwNumRuleGetNumRuleAtCurrCursorPos () const
const SwNumRuleGetNumRuleAtCurrentSelection () const
 Returns the numbering rule found at the paragraphs of the current selection, if all paragraphs of the current selection have the same or none numbering rule applied. More...
void SetCurNumRule (const SwNumRule &, const bool bCreateNewList, const OUString &sContinuedListId=OUString(), const bool bResetIndentAttrs=false)
 Optional parameter <bResetIndentAttrs> (default value false). More...
void NoNum ()
 Paragraphs without enumeration but with indents. More...
void DelNumRules ()
 Delete, split enumeration list. More...
void NumUpDown (bool bDown=true)
bool MoveParagraph (SwNodeOffset nOffset=SwNodeOffset(1))
bool MoveNumParas (bool bUpperLower, bool bUpperLeft)
bool NumOrNoNum (bool bDelete=false, bool bChkStart=true)
 Switch on/off of numbering via Delete/Backspace. More...
void ChangeIndentOfAllListLevels (sal_Int32 nDiff)
 Remove unused default parameter <nLevel> and <bRelative>. More...
void SetIndent (short nIndent, const SwPosition &rPos)
bool IsFirstOfNumRuleAtCursorPos () const
bool IsNoNum (bool bChkStart=true) const
sal_uInt8 GetNumLevel () const
void GetCurrentOutlineLevels (sal_uInt8 &rUpper, sal_uInt8 &rLower)
 Detect highest and lowest level to check moving of outline levels. More...
int GetCurrentParaOutlineLevel () const
 Get Outline level of current paragraph. More...
bool HasNumber () const
bool HasBullet () const
bool SelectionHasNumber () const
bool SelectionHasBullet () const
OUString GetUniqueNumRuleName () const
void ChgNumRuleFormats (const SwNumRule &rRule)
void SetNumRuleStart (bool bFlag, SwPaM *pCursor)
 Set (and query if) a numbering with StartFlag starts at current PointPos. More...
bool IsNumRuleStart (SwPaM *pPaM=nullptr) const
void SetNodeNumStart (sal_uInt16 nStt)
sal_uInt16 GetNodeNumStart (SwPaM *pPaM) const
void ReplaceNumRule (const OUString &rOldRule, const OUString &rNewRule)
const SwNumRuleSearchNumRule (const bool bNum, OUString &sListId)
 Searches for a text node with a numbering rule. More...
void DoUndo (bool bOn=true)
 Undo. More...
bool DoesUndo () const
void DoGroupUndo (bool bUn)
bool DoesGroupUndo () const
void DelAllUndoObj ()
SwUndoId StartUndo (SwUndoId eUndoId=SwUndoId::EMPTY, const SwRewriter *pRewriter=nullptr)
 Undo: set up Undo parenthesis, return nUndoId of this parenthesis. More...
SwUndoId EndUndo (SwUndoId eUndoId=SwUndoId::EMPTY, const SwRewriter *pRewriter=nullptr)
 Closes parenthesis of nUndoId, not used by UI. More...
bool GetLastUndoInfo (OUString *const o_pStr, SwUndoId *const o_pId, const SwView *pView=nullptr) const
bool GetFirstRedoInfo (OUString *const o_pStr, SwUndoId *const o_pId, const SwView *pView=nullptr) const
SwUndoId GetRepeatInfo (OUString *const o_pStr) const
bool CursorsLocked () const
 is it forbidden to modify cursors via API calls? More...
void HandleUndoRedoContext (::sw::UndoRedoContext &rContext)
 set selections to those contained in the UndoRedoContext should only be called by sw::UndoManager! More...
void Undo (sal_uInt16 const nCount=1, sal_uInt16 nOffset=0)
void Redo (sal_uInt16 const nCount=1)
void Repeat (sal_uInt16 const nCount)
void StartAllAction ()
 For all views of this document. More...
void EndAllAction ()
virtual void CalcLayout () override
 To enable set up of StartActions and EndActions. More...
sal_uInt16 GetCntType () const
 Determine form of content. Return Type at CurrentCursor->SPoint. More...
bool HasOtherCnt () const
 Are there frames, footnotes, etc. More...
virtual void ApplyViewOptions (const SwViewOption &rOpt) override
 Apply ViewOptions with Start-/EndAction. More...
virtual void InfoReadOnlyDialog (bool) const
 Selected area has readonly content. More...
virtual bool WarnHiddenSectionDialog () const
 Selected area has hidden content. More...
virtual bool WarnSwitchToDesignModeDialog () const
 Switch to Design mode for Forms. More...
void GetSelectedText (OUString &rBuf, ParaBreakType nHndlParaBreak=ParaBreakType::ToBlank)
 Query text within selection. More...
const GraphicGetGraphic (bool bWait=true) const
const GraphicObjectGetGraphicObj () const
const GraphicAttrGetGraphicAttr (GraphicAttr &rGA) const
bool IsLinkedGrfSwapOut () const
GraphicType GetGraphicType () const
const tools::PolyPolygonGetGraphicPolygon () const
void SetGraphicPolygon (const tools::PolyPolygon *pPoly)
void ClearAutomaticContour ()
 If there's an automatic, not manipulated polygon at the selected notxtnode, it has to be deleted, e.g. More...
bool GetGrfSize (Size &) const
void GetGrfNms (OUString *pGrfName, OUString *pFltName, const SwFlyFrameFormat *=nullptr) const
 Returns the name and the filter name of a graphic if the pointer is on a graphic. More...
void ReRead (const OUString &rGrfName, const OUString &rFltName, const Graphic *pGraphic=nullptr)
 Re-read if graphic is not ok. Current graphic is replaced by the new one. More...
void * GetIMapInventor () const
 Unique identification of object (for ImageMapDlg). More...
Graphic GetIMapGraphic () const
 Remove default parameter, because method always called this default value. More...
const SwFlyFrameFormatFindFlyByName (const OUString &rName) const
svt::EmbeddedObjectRefGetOLEObject () const
 Get OLE object at pointer. More...
bool HasOLEObj (std::u16string_view rName) const
 Is there an OLEObject with this name (SwFormat)? More...
void SetChartName (const OUString &rName)
void UpdateCharts (const OUString &rName)
 Update content of all charts for table with given name. More...
OUString GetCurWord () const
 request current word More...
void InsertGlossary (SwTextBlocks &rGlossary, const OUString &)
 Glossary from glossary document in current document. More...
sal_uInt16 MakeGlossary (SwTextBlocks &rToFill, const OUString &rName, const OUString &rShortName, bool bSaveRelFile, const OUString *pOnlyText)
 Make current selection glossary and insert into glossary document including styles. More...
sal_uInt16 SaveGlossaryDoc (SwTextBlocks &rGlossary, const OUString &rName, const OUString &rShortName, bool bSaveRelFile, bool bOnlyText)
 Save complete content of doc as glossary. More...
void HyphStart (SwDocPositions eStart, SwDocPositions eEnd)
 Save selections. More...
void HyphEnd ()
 restore selections. More...
css::uno::Reference< css::uno::XInterface > HyphContinue (sal_uInt16 *pPageCnt, sal_uInt16 *pPageSt)
void HyphIgnore ()
 ignore hyphenation More...
const SwTableInsertTable (const SwInsertTableOptions &rInsTableOpts, sal_uInt16 nRows, sal_uInt16 nCols, const SwTableAutoFormat *pTAFormat=nullptr)
 Inserts an nRows x nCols table to the document at the current position. More...
void InsertDDETable (const SwInsertTableOptions &rInsTableOpts, SwDDEFieldType *pDDEType, sal_uInt16 nRows, sal_uInt16 nCols)
void UpdateTable ()
 update fields of a listing More...
void SetTableName (SwFrameFormat &rTableFormat, const OUString &rNewName)
 change table name More...
SwFrameFormatGetTableFormat ()
bool TextToTable (const SwInsertTableOptions &rInsTableOpts, sal_Unicode cCh, const SwTableAutoFormat *pTAFormat=nullptr)
bool TableToText (sal_Unicode cCh)
bool IsTextToTableAvailable () const
bool GetTableBoxFormulaAttrs (SfxItemSet &rSet) const
void SetTableBoxFormulaAttrs (const SfxItemSet &rSet)
bool IsTableBoxTextFormat () const
OUString GetTableBoxText () const
TableChgMode GetTableChgMode () const
void SetTableChgMode (TableChgMode eMode)
void SplitTable (SplitTable_HeadlineOption eMode)
 Split table at cursor position. More...
bool CanMergeTable (bool bWithPrev=true, bool *pChkNxtPrv=nullptr) const
 Merge tables. More...
bool MergeTable (bool bWithPrev)
void AppendUndoForInsertFromDB (bool bIsTable)
 Set up InsertDB as table Undo. More...
void SpellStart (SwDocPositions eStart, SwDocPositions eEnd, SwDocPositions eCurr, SwConversionArgs *pConvArgs=nullptr)
 Functions used for spell checking and text conversion. More...
void SpellEnd (SwConversionArgs const *pConvArgs=nullptr, bool bRestoreSelection=true)
 Restore selections. More...
css::uno::Any SpellContinue (sal_uInt16 *pPageCnt, sal_uInt16 *pPageSt, SwConversionArgs const *pConvArgs)
bool SpellSentence (svx::SpellPortions &rToFill, bool bIsGrammarCheck)
 Spells on a sentence basis - the SpellPortions are needed. More...
void ApplyChangedSentence (const svx::SpellPortions &rNewPortions, bool bRecheck)
 Applies a changed sentence. More...
void HandleCorrectionError (const OUString &aText, SwPosition aPos, sal_Int32 nBegin, sal_Int32 nLen, const Point *pPt, SwRect &rSelectRect)
css::uno::Reference< css::linguistic2::XSpellAlternatives > GetCorrection (const Point *pPt, SwRect &rSelectRect)
 Get a list of potential corrections for misspelled word. More...
bool GetGrammarCorrection (css::linguistic2::ProofreadingResult &rResult, sal_Int32 &rErrorPosInText, sal_Int32 &rErrorIndexInResult, css::uno::Sequence< OUString > &rSuggestions, const Point *pPt, SwRect &rSelectRect)
void SetLinguRange (SwDocPositions eStart, SwDocPositions eEnd)
const SwFormatRefMarkGetRefMark (std::u16string_view rName) const
 get the reference of a given name in the Doc More...
sal_uInt16 GetRefMarks (std::vector< OUString > *=nullptr) const
 get the names of all references in a Doc More...
void AutoCorrect (SvxAutoCorrect &rACorr, bool bInsertMode, sal_Unicode cChar)
 Call AutoCorrect. More...
OUString GetPrevAutoCorrWord (SvxAutoCorrect &rACorr)
std::vector< OUString > GetChunkForAutoText ()
void AutoFormat (const SvxSwAutoFormatFlags *pAFlags)
 Set our styles according to the respective rules. More...
OUString Calculate ()
 Calculates selection. More...
bool InsertURL (const SwFormatINetFormat &rFormat, const OUString &rStr, bool bKeepSelection=false)
void GetINetAttrs (SwGetINetAttrs &rArr, bool bIncludeInToxContent=true)
OUString GetDropText (const sal_Int32 nChars) const
void ReplaceDropText (const OUString &rStr, SwPaM *pPaM=nullptr)
bool IsOutlineMovable (SwOutlineNodes::size_type nIdx) const
 May an outline be moved or copied? Check whether it's in text body, not in table, and not read-only (move). More...
bool IsOutlineCopyable (SwOutlineNodes::size_type nIdx) const
sal_Int32 GetLineCount ()
bool GetCurFootnote (SwFormatFootnote *pToFillFootnote=nullptr)
 Query and set footnote-text/number. Set... to current SSelection! More...
bool SetCurFootnote (const SwFormatFootnote &rFillFootnote)
bool HasFootnotes (bool bEndNotes=false) const
size_t GetSeqFootnoteList (SwSeqFieldList &rList, bool bEndNotes=false)
 Give a List of all footnotes and their beginning texts. More...
SwSection const * InsertSection (SwSectionData &rNewData, SfxItemSet const *const =nullptr)
bool IsInsRegionAvailable () const
const SwSectionGetCurrSection () const
SwSectionGetAnySection (bool bOutOfTab=false, const Point *pPt=nullptr)
 Deliver the responsible area of the columns. More...
size_t GetSectionFormatCount () const
size_t GetSectionFormatPos (const SwSectionFormat &) const
const SwSectionFormatGetSectionFormat (size_t nFormat) const
void DelSectionFormat (size_t nFormat)
void UpdateSection (size_t const nSect, SwSectionData &, SfxItemSet const *const =nullptr)
bool IsAnySectionInDoc () const
OUString GetUniqueSectionName (const OUString *pChkStr=nullptr) const
void SetSectionAttr (const SfxItemSet &rSet, SwSectionFormat *pSectFormat=nullptr)
 Set attributes. More...
sal_uInt16 GetFullSelectedSectionCount () const
 Search inside the cursor selection for full selected sections. More...
void DoSpecialInsert ()
 Special insert: Insert a new text node just before or after a section or table, if the cursor is positioned at the start/end of said section/table. More...
bool CanSpecialInsert () const
 a node can be special-inserted (alt-Enter) whenever lcl_SpecialInsertNode finds a suitable position More...
void SetNewDoc ()
 Optimizing UI. More...
sfx2::LinkManagerGetLinkManager ()
const sfx2::LinkManagerGetLinkManager () const
bool IsMoveLeftMargin (bool bRight, bool bModulus=true) const
 Adjust left margin via object bar (similar to adjustment of numerations). More...
void MoveLeftMargin (bool bRight, bool bModulus=true)
SvNumberFormatterGetNumberFormatter ()
 Query NumberFormatter from document. More...
const SvNumberFormatterGetNumberFormatter () const
bool IsGlobalDoc () const
 Interfaces for GlobalDocument. More...
void SetGlblDocSaveLinks (bool bFlag)
bool IsGlblDocSaveLinks () const
void GetGlobalDocContent (SwGlblDocContents &rArr) const
void InsertGlobalDocContent (const SwGlblDocContent &rPos, SwSectionData &rNew)
bool InsertGlobalDocContent (const SwGlblDocContent &rPos, const SwTOXBase &rTOX)
bool InsertGlobalDocContent (const SwGlblDocContent &rPos)
void DeleteGlobalDocContent (const SwGlblDocContents &rArr, size_t nPos)
bool MoveGlobalDocContent (const SwGlblDocContents &rArr, size_t nFromPos, size_t nToPos, size_t nNewPos)
void GotoGlobalDocContent (const SwGlblDocContent &rPos)
RedlineFlags GetRedlineFlags () const
 For Redlining. More...
void SetRedlineFlags (RedlineFlags eMode)
bool IsRedlineOn () const
SwRedlineTable::size_type GetRedlineCount () const
const SwRangeRedlineGetRedline (SwRedlineTable::size_type nPos) const
bool AcceptRedline (SwRedlineTable::size_type nPos)
bool RejectRedline (SwRedlineTable::size_type nPos)
bool AcceptRedlinesInSelection ()
bool RejectRedlinesInSelection ()
SwRedlineTable::size_type FindRedlineOfData (const SwRedlineData &) const
 Search Redline for this Data and. More...
bool SetRedlineComment (const OUString &rS)
 Set comment to Redline at position. More...
const SwRangeRedlineGetCurrRedline () const
void UpdateRedlineAttr ()
 Redline attributes have been changed. Updated views. More...
tools::Long CompareDoc (const SwDoc &rDoc)
 Compare two documents. More...
tools::Long MergeDoc (const SwDoc &rDoc)
 Merge two documents. More...
const SwFootnoteInfoGetFootnoteInfo () const
 Footnote attributes global to document. More...
void SetFootnoteInfo (const SwFootnoteInfo &rInfo)
const SwEndNoteInfoGetEndNoteInfo () const
void SetEndNoteInfo (const SwEndNoteInfo &rInfo)
const SwLineNumberInfoGetLineNumberInfo () const
void SetLineNumberInfo (const SwLineNumberInfo &rInfo)
void SetLabelDoc (bool bFlag)
 Labels: Synchronize ranges. More...
bool IsLabelDoc () const
void CreateExtTextInput (LanguageType eInputLanguage)
 Interface for TextInputData - (for input of Japanese/Chinese chars.) More...
OUString DeleteExtTextInput (bool bInsText=true)
void SetExtTextInputData (const CommandExtTextInputData &)
bool IsParagraphSignatureValidationEnabled () const
 Returns true iff paragraph signature validation is enabled. More...
bool SetParagraphSignatureValidation (const bool bEnable)
 Enable/Disable paragraph signature validation and return the previous value. More...
sal_uInt16 GetScalingOfSelectedText () const
bool IsNbspRunNext () const
 SwEditShell (SwDoc &, vcl::Window *, const SwViewOption *pOpt)
 Ctor/Dtor. More...
 SwEditShell (SwEditShell &, vcl::Window *)
 Copy-Constructor in disguise. More...
virtual ~SwEditShell () override
- Public Member Functions inherited from SwCursorShell
SAL_DLLPRIVATE void UpdateCursor (sal_uInt16 eFlags=SwCursorShell::SCROLLWIN|SwCursorShell::CHKRANGE, bool bIdleEnd=false)
 SwCursorShell (SwDoc &rDoc, vcl::Window *pWin, const SwViewOption *pOpt)
 default constructor More...
 SwCursorShell (SwCursorShell &rShell, vcl::Window *pWin)
 Copy constructor. More...
virtual ~SwCursorShell () override
virtual SwCursorCreateNewShellCursor () override
 Create and return a new shell cursor. More...
virtual SwCursorGetCurrentShellCursor () override
 Return the current shell cursor. More...
SwPaMCreateCursor ()
 delete the current cursor and make the following into the current More...
void DestroyCursor ()
 transform TableCursor to normal cursor, nullify Tablemode More...
void TableCursorToCursor ()
 enter block mode, change normal cursor into block cursor More...
void CursorToBlockCursor ()
 leave block mode, change block cursor into normal cursor More...
void BlockCursorToCursor ()
void ExtendedSelectAll (bool bFootnotes=true)
::std::optional<::std::pair< SwNode const *, ::std::vector< SwTableNode * > > > ExtendedSelectedAll () const
 If ExtendedSelectAll() was called and selection didn't change since then. More...
StartsWith StartsWith_ ()
 If document body starts with a table or starts/ends with hidden paragraph. More...
SwCursorGetCursor (bool bMakeTableCursor=true) const
 Return pointer to the current shell cursor. More...
SwShellCursorGetCursor_ ()
const SwShellCursorGetCursor_ () const
void SetSelection (const SwPaM &rCursor)
void ParkCursor (const SwNode &rIdx)
 Remove selections and additional cursors of all shells. More...
SwPaMGetStackCursor () const
void StartAction ()
void EndAction (const bool bIdleEnd=false)
tools::Long GetUpDownX () const
bool Left (sal_uInt16 nCnt, SwCursorSkipMode nMode, bool bAllowVisual=false)
bool Right (sal_uInt16 nCnt, SwCursorSkipMode nMode, bool bAllowVisual=false)
bool Up (sal_uInt16 nCnt=1)
bool Down (sal_uInt16 nCnt=1)
bool LeftMargin ()
bool RightMargin (bool bAPI=false)
bool SttEndDoc (bool bStt)
bool MovePage (SwWhichPage, SwPosPage)
bool MovePara (SwWhichPara, SwMoveFnCollection const &)
bool MoveSection (SwWhichSection, SwMoveFnCollection const &)
bool MoveTable (SwWhichTable, SwMoveFnCollection const &)
void MoveColumn (SwWhichColumn, SwPosColumn)
bool MoveRegion (SwWhichRegion, SwMoveFnCollection const &)
sal_Int32 Find_Text (const i18nutil::SearchOptions2 &rSearchOpt, bool bSearchInNotes, SwDocPositions eStart, SwDocPositions eEnd, bool &bCancel, FindRanges eRng, bool bReplace=false)
sal_Int32 FindFormat (const SwTextFormatColl &rFormatColl, SwDocPositions eStart, SwDocPositions eEnd, bool &bCancel, FindRanges eRng, const SwTextFormatColl *pReplFormat)
sal_Int32 FindAttrs (const SfxItemSet &rSet, bool bNoCollections, SwDocPositions eStart, SwDocPositions eEnd, bool &bCancel, FindRanges eRng, const i18nutil::SearchOptions2 *pSearchOpt, const SfxItemSet *rReplSet)
int SetCursor (const Point &rPt, bool bOnlyText=false, bool bBlock=true)
virtual void VisPortChgd (const SwRect &) override
void Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
void SetMark ()
bool HasMark () const
void ClearMark ()
void NormalizePam (bool bPointFirst=true)
 Ensure point and mark of the current PaM are in a specific order. More...
void SwapPam ()
bool TestCurrPam (const Point &rPt, bool bTstHit=false)
 Search in the selected area for a Selection that covers the given point. More...
void KillPams ()
void Push ()
 store a copy of the current cursor on the cursor stack More...
bool Pop (PopMode, ::std::optional< SwCallLink > &roLink)
bool Pop (PopMode)
 delete cursor More...
void Combine ()
 Combine two cursors. More...
void SttCursorMove ()
void EndCursorMove (const bool bIdleEnd=false)
bool HasShellFocus () const
void ShellLoseFocus ()
void ShellGetFocus ()
void ShowCursor ()
void HideCursor ()
void ShowCursors (bool bCursorVis)
void HideCursors ()
bool IsOverwriteCursor () const
void SetOverwriteCursor (bool bFlag)
bool IsSendAccessibleCursorEvents () const
void SetSendAccessibleCursorEvents (bool bEnable)
SwContentFrameGetCurrFrame (const bool bCalcFrame=true) const
 Get current frame in which the cursor is positioned. More...
bool IsCursorReadonly () const
bool HasReadonlySel (bool isReplace=false) const
bool HasHiddenSections () const
bool IsReadOnlyAvailable () const
void SetReadOnlyAvailable (bool bFlag)
 is the cursor allowed to enter ReadOnly sections? More...
bool IsOverReadOnlyPos (const Point &rPt) const
void SetFlyMacroLnk (const Link< const SwFlyFrameFormat *, void > &rLnk)
const Link< const SwFlyFrameFormat *, void > & GetFlyMacroLnk () const
void SetChgLnk (const Link< LinkParamNone *, void > &rLnk)
const Link< LinkParamNone *, void > & GetChgLnk () const
void SetGrfArrivedLnk (const Link< SwCursorShell &, void > &rLnk)
const Link< SwCursorShell &, void > & GetGrfArrivedLnk () const
void CallChgLnk ()
bool HasSelection () const
 Does the current cursor create a selection? More...
bool IsSelection () const
bool IsMultiSelection () const
bool IsSelFullPara () const
bool ShouldWait () const
 Should WaitPtr be switched on for the clipboard? More...
bool IsSelOnePara () const
const SwRectGetCharRect () const
bool IsCursorVisible () const
void GetCharRectAt (SwRect &rRect, const SwPosition *pPos)
void GetPageNum (sal_uInt16 &rnPhyNum, sal_uInt16 &rnVirtNum, bool bAtCursorPos=true, const bool bCalcFrame=true)
sal_uInt16 GetPageNumSeqNonEmpty ()
sal_uInt16 GetNextPrevPageNum (bool bNext=true)
bool GotoPage (sal_uInt16 nPage)
sal_uInt16 GetPageCnt ()
bool GoNextCursor ()
 go to the next SSelection More...
bool GoPrevCursor ()
 go to the previous SSelection More...
void GoNextPrevCursorSetSearchLabel (const bool bNext)
::sw::mark::IMarkSetBookmark (const vcl::KeyCode &, const OUString &rName, IDocumentMarkAccess::MarkType eMark=IDocumentMarkAccess::MarkType::BOOKMARK)
::sw::mark::IMarkSetBookmark2 (const vcl::KeyCode &, const OUString &rName, bool bHide, const OUString &rCondition)
bool GotoMark (const ::sw::mark::IMark *const pMark)
bool GotoMark (const ::sw::mark::IMark *const pMark, bool bAtStart)
bool GoNextBookmark ()
bool GoPrevBookmark ()
bool IsFormProtected ()
::sw::mark::IFieldmark * GetCurrentFieldmark ()
sw::mark::IFieldmark * GetFieldmarkAfter (bool bLoop)
sw::mark::IFieldmark * GetFieldmarkBefore (bool bLoop)
bool GotoFieldmark (const ::sw::mark::IFieldmark *const pMark)
void UpdateCursorPos ()
 Set the cursor back into content. More...
OUString GetSelText () const
 get selected text of a node at current cursor More...
const SwTableNodeIsCursorInTable () const
 Check if Point of current cursor is placed within a table. More...
bool MoveOutOfTable ()
bool TrySelectOuterTable ()
bool MoveStartText ()
bool IsCursorInFootnote () const
PointGetCursorDocPos () const
Point GetCursorPagePos () const
bool IsCursorPtAtEnd () const
const SwPaMGetTableCrs () const
SwPaMGetTableCrs ()
bool IsTableComplexForChart ()
OUString GetBoxNms () const
bool GoNextCell (bool bAppendLine=true)
 set cursor into next/previous cell More...
bool GoPrevCell ()
bool GotoTable (const OUString &rName)
bool SelTableRow ()
bool SelTableCol ()
bool SelTableBox ()
bool SelTable ()
void GotoNextNum ()
 go to next/previous point on the same level More...
void GotoPrevNum ()
bool GotoOutline (const OUString &rName)
void GotoOutline (SwOutlineNodes::size_type nIdx)
SwOutlineNodes::size_type GetOutlinePos (sal_uInt8 nLevel=UCHAR_MAX, SwPaM *pPaM=nullptr)
 search "outline position" before previous outline node at given level More...
void MakeOutlineSel (SwOutlineNodes::size_type nSttPos, SwOutlineNodes::size_type nEndPos, bool bWithChildren, bool bKillPams=true)
bool GotoNextOutline ()
 jump to next node with outline num. More...
bool GotoPrevOutline ()
 jump to previous node with outline num. More...
SwShellCursorgetShellCursor (bool bBlock)
 Delivers the current shell cursor. More...
const SwShellCursorgetShellCursor (bool bBlock) const
bool IsBlockMode () const
bool IsTableMode () const
const SwShellTableCursorGetTableCursor () const
SwShellTableCursorGetTableCursor ()
size_t UpdateTableSelBoxes ()
bool GotoFootnoteText ()
 jump from content to footnote More...
bool GotoFootnoteAnchor ()
 jump from footnote to anchor More...
bool GotoPrevFootnoteAnchor ()
bool GotoNextFootnoteAnchor ()
void GotoFlyAnchor ()
 jump from the frame to the anchor More...
bool GotoHeaderText ()
 jump from the content to the header More...
bool GotoFooterText ()
 jump from the content to the footer More...
bool SetCursorInHdFt (size_t nDescNo, bool bInHeader, bool bEven=false, bool bFirst=false)
bool IsInHeaderFooter (bool *pbInHeader=nullptr) const
bool GotoNextTOXBase (const OUString *=nullptr)
 jump to the next index More...
bool GotoPrevTOXBase (const OUString *=nullptr)
 jump to previous index More...
void GotoTOXMarkBase ()
 jump to index of TOXMark More...
bool GotoNxtPrvTOXMark (bool bNext=true)
 jump to next/previous index marker More...
const SwTOXMarkGotoTOXMark (const SwTOXMark &rStart, SwTOXSearch eDir)
 traveling between marks More...
bool GotoNxtPrvTableFormula (bool bNext=true, bool bOnlyErrors=false)
 Jump to next/previous table formula Optionally it is possible to also jump to broken formulas. More...
bool SelectNxtPrvHyperlink (bool bNext)
bool GotoRefMark (const OUString &rRefMark, sal_uInt16 nSubType, sal_uInt16 nSeqNo)
 jump to reference marker More...
sal_Unicode GetChar (bool bEnd=true, tools::Long nOffset=0)
 get the nth character of the current SSelection More...
bool ExtendSelection (bool bEnd=true, sal_Int32 nCount=1)
 extend current SSelection by n characters More...
bool SetVisibleCursor (const Point &rPt)
 Move visible cursor to given position in document. More...
void UnSetVisibleCursor ()
SwVisibleCursorGetVisibleCursor () const
bool MoveFieldType (const SwFieldType *pFieldType, const bool bNext, const SwFieldIds nResType=SwFieldIds::Unknown, const bool bAddSetExpressionFieldsToInputFields=true)
bool GotoFormatField (const SwFormatField &rField)
bool GotoFormatContentControl (const SwFormatContentControl &rContentControl)
void GotoFormControl (bool bNext)
 Go to the next (or previous) form control, based first on tabIndex and then paragraph position, where a tabIndex of 1 is first, 0 is last, and -1 is excluded. More...
SwFieldGetCurField (const bool bIncludeInputFieldAtStart=false) const
bool CursorInsideInputField () const
SwTextContentControlCursorInsideContentControl () const
bool DocPtInsideInputField (const Point &rDocPt) const
sal_uInt16 GetCursorCnt (bool bAll=true) const
 Get the number of elements in the ring of cursors. More...
bool GoStartWord ()
bool GoEndWord ()
bool GoNextWord ()
bool GoPrevWord ()
bool GoNextSentence ()
bool GoStartSentence ()
bool GoEndSentence ()
bool SelectWord (const Point *pPt)
void ExpandToSentenceBorders ()
bool IsStartWord (sal_Int16 nWordType=css::i18n::WordType::ANYWORD_IGNOREWHITESPACES) const
bool IsEndWord (sal_Int16 nWordType=css::i18n::WordType::ANYWORD_IGNOREWHITESPACES) const
bool IsInWord (sal_Int16 nWordType=css::i18n::WordType::ANYWORD_IGNOREWHITESPACES) const
bool IsStartSentence () const
bool IsEndSentence () const
bool IsSttPara () const
bool IsEndPara () const
bool IsEndOfTable () const
 at the very last SwPosition inside a table More...
bool IsStartOfDoc () const
bool IsEndOfDoc () const
bool IsInFrontOfLabel () const
bool IsAtLeftMargin () const
bool IsAtRightMargin () const
bool ParkTableCursor ()
 Invalidate cursors. More...
bool IsGCAttr () const
void ClearGCAttr ()
void UpdateAttr ()
bool IsAllProtect () const
bool GotoRegion (std::u16string_view rName)
virtual void MakeSelVisible ()
 show the current selected "object" More...
bool FindValidContentNode (bool bOnlyText)
 search a valid content position (not protected/hidden) More...
bool GetContentAtPos (const Point &rPt, SwContentAtPos &rContentAtPos, bool bSetCursor=false, SwRect *pFieldRect=nullptr)
const SwPostItFieldGetPostItFieldAtCursor () const
void GetSmartTagRect (const Point &rPt, SwRect &rSelectRect)
void GetSmartTagTerm (std::vector< OUString > &rSmartTagTypes, css::uno::Sequence< css::uno::Reference< css::container::XStringKeyMap > > &rStringKeyMaps, css::uno::Reference< css::text::XTextRange > &rRange) const
bool IsPageAtPos (const Point &rPt) const
bool SelectTextAttr (sal_uInt16 nWhich, bool bExpand, const SwTextAttr *pAttr=nullptr)
bool GotoINetAttr (const SwTextINetFormat &rAttr)
const SwFormatINetFormatFindINetAttr (std::u16string_view rName) const
bool SelectTextModel (sal_Int32 nStart, sal_Int32 nEnd)
bool CheckTableBoxContent (const SwPosition *pPos=nullptr)
void SaveTableBoxContent (const SwPosition *pPos=nullptr)
void ClearTableBoxContent ()
bool EndAllTableBoxEdit ()
void SetSelTableCells (bool bFlag)
bool IsSelTableCells () const
void UnsetEnhancedTableSelection ()
SwTable::SearchType GetEnhancedTableSelection () const
bool IsAutoUpdateCells () const
void SetAutoUpdateCells (bool bFlag)
bool GetShadowCursorPos (const Point &rPt, SwFillMode eFillMode, SwRect &rRect, sal_Int16 &rOrient)
bool SetShadowCursorPos (const Point &rPt, SwFillMode eFillMode)
const SwRangeRedlineSelNextRedline ()
const SwRangeRedlineSelPrevRedline ()
const SwRangeRedlineGotoRedline (SwRedlineTable::size_type nArrPos, bool bSelect)
bool GotoFootnoteAnchor (const SwTextFootnote &rTextFootnote)
SAL_DLLPRIVATE SvxFrameDirection GetTextDirection (const Point *pPt=nullptr) const
bool IsInVerticalText (const Point *pPt=nullptr) const
bool IsInRightToLeftText () const
bool bColumnChange ()
bool IsInHiddenRange (const bool bSelect)
 If the current cursor position is inside a hidden range true is returned. More...
void ClearUpCursors ()
void SetMacroExecAllowed (const bool _bMacroExecAllowed)
bool IsMacroExecAllowed () const
OUString GetCursorDescr () const
 Returns textual description of the current selection. More...
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const override
OUString getPageRectangles ()
 Implementation of lok::Document::getPartPageRectangles() for Writer. More...
void NotifyCursor (SfxViewShell *pViewShell) const
 See SwView::NotifyCursor(). More...
- Public Member Functions inherited from SwViewShell
SwViewShellImpImp ()
const SwViewShellImpImp () const
const SwNodesGetNodes () const
void InitPrt (OutputDevice *pOutDev)
void StartAction ()
void ImplStartAction ()
void EndAction (const bool bIdleEnd=false)
void ImplEndAction (const bool bIdleEnd)
sal_uInt16 ActionCount () const
bool ActionPend () const
bool IsInEndAction () const
void SetRestoreActions (sal_uInt16 nSet)
sal_uInt16 GetRestoreActions () const
bool HasInvalidRect () const
void ChgHyphenation ()
void ChgNumberDigits ()
bool AddPaintRect (const SwRect &rRect)
void InvalidateWindows (const SwRect &rRect)
void FlushPendingLOKInvalidateTiles ()
void Reformat ()
 Invalidates complete Layout (ApplyViewOption). More...
void PrePaint ()
void DLPrePaint2 (const vcl::Region &rRegion)
void DLPostPaint2 (bool bPaintFormLayer)
const MapModegetPrePostMapMode () const
virtual void Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)
void PaintTile (VirtualDevice &rDevice, int contextWidth, int contextHeight, int tilePosX, int tilePosY, tools::Long tileWidth, tools::Long tileHeight)
 Paint tile. More...
bool IsPaintInProgress () const
bool IsDrawingLayerPaintInProgress () const
virtual void VisPortChgd (const SwRect &)
bool SmoothScroll (tools::Long lXDiff, tools::Long lYDiff, const tools::Rectangle *)
void EnableSmooth (bool b)
const SwRectVisArea () const
const tools::RectanglegetLOKVisibleArea () const
 The visible area in the client (set by setClientVisibleArea). More...
void setLOKVisibleArea (const tools::Rectangle &rArea)
void MakeVisible (const SwRect &)
void SizeChgNotify ()
void UISizeNotify ()
Point GetPagePos (sal_uInt16 nPageNum) const
sal_uInt16 GetNumPages () const
bool IsDummyPage (sal_uInt16 nPageNum) const
void SetFirstVisPageInvalid ()
SwRootFrameGetLayout () const
bool IsNewLayout () const
Size GetDocSize () const
virtual void CalcLayout ()
sal_uInt16 GetPageCount () const
Size GetPageSize (sal_uInt16 nPageNum, bool bSkipEmptyPages) const
SwDocGetDoc () const
const IDocumentSettingAccessgetIDocumentSettingAccess () const
 Provides access to the document setting interface. More...
IDocumentSettingAccessgetIDocumentSettingAccess ()
const IDocumentDeviceAccessgetIDocumentDeviceAccess () const
 Provides access to the document device interface. More...
IDocumentDeviceAccessgetIDocumentDeviceAccess ()
const IDocumentMarkAccessgetIDocumentMarkAccess () const
 Provides access to the document bookmark interface. More...
IDocumentMarkAccessgetIDocumentMarkAccess ()
const IDocumentDrawModelAccessgetIDocumentDrawModelAccess () const
 Provides access to the document draw model interface. More...
IDocumentDrawModelAccessgetIDocumentDrawModelAccess ()
const IDocumentRedlineAccessgetIDocumentRedlineAccess () const
 Provides access to the document redline interface. More...
IDocumentRedlineAccessgetIDocumentRedlineAccess ()
const IDocumentLayoutAccessgetIDocumentLayoutAccess () const
 Provides access to the document layout interface. More...
IDocumentLayoutAccessgetIDocumentLayoutAccess ()
IDocumentContentOperationsgetIDocumentContentOperations ()
 Provides access to the content operations interface. More...
IDocumentStylePoolAccessgetIDocumentStylePoolAccess ()
 Provides access to the document style pool interface. More...
const IDocumentStatisticsgetIDocumentStatistics () const
 Provides access to the document statistics interface. More...
IDocumentUndoRedo const & GetIDocumentUndoRedo () const
 Provides access to the document undo/redo interface. More...
IDocumentUndoRedo & GetIDocumentUndoRedo ()
const IDocumentListItemsgetIDocumentListItemsAccess () const
const IDocumentOutlineNodesgetIDocumentOutlineNodesAccess () const
vcl::RenderContextGetRefDev () const
vcl::WindowGetWin () const
vcl::RenderContextGetOut () const
void SetWin (vcl::Window *win)
void SetOut (vcl::RenderContext *pOut)
void ChgAllPageOrientation (Orientation eOri)
void ChgAllPageSize (Size const &rSz)
bool PrintOrPDFExport (OutputDevice *pOutDev, SwPrintData const &rPrintData, sal_Int32 nRenderer, bool bIsPDFExport)
void PrintProspect (OutputDevice *pOutDev, const SwPrintData &rPrintData, sal_Int32 nRenderer)
 print brochure More...
void FillPrtDoc (SwDoc &rPrtDoc, const SfxPrinter *pPrt)
void CalcPagesForPrint (sal_uInt16 nMax)
void UpdateFields (bool bCloseDB=false)
 Forces update of each field. More...
bool IsAnyFieldInDoc () const
 Check if the DocNodesArray contains fields. More...
void UpdateOleObjectPreviews ()
 Update the previews of all OLE objects. More...
void UpdateAllCharts ()
 update all charts for which any table exists More...
bool HasCharts () const
void SetParaSpaceMax (bool bNew)
void SetParaSpaceMaxAtPages (bool bNew)
void SetTabCompat (bool bNew)
void SetAddExtLeading (bool bNew)
void SetAddParaSpacingToTableCells (bool _bAddParaSpacingToTableCells)
 Sets if paragraph and table spacing is added at bottom of table cells. More...
void SetUseFormerLineSpacing (bool _bUseFormerLineSpacing)
 Sets if former formatting of text lines with proportional line spacing should used. More...
void SetUseFormerObjectPositioning (bool _bUseFormerObjPos)
 Sets IDocumentSettingAccess if former object positioning should be used. More...
void SetConsiderWrapOnObjPos (bool _bConsiderWrapOnObjPos)
void SetUseFormerTextWrapping (bool _bUseFormerTextWrapping)
void SetDoNotJustifyLinesWithManualBreak (bool _bDoNotJustifyLinesWithManualBreak)
void SetProtectForm (bool _bProtectForm)
void SetMsWordCompTrailingBlanks (bool _bMsWordCompTrailingBlanks)
void SetSubtractFlysAnchoredAtFlys (bool bSubtractFlysAnchoredAtFlys)
void SetEmptyDbFieldHidesPara (bool bEmptyDbFieldHidesPara)
void LayoutIdle ()
const SwViewOptionGetViewOptions () const
virtual void ApplyViewOptions (const SwViewOption &rOpt)
void SetUIOptions (const SwViewOption &rOpt)
virtual void SetReadonlyOption (bool bSet)
void SetPDFExportOption (bool bSet)
void SetPrtFormatOption (bool bSet)
void SetReadonlySelectionOption (bool bSet)
const SwAccessibilityOptionsGetAccessibilityOptions () const
SfxViewShellGetSfxViewShell () const
void SetSfxViewShell (SfxViewShell *pNew)
virtual void DrawSelChanged ()
SwPagePreviewLayoutPagePreviewLayout ()
void AdjustOptionsForPagePreview (SwPrintData const &rPrintOptions)
 adjust view options for page preview More...
bool IsViewLocked () const
void LockView (bool b)
void LockPaint (LockPaintReason eReason)
void ImplLockPaint ()
void UnlockPaint (bool bVirDev=false)
void ImplUnlockPaint (std::vector< LockPaintReason > &rReasons, bool bVirDev)
bool IsPaintLocked () const
bool HasDrawView () const
void MakeDrawView ()
bool HasDrawViewDrag () const
SdrViewGetDrawView ()
const SdrViewGetDrawView () const
SdrViewGetDrawViewWithValidMarkList ()
const SfxItemPoolGetAttrPool () const
SfxItemPoolGetAttrPool ()
bool IsPreview () const
void InvalidateLayout (bool bSizeChanged)
const SizeGetBrowseBorder () const
sal_Int32 GetBrowseWidth () const
void SetBrowseBorder (const Size &rNew)
css::uno::Reference< css::accessibility::XAccessible > CreateAccessible ()
css::uno::Reference< css::accessibility::XAccessible > CreateAccessiblePreview ()
void ShowPreviewSelection (sal_uInt16 nSelPage)
void InvalidateAccessibleFocus ()
void ApplyAccessibilityOptions ()
void InvalidateAccessibleParaFlowRelation (const SwTextFrame *_pFromTextFrame, const SwTextFrame *_pToTextFrame)
 invalidate CONTENT_FLOWS_FROM/_TO relation for paragraphs More...
void InvalidateAccessibleParaTextSelection ()
 invalidate text selection for paragraphs More...
void InvalidateAccessibleParaAttrs (const SwTextFrame &rTextFrame)
 invalidate attributes for paragraphs and paragraph's characters More...
SwAccessibleMapGetAccessibleMap ()
 SwViewShell (SwViewShell &, vcl::Window *pWin, OutputDevice *pOut=nullptr, tools::Long nFlags=0)
 CTor for further Shells on a document. More...
 SwViewShell (SwDoc &rDoc, vcl::Window *pWin, const SwViewOption *pOpt, OutputDevice *pOut=nullptr, tools::Long nFlags=0)
 CTor for the first Shell. More...
virtual ~SwViewShell () override
sal_Int32 GetPageNumAndSetOffsetForPDF (OutputDevice &rOut, const SwRect &rRect) const
bool IsInConstructor () const
const BitmapExGetReplacementBitmap (bool bIsErrorState)
void DeleteReplacementBitmaps ()
const SwPostItMgrGetPostItMgr () const
SwPostItMgrGetPostItMgr ()
void ToggleHeaderFooterEdit ()
 Acts both for headers / footers, depending on the bShow(Header|Footer)Separator flags. More...
bool IsHeaderFooterEdit () const
 Acts both for headers / footers, depending on the bShow(Header|Footer)Separator flags. More...
bool IsShowHeaderFooterSeparator (FrameControlType eControl)
virtual void SetShowHeaderFooterSeparator (FrameControlType eControl, bool bShow)
bool IsSelectAll () const
void setOutputToWindow (bool bOutputToWindow)
bool isOutputToWindow () const
void OnGraphicArrived (const SwRect &)
void GetFirstLastVisPageNumbers (SwVisiblePageNumbers &rVisiblePageNumbers)
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
- Public Member Functions inherited from sw::Ring< SwViewShell >
void unlink ()
 algo::unlink is buggy! don't call it directly! More...
void MoveTo (SwViewShell *pDestRing)
 Removes this item from its current ring container and adds it to another ring container. More...
ring_container GetRingContainer ()
const_ring_container GetRingContainer () const
- Public Member Functions inherited from sw::IShellCursorSupplier
virtual ~IShellCursorSupplier ()
virtual SwCursorCreateNewShellCursor ()=0
virtual SwCursorGetCurrentShellCursor ()=0

Static Public Member Functions

static bool IsTOXBaseReadonly (const SwTOXBase &rTOXBase)
static void InsertSoftHyph (const sal_Int32 nHyphPos)
 For Inserting SoftHyphen. Position is offset within the syllabificated word. More...
static void PutSpellingToSentenceStart ()
 Make SpellIter start with the current sentence when called next time. More...
static void MoveContinuationPosToEndOfCheckedSentence ()
 Moves the continuation position to the end of the currently checked sentence. More...
static bool HasLastSentenceGotGrammarChecked ()
 Check SwSpellIter data to see if the last sentence got grammar checked. More...
static bool HasConvIter ()
 Is text conversion active somewhere else? More...
static bool HasHyphIter ()
 Is hyphenation active somewhere else? More...
static void IgnoreGrammarErrorAt (SwPaM &rErrorPosition)
static SvxSwAutoFormatFlagsGetAutoFormatFlags ()
static void SetAutoFormatFlags (SvxSwAutoFormatFlags const *)
static SwAutoCompleteWordGetAutoCompleteWords ()
 Interface for access to AutoComplete-list. More...
- Static Public Member Functions inherited from SwCursorShell
static SwTextFieldGetTextFieldAtPos (const SwPosition *pPos, ::sw::GetTextAttrMode eMode)
static SwTextFieldGetTextFieldAtCursor (const SwPaM *pCursor, ::sw::GetTextAttrMode eMode)
static SwFieldGetFieldAtCursor (const SwPaM *pCursor, const bool bIncludeInputFieldAtStart)
static bool PosInsideInputField (const SwPosition &rPos)
static sal_Int32 StartOfInputFieldAtPos (const SwPosition &rPos)
static sal_Int32 EndOfInputFieldAtPos (const SwPosition &rPos)
static void FirePageChangeEvent (sal_uInt16 nOldPage, sal_uInt16 nNewPage)
static void FireSectionChangeEvent (sal_uInt16 nOldSection, sal_uInt16 nNewSection)
static void FireColumnChangeEvent (sal_uInt16 nOldColumn, sal_uInt16 nNewColumn)
- Static Public Member Functions inherited from SwViewShell
static bool IsLstEndAction ()
static void PrtOle2 (SwDoc *pDoc, const SwViewOption *pOpt, const SwPrintData &rOptions, vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect, bool bOutputForScreen)
static void SetShellRes (ShellResource *pRes)
static ShellResourceGetShellRes ()
static weld::WindowCareChildWin (SwViewShell const &rVSh)
static void SetCareDialog (const std::shared_ptr< weld::Window > &rNew)
static weld::WindowGetCareDialog (SwViewShell const &rVSh)

Private Member Functions

SAL_DLLPRIVATE SwGrfNodeGetGrfNode_ () const
 Returns pointer to a SwGrfNode that will be used by GetGraphic() and GetGraphicSize(). More...
SAL_DLLPRIVATE void DeleteSel (SwPaM &rPam, bool isArtificialSelection, bool *pUndo=nullptr)
SAL_DLLPRIVATE void SetSectionAttr_ (SwSectionFormat &rSectFormat, const SfxItemSet &rSet)
 SwEditShell (const SwEditShell &)=delete
const SwEditShelloperator= (const SwEditShell &)=delete
void UpdateFields (bool bCloseDB=false)
 Forces update of each field. More...

Private Attributes

bool m_bNbspRunNext
 NO-BREAK SPACE state flag passed to and maintained by SvxAutoCorrect::DoAutoCorrect() More...
bool m_bDoParagraphSignatureValidation
 Prevent nested calls of ValidateParagraphSignatures. More...

Static Private Attributes

static SvxSwAutoFormatFlagss_pAutoFormatFlags = nullptr


class SwAutoFormat
 For the private methods DelRange and those of AutoCorrect. More...
class SwUndo
 For the PamCorrAbs/-Rel methods. More...
void InitCore ()
void FinitCore ()

Additional Inherited Members

- Public Types inherited from SwCursorShell
enum  CursorFlag {
  UPDOWN = (1 << 0) ,
  SCROLLWIN = (1 << 1) ,
  CHKRANGE = (1 << 2) ,
  READONLY = (1 << 3)
 for calling UpdateCursor More...
enum class  StartsWith {
  None ,
  Table ,
enum class  PopMode {
  DeleteCurrent ,
- Public Types inherited from sw::Ring< SwViewShell >
typedef std::add_const< SwViewShell >::type const_value_type
typedef RingContainer< SwViewShellring_container
typedef RingContainer< const_value_typeconst_ring_container
- Protected Member Functions inherited from SwCursorShell
SwMoveFnCollection const & MakeFindRange (SwDocPositions, SwDocPositions, SwPaM *) const
int CompareCursorStackMkCurrPt () const
bool SelTableRowOrCol (bool bRow, bool bRowSimple=false)
bool SetInFrontOfLabel (bool bNew)
void RefreshBlockCursor ()
SAL_DLLPRIVATE void UpdateMarkedListLevel ()
 Updates the marked list level according to the cursor. More...
virtual void SwClientNotify (const SwModify &, const SfxHint &) override
 forward all attribute/format changes at the current node to the Link More...
- Protected Member Functions inherited from sw::Ring< SwViewShell >
 Ring ()
 Creates a new item in a ring container all by itself. More...
 Ring (SwViewShell *pRing)
 Creates a new item and add it to an existing ring container. More...
SwViewShellGetNextInRing ()
const_value_typeGetNextInRing () const
SwViewShellGetPrevInRing ()
const_value_typeGetPrevInRing () const
bool unique () const
- Protected Attributes inherited from SwViewShell
SwRect maVisArea
 The modern version of VisArea. More...
tools::Rectangle maLOKVisibleArea
 The visible area in the LibreOfficeKit client. More...
rtl::Reference< SwDocmxDoc
 The document; never 0. More...
sal_uInt16 mnStartAction
 != 0 if at least one Action is active. More...
sal_uInt16 mnLockPaint
 != 0 if Paint is locked. More...
std::vector< LockPaintReasonmaLockPaintReasons
bool mbSelectAll
 Special select all mode: whole document selected, even if doc starts with table. More...
bool mbOutputToWindow
 The virtual device we paint to will end up on the screen. More...
std::stack< vcl::RegionmPrePostPaintRegions
VclPtr< OutputDevicempPrePostOutDev
MapMode maPrePostMapMode
- Static Protected Attributes inherited from SwViewShell
static ShellResourcespShellRes = nullptr
 Resources for the Shell. More...
static vcl::DeleteOnDeinit< std::shared_ptr< weld::Window > > spCareDialog {}
 Avoid this window. More...

Detailed Description

Definition at line 140 of file editsh.hxx.

Constructor & Destructor Documentation

◆ SwEditShell() [1/3]

SwEditShell::SwEditShell ( SwDoc rDoc,
vcl::Window pWindow,
const SwViewOption pOpt 

◆ SwEditShell() [2/3]

SwEditShell::SwEditShell ( SwEditShell rEdSH,
vcl::Window pWindow 

Copy-Constructor in disguise.

Definition at line 40 of file edws.cxx.

◆ ~SwEditShell()

SwEditShell::~SwEditShell ( )

Definition at line 61 of file edws.cxx.

◆ SwEditShell() [3/3]

SwEditShell::SwEditShell ( const SwEditShell )

Member Function Documentation

◆ AcceptRedline()

bool SwEditShell::AcceptRedline ( SwRedlineTable::size_type  nPos)

◆ AcceptRedlinesInSelection()

bool SwEditShell::AcceptRedlinesInSelection ( )

◆ AppendTextNode()

bool SwEditShell::AppendTextNode ( )

◆ AppendUndoForInsertFromDB()

void SwEditShell::AppendUndoForInsertFromDB ( bool  bIsTable)

Set up InsertDB as table Undo.

create InsertDB as table Undo

Definition at line 518 of file edtab.cxx.

References SwDoc::AppendUndoForInsertFromDB(), SwCursorShell::GetCursor(), and SwViewShell::GetDoc().

Referenced by SwInsertDBColAutoPilot::DataToDoc().

◆ ApplyAdvancedClassification()

void SwEditShell::ApplyAdvancedClassification ( std::vector< svx::ClassificationResult > const &  rResult)

◆ ApplyAutoMark()

void SwEditShell::ApplyAutoMark ( )

◆ ApplyChangedSentence()

void SwEditShell::ApplyChangedSentence ( const svx::SpellPortions rNewPortions,
bool  bRecheck 

◆ ApplyParagraphClassification()

void SwEditShell::ApplyParagraphClassification ( std::vector< svx::ClassificationResult aResult)

◆ ApplyViewOptions()

void SwEditShell::ApplyViewOptions ( const SwViewOption rOpt)

Apply ViewOptions with Start-/EndAction.

Reimplemented from SwViewShell.

Reimplemented in SwWrtShell.

Definition at line 1091 of file editsh.cxx.

References SwViewShell::ApplyViewOptions(), SwCursorShell::EndAction(), and SwCursorShell::StartAction().

Referenced by SwWrtShell::ApplyViewOptions().

◆ AutoCorrect()

void SwEditShell::AutoCorrect ( SvxAutoCorrect rACorr,
bool  bInsertMode,
sal_Unicode  cChar 

◆ AutoFormat()

void SwEditShell::AutoFormat ( const SvxSwAutoFormatFlags pAFlags)

◆ AutoFormatBySplitNode()

void SwEditShell::AutoFormatBySplitNode ( )

◆ CalcLayout()

void SwEditShell::CalcLayout ( )

◆ Calculate()

OUString SwEditShell::Calculate ( )

◆ CanMergeTable()

bool SwEditShell::CanMergeTable ( bool  bWithPrev = true,
bool *  pChkNxtPrv = nullptr 
) const

Merge tables.

Can Merge checks if Prev or Next are possible. If pointer pChkNxtPrv is passed possible direction is given.

Definition at line 465 of file edtab.cxx.

References SwNode::EndOfSectionIndex(), SwNode::FindTableNode(), SwCursorShell::GetCursor(), SwViewShell::GetDoc(), SwNode::GetIndex(), SwDoc::GetNodes(), SwPaM::GetPointNode(), SwTableNode::GetTable(), and SwTable::IsNewModel().

Referenced by SwTableShell::Execute(), and SwTableShell::GetState().

◆ CanSpecialInsert()

bool SwEditShell::CanSpecialInsert ( ) const

a node can be special-inserted (alt-Enter) whenever lcl_SpecialInsertNode finds a suitable position

Definition at line 386 of file edsect.cxx.

References SwCursorShell::GetCursor(), and lcl_SpecialInsertNode().

Referenced by SwEditWin::KeyInput().

◆ ChangeAuthorityData()

void SwEditShell::ChangeAuthorityData ( const SwAuthEntry pNewData)

Definition at line 379 of file edfld.cxx.

References SwDoc::ChangeAuthorityData(), and SwViewShell::GetDoc().

◆ ChangeDBFields()

void SwEditShell::ChangeDBFields ( const std::vector< OUString > &  rOldNames,
const OUString &  rNewName 

Definition at line 308 of file edfld.cxx.

References SwDoc::ChangeDBFields(), and SwViewShell::GetDoc().

Referenced by SwDBManager::Merge(), and SwChangeDBDlg::UpdateFields().

◆ ChangeIndentOfAllListLevels()

void SwEditShell::ChangeIndentOfAllListLevels ( sal_Int32  nDiff)

Remove unused default parameter <nLevel> and <bRelative>.

Definition at line 310 of file ednumber.cxx.

References SwNumRule::ChangeIndent(), EndAllAction(), SwNumRule::Get(), SvxNumberFormat::GetIndentAt(), GetNumRuleAtCurrCursorPos(), SetCurNumRule(), and StartAllAction().

Referenced by SwEditWin::KeyInput().

◆ ChgDBData()

void SwEditShell::ChgDBData ( const SwDBData SwDBData)

Definition at line 297 of file edfld.cxx.

References SwDoc::ChgDBData(), and SwViewShell::GetDoc().

Referenced by SwWrtShell::ChgDBData().

◆ ChgNumRuleFormats()

void SwEditShell::ChgNumRuleFormats ( const SwNumRule rRule)

◆ ClassifyDocPerHighestParagraphClass()

void SwEditShell::ClassifyDocPerHighestParagraphClass ( )

◆ ClearAutomaticContour()

void SwEditShell::ClearAutomaticContour ( )

◆ CollectAdvancedClassification()

std::vector< svx::ClassificationResult > SwEditShell::CollectAdvancedClassification ( )

◆ CollectParagraphClassification()

std::vector< svx::ClassificationResult > SwEditShell::CollectParagraphClassification ( )

◆ CompareDoc()

tools::Long SwEditShell::CompareDoc ( const SwDoc rDoc)

Compare two documents.

Definition at line 885 of file editsh.cxx.

References SwDoc::CompareDoc(), EndAllAction(), SwViewShell::GetDoc(), and StartAllAction().

◆ ConvertFieldsToText()

bool SwEditShell::ConvertFieldsToText ( )

Replace fields by text - mailmerge support.

Definition at line 761 of file editsh.cxx.

References SwDoc::ConvertFieldsToText(), EndAllAction(), SwViewShell::GetDoc(), SwViewShell::GetLayout(), and StartAllAction().

Referenced by lcl_SaveDoc(), and SwDBManager::MergeMailFiles().

◆ Copy()

bool SwEditShell::Copy ( SwEditShell rDestShell)

Copy content of all ranges at current position of cursor to given Shell.

Definition at line 185 of file eddel.cxx.

References SwCursorShell::GetCursor(), and sw::Ring< SwViewShell >::GetRingContainer().

Referenced by SwFEShell::Copy(), and SwFEShell::PastePages().

◆ CopySelToDoc()

bool SwEditShell::CopySelToDoc ( SwDoc rInsDoc)

For copying via ClipBoard: If table is copied into table, move all cursors away from it.

copy all selections to the doc

Copy and Paste must be in FEShell because of FlyFrames! Copy all selections to the document.

Definition at line 152 of file edglss.cxx.

References SwPosition::Assign(), CheckPosInFly, IDocumentContentOperations::CopyRange(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::empty(), SwCursorShell::ExtendedSelectedAll(), fnMoveForward, SwNode::GetContentNode(), SwCursorShell::GetCursor(), SwCursorShell::GetCursor_(), SwViewShell::GetDoc(), SwNodes::GetEndOfContent(), SwTable::GetFrameFormat(), SwDoc::getIDocumentContentOperations(), SwDoc::getIDocumentFieldsAccess(), SwFormat::GetName(), GetName(), SwNodeIndex::GetNode(), SwDoc::GetNodes(), sw::Ring< SwViewShell >::GetRingContainer(), SwTableNode::GetTable(), SwDoc::GetTableFrameFormats(), GetTableSel(), SwTable::GetTableStyleName(), SwTable::GetTabSortBoxes(), SwNode::GetTextNode(), GoInContent(), SwDoc::InsCopyOfTable(), SwDoc::IsClipBoard(), SwCursor::IsColumnSelection(), IDocumentFieldsAccess::IsExpFieldsLocked(), SwCursorShell::IsTableMode(), SwContentNode::Len(), IDocumentFieldsAccess::LockExpFields(), n, SwCursorShell::None, SwDoc::SetColumnSelection(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size(), sw::FrameFormats< value_type >::size(), SwPaM::Start(), SwCursorShell::StartsWith_(), IDocumentFieldsAccess::UnlockExpFields(), and IDocumentFieldsAccess::UpdateExpFields().

Referenced by SwFEShell::Copy(), MakeGlossary(), and SwAutoCorrect::PutText().

◆ CountWords()

void SwEditShell::CountWords ( SwDocStat rStat) const

Count words in current selection.

Definition at line 1081 of file editsh.cxx.

References SwDoc::CountWords(), SwCursorShell::GetCursor(), and sw::Ring< SwViewShell >::GetRingContainer().

Referenced by SwView::StateStatusLine(), and SwWordCountFloatDlg::UpdateCounts().

◆ CreateExtTextInput()

void SwEditShell::CreateExtTextInput ( LanguageType  eInputLanguage)

◆ CursorsLocked()

bool SwEditShell::CursorsLocked ( ) const

is it forbidden to modify cursors via API calls?

Definition at line 44 of file edundo.cxx.

References SwViewShell::GetDoc(), SwDoc::GetDocShell(), and SfxObjectShell::GetModel().

Referenced by HandleUndoRedoContext(), and sw::UndoManager::impl_DoUndoRedo().

◆ DelAllUndoObj()

void SwEditShell::DelAllUndoObj ( )

Definition at line 212 of file edws.cxx.

References SwViewShell::GetDoc(), and SwDoc::GetIDocumentUndoRedo().

◆ Delete()

bool SwEditShell::Delete ( bool  isArtificialSelection = false)

◆ DeleteExtTextInput()

OUString SwEditShell::DeleteExtTextInput ( bool  bInsText = true)

◆ DeleteGlobalDocContent()

void SwEditShell::DeleteGlobalDocContent ( const SwGlblDocContents rArr,
size_t  nPos 

◆ DeleteSel()

void SwEditShell::DeleteSel ( SwPaM rPam,
bool  isArtificialSelection,
bool *  pUndo = nullptr 

◆ DeleteTOX()

bool SwEditShell::DeleteTOX ( const SwTOXBase rTOXBase,
bool  bDelNodes 

Definition at line 196 of file edtox.cxx.

References SwDoc::DeleteTOX(), and SwViewShell::GetDoc().

Referenced by SwContentTree::EditEntry(), and SwTextShell::ExecIdx().

◆ DeleteTOXMark()

void SwEditShell::DeleteTOXMark ( SwTOXMark const *  pMark)

◆ DelFullPara()

bool SwEditShell::DelFullPara ( )

◆ DelINetAttrWithText()

void SwEditShell::DelINetAttrWithText ( )

If cursor is in an INetAttribute it will be deleted completely including the descriptive text (needed at drag & drop).

If the cursor is in an INetAttribute then it will be deleted completely (incl.

hint text, the latter is needed for drag & drop)

Definition at line 737 of file editsh.cxx.

References DeleteSel(), SwCursorShell::GetCursor(), RES_TXTATR_INETFMT(), and SwCursorShell::SelectTextAttr().

Referenced by SwTransferable::PrivateDrop().

◆ DelNumRules()

void SwEditShell::DelNumRules ( )

◆ DelSectionFormat()

void SwEditShell::DelSectionFormat ( size_t  nFormat)

◆ DoesGroupUndo()

bool SwEditShell::DoesGroupUndo ( ) const

Definition at line 209 of file edws.cxx.

References SwViewShell::GetDoc(), and SwDoc::GetIDocumentUndoRedo().

Referenced by SwDBManager::ImportFromConnection().

◆ DoesUndo()

bool SwEditShell::DoesUndo ( ) const

◆ DoGroupUndo()

void SwEditShell::DoGroupUndo ( bool  bUn)

Definition at line 206 of file edws.cxx.

References SwViewShell::GetDoc(), and SwDoc::GetIDocumentUndoRedo().

Referenced by SwDBManager::ImportFromConnection().

◆ DontExpandFormat()

bool SwEditShell::DontExpandFormat ( )

If Cursor is at the end of a character style in which the DontExpand-flag is not yet set, the latter will be set (==> return TRUE).

Set the DontExpand flag at the text character attributes.

Definition at line 745 of file editsh.cxx.

References SwCursorShell::CallChgLnk(), DontExpandFormat(), SwCursorShell::GetCursor(), SwViewShell::GetDoc(), and SwCursorShell::IsTableMode().

Referenced by DontExpandFormat(), SwTextShell::ExecCharAttr(), InsertURL(), and sw_CharDialogResult().

◆ DoSpecialInsert()

void SwEditShell::DoSpecialInsert ( )

Special insert: Insert a new text node just before or after a section or table, if the cursor is positioned at the start/end of said section/table.

check whether a node can be special-inserted (alt-Enter), and do so.

The purpose of the method is to allow users to inert text at certain 'impossible' position, e.g. before a table at the document start or between to sections.

Return whether insertion was possible.

Definition at line 394 of file edsect.cxx.

References IDocumentContentOperations::AppendTextNode(), SwCursorShell::CallChgLnk(), EndAllAction(), SwCursorShell::GetCursor(), SwViewShell::GetDoc(), SwDoc::getIDocumentContentOperations(), SwPaM::GetPoint(), SwNode::IsStartNode(), lcl_SpecialInsertNode(), and StartAllAction().

Referenced by SwEditWin::KeyInput().

◆ DoUndo()

void SwEditShell::DoUndo ( bool  bOn = true)

◆ EndAllAction()

void SwEditShell::EndAllAction ( )

Definition at line 97 of file edws.cxx.

References sw::Ring< SwViewShell >::GetRingContainer().

Referenced by AcceptRedline(), AcceptRedlinesInSelection(), SwFEShell::AlignAllFormulasToBaseline(), SwDoc::AppendDoc(), AppendTextNode(), SwFieldInputDlg::Apply(), SwSortDlg::Apply(), ApplyAutoMark(), SwDocShell::ApplyStyles(), AutoCorrect(), SwWrtShell::AutoCorrect(), AutoFormat(), AutoFormatBySplitNode(), CalcLayout(), SwFEShell::Chain(), SwEditWin::ChangeDrawing(), SwEditWin::ChangeFly(), SwWrtShell::ChangeHeaderOrFooter(), ChangeIndentOfAllListLevels(), SwFEShell::CheckUnboundObjects(), SwFEShell::ChgAnchor(), ChgNumRuleFormats(), ClearAutomaticContour(), SwOneExampleFrame::ClearDocument(), SwWrtShell::ClickToField(), SwWrtShell::CloseMark(), CompareDoc(), ConvertFieldsToText(), SwDocShell::ConvertTo(), SwFEShell::Copy(), SwInsertDBColAutoPilot::DataToDoc(), SwInputWindow::DelBoxContent(), Delete(), SwPostItMgr::Delete(), SwDocShell::Delete(), SwPostItMgr::DeleteCommentThread(), DeleteExtTextInput(), DeleteGlobalDocContent(), DeleteTOXMark(), DelFullPara(), DelNumRules(), DelSectionFormat(), SwFEShell::DelSelectedObj(), SwWrtShell::Do(), SwDocShell::DoFlushDocInfo(), DoSpecialInsert(), SwTransferable::DragFinished(), SwFEShell::EndTextEdit(), SwFieldMgr::EvalExpFields(), SwTextShell::ExecEnterNum(), SwTextShell::ExecField(), SwTextShell::ExecInsert(), SwView::ExecTabWin(), SwDocShell::Execute(), SwBaseShell::Execute(), SwFrameShell::Execute(), SwTextShell::Execute(), SwGrfShell::Execute(), SwDrawBaseShell::Execute(), SwEditWin::ExecuteDrop(), SwGlossaryHdl::Expand(), FieldToText(), SwStdFontTabPage::FillItemSet(), SwPostItMgr::FormatAll(), GetUpdatedDocStat(), SwInputFieldList::GotoFieldPos(), sw::AccessibilityIssue::gotoIssue(), SwNavigationMgr::GotoSwPosition(), SwFEShell::GroupSelection(), SwHHCWrapper::HandleNewUnit(), SwDocShell::Hide(), IMPL_LINK(), IMPL_LINK_NOARG(), SwDBManager::ImportFromConnection(), SwWrtShell::Insert(), SwFEShell::Insert(), Insert(), SwView::InsertCaption(), SwTableFUNC::InsertChart(), InsertDDETable(), SwModule::InsertEnv(), InsertField(), SwFieldPage::InsertField(), SwFieldMgr::InsertField(), SwWrtShell::InsertField2(), SwFlyFrameAttrMgr::InsertFlyFrame(), InsertGlobalDocContent(), SwGlossaryHdl::InsertGlossary(), InsertGlossary(), SwWrtShell::InsertGraphic(), SwModule::InsertLab(), SwIndexMarkPane::InsertMark(), SwFEShell::InsertObject(), SwWrtShell::InsertOleObject(), InsertSection(), SwTextShell::InsertSymbol(), InsertTable(), InsertTableImpl(), InsertTableOf(), SwTOXMgr::InsertTOXMark(), SwIndexMarkPane::InsertUpdate(), InsertURL(), ItemSetToTableParam(), lcl_SetAPageOffset(), lcl_TableParamToItemSet(), SwDocShell::LoadStyles_(), SwDocShell::LoadStylesFromFile(), SwDocShell::MakeByExample(), SwDBManager::Merge(), MergeDoc(), MergeTable(), SwFEShell::MoveAnchor(), MoveGlobalDocContent(), MoveLeftMargin(), MoveNumParas(), SwContentTree::MoveOutline(), MoveOutlinePara(), MoveParagraph(), SwVirtFlyDrawObj::NbcCrop(), NoNum(), SwDocShell::Notify(), SwURLStateChanged::Notify(), NumOrNoNum(), NumUpDown(), OutlineUpDown(), Overwrite(), SwFEShell::Paste(), SwFEShell::PastePages(), SwPostItMgr::PrepareView(), Redo(), RejectRedline(), RejectRedlinesInSelection(), Repeat(), Replace(), ReplaceDropText(), ReplaceNumRule(), SwFEShell::ReplaceSdrObj(), SwHHCWrapper::ReplaceUnit(), SwOleClient::RequestNewObjectArea(), SwFEShell::RequestObjectResize(), ReRead(), ResetAttr(), SaveGlossaryDoc(), SwFEShell::SelectionToBottom(), SwFEShell::SelectionToTop(), SetAttrItem(), SetAttrSet(), SwTableFUNC::SetColWidth(), SetCurFootnote(), SetCurNumRule(), SetDefault(), SetEndNoteInfo(), SetExtTextInputData(), SetFootnoteInfo(), SetGraphicPolygon(), SetIndent(), SetLineNumberInfo(), SetNodeNumStart(), SetNumberingRestart(), SetNumRuleStart(), SetOutlineNumRule(), SwFEShell::SetPageObjsNewPage(), SwView::SetPrinter(), SwPagePreview::SetPrinter(), SetRedlineFlags(), SetSectionAttr_(), SwFEShell::SetTabBackground(), SetTableBoxFormulaAttrs(), SetTextFormatColl(), SwFEShell::Sort(), SplitNode(), SplitTable(), TableToText(), TextToTable(), SwPostItMgr::ToggleResolved(), SwPostItMgr::ToggleResolvedForThread(), TransliterateText(), SwFEShell::Unchain(), Undo(), SwFEShell::UnGroupSelection(), SwTableFUNC::UpdateChart(), SwFieldMgr::UpdateCurField(), SwDDEFieldType::UpdateDDE(), UpdateDocStat(), UpdateExpFields(), SwChangeDBDlg::UpdateFields(), SwFlyFrameAttrMgr::UpdateFlyFrame(), UpdateOneField(), UpdateRedlineAttr(), UpdateSection(), SwDocShell::UpdateStyle(), UpdateTable(), UpdateTableOf(), SwTOXMgr::UpdateTOXMark(), SwOleClient::ViewChanged(), and SwWriter::Write().

◆ EndUndo()

SwUndoId SwEditShell::EndUndo ( SwUndoId  eUndoId = SwUndoId::EMPTY,
const SwRewriter pRewriter = nullptr 

Closes parenthesis of nUndoId, not used by UI.

close undo container

not used by UI

eUndoIdID of the undo container

Definition at line 234 of file edws.cxx.

References SwViewShell::GetDoc(), and SwDoc::GetIDocumentUndoRedo().

Referenced by SwInsFootNoteDlg::Apply(), ApplyCharBackground(), SwWrtShell::AutoCorrect(), AutoFormat(), AutoFormatBySplitNode(), SwRedlineAcceptDlg::CallAcceptReject(), SwEditWin::ChangeDrawing(), SwWrtShell::ChangeHeaderOrFooter(), SwWrtShell::ClickToField(), SwInsertDBColAutoPilot::DataToDoc(), SwPostItMgr::Delete(), SwFEShell::DeleteCol(), DeleteGlobalDocContent(), SwContentTree::DeleteOutlineSelections(), SwFEShell::DeleteRow(), SwTransferable::DeleteSelection(), SwTransferable::DragFinished(), SwDocShell::Edit(), SwContentTree::EditEntry(), SwFEShell::EndDrag(), EndUndo(), SwTextShell::ExecCharAttrArgs(), SwTextShell::ExecInsert(), SwTextShell::ExecParaAttrArgs(), SwSpellPopup::Execute(), SwView::Execute(), SwBaseShell::Execute(), SwDrawShell::Execute(), SwTableShell::Execute(), SwTextShell::Execute(), SwGrfShell::Execute(), SwDrawBaseShell::Execute(), SwGlossaryHdl::Expand(), FieldToText(), SwPostItMgr::FormatAll(), SwFEShell::GroupSelection(), IMPL_LINK_NOARG(), SwDBManager::ImportFromConnection(), SwWrtShell::Insert(), SwMailMergeLayoutPage::InsertAddressAndGreeting(), SwTableFUNC::InsertChart(), SwWrtShell::InsertColumnBreak(), SwWrtShell::InsertContentControl(), InsertDDETable(), SwModule::InsertEnv(), SwWrtShell::InsertField2(), SwWrtShell::InsertGraphic(), SwView::InsertGraphicDlg(), SwFEShell::InsertLabel(), SwWrtShell::InsertOleObject(), SwWrtShell::InsertPageBreak(), SwDrawShell::InsertPictureFromFile(), SwTextShell::InsertSymbol(), InsertTable(), SwIndexMarkPane::InsertUpdate(), SwBaseShell::InsertURLButton(), ItemSetToTableParam(), SwEditWin::KeyInput(), SwDrawBase::MouseButtonUp(), SwEditWin::MouseButtonUp(), MoveLeftMargin(), SwContentTree::MoveOutline(), SwWrtShell::NumOrBulletOn(), SwFEShell::Paste(), SwFormatClipboard::Paste(), SwFEShell::PastePages(), SwTransferable::PrivateDrop(), SwFEShell::ReplaceSdrObj(), SwHHCWrapper::ReplaceUnit(), SwFEShell::SetDrawingAttr(), SwFEShell::SetObjAttr(), SwFEShell::SetPageObjsNewPage(), SwInputWindow::ShowWin(), SwWrtShell::SplitNode(), sw_ParagraphDialogResult(), TableToText(), SwFEShell::UnGroupSelection(), SwDocShell::UpdateStyle(), UpdateTable(), and SwAutoCorrDoc::~SwAutoCorrDoc().

◆ FieldToText()

void SwEditShell::FieldToText ( SwFieldType const *  pType)

◆ FillByEx() [1/2]

void SwEditShell::FillByEx ( SwCharFormat pCharFormat)

◆ FillByEx() [2/2]

void SwEditShell::FillByEx ( SwTextFormatColl pColl)

◆ FindCharFormatByName()

SwCharFormat * SwEditShell::FindCharFormatByName ( const OUString &  rName) const

◆ FindFlyByName()

const SwFlyFrameFormat * SwEditShell::FindFlyByName ( const OUString &  rName) const

Definition at line 142 of file edfmt.cxx.

References SwViewShell::mxDoc.

Referenced by SwFrameShell::Execute().

◆ FindRedlineOfData()

SwRedlineTable::size_type SwEditShell::FindRedlineOfData ( const SwRedlineData rData) const

Search Redline for this Data and.

Search the Redline of the data given.

position in array. If not found, return SwRedlineTable::npos.
Returns the Pos of the Array, or SwRedlineTable::npos if not present

Definition at line 186 of file edredln.cxx.

References SwViewShell::GetDoc(), SwDoc::getIDocumentRedlineAccess(), IDocumentRedlineAccess::GetRedlineTable(), i, SwRedlineTable::npos, and SwRedlineTable::size().

Referenced by SwRedlineAcceptDlg::GetRedlinePos().

◆ FindTextFormatCollByName()

SwTextFormatColl * SwEditShell::FindTextFormatCollByName ( const OUString &  rName) const

◆ GCAttr()

void SwEditShell::GCAttr ( )

◆ GetAllUsedDB()

void SwEditShell::GetAllUsedDB ( std::vector< OUString > &  rDBNameList,
std::vector< OUString > const *  pAllDBNames 

◆ GetAnySection()

SwSection * SwEditShell::GetAnySection ( bool  bOutOfTab = false,
const Point pPt = nullptr 

Deliver the responsible area of the columns.

current range like Cet CurrSection(). But this function iterates also over frames and catches the range even if the cursor is positioned in a footnote the reference of which is in a columned range. If bOutOfTab is set, the range comprising the table is searched and not an inner one.

In footnotes it may not be the area within the footnote.

Definition at line 83 of file edsect.cxx.

References SwFrame::FindSctFrame(), SwFrame::FindTabFrame(), SwNode::GetContentNode(), SwCursorShell::GetCurrFrame(), SwCursorShell::GetCursor(), SwViewShell::GetLayout(), SwContentNode::getLayoutFrame(), SwRootFrame::GetModelPositionForViewPoint(), SwPosition::GetNode(), SwSectionFrame::GetSection(), SwFrame::GetUpper(), SwFrame::IsInFootnote(), and SwFrame::IsInSct().

Referenced by SwView::ExecTabWin(), and SwView::StateTabWin().

◆ GetAutoCompleteWords()

SwAutoCompleteWord & SwEditShell::GetAutoCompleteWords ( )

Interface for access to AutoComplete-list.

Definition at line 326 of file edws.cxx.

References SwDoc::GetAutoCompleteWords().

Referenced by QuickHelpData::FillStrArr().

◆ GetAutoFormatFlags()

SvxSwAutoFormatFlags * SwEditShell::GetAutoFormatFlags ( )

◆ GetCharFormat()

SwCharFormat & SwEditShell::GetCharFormat ( sal_uInt16  nFormat) const

◆ GetCharFormatCount()

sal_uInt16 SwEditShell::GetCharFormatCount ( ) const

◆ GetCharFormatFromPool()

SwCharFormat * SwEditShell::GetCharFormatFromPool ( sal_uInt16  nId)

◆ GetChunkForAutoText()

std::vector< OUString > SwEditShell::GetChunkForAutoText ( )

◆ GetCntType()

sal_uInt16 SwEditShell::GetCntType ( ) const

◆ GetCorrection()

uno::Reference< XSpellAlternatives > SwEditShell::GetCorrection ( const Point pPt,
SwRect rSelectRect 

◆ GetCurAttr()

bool SwEditShell::GetCurAttr ( SfxItemSet rSet,
const bool  bMergeIndentValuesOfNumRule = false 
) const

◆ GetCurCharFormat()

SwCharFormat * SwEditShell::GetCurCharFormat ( ) const

◆ GetCurFootnote()

bool SwEditShell::GetCurFootnote ( SwFormatFootnote pToFillFootnote = nullptr)

◆ GetCurLang()

LanguageType SwEditShell::GetCurLang ( ) const

◆ GetCurParAttr()

void SwEditShell::GetCurParAttr ( SfxItemSet rSet) const

Get the paragraph format attribute(s) of the current selection.

See also
rSetoutput parameter - the SfxItemSet where the automatic paragraph format attribute(s) will be store. The attributes aren't invalidated or cleared if the function reach the getMaxLookup limit.

Definition at line 177 of file edattr.cxx.

References SwCursorShell::GetCursor(), GetPaMParAttr(), and rSet.

Referenced by SwFormatClipboard::Copy().

◆ GetCurrentOutlineLevels()

void SwEditShell::GetCurrentOutlineLevels ( sal_uInt8 rUpper,
sal_uInt8 rLower 

Detect highest and lowest level to check moving of outline levels.

Definition at line 388 of file ednumber.cxx.

References SwPaM::End(), SwCursorShell::GetCursor(), SwViewShell::GetLayout(), SwPaM::GetPoint(), SwDoc::GotoNextNum(), SwPaM::HasMark(), SwPaM::SetMark(), and SwPaM::Start().

Referenced by SwListShell::GetState().

◆ GetCurrentParaOutlineLevel()

int SwEditShell::GetCurrentParaOutlineLevel ( ) const

◆ GetCurrRedline()

const SwRangeRedline * SwEditShell::GetCurrRedline ( ) const

◆ GetCurrSection()

const SwSection * SwEditShell::GetCurrSection ( ) const

◆ GetCurTextFormatColl()

SwTextFormatColl * SwEditShell::GetCurTextFormatColl ( ) const

Get the named paragraph format of the current selection.

See also
the named paragraph format of the first node that contains one. Nodes are sort by order of appearance in the selections ; selections are sort by their order of creation (last created selection first, oldest selection at last).

Definition at line 238 of file edattr.cxx.

References SwCursorShell::GetCursor(), and GetPaMTextFormatColl().

Referenced by SwFormatClipboard::Copy(), SwDocShell::Edit(), SwBaseShell::ExecBckCol(), SwTextShell::ExecCharAttrArgs(), SwTextShell::ExecParaAttr(), SwDocShell::ExecStyleSheet(), SwView::ExecTabWin(), SwBaseShell::ExecTextCtrl(), SwEditWin::KeyInput(), SwDocShell::MakeByExample(), SwWrtShell::NumOrBulletOn(), SwParaDlg::PageCreated(), SwWrtShell::QuickUpdateStyle(), SwDocShell::StateStyleSheet(), and sw_CharDialogResult().

◆ GetCurTOX()

const SwTOXBase * SwEditShell::GetCurTOX ( ) const

◆ GetCurTOXMarks()

void SwEditShell::GetCurTOXMarks ( SwTOXMarks rMarks) const

Get all marks at current SPoint.

Collect all listing markers.

Definition at line 87 of file edtox.cxx.

References SwCursorShell::GetCursor(), SwDoc::GetCurTOXMark(), and Start.

Referenced by SwTextShell::GetIdxState(), SwTOXMgr::SwTOXMgr(), and SwTOXMgr::UpdateTOXMark().

◆ GetCurWord()

OUString SwEditShell::GetCurWord ( ) const

◆ GetDBData()

SwDBData const & SwEditShell::GetDBData ( ) const

◆ GetDBManager()

SwDBManager * SwEditShell::GetDBManager ( ) const

◆ GetDefault() [1/2]

const SfxPoolItem & SwEditShell::GetDefault ( sal_uInt16  nFormatHint) const

Query default attribute of document.

request the default attribute in this document.

Definition at line 93 of file edatmisc.cxx.

References SwDoc::GetDefault(), and SwViewShell::GetDoc().

Referenced by SwModule::CreateItemSet(), SwView::ExecTabWin(), and SwView::StateTabWin().

◆ GetDefault() [2/2]

template<class T >
const T & SwEditShell::GetDefault ( TypedWhichId< T >  nWhich) const

Definition at line 270 of file editsh.hxx.

◆ GetDefaultTOXBase()

const SwTOXBase * SwEditShell::GetDefaultTOXBase ( TOXTypes  eTyp,
bool  bCreate = false 

◆ GetDfltTextFormatColl()

SwTextFormatColl & SwEditShell::GetDfltTextFormatColl ( ) const

Definition at line 689 of file edfcol.cxx.

References SwDoc::GetDfltTextFormatColl(), and SwViewShell::GetDoc().

Referenced by SwWrtShell::SearchTempl().

◆ GetDropText()

OUString SwEditShell::GetDropText ( const sal_Int32  nChars) const

◆ GetEndNoteInfo()

const SwEndNoteInfo & SwEditShell::GetEndNoteInfo ( ) const

◆ GetFieldType() [1/2]

SwFieldType * SwEditShell::GetFieldType ( size_t  nField,
SwFieldIds  nResId = SwFieldIds::Unknown 
) const

◆ GetFieldType() [2/2]

SwFieldType * SwEditShell::GetFieldType ( SwFieldIds  nResId,
const OUString &  rName 
) const

get first type with given ResId and name

Definition at line 88 of file edfld.cxx.

References SwViewShell::GetDoc(), IDocumentFieldsAccess::GetFieldType(), and SwDoc::getIDocumentFieldsAccess().

◆ GetFieldTypeCount()

size_t SwEditShell::GetFieldTypeCount ( SwFieldIds  nResId = SwFieldIds::Unknown) const

◆ GetFieldUpdateFlags()

SwFieldUpdateFlags SwEditShell::GetFieldUpdateFlags ( ) const

◆ GetFirstRedoInfo()

bool SwEditShell::GetFirstRedoInfo ( OUString *const  o_pStr,
SwUndoId *const  o_pId,
const SwView pView = nullptr 
) const

◆ GetFootnoteInfo()

const SwFootnoteInfo & SwEditShell::GetFootnoteInfo ( ) const

Footnote attributes global to document.

Definition at line 901 of file editsh.cxx.

References SwViewShell::GetDoc(), and SwDoc::GetFootnoteInfo().

Referenced by SwEndNoteOptionPage::FillItemSet(), and SwEndNoteOptionPage::Reset().

◆ GetFormatFromPool()

SwFormat * SwEditShell::GetFormatFromPool ( sal_uInt16  nId)

return the requested automatic format - base-class !

required automatic format base class.

Definition at line 127 of file edfmt.cxx.

References SwViewShell::GetDoc(), IDocumentStylePoolAccess::GetFormatFromPool(), SwDoc::getIDocumentStylePoolAccess(), and nId.

Referenced by GetCharFormatFromPool(), SwWrtShell::GetCharStyle(), GetFrameFormatFromPool(), and SwFlyFrameAttrMgr::SwFlyFrameAttrMgr().

◆ GetFrameFormatFromPool()

SwFrameFormat * SwEditShell::GetFrameFormatFromPool ( sal_uInt16  nId)
required automatic format.

Definition at line 353 of file editsh.hxx.

References GetFormatFromPool(), and nId.

Referenced by SwDocShell::Edit(), and SwModule::InsertLab().

◆ GetFullSelectedSectionCount()

sal_uInt16 SwEditShell::GetFullSelectedSectionCount ( ) const

Search inside the cursor selection for full selected sections.

if any part of section in the selection

0. if more than one in the selection return the count.
If any part of section in the selection return 0, if more than one return the count.

Definition at line 246 of file edsect.cxx.

References SwNode::GetContentNode(), SwCursorShell::GetCursor(), SwNodeIndex::GetNode(), sw::Ring< SwViewShell >::GetRingContainer(), SwNode::IsEndNode(), SwNode::IsSectionNode(), SwContentNode::Len(), and SwNode::StartOfSectionNode().

Referenced by SwTextShell::StateInsert(), and SwColumnDlg::SwColumnDlg().

◆ GetGlobalDocContent()

void SwEditShell::GetGlobalDocContent ( SwGlblDocContents rArr) const

◆ GetGrammarCorrection()

bool SwEditShell::GetGrammarCorrection ( css::linguistic2::ProofreadingResult &  rResult,
sal_Int32 &  rErrorPosInText,
sal_Int32 &  rErrorIndexInResult,
css::uno::Sequence< OUString > &  rSuggestions,
const Point pPt,
SwRect rSelectRect 

◆ GetGraphic()

const Graphic * SwEditShell::GetGraphic ( bool  bWait = true) const

◆ GetGraphicAttr()

const GraphicAttr * SwEditShell::GetGraphicAttr ( GraphicAttr rGA) const

◆ GetGraphicObj()

const GraphicObject * SwEditShell::GetGraphicObj ( ) const

◆ GetGraphicPolygon()

const tools::PolyPolygon * SwEditShell::GetGraphicPolygon ( ) const

◆ GetGraphicType()

GraphicType SwEditShell::GetGraphicType ( ) const

◆ GetGrfNms()

void SwEditShell::GetGrfNms ( OUString *  pGrfName,
OUString *  pFltName,
const SwFlyFrameFormat pFormat = nullptr 
) const

Returns the name and the filter name of a graphic if the pointer is on a graphic.

name and filter of a graphic if the cursor is in a graphic, else give a rap on the knuckles! If a string-ptr != 0 return the respective name.

If a String-pointer is != 0 then return corresponding name.

Definition at line 304 of file editsh.cxx.

References SwGrfNode::GetFileFilterNms(), SwDoc::GetGrfNms(), GetGrfNode_(), and SwGrfNode::IsLinkedFile().

Referenced by SwGrfShell::Execute(), SwContentType::FillMemberList(), SwTransferable::GetSotDestination(), lcl_UpdateContourDlg(), SwTransferable::PrepareForCopy(), SwTransferable::PrivateDrop(), and SwTransferable::SetDataForDragAndDrop().

◆ GetGrfNode_()

SwGrfNode * SwEditShell::GetGrfNode_ ( ) const

◆ GetGrfSize()

bool SwEditShell::GetGrfSize ( Size rSz) const

◆ GetIMapGraphic()

Graphic SwEditShell::GetIMapGraphic ( ) const

◆ GetIMapInventor()

void * SwEditShell::GetIMapInventor ( ) const

Unique identification of object (for ImageMapDlg).

Definition at line 597 of file editsh.cxx.

References SwCursorShell::GetCursor(), and SwPaM::GetPointNode().

Referenced by SwBaseShell::Execute(), SwBaseShell::GetState(), IMPL_LINK_NOARG(), lcl_UpdateContourDlg(), and lcl_UpdateIMapDlg().

◆ GetINetAttrs()

void SwEditShell::GetINetAttrs ( SwGetINetAttrs rArr,
bool  bIncludeInToxContent = true 

◆ GetItemWithPaM()

std::vector< std::pair< const SfxPoolItem *, std::unique_ptr< SwPaM > > > SwEditShell::GetItemWithPaM ( sal_uInt16  nWhich)

◆ GetLastUndoInfo()

bool SwEditShell::GetLastUndoInfo ( OUString *const  o_pStr,
SwUndoId *const  o_pId,
const SwView pView = nullptr 
) const

◆ GetLineCount()

sal_Int32 SwEditShell::GetLineCount ( )

◆ GetLineNumberInfo()

const SwLineNumberInfo & SwEditShell::GetLineNumberInfo ( ) const

◆ GetLinkManager() [1/2]

sfx2::LinkManager & SwEditShell::GetLinkManager ( )

◆ GetLinkManager() [2/2]

const sfx2::LinkManager & SwEditShell::GetLinkManager ( ) const

Definition at line 1036 of file editsh.hxx.

References GetLinkManager().

◆ GetLinkUpdMode()

sal_uInt16 SwEditShell::GetLinkUpdMode ( ) const

Embeds all local links (ranges/graphics).

Definition at line 942 of file editsh.cxx.

References SwViewShell::getIDocumentSettingAccess(), and IDocumentSettingAccess::getLinkUpdateMode().

Referenced by SwLoadOptPage::Reset().

◆ GetNodeNumStart()

sal_uInt16 SwEditShell::GetNodeNumStart ( SwPaM pPaM) const

◆ GetNumberFormatter() [1/2]

SvNumberFormatter * SwEditShell::GetNumberFormatter ( )

◆ GetNumberFormatter() [2/2]

const SvNumberFormatter * SwEditShell::GetNumberFormatter ( ) const

Definition at line 928 of file editsh.hxx.

◆ GetNumLevel()

sal_uInt8 SwEditShell::GetNumLevel ( ) const

◆ GetNumRuleAtCurrCursorPos()

const SwNumRule * SwEditShell::GetNumRuleAtCurrCursorPos ( ) const

◆ GetNumRuleAtCurrentSelection()

const SwNumRule * SwEditShell::GetNumRuleAtCurrentSelection ( ) const

Returns the numbering rule found at the paragraphs of the current selection, if all paragraphs of the current selection have the same or none numbering rule applied.

Definition at line 700 of file ednumber.cxx.

References SwCursorShell::GetCursor(), SwViewShell::GetLayout(), SwDoc::GetNumRuleAtPos(), sw::Ring< SwViewShell >::GetRingContainer(), and pos.

Referenced by SwTextShell::ExecEnterNum(), SwTextShell::ExecSetNumber(), and SwTextShell::GetState().

◆ GetOLEObject()

svt::EmbeddedObjectRef & SwEditShell::GetOLEObject ( ) const

Get OLE object at pointer.

a ClientObject, if CurrentCursor->Point() points to a SwOLENode (and mark is neither set not pointint to same ClientObject) else give rap on the knuckles.

Returns a pointer to a SvInPlaceObjectRef if CurrentCursor->GetPoint() points to a SwOLENode and GetMark is not set or points to the same object reference. Gets this pointer from the Doc if the object should be searched by name.

Definition at line 358 of file editsh.cxx.

References CNT_OLE, GetCntType(), SwCursorShell::GetCursor(), GetNode(), SwOLEObj::GetObject(), SwNode::GetOLENode(), SwOLENode::GetOLEObj(), SwPaM::GetPointNode(), and SwCursorShell::HasMark().

Referenced by SwTextShell::ExecInsert(), SwFramePage::Init(), and SwWrtShell::LaunchOLEObj().

◆ GetOutlineNumRule()

const SwNumRule * SwEditShell::GetOutlineNumRule ( ) const

◆ GetPageDescFromPool()

SwPageDesc * SwEditShell::GetPageDescFromPool ( sal_uInt16  nId)

◆ GetPaMAttr()

bool SwEditShell::GetPaMAttr ( SwPaM pPaM,
SfxItemSet rSet,
const bool  bMergeIndentValuesOfNumRule = false 
) const

Apply / remove attributes.

attributes in required AttributeSet. When not unambiguous the set has a DONT_CARE !! 2nd optional parameter <bMergeIndentValuesOfNumRule>. If <bMergeIndentValuesOfNumRule> == true, the indent attributes of the corresponding list level of an applied list style is merged into the requested item set as a LR-SPACE item, if corresponding node has not its own indent attributes and the position-and-space mode of the list level is SvxNumberFormat::LABEL_ALIGNMENT.

Definition at line 59 of file edattr.cxx.

References SfxItemSet::ClearItem(), SfxItemSet::Count(), SwDoc::FindCharFormatByName(), SwNumRule::Get(), SwTextNode::GetActualListLevel(), SwFormat::GetAttrSet(), SwNumFormat::GetCharFormatName(), SwCursorShell::GetCursorCnt(), SwViewShell::GetDoc(), SwViewShell::GetLayout(), getMaxLookup(), SwDoc::GetNodes(), SwNode::GetNodeType(), SwTextNode::GetNumRule(), sw::GetParaPropsNode(), SfxItemSet::GetPool(), SfxItemSet::GetRanges(), SwNode::GetRedlineMergeFlag(), sw::Ring< value_type >::GetRingContainer(), SwTextNode::GetText(), SwNode::GetTextNode(), Grf, SwRootFrame::HasMergedParas(), SwNode::Hidden, SfxItemSet::InvalidateAllItems(), MAXLEVEL, SfxItemSet::MergeValues(), n, Ole, SfxItemSet::Put(), rSet, and Text.

Referenced by SwWrtShell::AutoUpdatePara(), SwTextShell::ExecCharAttrArgs(), SwTextShell::Execute(), and GetCurAttr().

◆ GetPaMParAttr()

void SwEditShell::GetPaMParAttr ( SwPaM pPaM,
SfxItemSet rSet 
) const

Get the paragraph format attribute(s) of the selection(s) described by a SwPaM.

pPaMinput parameter - the selection where to look for the paragraph format.
rSetoutput parameter - the SfxItemSet where the automatic paragraph format attribute(s) will be store. The attributes aren't invalidated or cleared if the function reaches the getMaxLookup limit.

Definition at line 182 of file edattr.cxx.

References SfxItemSet::ClearItem(), SfxItemSet::Count(), sw::GetAttrMerged(), SwViewShell::GetDoc(), SwViewShell::GetLayout(), getMaxLookup(), SwDoc::GetNodes(), SfxItemSet::GetPool(), SfxItemSet::GetRanges(), SwNode::GetRedlineMergeFlag(), sw::Ring< value_type >::GetRingContainer(), SwNode::GetTextNode(), SwNode::Hidden, SwNode::IsTextNode(), SfxItemSet::MergeValues(), n, and rSet.

Referenced by GetCurParAttr().

◆ GetPaMTextFormatColl()

SwTextFormatColl * SwEditShell::GetPaMTextFormatColl ( SwPaM pPaM) const

Get the named paragraph format of the selection(s) described by a SwPaM.

pPaMinput parameter - the selection where to look for the paragraph format.
the named paragraph format of the first node that contains one.

Definition at line 243 of file edattr.cxx.

References SwViewShell::GetDoc(), SwViewShell::GetLayout(), getMaxLookup(), SwDoc::GetNodes(), sw::GetParaPropsNode(), sw::Ring< value_type >::GetRingContainer(), SwTextNode::GetTextColl(), SwNode::IsTextNode(), and n.

Referenced by GetCurTextFormatColl(), and sw_ParagraphDialogResult().

◆ GetPrevAutoCorrWord()

OUString SwEditShell::GetPrevAutoCorrWord ( SvxAutoCorrect rACorr)

◆ GetRedline()

const SwRangeRedline & SwEditShell::GetRedline ( SwRedlineTable::size_type  nPos) const

◆ GetRedlineCount()

SwRedlineTable::size_type SwEditShell::GetRedlineCount ( ) const

◆ GetRedlineFlags()

RedlineFlags SwEditShell::GetRedlineFlags ( ) const

◆ GetRefMark()

const SwFormatRefMark * SwEditShell::GetRefMark ( std::u16string_view  rName) const

get the reference of a given name in the Doc

reference set in document according to given name.

Definition at line 441 of file editsh.cxx.

References SwViewShell::GetDoc(), and SwDoc::GetRefMark().

Referenced by SwFieldMgr::CanInsertRefMark().

◆ GetRefMarks()

sal_uInt16 SwEditShell::GetRefMarks ( std::vector< OUString > *  pStrings = nullptr) const

get the names of all references in a Doc

names of all references set in document. If ArrayPointer == 0 then return only whether a RefMark is set in document.

Definition at line 447 of file editsh.cxx.

References SwViewShell::GetDoc(), and SwDoc::GetRefMarks().

Referenced by SwContentType::FillMemberList(), and SwFieldMgr::GetSubTypes().

◆ GetRepeatInfo()

SwUndoId SwEditShell::GetRepeatInfo ( OUString *const  o_pStr) const

◆ GetScalingOfSelectedText()

sal_uInt16 SwEditShell::GetScalingOfSelectedText ( ) const

◆ GetScriptType()

SvtScriptType SwEditShell::GetScriptType ( ) const

◆ GetSectionFormat()

const SwSectionFormat & SwEditShell::GetSectionFormat ( size_t  nFormat) const

◆ GetSectionFormatCount()

size_t SwEditShell::GetSectionFormatCount ( ) const

◆ GetSectionFormatPos()

size_t SwEditShell::GetSectionFormatPos ( const SwSectionFormat rFormat) const

◆ GetSelectedText()

void SwEditShell::GetSelectedText ( OUString &  rBuf,
ParaBreakType  nHndlParaBreak = ParaBreakType::ToBlank 

◆ GetSeqFootnoteList()

size_t SwEditShell::GetSeqFootnoteList ( SwSeqFieldList rList,
bool  bEndNotes = false 

◆ GetTableBoxFormulaAttrs()

bool SwEditShell::GetTableBoxFormulaAttrs ( SfxItemSet rSet) const

◆ GetTableBoxText()

OUString SwEditShell::GetTableBoxText ( ) const

◆ GetTableChgMode()

TableChgMode SwEditShell::GetTableChgMode ( ) const

◆ GetTableFormat()

SwFrameFormat * SwEditShell::GetTableFormat ( )

◆ GetTableFrameFormat()

SwFrameFormat & SwEditShell::GetTableFrameFormat ( size_t  nFormat,
bool  bUsed = false 
) const

Definition at line 104 of file edfmt.cxx.

References SwViewShell::GetDoc(), and SwDoc::GetTableFrameFormat().

Referenced by SwWrtShell::GetTableStyle().

◆ GetTableFrameFormatCount()

size_t SwEditShell::GetTableFrameFormatCount ( bool  bUsed = false) const

◆ GetTextCollFromPool()

SwTextFormatColl * SwEditShell::GetTextCollFromPool ( sal_uInt16  nId)

◆ GetTextFormatColl()

SwTextFormatColl & SwEditShell::GetTextFormatColl ( sal_uInt16  nTextFormatColl) const

◆ GetTextFormatCollCount()

sal_uInt16 SwEditShell::GetTextFormatCollCount ( ) const

◆ GetTOIAutoMarkURL()

OUString const & SwEditShell::GetTOIAutoMarkURL ( ) const

◆ GetTOIKeys()

void SwEditShell::GetTOIKeys ( SwTOIKeyType  eTyp,
std::vector< OUString > &  rArr 
) const

Key for managing index.

Definition at line 210 of file edtox.cxx.

References SwViewShell::GetDoc(), SwViewShell::GetLayout(), and SwDoc::GetTOIKeys().

Referenced by SwIndexMarkPane::InitControls().

◆ GetTOX()

const SwTOXBase * SwEditShell::GetTOX ( sal_uInt16  nPos) const

◆ GetTOXCount()

sal_uInt16 SwEditShell::GetTOXCount ( ) const

◆ GetTOXType()

const SwTOXType * SwEditShell::GetTOXType ( TOXTypes  eTyp,
sal_uInt16  nId 
) const

◆ GetTOXTypeCount()

sal_uInt16 SwEditShell::GetTOXTypeCount ( TOXTypes  eTyp) const

◆ GetUniqueNumRuleName()

OUString SwEditShell::GetUniqueNumRuleName ( ) const

Definition at line 780 of file ednumber.cxx.

References SwViewShell::GetDoc(), and SwDoc::GetUniqueNumRuleName().

Referenced by SwWrtShell::NumOrBulletOn().

◆ GetUniqueSectionName()

OUString SwEditShell::GetUniqueSectionName ( const OUString *  pChkStr = nullptr) const

◆ GetUniqueTableName()

OUString SwEditShell::GetUniqueTableName ( ) const

Definition at line 109 of file edfmt.cxx.

References SwViewShell::GetDoc(), and SwDoc::GetUniqueTableName().

Referenced by IMPL_LINK_NOARG(), and SwInsTableDlg::SwInsTableDlg().

◆ GetUpdatedDocStat()

const SwDocStat & SwEditShell::GetUpdatedDocStat ( )

◆ GetWatermark()

SfxWatermarkItem SwEditShell::GetWatermark ( ) const

◆ GotoGlobalDocContent()

void SwEditShell::GotoGlobalDocContent ( const SwGlblDocContent rPos)

◆ HandleCorrectionError()

void SwEditShell::HandleCorrectionError ( const OUString &  aText,
SwPosition  aPos,
sal_Int32  nBegin,
sal_Int32  nLen,
const Point pPt,
SwRect rSelectRect 

◆ HandleUndoRedoContext()

void SwEditShell::HandleUndoRedoContext ( ::sw::UndoRedoContext rContext)

◆ HasBullet()

bool SwEditShell::HasBullet ( ) const

◆ HasConvIter()

bool SwEditShell::HasConvIter ( )

Is text conversion active somewhere else?

Definition at line 615 of file edlingu.cxx.

References g_pConvIter.

Referenced by SwView::StartTextConversion().

◆ HasFootnotes()

bool SwEditShell::HasFootnotes ( bool  bEndNotes = false) const

Definition at line 430 of file edattr.cxx.

References SwFormatFootnote::IsEndNote(), and SwViewShell::mxDoc.

Referenced by SwFieldRefPage::Reset().

◆ HasHyphIter()

bool SwEditShell::HasHyphIter ( )

Is hyphenation active somewhere else?

Definition at line 620 of file edlingu.cxx.

References g_pHyphIter.

Referenced by SwView::HyphenateDocument().

◆ HasLastSentenceGotGrammarChecked()

bool SwEditShell::HasLastSentenceGotGrammarChecked ( )

Check SwSpellIter data to see if the last sentence got grammar checked.

Definition at line 597 of file edlingu.cxx.

References g_pSpellIter, and i.

Referenced by SwSpellDialogChildWindow::ApplyChangedSentence().

◆ HasNumber()

bool SwEditShell::HasNumber ( ) const

◆ HasOLEObj()

bool SwEditShell::HasOLEObj ( std::u16string_view  rName) const

◆ HasOtherCnt()

bool SwEditShell::HasOtherCnt ( ) const

◆ HyphContinue()

uno::Reference< uno::XInterface > SwEditShell::HyphContinue ( sal_uInt16 *  pPageCnt,
sal_uInt16 *  pPageSt 
HYPH_CONTINUE if hyphenation, HYPH_OK if selected area was processed.

Definition at line 781 of file edlingu.cxx.

References g_pHyphIter, SwViewShell::GetDoc(), SwViewShell::GetLayout(), SwRootFrame::GetPageNum(), SwViewShell::mnStartAction, and StartProgress().

◆ HyphEnd()

void SwEditShell::HyphEnd ( )

restore selections.

restore selections

Definition at line 768 of file edlingu.cxx.

References g_pHyphIter.

◆ HyphIgnore()

void SwEditShell::HyphIgnore ( )

ignore hyphenation

Definition at line 824 of file edlingu.cxx.

References g_pHyphIter, and SwViewShell::mnStartAction.

◆ HyphStart()

void SwEditShell::HyphStart ( SwDocPositions  eStart,
SwDocPositions  eEnd 

Save selections.

Definition at line 757 of file edlingu.cxx.

References g_pHyphIter.

◆ IgnoreGrammarErrorAt()

void SwEditShell::IgnoreGrammarErrorAt ( SwPaM rErrorPosition)

◆ InfoReadOnlyDialog()

virtual void SwEditShell::InfoReadOnlyDialog ( bool  ) const

Selected area has readonly content.

Reimplemented in SwWrtShell.

Definition at line 628 of file editsh.hxx.

Referenced by Delete().

◆ Insert() [1/2]

void SwEditShell::Insert ( const SwTOXMark rMark)

◆ Insert() [2/2]

void SwEditShell::Insert ( sal_Unicode  c,
bool  bOnlyCurrCursor = false 

◆ Insert2()

void SwEditShell::Insert2 ( const OUString &  rStr,
const bool  bForceExpandHints = false 

◆ InsertDDETable()

void SwEditShell::InsertDDETable ( const SwInsertTableOptions rInsTableOpts,
SwDDEFieldType pDDEType,
sal_uInt16  nRows,
sal_uInt16  nCols 

◆ InsertField()

bool SwEditShell::InsertField ( SwField const &  rField,
const bool  bForceExpandHints 

◆ InsertFieldType()

SwFieldType * SwEditShell::InsertFieldType ( const SwFieldType rFieldType)

◆ InsertGlobalDocContent() [1/3]

bool SwEditShell::InsertGlobalDocContent ( const SwGlblDocContent rPos)

◆ InsertGlobalDocContent() [2/3]

bool SwEditShell::InsertGlobalDocContent ( const SwGlblDocContent rPos,
const SwTOXBase rTOX 

◆ InsertGlobalDocContent() [3/3]

void SwEditShell::InsertGlobalDocContent ( const SwGlblDocContent rPos,
SwSectionData rNew 

◆ InsertGlossary()

void SwEditShell::InsertGlossary ( SwTextBlocks rGlossary,
const OUString &  rStr 

Glossary from glossary document in current document.

Styles only if not already existent.

Definition at line 39 of file edglss.cxx.

References EndAllAction(), SwCursorShell::GetCursor(), SwViewShell::GetDoc(), SwDoc::InsertGlossary(), and StartAllAction().

Referenced by SwGlossaryHdl::Expand(), and SwGlossaryHdl::InsertGlossary().

◆ InsertSection()

SwSection const * SwEditShell::InsertSection ( SwSectionData rNewData,
SfxItemSet const * const  pAttr = nullptr 

◆ InsertSoftHyph()

void SwEditShell::InsertSoftHyph ( const sal_Int32  nHyphPos)

For Inserting SoftHyphen. Position is offset within the syllabificated word.

Insert soft hyphen.

nHyphPosOffset in the to be separated word

Definition at line 817 of file edlingu.cxx.

References g_pHyphIter.

Referenced by SwHyphWrapper::InsertHyphen().

◆ InsertTable()

const SwTable & SwEditShell::InsertTable ( const SwInsertTableOptions rInsTableOpts,
sal_uInt16  nRows,
sal_uInt16  nCols,
const SwTableAutoFormat pTAFormat = nullptr 

Inserts an nRows x nCols table to the document at the current position.

Unlike the UI, this function does not move the user's cursor to the first cell of the just inserted table, use MoveTable(GotoPrevTable, fnTableStart) to do that.


Definition at line 101 of file edtab.cxx.

References END, EndAllAction(), EndUndo(), SwPosition::GetContentIndex(), SwCursorShell::GetCursor(), SwViewShell::GetDoc(), SwDoc::getIDocumentContentOperations(), SwPaM::GetPoint(), SwDoc::InsertTable(), IDocumentContentOperations::SplitNode(), START, StartAllAction(), and StartUndo().

Referenced by SwInsertDBColAutoPilot::DataToDoc(), and InsertTableImpl().

◆ InsertTableOf()

void SwEditShell::InsertTableOf ( const SwTOXBase rTOX,
const SfxItemSet pSet = nullptr 

◆ InsertTOXType()

void SwEditShell::InsertTOXType ( const SwTOXType rTyp)

Definition at line 195 of file edws.cxx.

References SwViewShell::mxDoc.

Referenced by SwTOXMgr::GetUserTypeID().

◆ InsertURL()

bool SwEditShell::InsertURL ( const SwFormatINetFormat rFormat,
const OUString &  rStr,
bool  bKeepSelection = false 

◆ IsAnyDatabaseFieldInDoc()

bool SwEditShell::IsAnyDatabaseFieldInDoc ( ) const

◆ IsAnySectionInDoc()

bool SwEditShell::IsAnySectionInDoc ( ) const

Definition at line 119 of file edsect.cxx.

References SwViewShell::GetDoc(), SwDoc::GetSections(), ToxContent, and ToxHeader.

Referenced by SwBaseShell::GetState().

◆ IsCursorInParagraphMetadataField()

bool SwEditShell::IsCursorInParagraphMetadataField ( ) const

Returns true iff the cursor is within a paragraph metadata field.

Currently there are two variants: signature and classification.

Definition at line 2057 of file edfcol.cxx.

References SwPosition::GetContentIndex(), SwCursorShell::GetCursor(), SwViewShell::GetDoc(), SwPosition::GetNode(), SwNode::GetTextNode(), index, lcl_GetParagraphMetadataFieldAtIndex(), Start, and SwPaM::Start().

Referenced by SwEditWin::KeyInput().

◆ IsExpFieldsLocked()

bool SwEditShell::IsExpFieldsLocked ( ) const

◆ IsFieldDataSourceAvailable()

bool SwEditShell::IsFieldDataSourceAvailable ( OUString &  rUsedDataSource) const

Check whether DB fields point to an available data source and returns it.

Definition at line 31 of file edfldexp.cxx.

References Database, GetDBData(), SwViewShell::GetDoc(), IDocumentFieldsAccess::GetFieldTypes(), SwDoc::getIDocumentFieldsAccess(), IsUsed(), and SwDBData::sDataSource.

◆ IsFirstOfNumRuleAtCursorPos()

bool SwEditShell::IsFirstOfNumRuleAtCursorPos ( ) const

◆ IsGlblDocSaveLinks()

bool SwEditShell::IsGlblDocSaveLinks ( ) const

◆ IsGlobalDoc()

bool SwEditShell::IsGlobalDoc ( ) const

◆ IsInsRegionAvailable()

bool SwEditShell::IsInsRegionAvailable ( ) const

◆ IsLabelDoc()

bool SwEditShell::IsLabelDoc ( ) const

◆ IsLinkedGrfSwapOut()

bool SwEditShell::IsLinkedGrfSwapOut ( ) const

◆ IsModified()

bool SwEditShell::IsModified ( ) const

◆ IsMoveLeftMargin()

bool SwEditShell::IsMoveLeftMargin ( bool  bRight,
bool  bModulus = true 
) const

◆ IsNbspRunNext()

bool SwEditShell::IsNbspRunNext ( ) const

Definition at line 1011 of file editsh.hxx.

Referenced by SwEditWin::KeyInput().

◆ IsNoNum()

bool SwEditShell::IsNoNum ( bool  bChkStart = true) const

◆ IsNumRuleStart()

bool SwEditShell::IsNumRuleStart ( SwPaM pPaM = nullptr) const

◆ IsOutlineCopyable()

bool SwEditShell::IsOutlineCopyable ( SwOutlineNodes::size_type  nIdx) const

Definition at line 627 of file ednumber.cxx.

References lcl_IsOutlineMoveAndCopyable().

Referenced by SwContentTree::FillTransferData().

◆ IsOutlineMovable()

bool SwEditShell::IsOutlineMovable ( SwOutlineNodes::size_type  nIdx) const

May an outline be moved or copied? Check whether it's in text body, not in table, and not read-only (move).

Definition at line 622 of file ednumber.cxx.

References lcl_IsOutlineMoveAndCopyable().

Referenced by SwContentType::FillMemberList(), lcl_OutlineUpDownWithSubPoints(), and SwNavigationPI::MoveOutline().

◆ IsParagraphSignatureValidationEnabled()

bool SwEditShell::IsParagraphSignatureValidationEnabled ( ) const

Returns true iff paragraph signature validation is enabled.

Definition at line 995 of file editsh.hxx.

Referenced by RestoreMetadataFieldsAndValidateParagraphSignatures(), ValidateAllParagraphSignatures(), ValidateCurrentParagraphSignatures(), and ValidateParagraphSignatures().

◆ IsProtectedOutlinePara()

bool SwEditShell::IsProtectedOutlinePara ( ) const

◆ IsRedlineOn()

bool SwEditShell::IsRedlineOn ( ) const

◆ IsTableBoxTextFormat()

bool SwEditShell::IsTableBoxTextFormat ( ) const

◆ IsTextToTableAvailable()

bool SwEditShell::IsTextToTableAvailable ( ) const

◆ IsTOXBaseReadonly()

bool SwEditShell::IsTOXBaseReadonly ( const SwTOXBase rTOXBase)

Definition at line 92 of file edtox.cxx.

References SwSection::IsProtect().

Referenced by SwContentTree::ExecuteContextMenuAction(), and IMPL_LINK().

◆ IsUpdateTOX()

bool SwEditShell::IsUpdateTOX ( ) const

Definition at line 253 of file edtox.cxx.

References SwViewShell::GetDoc(), and SwDoc::IsUpdateTOX().

◆ IsUsed()

bool SwEditShell::IsUsed ( const sw::BroadcastingModify &  rModify) const

Query if the paragraph-/character-/frame-/page-style is used.

Definition at line 137 of file edfmt.cxx.

References SwViewShell::mxDoc.

Referenced by SwWrtShell::GetTableStyle(), IMPL_LINK_NOARG(), IsAnyDatabaseFieldInDoc(), IsFieldDataSourceAvailable(), SwFieldRefPage::Reset(), and SwCaptionDialog::SwCaptionDialog().

◆ LockExpFields()

void SwEditShell::LockExpFields ( )

◆ MakeCharFormat()

SwCharFormat * SwEditShell::MakeCharFormat ( const OUString &  rName)

◆ MakeGlossary()

sal_uInt16 SwEditShell::MakeGlossary ( SwTextBlocks rToFill,
const OUString &  rName,
const OUString &  rShortName,
bool  bSaveRelFile,
const OUString *  pOnlyText 

Make current selection glossary and insert into glossary document including styles.

convert current selection into text block and add to the text block document, incl. templates

Definition at line 47 of file edglss.cxx.

References aURL, SwTextBlocks::BeginPutDoc(), SwTextBlocks::ClearDoc(), CopySelToDoc(), DeleteRedlines, SwTextBlocks::GetDoc(), SwTextBlocks::GetFileName(), SwDoc::getIDocumentRedlineAccess(), INetURLObject::NONE, NONE, SwTextBlocks::PutDoc(), SwTextBlocks::PutText(), SwTextBlocks::SetBaseURL(), and IDocumentRedlineAccess::SetRedlineFlags_intern().

Referenced by SwGlossaryHdl::NewGlossary().

◆ MakeTextFormatColl()

SwTextFormatColl * SwEditShell::MakeTextFormatColl ( const OUString &  rFormatCollName,
SwTextFormatColl pDerivedFrom = nullptr 

◆ MergeDoc()

tools::Long SwEditShell::MergeDoc ( const SwDoc rDoc)

Merge two documents.

Definition at line 893 of file editsh.cxx.

References EndAllAction(), SwViewShell::GetDoc(), SwDoc::MergeDoc(), and StartAllAction().

◆ MergeTable()

bool SwEditShell::MergeTable ( bool  bWithPrev)

◆ MoveContinuationPosToEndOfCheckedSentence()

void SwEditShell::MoveContinuationPosToEndOfCheckedSentence ( )

Moves the continuation position to the end of the currently checked sentence.

Definition at line 1081 of file edlingu.cxx.

References g_pSpellIter.

Referenced by SwSpellDialogChildWindow::GetNextWrongSentence().

◆ MoveGlobalDocContent()

bool SwEditShell::MoveGlobalDocContent ( const SwGlblDocContents rArr,
size_t  nFromPos,
size_t  nToPos,
size_t  nNewPos 

◆ MoveLeftMargin()

void SwEditShell::MoveLeftMargin ( bool  bRight,
bool  bModulus = true 

◆ MoveNumParas()

bool SwEditShell::MoveNumParas ( bool  bUpperLower,
bool  bUpperLeft 

◆ MoveOutlinePara()

bool SwEditShell::MoveOutlinePara ( SwOutlineNodes::difference_type  nOffset)

◆ MoveParagraph()

bool SwEditShell::MoveParagraph ( SwNodeOffset  nOffset = SwNodeOffset(1))

◆ NoNum()

void SwEditShell::NoNum ( )

◆ NumOrNoNum()

bool SwEditShell::NumOrNoNum ( bool  bDelete = false,
bool  bChkStart = true 

◆ NumUpDown()

void SwEditShell::NumUpDown ( bool  bDown = true)

◆ operator=()

const SwEditShell & SwEditShell::operator= ( const SwEditShell )

◆ OutlineUpDown()

bool SwEditShell::OutlineUpDown ( short  nOffset = 1)

◆ Overwrite()

void SwEditShell::Overwrite ( const OUString &  rStr)

◆ PutSpellingToSentenceStart()

void SwEditShell::PutSpellingToSentenceStart ( )

Make SpellIter start with the current sentence when called next time.

make SpellIter start with the current sentence when called next time

Definition at line 1067 of file edlingu.cxx.

References g_pSpellIter.

Referenced by SwSpellDialogChildWindow::SetGrammarChecking().

◆ Redo()

void SwEditShell::Redo ( sal_uInt16 const  nCount = 1)

◆ RejectRedline()

bool SwEditShell::RejectRedline ( SwRedlineTable::size_type  nPos)

◆ RejectRedlinesInSelection()

bool SwEditShell::RejectRedlinesInSelection ( )

◆ RemoveFieldType() [1/2]

void SwEditShell::RemoveFieldType ( size_t  nField)

◆ RemoveFieldType() [2/2]

void SwEditShell::RemoveFieldType ( SwFieldIds  nResId,
const OUString &  rName 

◆ RemoveParagraphMetadataFieldAtCursor()

bool SwEditShell::RemoveParagraphMetadataFieldAtCursor ( )

Removes the paragraph metadata field at the current cursor, if any.

Returns true iff a paragraph metadata field was removed. Currently there are two variants: signature and classification.

Definition at line 2070 of file edfcol.cxx.

References SwPosition::GetContentIndex(), SwCursorShell::GetCursor(), SwViewShell::GetDoc(), SwPosition::GetNode(), SwNode::GetTextNode(), index, lcl_GetParagraphMetadataFieldAtIndex(), Start, and SwPaM::Start().

Referenced by Delete().

◆ Repeat()

void SwEditShell::Repeat ( sal_uInt16 const  nCount)

◆ Replace()

bool SwEditShell::Replace ( const OUString &  rNewStr,
bool  bRegExpRplc 

Replace a selected range in a TextNode by given string.

Replace a selected area in a text node with a given string.

Meant for Search & Replace. bRegExpRplc - replace tabs (\t) and insert found string (not &). E.g.: Fnd: "zzz", Repl: "xx\t\\t..&..\&" --> "xx\t<Tab>..zzz..&"

Intended for "search & replace".

bRegExpRplcif <true> replace tabs (\t) and replace with found string (not &). E.g. [Fnd: "zzz", Repl: "xx\t\\t..&..\&"] --> "xx\t<Tab>..zzz..&"

Definition at line 335 of file eddel.cxx.

References EMPTY, EndAllAction(), SwCursorShell::GetCursor(), SwViewShell::GetDoc(), SwDoc::GetIDocumentUndoRedo(), SwViewShell::GetLayout(), sw::Ring< SwViewShell >::GetRingContainer(), SwCursorShell::HasReadonlySel(), sw::ReplaceImpl(), SwCursorShell::SaveTableBoxContent(), and StartAllAction().

Referenced by SwSpellPopup::Execute(), and SwTextShell::Execute().

◆ ReplaceDropText()

void SwEditShell::ReplaceDropText ( const OUString &  rStr,
SwPaM pPaM = nullptr 

◆ ReplaceNumRule()

void SwEditShell::ReplaceNumRule ( const OUString &  rOldRule,
const OUString &  rNewRule 

◆ ReRead()

void SwEditShell::ReRead ( const OUString &  rGrfName,
const OUString &  rFltName,
const Graphic pGraphic = nullptr 

◆ ResetAttr()

void SwEditShell::ResetAttr ( const o3tl::sorted_vector< sal_uInt16 > &  attrs = o3tl::sorted_vector<sal_uInt16>(),
SwPaM pCursor = nullptr 

◆ ResetModified()

void SwEditShell::ResetModified ( )

◆ RestoreMetadataFieldsAndValidateParagraphSignatures()

void SwEditShell::RestoreMetadataFieldsAndValidateParagraphSignatures ( )

◆ SaveGlossaryDoc()

sal_uInt16 SwEditShell::SaveGlossaryDoc ( SwTextBlocks rGlossary,
const OUString &  rName,
const OUString &  rShortName,
bool  bSaveRelFile,
bool  bOnlyText 

◆ SearchNumRule()

const SwNumRule * SwEditShell::SearchNumRule ( const bool  bNum,
OUString &  sListId 

Searches for a text node with a numbering rule.

in case a list style is found, <sListId> holds the list id, to which the text node belongs, which applies the found list style.

Definition at line 872 of file ednumber.cxx.

References SwCursorShell::GetCursor(), SwViewShell::GetDoc(), SwViewShell::GetLayout(), SwDoc::SearchNumRule(), and Start.

Referenced by SwTextShell::Execute(), and SwTextShell::GetState().