LibreOffice Module editeng (master)  1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
ImpEditEngine Class Reference

#include <impedit.hxx>

Inheritance diagram for ImpEditEngine:
[legend]
Collaboration diagram for ImpEditEngine:
[legend]

Public Member Functions

virtual ~ImpEditEngine () override
 
 ImpEditEngine (const ImpEditEngine &)=delete
 
ImpEditEngineoperator= (const ImpEditEngine &)=delete
 
EditUndoManagerGetUndoManager ()
 
SfxUndoManagerSetUndoManager (SfxUndoManager *pNew)
 
void SetUpdateMode (bool bUp, EditView *pCurView=nullptr, bool bForceUpdate=false)
 
bool GetUpdateMode () const
 
ViewsTypeGetEditViews ()
 
const ViewsTypeGetEditViews () const
 
const SizeGetPaperSize () const
 
void SetPaperSize (const Size &rSz)
 
void SetVertical (bool bVertical, bool bTopToBottom)
 
bool IsVertical () const
 
bool IsTopToBottom () const
 
bool IsPageOverflow () const
 
void SetFixedCellHeight (bool bUseFixedCellHeight)
 
bool IsFixedCellHeight () const
 
void SetDefaultHorizontalTextDirection (EEHorizontalTextDirection eHTextDir)
 
EEHorizontalTextDirection GetDefaultHorizontalTextDirection () const
 
void InitWritingDirections (sal_Int32 nPara)
 
bool IsRightToLeft (sal_Int32 nPara) const
 
sal_uInt8 GetRightToLeft (sal_Int32 nPara, sal_Int32 nChar, sal_Int32 *pStart=nullptr, sal_Int32 *pEnd=nullptr)
 
bool HasDifferentRTLLevels (const ContentNode *pNode)
 
void SetTextRanger (std::unique_ptr< TextRanger > pRanger)
 
TextRangerGetTextRanger () const
 
const SizeGetMinAutoPaperSize () const
 
void SetMinAutoPaperSize (const Size &rSz)
 
const SizeGetMaxAutoPaperSize () const
 
void SetMaxAutoPaperSize (const Size &rSz)
 
void FormatDoc ()
 
void FormatFullDoc ()
 
void UpdateViews (EditView *pCurView=nullptr)
 
void Paint (ImpEditView *pView, const tools::Rectangle &rRect, OutputDevice *pTargetDevice)
 
void Paint (OutputDevice *pOutDev, tools::Rectangle aClipRect, Point aStartPos, bool bStripOnly=false, short nOrientation=0)
 
bool MouseButtonUp (const MouseEvent &rMouseEvent, EditView *pView)
 
bool MouseButtonDown (const MouseEvent &rMouseEvent, EditView *pView)
 
void ReleaseMouse ()
 
bool MouseMove (const MouseEvent &rMouseEvent, EditView *pView)
 
void Command (const CommandEvent &rCEvt, EditView *pView)
 
EditSelectionEngineGetSelEngine ()
 
OUString GetSelected (const EditSelection &rSel) const
 
const SfxItemSetGetEmptyItemSet ()
 
void UpdateSelections ()
 
void EnableUndo (bool bEnable)
 
bool IsUndoEnabled () const
 
void SetUndoMode (bool b)
 
bool IsInUndo () const
 
void SetCallParaInsertedOrDeleted (bool b)
 
bool IsCallParaInsertedOrDeleted () const
 
bool IsFormatted () const
 
bool IsFormatting () const
 
void SetText (const OUString &rText)
 
EditPaM DeleteSelected (const EditSelection &rEditSelection)
 
EditPaM InsertTextUserInput (const EditSelection &rCurEditSelection, sal_Unicode c, bool bOverwrite)
 
EditPaM InsertText (const EditSelection &aCurEditSelection, const OUString &rStr)
 
EditPaM AutoCorrect (const EditSelection &rCurEditSelection, sal_Unicode c, bool bOverwrite, vcl::Window const *pFrameWin=nullptr)
 
EditPaM DeleteLeftOrRight (const EditSelection &rEditSelection, sal_uInt8 nMode, DeleteMode nDelMode)
 
EditPaM InsertParaBreak (const EditSelection &rEditSelection)
 
EditPaM InsertLineBreak (const EditSelection &aEditSelection)
 
EditPaM InsertTab (const EditSelection &rEditSelection)
 
EditPaM InsertField (const EditSelection &rCurSel, const SvxFieldItem &rFld)
 
bool UpdateFields ()
 
EditPaM Read (SvStream &rInput, const OUString &rBaseURL, EETextFormat eFormat, const EditSelection &rSel, SvKeyValueIterator *pHTTPHeaderAttrs=nullptr)
 
void Write (SvStream &rOutput, EETextFormat eFormat, const EditSelection &rSel)
 
std::unique_ptr< EditTextObjectCreateTextObject ()
 
std::unique_ptr< EditTextObjectCreateTextObject (const EditSelection &rSel)
 
void SetText (const EditTextObject &rTextObject)
 
EditSelection InsertText (const EditTextObject &rTextObject, EditSelection aSel)
 
EditSelection const & MoveCursor (const KeyEvent &rKeyEvent, EditView *pEditView)
 
EditSelection MoveParagraphs (Range aParagraphs, sal_Int32 nNewPos, EditView *pCurView)
 
sal_uInt32 CalcTextHeight (sal_uInt32 *pHeightNTP)
 
sal_uInt32 GetTextHeight () const
 
sal_uInt32 GetTextHeightNTP () const
 
sal_uInt32 CalcTextWidth (bool bIgnoreExtraSpace)
 
sal_uInt32 CalcParaWidth (sal_Int32 nParagraph, bool bIgnoreExtraSpace)
 
sal_uInt32 CalcLineWidth (ParaPortion *pPortion, EditLine *pLine, bool bIgnoreExtraSpace)
 
sal_Int32 GetLineCount (sal_Int32 nParagraph) const
 
sal_Int32 GetLineLen (sal_Int32 nParagraph, sal_Int32 nLine) const
 
void GetLineBoundaries (sal_Int32 &rStart, sal_Int32 &rEnd, sal_Int32 nParagraph, sal_Int32 nLine) const
 
sal_Int32 GetLineNumberAtIndex (sal_Int32 nPara, sal_Int32 nIndex) const
 
sal_uInt16 GetLineHeight (sal_Int32 nParagraph, sal_Int32 nLine)
 
sal_uInt32 GetParaHeight (sal_Int32 nParagraph)
 
SfxItemSet GetAttribs (sal_Int32 nPara, sal_Int32 nStart, sal_Int32 nEnd, GetAttribsFlags nFlags=GetAttribsFlags::ALL) const
 
SfxItemSet GetAttribs (EditSelection aSel, EditEngineAttribs nOnlyHardAttrib=EditEngineAttribs::All)
 
void SetAttribs (EditSelection aSel, const SfxItemSet &rSet, SetAttribsMode nSpecial=SetAttribsMode::NONE)
 
void RemoveCharAttribs (EditSelection aSel, bool bRemoveParaAttribs, sal_uInt16 nWhich)
 
void RemoveCharAttribs (sal_Int32 nPara, sal_uInt16 nWhich=0, bool bRemoveFeatures=false)
 
void SetFlatMode (bool bFlat)
 
void SetParaAttribs (sal_Int32 nPara, const SfxItemSet &rSet)
 
const SfxItemSetGetParaAttribs (sal_Int32 nPara) const
 
bool HasParaAttrib (sal_Int32 nPara, sal_uInt16 nWhich) const
 
const SfxPoolItemGetParaAttrib (sal_Int32 nPara, sal_uInt16 nWhich) const
 
template<class T >
const T & GetParaAttrib (sal_Int32 nPara, TypedWhichId< T > nWhich) const
 
tools::Rectangle PaMtoEditCursor (EditPaM aPaM, GetCursorFlags nFlags=GetCursorFlags::NONE)
 
tools::Rectangle GetEditCursor (ParaPortion *pPortion, sal_Int32 nIndex, GetCursorFlags nFlags=GetCursorFlags::NONE)
 
bool IsModified () const
 
void SetModifyFlag (bool b)
 
void SetModifyHdl (const Link< LinkParamNone *, void > &rLink)
 
const Link< LinkParamNone *, void > & GetModifyHdl () const
 
bool IsInSelectionMode () const
 
void Undo (EditView *pView)
 
void Redo (EditView *pView)
 
void InvalidateFromParagraph (sal_Int32 nFirstInvPara)
 
EditPaM InsertParagraph (sal_Int32 nPara)
 
std::unique_ptr< EditSelectionSelectParagraph (sal_Int32 nPara)
 
void SetStatusEventHdl (const Link< EditStatus &, void > &rLink)
 
const Link< EditStatus &, void > & GetStatusEventHdl () const
 
void SetNotifyHdl (const Link< EENotify &, void > &rLink)
 
const Link< EENotify &, void > & GetNotifyHdl () const
 
void FormatAndUpdate (EditView *pCurView=nullptr, bool bCalledFromUndo=false)
 
void IdleFormatAndUpdate (EditView *pCurView)
 
const svtools::ColorConfigGetColorConfig () const
 
bool IsVisualCursorTravelingEnabled ()
 
bool DoVisualCursorTraveling ()
 
EditSelection ConvertSelection (sal_Int32 nStartPara, sal_Int32 nStartPos, sal_Int32 nEndPara, sal_Int32 nEndPos)
 
EPaM CreateEPaM (const EditPaM &rPaM)
 
EditPaM CreateEditPaM (const EPaM &rEPaM)
 
ESelection CreateESel (const EditSelection &rSel)
 
EditSelection CreateSel (const ESelection &rSel)
 
void SetStyleSheetPool (SfxStyleSheetPool *pSPool)
 
SfxStyleSheetPoolGetStyleSheetPool () const
 
void SetStyleSheet (EditSelection aSel, SfxStyleSheet *pStyle)
 
void SetStyleSheet (sal_Int32 nPara, SfxStyleSheet *pStyle)
 
const SfxStyleSheetGetStyleSheet (sal_Int32 nPara) const
 
SfxStyleSheetGetStyleSheet (sal_Int32 nPara)
 
void UpdateParagraphsWithStyleSheet (SfxStyleSheet *pStyle)
 
void RemoveStyleFromParagraphs (SfxStyleSheet const *pStyle)
 
OutputDeviceGetRefDevice () const
 
void SetRefDevice (OutputDevice *pRefDef)
 
const MapModeGetRefMapMode () const
 
void SetRefMapMode (const MapMode &rMapMode)
 
InternalEditStatusGetStatus ()
 
void CallStatusHdl ()
 
void DelayedCallStatusHdl ()
 
void UndoActionStart (sal_uInt16 nId)
 
void UndoActionStart (sal_uInt16 nId, const ESelection &rSel)
 
void UndoActionEnd ()
 
EditViewGetActiveView () const
 
void SetActiveView (EditView *pView)
 
css::uno::Reference< css::linguistic2::XSpellChecker1 > const & GetSpeller ()
 
void SetSpeller (css::uno::Reference< css::linguistic2::XSpellChecker1 > const &xSpl)
 
const css::uno::Reference< css::linguistic2::XHyphenator > & GetHyphenator () const
 
void SetHyphenator (css::uno::Reference< css::linguistic2::XHyphenator > const &xHyph)
 
void GetAllMisspellRanges (std::vector< editeng::MisspellRanges > &rRanges) const
 
void SetAllMisspellRanges (const std::vector< editeng::MisspellRanges > &rRanges)
 
SpellInfoGetSpellInfo () const
 
void SetDefaultLanguage (LanguageType eLang)
 
LanguageType GetDefaultLanguage () const
 
LanguageType GetLanguage (const EditPaM &rPaM, sal_Int32 *pEndPos=nullptr) const
 
css::lang::Locale GetLocale (const EditPaM &rPaM) const
 
void DoOnlineSpelling (ContentNode *pThisNodeOnly=nullptr, bool bSpellAtCursorPos=false, bool bInterruptible=true)
 
EESpellState Spell (EditView *pEditView, bool bMultipleDoc)
 
EESpellState HasSpellErrors ()
 
void ClearSpellErrors ()
 
EESpellState StartThesaurus (EditView *pEditView)
 
css::uno::Reference< css::linguistic2::XSpellAlternatives > ImpSpell (EditView *pEditView)
 
void Convert (EditView *pEditView, LanguageType nSrcLang, LanguageType nDestLang, const vcl::Font *pDestFont, sal_Int32 nOptions, bool bIsInteractive, bool bMultipleDoc)
 
void ImpConvert (OUString &rConvTxt, LanguageType &rConvTxtLang, EditView *pEditView, LanguageType nSrcLang, const ESelection &rConvRange, bool bAllowImplicitChangesForNotConvertibleText, LanguageType nTargetLang, const vcl::Font *pTargetFont)
 
ConvInfoGetConvInfo () const
 
bool HasConvertibleTextPortion (LanguageType nLang)
 
void SetLanguageAndFont (const ESelection &rESel, LanguageType nLang, sal_uInt16 nLangWhichId, const vcl::Font *pFont, sal_uInt16 nFontWhichId)
 
bool IsInputSequenceCheckingRequired (sal_Unicode nChar, const EditSelection &rCurSel) const
 
css::uno::Reference< css::linguistic2::XSpellAlternatives > ImpFindNextError (EditSelection &rSelection)
 
bool SpellSentence (EditView const &rView, svx::SpellPortions &rToFill)
 
void PutSpellingToSentenceStart (EditView const &rEditView)
 
void ApplyChangedSentence (EditView const &rEditView, const svx::SpellPortions &rNewPortions, bool bRecheck)
 
void AddPortionIterated (EditView const &rEditView, const EditSelection &rSel, const css::uno::Reference< css::linguistic2::XSpellAlternatives > &xAlt, svx::SpellPortions &rToFill)
 
void AddPortion (const EditSelection &rSel, const css::uno::Reference< css::linguistic2::XSpellAlternatives > &xAlt, svx::SpellPortions &rToFill, bool bIsField)
 
bool Search (const SvxSearchItem &rSearchItem, EditView *pView)
 
bool ImpSearch (const SvxSearchItem &rSearchItem, const EditSelection &rSearchSelection, const EditPaM &rStartPos, EditSelection &rFoundSel)
 
sal_Int32 StartSearchAndReplace (EditView *pEditView, const SvxSearchItem &rSearchItem)
 
bool HasText (const SvxSearchItem &rSearchItem)
 
void SetEditTextObjectPool (SfxItemPool *pP)
 
SfxItemPoolGetEditTextObjectPool () const
 
const SvxNumberFormatGetNumberFormat (const ContentNode *pNode) const
 
sal_Int32 GetSpaceBeforeAndMinLabelWidth (const ContentNode *pNode, sal_Int32 *pnSpaceBefore=nullptr, sal_Int32 *pnMinLabelWidth=nullptr) const
 
const SvxLRSpaceItemGetLRSpaceItem (ContentNode *pNode)
 
SvxAdjust GetJustification (sal_Int32 nPara) const
 
SvxCellJustifyMethod GetJustifyMethod (sal_Int32 nPara) const
 
SvxCellVerJustify GetVerJustification (sal_Int32 nPara) const
 
void SetCharStretching (sal_uInt16 nX, sal_uInt16 nY)
 
void GetCharStretching (sal_uInt16 &rX, sal_uInt16 &rY) const
 
sal_Int32 GetBigTextObjectStart () const
 
EditEngineGetEditEnginePtr () const
 
void StartOnlineSpellTimer ()
 
void StopOnlineSpellTimer ()
 
const OUString & GetAutoCompleteText () const
 
void SetAutoCompleteText (const OUString &rStr, bool bUpdateTipWindow)
 
EditSelection TransliterateText (const EditSelection &rSelection, TransliterationFlags nTransliterationMode)
 
short ReplaceTextOnly (ContentNode *pNode, sal_Int32 nCurrentStart, const OUString &rText, const css::uno::Sequence< sal_Int32 > &rOffsets)
 
void SetAsianCompressionMode (CharCompressType n)
 
CharCompressType GetAsianCompressionMode () const
 
void SetKernAsianPunctuation (bool b)
 
bool IsKernAsianPunctuation () const
 
sal_Int32 GetOverflowingParaNum () const
 
sal_Int32 GetOverflowingLineNum () const
 
void ClearOverflowingParaNum ()
 
void SetAddExtLeading (bool b)
 
bool IsAddExtLeading () const
 
void SetBeginDropHdl (const Link< EditView *, void > &rLink)
 sets a link that is called at the beginning of a drag operation at an edit view More...
 
const Link< EditView *, void > & GetBeginDropHdl () const
 
void SetEndDropHdl (const Link< EditView *, void > &rLink)
 sets a link that is called at the end of a drag operation at an edit view More...
 
const Link< EditView *, void > & GetEndDropHdl () const
 
void SetFirstWordCapitalization (bool bCapitalize)
 specifies if auto-correction should capitalize the first word or not (default is on) More...
 
bool IsFirstWordCapitalization () const
 
void SetReplaceLeadingSingleQuotationMark (bool bReplace)
 specifies if auto-correction should replace a leading single quotation mark (apostrophe) or not (default is on) More...
 
bool IsReplaceLeadingSingleQuotationMark () const
 
bool IsNbspRunNext () const
 Whether last AutoCorrect inserted a NO-BREAK SPACE that may need to be removed again. More...
 
void Dispose ()
 
- Public Member Functions inherited from SfxListener
 SfxListener ()
 
 SfxListener (const SfxListener &rCopy)
 
virtual ~SfxListener () COVERITY_NOEXCEPT_FALSE
 
void StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected)
 
void EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false)
 
void EndListeningAll ()
 
bool IsListening (SfxBroadcaster &rBroadcaster) const
 
sal_uInt16 GetBroadcasterCount () const
 
SfxBroadcasterGetBroadcasterJOE (sal_uInt16 nNo) const
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 

Static Public Member Functions

static std::shared_ptr< SvxForbiddenCharactersTable > const & GetForbiddenCharsTable ()
 
static void SetForbiddenCharsTable (const std::shared_ptr< SvxForbiddenCharactersTable > &xForbiddenChars)
 

Protected Member Functions

virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override
 

Private Types

typedef EditEngine::ViewsType ViewsType
 

Private Member Functions

void CursorMoved (const ContentNode *pPrevNode)
 
void ParaAttribsChanged (ContentNode const *pNode, bool bIgnoreUndoCheck=false)
 
void TextModified ()
 
void CalcHeight (ParaPortion *pPortion)
 
void InsertUndo (std::unique_ptr< EditUndo > pUndo, bool bTryMerge=false)
 
void ResetUndoManager ()
 
bool HasUndoManager () const
 
std::unique_ptr< EditUndoSetAttribsCreateAttribUndo (EditSelection aSel, const SfxItemSet &rSet)
 
std::unique_ptr< EditTextObjectGetEmptyTextObject ()
 
EditPaM GetPaM (Point aDocPos, bool bSmart=true)
 
EditPaM GetPaM (ParaPortion *pPortion, Point aPos, bool bSmart)
 
long GetXPos (const ParaPortion *pParaPortion, const EditLine *pLine, sal_Int32 nIndex, bool bPreferPortionStart=false) const
 
long GetPortionXOffset (const ParaPortion *pParaPortion, const EditLine *pLine, sal_Int32 nTextPortion) const
 
sal_Int32 GetChar (const ParaPortion *pParaPortion, const EditLine *pLine, long nX, bool bSmart=true)
 
Range GetInvalidYOffsets (ParaPortion *pPortion)
 
Range GetLineXPosStartEnd (const ParaPortion *pParaPortion, const EditLine *pLine) const
 
void ParaAttribsToCharAttribs (ContentNode *pNode)
 
void GetCharAttribs (sal_Int32 nPara, std::vector< EECharAttrib > &rLst) const
 
std::unique_ptr< EditTextObjectCreateTextObject (EditSelection aSelection, SfxItemPool *, bool bAllowBigObjects=false, sal_Int32 nBigObjStart=0)
 
EditSelection InsertTextObject (const EditTextObject &, EditPaM aPaM)
 
EditSelection PasteText (css::uno::Reference< css::datatransfer::XTransferable > const &rxDataObj, const OUString &rBaseURL, const EditPaM &rPaM, bool bUseSpecial)
 
void CheckPageOverflow ()
 
void Clear ()
 
EditPaM RemoveText ()
 
bool CreateLines (sal_Int32 nPara, sal_uInt32 nStartPosY)
 
void CreateAndInsertEmptyLine (ParaPortion *pParaPortion)
 
bool FinishCreateLines (ParaPortion *pParaPortion)
 
void CreateTextPortions (ParaPortion *pParaPortion, sal_Int32 &rStartPos)
 
void RecalcTextPortion (ParaPortion *pParaPortion, sal_Int32 nStartPos, sal_Int32 nNewChars)
 
sal_Int32 SplitTextPortion (ParaPortion *pParaPortion, sal_Int32 nPos, EditLine *pCurLine=nullptr)
 
void SeekCursor (ContentNode *pNode, sal_Int32 nPos, SvxFont &rFont, OutputDevice *pOut=nullptr)
 
void RecalcFormatterFontMetrics (FormatterFontMetric &rCurMetrics, SvxFont &rFont)
 
void CheckAutoPageSize ()
 
void ImpBreakLine (ParaPortion *pParaPortion, EditLine *pLine, TextPortion const *pPortion, sal_Int32 nPortionStart, long nRemainingWidth, bool bCanHyphenate)
 
void ImpAdjustBlocks (ParaPortion *pParaPortion, EditLine *pLine, long nRemainingSpace)
 
EditPaM ImpConnectParagraphs (ContentNode *pLeft, ContentNode *pRight, bool bBackward=false)
 
EditPaM ImpDeleteSelection (const EditSelection &rCurSel)
 
EditPaM ImpInsertParaBreak (EditPaM &rPaM, bool bKeepEndingAttribs=true)
 
EditPaM ImpInsertParaBreak (const EditSelection &rEditSelection)
 
EditPaM ImpInsertText (const EditSelection &aCurEditSelection, const OUString &rStr)
 
EditPaM ImpInsertFeature (const EditSelection &rCurSel, const SfxPoolItem &rItem)
 
void ImpRemoveChars (const EditPaM &rPaM, sal_Int32 nChars)
 
void ImpRemoveParagraph (sal_Int32 nPara)
 
EditSelection ImpMoveParagraphs (Range aParagraphs, sal_Int32 nNewPos)
 
EditPaM ImpFastInsertText (EditPaM aPaM, const OUString &rStr)
 
EditPaM ImpFastInsertParagraph (sal_Int32 nPara)
 
bool ImpCheckRefMapMode ()
 
bool ImplHasText () const
 
void ImpFindKashidas (ContentNode *pNode, sal_Int32 nStart, sal_Int32 nEnd, std::vector< sal_Int32 > &rArray)
 
void InsertContent (ContentNode *pNode, sal_Int32 nPos)
 
EditPaM SplitContent (sal_Int32 nNode, sal_Int32 nSepPos)
 
EditPaM ConnectContents (sal_Int32 nLeftNode, bool bBackward)
 
void ShowParagraph (sal_Int32 nParagraph, bool bShow)
 
EditPaM PageUp (const EditPaM &rPaM, EditView const *pView)
 
EditPaM PageDown (const EditPaM &rPaM, EditView const *pView)
 
EditPaM CursorUp (const EditPaM &rPaM, EditView const *pEditView)
 
EditPaM CursorDown (const EditPaM &rPaM, EditView const *pEditView)
 
EditPaM CursorLeft (const EditPaM &rPaM, sal_uInt16 nCharacterIteratorMode=css::i18n::CharacterIteratorMode::SKIPCELL)
 
EditPaM CursorRight (const EditPaM &rPaM, sal_uInt16 nCharacterIteratorMode=css::i18n::CharacterIteratorMode::SKIPCELL)
 
EditPaM CursorStartOfLine (const EditPaM &rPaM)
 
EditPaM CursorEndOfLine (const EditPaM &rPaM)
 
EditPaM CursorStartOfDoc ()
 
EditPaM CursorEndOfDoc ()
 
EditPaM WordLeft (const EditPaM &rPaM)
 
EditPaM WordRight (const EditPaM &rPaM, sal_Int16 nWordType=css::i18n::WordType::ANYWORD_IGNOREWHITESPACES)
 
EditPaM StartOfWord (const EditPaM &rPaM)
 
EditPaM EndOfWord (const EditPaM &rPaM)
 
EditSelection SelectWord (const EditSelection &rCurSelection, sal_Int16 nWordType=css::i18n::WordType::ANYWORD_IGNOREWHITESPACES, bool bAcceptStartOfWord=true)
 
EditSelection SelectSentence (const EditSelection &rCurSel) const
 
EditPaM CursorVisualLeftRight (EditView const *pEditView, const EditPaM &rPaM, sal_uInt16 nCharacterIteratorMode, bool bToLeft)
 
EditPaM CursorVisualStartEnd (EditView const *pEditView, const EditPaM &rPaM, bool bStart)
 
void InitScriptTypes (sal_Int32 nPara)
 
sal_uInt16 GetI18NScriptType (const EditPaM &rPaM, sal_Int32 *pEndPos=nullptr) const
 
SvtScriptType GetItemScriptType (const EditSelection &rSel) const
 
bool IsScriptChange (const EditPaM &rPaM) const
 
bool HasScriptType (sal_Int32 nPara, sal_uInt16 nType) const
 
bool ImplCalcAsianCompression (ContentNode *pNode, TextPortion *pTextPortion, sal_Int32 nStartPos, long *pDXArray, sal_uInt16 n100thPercentFromMax, bool bManipulateDXArray)
 
void ImplExpandCompressedPortions (EditLine *pLine, ParaPortion *pParaPortion, long nRemainingWidth)
 
void ImplInitLayoutMode (OutputDevice *pOutDev, sal_Int32 nPara, sal_Int32 nIndex)
 
LanguageType ImplCalcDigitLang (LanguageType eCurLang) const
 
void ImplInitDigitMode (OutputDevice *pOutDev, LanguageType eLang)
 
EditPaM ReadText (SvStream &rInput, EditSelection aSel)
 
EditPaM ReadRTF (SvStream &rInput, EditSelection aSel)
 
EditPaM ReadXML (SvStream &rInput, EditSelection aSel)
 
EditPaM ReadHTML (SvStream &rInput, const OUString &rBaseURL, EditSelection aSel, SvKeyValueIterator *pHTTPHeaderAttrs)
 
ErrCode WriteText (SvStream &rOutput, EditSelection aSel)
 
ErrCode WriteRTF (SvStream &rOutput, EditSelection aSel)
 
void WriteXML (SvStream &rOutput, const EditSelection &rSel)
 
void WriteItemAsRTF (const SfxPoolItem &rItem, SvStream &rOutput, sal_Int32 nPara, sal_Int32 nPos, std::vector< std::unique_ptr< SvxFontItem >> &rFontTable, SvxColorList &rColorList)
 
bool WriteItemListAsRTF (ItemList &rLst, SvStream &rOutput, sal_Int32 nPara, sal_Int32 nPos, std::vector< std::unique_ptr< SvxFontItem >> &rFontTable, SvxColorList &rColorList)
 
sal_Int32 LogicToTwips (sal_Int32 n)
 
short GetXValue (short nXValue) const
 
long GetXValue (long nXValue) const
 
short GetYValue (short nYValue) const
 
sal_uInt16 GetYValue (sal_uInt16 nYValue) const
 
ContentNodeGetPrevVisNode (ContentNode const *pCurNode)
 
ContentNodeGetNextVisNode (ContentNode const *pCurNode)
 
const ParaPortionGetPrevVisPortion (const ParaPortion *pCurPortion) const
 
const ParaPortionGetNextVisPortion (const ParaPortion *pCurPortion) const
 
void SetBackgroundColor (const Color &rColor)
 
const ColorGetBackgroundColor () const
 
long CalcVertLineSpacing (Point &rStartPos) const
 
Color GetAutoColor () const
 
void EnableAutoColor (bool b)
 
bool IsAutoColorEnabled () const
 
void ForceAutoColor (bool b)
 
bool IsForceAutoColor () const
 
VirtualDeviceGetVirtualDevice (const MapMode &rMapMode, DrawModeFlags nDrawMode)
 
void EraseVirtualDevice ()
 
 DECL_LINK (StatusTimerHdl, Timer *, void)
 
 DECL_LINK (IdleFormatHdl, Timer *, void)
 
 DECL_LINK (OnlineSpellHdl, Timer *, void)
 
 DECL_LINK (DocModified, LinkParamNone *, void)
 
void CheckIdleFormatter ()
 
const ParaPortionFindParaPortion (const ContentNode *pNode) const
 
ParaPortionFindParaPortion (ContentNode const *pNode)
 
css::uno::Reference< css::datatransfer::XTransferable > CreateTransferable (const EditSelection &rSelection)
 
void SetValidPaperSize (const Size &rSz)
 
css::uno::Reference< css::i18n::XBreakIterator > const & ImplGetBreakIterator () const
 
css::uno::Reference< css::i18n::XExtendedInputSequenceChecker > const & ImplGetInputSequenceChecker () const
 
void ImplUpdateOverflowingParaNum (sal_uInt32)
 
void ImplUpdateOverflowingLineNum (sal_uInt32, sal_uInt32, sal_uInt32)
 
void CreateSpellInfo (bool bMultipleDocs)
 
ViewShellId CreateViewShellId ()
 Obtains a view shell ID from the active EditView. More...
 
 ImpEditEngine (EditEngine *pEditEngine, SfxItemPool *pPool)
 
void InitDoc (bool bKeepParaAttribs)
 
EditDocGetEditDoc ()
 
const EditDocGetEditDoc () const
 
const ParaPortionListGetParaPortions () const
 
ParaPortionListGetParaPortions ()
 

Static Private Member Functions

static EditPaM CursorStartOfParagraph (const EditPaM &rPaM)
 
static EditPaM CursorEndOfParagraph (const EditPaM &rPaM)
 
static OUString convertDigits (const OUString &rString, sal_Int32 nStt, sal_Int32 nLen, LanguageType eDigitLang)
 

Private Attributes

std::shared_ptr< editeng::SharedVclResourcespSharedVCL
 
ParaPortionList aParaPortionList
 
Size aPaperSize
 
Size aMinAutoPaperSize
 
Size aMaxAutoPaperSize
 
EditDoc aEditDoc
 
EditEnginepEditEngine
 
ViewsType aEditViews
 
EditViewpActiveView
 
std::unique_ptr< TextRangerpTextRanger
 
SfxStyleSheetPoolpStylePool
 
SfxItemPoolpTextObjectPool
 
VclPtr< VirtualDevicepVirtDev
 
VclPtr< OutputDevicepRefDev
 
VclPtr< VirtualDevicempOwnDev
 
svtools::ColorConfig maColorConfig
 
std::unique_ptr< SvtCTLOptionspCTLOptions
 
std::unique_ptr< SfxItemSetpEmptyItemSet
 
EditUndoManagerpUndoManager
 
std::unique_ptr< ESelectionpUndoMarkSelection
 
std::unique_ptr< ImplIMEInfosmpIMEInfos
 
OUString aWordDelimiters
 
EditSelFunctionSet aSelFuncSet
 
EditSelectionEngine aSelEngine
 
Color maBackgroundColor
 
sal_uInt16 nStretchX
 
sal_uInt16 nStretchY
 
CharCompressType nAsianCompressionMode
 
EEHorizontalTextDirection eDefaultHorizontalTextDirection
 
sal_Int32 nBigTextObjectStart
 
css::uno::Reference< css::linguistic2::XSpellChecker1 > xSpeller
 
css::uno::Reference< css::linguistic2::XHyphenator > xHyphenator
 
std::unique_ptr< SpellInfopSpellInfo
 
css::uno::Reference< css::i18n::XBreakIterator > xBI
 
css::uno::Reference< css::i18n::XExtendedInputSequenceChecker > xISC
 
std::unique_ptr< ConvInfopConvInfo
 
OUString aAutoCompleteText
 
InternalEditStatus aStatus
 
LanguageType eDefLanguage
 
OnDemandLocaleDataWrapper xLocaleDataWrapper
 
OnDemandTransliterationWrapper xTransliterationWrapper
 
std::vector< std::unique_ptr< DeletedNodeInfo > > aDeletedNodes
 
tools::Rectangle aInvalidRect
 
sal_uInt32 nCurTextHeight
 
sal_uInt32 nCurTextHeightNTP
 
sal_uInt16 nOnePixelInRef
 
IdleFormattter aIdleFormatter
 
Timer aOnlineSpellTimer
 
sal_Int32 mnOverflowingPara = -1
 
sal_Int32 mnOverflowingLine = -1
 
bool mbNeedsChainingHandling = false
 
Timer aStatusTimer
 
Link< EditStatus &, voidaStatusHdlLink
 
Link< EENotify &, voidaNotifyHdl
 
Link< HtmlImportInfo &, voidaHtmlImportHdl
 
Link< RtfImportInfo &, voidaRtfImportHdl
 
Link< MoveParagraphsInfo &, voidaBeginMovingParagraphsHdl
 
Link< MoveParagraphsInfo &, voidaEndMovingParagraphsHdl
 
Link< PasteOrDropInfos &, voidaBeginPasteOrDropHdl
 
Link< PasteOrDropInfos &, voidaEndPasteOrDropHdl
 
Link< LinkParamNone *, voidaModifyHdl
 
Link< EditView *, voidmaBeginDropHdl
 
Link< EditView *, voidmaEndDropHdl
 
bool bKernAsianPunctuation:1
 
bool bAddExtLeading:1
 
bool bIsFormatting:1
 
bool bFormatted:1
 
bool bInSelection:1
 
bool bIsInUndo:1
 
bool bUpdate:1
 
bool bUndoEnabled:1
 
bool bDowning:1
 
bool bUseAutoColor:1
 
bool bForceAutoColor:1
 
bool bCallParaInsertedOrDeleted:1
 
bool bFirstWordCapitalization:1
 
bool mbLastTryMerge:1
 
bool mbReplaceLeadingSingleQuotationMark:1
 
bool mbNbspRunNext
 

Friends

class EditEngine
 
class EditDbg
 

Detailed Description

Definition at line 420 of file impedit.hxx.

Member Typedef Documentation

Definition at line 425 of file impedit.hxx.

Constructor & Destructor Documentation

ImpEditEngine::ImpEditEngine ( EditEngine pEditEngine,
SfxItemPool pPool 
)
private
ImpEditEngine::~ImpEditEngine ( )
overridevirtual
ImpEditEngine::ImpEditEngine ( const ImpEditEngine )
delete

Member Function Documentation

void ImpEditEngine::AddPortion ( const EditSelection rSel,
const css::uno::Reference< css::linguistic2::XSpellAlternatives > &  xAlt,
svx::SpellPortions rToFill,
bool  bIsField 
)
void ImpEditEngine::AddPortionIterated ( EditView const &  rEditView,
const EditSelection rSel,
const css::uno::Reference< css::linguistic2::XSpellAlternatives > &  xAlt,
svx::SpellPortions rToFill 
)
void ImpEditEngine::ApplyChangedSentence ( EditView const &  rEditView,
const svx::SpellPortions rNewPortions,
bool  bRecheck 
)
EditPaM ImpEditEngine::AutoCorrect ( const EditSelection rCurEditSelection,
sal_Unicode  c,
bool  bOverwrite,
vcl::Window const *  pFrameWin = nullptr 
)

Definition at line 2513 of file impedit2.cxx.

Referenced by Command().

void ImpEditEngine::CalcHeight ( ParaPortion pPortion)
private
sal_uInt32 ImpEditEngine::CalcLineWidth ( ParaPortion pPortion,
EditLine pLine,
bool  bIgnoreExtraSpace 
)

Definition at line 3187 of file impedit2.cxx.

References nPos.

sal_uInt32 ImpEditEngine::CalcParaWidth ( sal_Int32  nParagraph,
bool  bIgnoreExtraSpace 
)

Definition at line 3132 of file impedit2.cxx.

sal_uInt32 ImpEditEngine::CalcTextHeight ( sal_uInt32 *  pHeightNTP)
sal_uInt32 ImpEditEngine::CalcTextWidth ( bool  bIgnoreExtraSpace)

Definition at line 3112 of file impedit2.cxx.

Referenced by CheckAutoPageSize().

long ImpEditEngine::CalcVertLineSpacing ( Point rStartPos) const
private
void ImpEditEngine::CallStatusHdl ( )
void ImpEditEngine::CheckAutoPageSize ( )
private
void ImpEditEngine::CheckIdleFormatter ( )
private

Definition at line 344 of file impedit3.cxx.

References aIdleFormatter, IdleFormattter::ForceTimeout(), FormatDoc(), and IsFormatted().

Referenced by MoveCursor(), and WriteRTF().

void ImpEditEngine::CheckPageOverflow ( )
private
void ImpEditEngine::Clear ( )
private
void ImpEditEngine::ClearOverflowingParaNum ( )
inline

Definition at line 1028 of file impedit.hxx.

void ImpEditEngine::ClearSpellErrors ( )

Definition at line 2417 of file impedit4.cxx.

References aEditDoc, and EditDoc::ClearSpellErrors().

void ImpEditEngine::Command ( const CommandEvent rCEvt,
EditView pView 
)

Definition at line 350 of file impedit2.cxx.

References ESelection::Adjust(), AutoCorrect(), CH_FEATURE, SelectionEngine::Command(), ContentNode::Copy(), CreateESel(), EditView::DeleteSelected(), DeleteSelected(), EDITUNDO_INSERT, EndOfLine, EditLineList::FindLine(), FindParaPortion(), FormatAndUpdate(), FormatDoc(), ContentNode::GetChar(), CommandEvent::GetCommand(), CommandExtTextInputData::GetCursorPos(), GetEditCursor(), GetEditDoc(), ImpEditView::GetEditSelection(), CommandSelectionChangeData::GetEnd(), EditLine::GetEnd(), CommandEvent::GetExtTextInputData(), EditView::GetImpEditView(), EditPaM::GetIndex(), ParaPortion::GetLines(), EditPaM::GetNode(), GetParaPortions(), EditView::GetSelection(), CommandEvent::GetSelectionChangeData(), GetSelEngine(), CommandSelectionChangeData::GetStart(), GetStatus(), CommandExtTextInputData::GetText(), CommandExtTextInputData::GetTextAttr(), EditEngine::GetTextLen(), EditView::GetWindow(), ImpEditView::GetWindowPos(), EditView::HasSelection(), EditView::HideCursor(), i, ImpInsertText(), CommandExtTextInputData::IsCursorOverwrite(), CommandExtTextInputData::IsCursorVisible(), IsFormatted(), EditView::IsInsertMode(), CommandExtTextInputData::IsOnlyCursorChanged(), tools::Rectangle::Left(), ParaPortion::MarkSelectionInvalid(), EditSelection::Max(), EditSelection::Min(), mpIMEInfos, ESelection::nEndPara, ESelection::nEndPos, ESelection::nStartPara, ESelection::nStartPos, PaMtoEditCursor(), pEditEngine, EditView::pImpEditView, ParaPortionList::SafeGetObject(), SetActiveView(), vcl::Window::SetCompositionCharRect(), vcl::Window::SetCursorRect(), EditSelectionEngine::SetCurView(), EditPaM::SetIndex(), EditView::SetInsertMode(), EditView::SetSelection(), EditView::ShowCursor(), UndoActionEnd(), and UndoActionStart().

EditPaM ImpEditEngine::ConnectContents ( sal_Int32  nLeftNode,
bool  bBackward 
)
private

Definition at line 3920 of file impedit3.cxx.

References aEditDoc, DBG_ASSERT, EditDoc::GetObject(), and ImpConnectParagraphs().

void ImpEditEngine::Convert ( EditView pEditView,
LanguageType  nSrcLang,
LanguageType  nDestLang,
const vcl::Font pDestFont,
sal_Int32  nOptions,
bool  bIsInteractive,
bool  bMultipleDoc 
)

! optimization does not work since when update mode is false ! the object is 'lying' about it portions, paragraphs, ! EndPaM... later on. ! Should not be a great problem since text boxes or cells in ! Calc usually have only a rather short text.

Definition at line 1507 of file impedit4.cxx.

References EditSelection::Adjust(), aEditDoc, TextConvWrapper::Convert(), LanguageTag::convertToLocale(), CreateEPaM(), vcl::Window::GetFrameWeld(), EditPaM::GetIndex(), EditDoc::GetStartPaM(), EditView::GetWindow(), ImplGetBreakIterator(), editeng::HangulHanjaConversion::IsChinese(), Min, pConvInfo, EditView::pImpEditView, SelectWord(), and EditView::ShowCursor().

OUString ImpEditEngine::convertDigits ( const OUString &  rString,
sal_Int32  nStt,
sal_Int32  nLen,
LanguageType  eDigitLang 
)
staticprivate

Definition at line 4344 of file impedit3.cxx.

References aBuf, and GetLocalizedChar().

Referenced by Paint().

EditSelection ImpEditEngine::ConvertSelection ( sal_Int32  nStartPara,
sal_Int32  nStartPos,
sal_Int32  nEndPara,
sal_Int32  nEndPos 
)
void ImpEditEngine::CreateAndInsertEmptyLine ( ParaPortion pParaPortion)
private
std::unique_ptr< EditUndoSetAttribs > ImpEditEngine::CreateAttribUndo ( EditSelection  aSel,
const SfxItemSet rSet 
)
private
EditPaM ImpEditEngine::CreateEditPaM ( const EPaM rEPaM)
inline

Definition at line 1066 of file impedit.hxx.

References aEditDoc, EditDoc::Count(), DBG_ASSERT, EPaM::nIndex, and EPaM::nPara.

Referenced by ImpConvert(), and lcl_DoSetSelection().

EPaM ImpEditEngine::CreateEPaM ( const EditPaM rPaM)
inline
ESelection ImpEditEngine::CreateESel ( const EditSelection rSel)
inline
bool ImpEditEngine::CreateLines ( sal_Int32  nPara,
sal_uInt32  nStartPosY 
)
private

Definition at line 598 of file impedit3.cxx.

References Size::AdjustWidth(), aEditDoc, aMaxAutoPaperSize, aPaperSize, TextPortionList::Append(), EditLineList::Append(), aStatus, TabInfo::aTabStop, InternalEditStatus::AutoPageHeight(), InternalEditStatus::AutoPageWidth(), ExtraPortionInfo::bCompressed, Block, Bottom, TabInfo::bValid, EditLine::CalcTextSize(), Center, CH_FEATURE, ParaPortion::CorrectValuesBehindLastFormattedLine(), Count, TextPortionList::Count(), EditLineList::Count(), CreateAndInsertEmptyLine(), CreateTextPortions(), DBG_ASSERT, Decimal, EditLineList::DeleteFromLine(), Distribute, InternalEditStatus::DoStretch(), EE_FEATURE_FIELD, EE_FEATURE_LINEBR, EE_FEATURE_TAB, EE_PARA_ASIANCJKSPACING, EE_PARA_HYPHENATE, EE_PARA_SBL, FIELD, CharAttribList::FindFeature(), ContentAttribs::FindTabStop(), FinishCreateLines(), Fix, SvxTabStop::GetAdjustment(), GetAsianCompressionMode(), TextRanger::GetBoundRect(), EditEngine::GetBulletArea(), ParaPortion::GetBulletX(), ContentNode::GetCharAttribs(), EditLine::GetCharPosArray(), ContentNode::GetContentAttribs(), SvxTabStop::GetDecimal(), CharAttribList::GetDefFont(), EditDoc::GetDefTab(), GetEditCursor(), GetEditEnginePtr(), EditLine::GetEnd(), EditLine::GetEndPortion(), TextPortion::GetExtraInfos(), SvxTabStop::GetFill(), FormatterFontMetric::GetHeight(), EditLine::GetHeight(), GetI18NScriptType(), SvxLineSpacingItem::GetInterLineSpaceRule(), ParaPortion::GetInvalidDiff(), ParaPortion::GetInvalidPosStart(), EditCharAttrib::GetItem(), ContentAttribs::GetItem(), GetJustification(), GetJustifyMethod(), TextPortion::GetKind(), TextPortion::GetLen(), EditLine::GetLen(), SvxLineSpacingItem::GetLineHeight(), ParaPortion::GetLines(), SvxLineSpacingItem::GetLineSpaceRule(), GetLocale(), GetLRSpaceItem(), EditLine::GetMaxAscent(), ParaPortion::GetNode(), GetPaperSize(), GetParaPortions(), SvxLineSpacingItem::GetPropLineSpace(), GetRefDevice(), SvxLRSpaceItem::GetRight(), GetRightToLeft(), GetSelected(), TextPortion::GetSize(), GetSpaceBeforeAndMinLabelWidth(), EditCharAttrib::GetStart(), EditLine::GetStart(), EditLine::GetStartPortion(), EditLine::GetStartPosX(), ContentNode::GetString(), SvxTabStop::GetTabPos(), SvxLRSpaceItem::GetTextFirstLineOfst(), SvxLRSpaceItem::GetTextLeft(), ParaPortion::GetTextPortions(), GetTextRanger(), TextRanger::GetTextRanges(), EditLine::GetTxtHeight(), GetXValue(), GetYValue(), HasScriptType(), Size::Height(), HYPHENATOR, ImpAdjustBlocks(), ImpBreakLine(), ImpCheckRefMapMode(), ImplCalcAsianCompression(), ImplCalculateFontIndependentLineSpacing(), ImplExpandCompressedPortions(), ImplGetBreakIterator(), ImplInitDigitMode(), ImplInitLayoutMode(), EditLineList::Insert(), IsFixedCellHeight(), EditLine::IsHangingPunctuation(), ParaPortion::IsInvalid(), InternalEditStatus::IsOutliner(), IsRightToLeft(), IsScriptChange(), ParaPortion::IsSimpleInvalid(), IsVertical(), ParaPortion::IsVisible(), tools::Rectangle::IsWidthEmpty(), Left, ContentNode::Len(), LINEBREAK, ExtraPortionInfo::lineBreaksList, Min, nLength, FormatterFontMetric::nMaxAscent, ExtraPortionInfo::nOrgWidth, nPos, TabInfo::nStartPosX, nStretchX, TabInfo::nTabPortion, TabInfo::nTabPos, InternalEditStatus::OneCharPerLine(), OutputDevice::Pop(), pRefDev, Prop, OutputDevice::Push(), RecalcFormatterFontMetrics(), RecalcTextPortion(), TextPortionList::Remove(), TextPortionList::Reset(), EditLineList::Reset(), tools::Rectangle::Right(), Right, SAL_WARN, SAL_WARN_IF, SeekCursor(), ParaPortion::SetBulletX(), EditLine::SetEnd(), EditLine::SetEndPortion(), TextPortion::SetExtraInfos(), TextPortion::SetExtraValue(), Size::setHeight(), EditLine::SetHeight(), EditLine::SetInvalid(), TextPortion::SetKind(), TextPortion::SetLen(), EditLine::SetMaxAscent(), TextPortion::SetRightToLeftLevel(), EditLine::SetStart(), EditLine::SetStartPortion(), EditLine::SetStartPosX(), EditLine::SetTextWidth(), EditLine::SetValid(), TextRanger::SetVertical(), Size::setWidth(), SplitTextPortion(), TAB, TEXT, Top, SfxPoolItem::Which(), Size::Width(), and Width.

Referenced by CheckAutoPageSize(), FormatDoc(), and ShowParagraph().

EditSelection ImpEditEngine::CreateSel ( const ESelection rSel)
inline
void ImpEditEngine::CreateSpellInfo ( bool  bMultipleDocs)
private

Definition at line 1410 of file impedit4.cxx.

References EE_INDEX_NOT_FOUND, EE_PARA_NOT_FOUND, and pSpellInfo.

Referenced by Spell(), and SpellSentence().

std::unique_ptr< EditTextObject > ImpEditEngine::CreateTextObject ( EditSelection  aSelection,
SfxItemPool pPool,
bool  bAllowBigObjects = false,
sal_Int32  nBigObjStart = 0 
)
private
std::unique_ptr< EditTextObject > ImpEditEngine::CreateTextObject ( )
std::unique_ptr< EditTextObject > ImpEditEngine::CreateTextObject ( const EditSelection rSel)
void ImpEditEngine::CreateTextPortions ( ParaPortion pParaPortion,
sal_Int32 &  rStartPos 
)
private
uno::Reference< datatransfer::XTransferable > ImpEditEngine::CreateTransferable ( const EditSelection rSelection)
private
ViewShellId ImpEditEngine::CreateViewShellId ( )
private

Obtains a view shell ID from the active EditView.

Definition at line 224 of file impedit5.cxx.

EditPaM ImpEditEngine::CursorDown ( const EditPaM rPaM,
EditView const *  pEditView 
)
private
EditPaM ImpEditEngine::CursorEndOfDoc ( )
private
EditPaM ImpEditEngine::CursorEndOfLine ( const EditPaM rPaM)
private
EditPaM ImpEditEngine::CursorEndOfParagraph ( const EditPaM rPaM)
staticprivate

Definition at line 1371 of file impedit2.cxx.

References EditPaM::GetNode(), ContentNode::Len(), and EditPaM::SetIndex().

Referenced by MoveCursor().

EditPaM ImpEditEngine::CursorLeft ( const EditPaM rPaM,
sal_uInt16  nCharacterIteratorMode = css::i18n::CharacterIteratorMode::SKIPCELL 
)
private
void ImpEditEngine::CursorMoved ( const ContentNode pPrevNode)
private
EditPaM ImpEditEngine::CursorRight ( const EditPaM rPaM,
sal_uInt16  nCharacterIteratorMode = css::i18n::CharacterIteratorMode::SKIPCELL 
)
private
EditPaM ImpEditEngine::CursorStartOfDoc ( )
private

Definition at line 1378 of file impedit2.cxx.

References aEditDoc, and EditDoc::GetObject().

Referenced by MoveCursor().

EditPaM ImpEditEngine::CursorStartOfLine ( const EditPaM rPaM)
private
EditPaM ImpEditEngine::CursorStartOfParagraph ( const EditPaM rPaM)
staticprivate

Definition at line 1364 of file impedit2.cxx.

References EditPaM::SetIndex().

Referenced by MoveCursor().

EditPaM ImpEditEngine::CursorUp ( const EditPaM rPaM,
EditView const *  pEditView 
)
private
EditPaM ImpEditEngine::CursorVisualLeftRight ( EditView const *  pEditView,
const EditPaM rPaM,
sal_uInt16  nCharacterIteratorMode,
bool  bToLeft 
)
private
EditPaM ImpEditEngine::CursorVisualStartEnd ( EditView const *  pEditView,
const EditPaM rPaM,
bool  bStart 
)
private
ImpEditEngine::DECL_LINK ( StatusTimerHdl  ,
Timer ,
void   
)
private
ImpEditEngine::DECL_LINK ( IdleFormatHdl  ,
Timer ,
void   
)
private
ImpEditEngine::DECL_LINK ( OnlineSpellHdl  ,
Timer ,
void   
)
private
ImpEditEngine::DECL_LINK ( DocModified  ,
LinkParamNone ,
void   
)
private
void ImpEditEngine::DelayedCallStatusHdl ( )
inline

Definition at line 916 of file impedit.hxx.

References Timer::Start().

EditPaM ImpEditEngine::DeleteLeftOrRight ( const EditSelection rEditSelection,
sal_uInt8  nMode,
DeleteMode  nDelMode 
)
EditPaM ImpEditEngine::DeleteSelected ( const EditSelection rEditSelection)

Definition at line 269 of file impedit2.cxx.

References ImpDeleteSelection().

Referenced by Command().

void ImpEditEngine::Dispose ( )
void ImpEditEngine::DoOnlineSpelling ( ContentNode pThisNodeOnly = nullptr,
bool  bSpellAtCursorPos = false,
bool  bInterruptible = true 
)
bool ImpEditEngine::DoVisualCursorTraveling ( )

Definition at line 4339 of file impedit2.cxx.

Referenced by MoveCursor().

void ImpEditEngine::EnableAutoColor ( bool  b)
inlineprivate

Definition at line 687 of file impedit.hxx.

References bUseAutoColor.

void ImpEditEngine::EnableUndo ( bool  bEnable)

Definition at line 283 of file impedit5.cxx.

Referenced by SetText().

EditPaM ImpEditEngine::EndOfWord ( const EditPaM rPaM)
private
void ImpEditEngine::EraseVirtualDevice ( )
inlineprivate

Definition at line 693 of file impedit.hxx.

References VclPtr< VirtualDevice >::disposeAndClear().

const ParaPortion * ImpEditEngine::FindParaPortion ( const ContentNode pNode) const
inlineprivate
ParaPortion * ImpEditEngine::FindParaPortion ( ContentNode const *  pNode)
inlineprivate

Definition at line 1158 of file impedit.hxx.

References aEditDoc, Count, DBG_ASSERT, GetParaPortions(), EditDoc::GetPos(), and nPos.

bool ImpEditEngine::FinishCreateLines ( ParaPortion pParaPortion)
private
void ImpEditEngine::ForceAutoColor ( bool  b)
inlineprivate

Definition at line 689 of file impedit.hxx.

References bForceAutoColor.

void ImpEditEngine::FormatAndUpdate ( EditView pCurView = nullptr,
bool  bCalledFromUndo = false 
)
void ImpEditEngine::FormatDoc ( )
void ImpEditEngine::FormatFullDoc ( )
EditView* ImpEditEngine::GetActiveView ( ) const
inline

Definition at line 922 of file impedit.hxx.

References pActiveView.

Referenced by SetCharStretching(), SetFixedCellHeight(), SetTextRanger(), SetVertical(), and ShowParagraph().

void ImpEditEngine::GetAllMisspellRanges ( std::vector< editeng::MisspellRanges > &  rRanges) const
CharCompressType ImpEditEngine::GetAsianCompressionMode ( ) const
inline

Definition at line 1021 of file impedit.hxx.

References nAsianCompressionMode.

Referenced by CreateLines(), and ImplCalcAsianCompression().

SfxItemSet ImpEditEngine::GetAttribs ( sal_Int32  nPara,
sal_Int32  nStart,
sal_Int32  nEnd,
GetAttribsFlags  nFlags = GetAttribsFlags::ALL 
) const

Definition at line 398 of file impedit5.cxx.

Referenced by WriteRTF().

SfxItemSet ImpEditEngine::GetAttribs ( EditSelection  aSel,
EditEngineAttribs  nOnlyHardAttrib = EditEngineAttribs::All 
)

Definition at line 310 of file impedit5.cxx.

Color ImpEditEngine::GetAutoColor ( ) const
private
const OUString& ImpEditEngine::GetAutoCompleteText ( ) const
inline

Definition at line 1014 of file impedit.hxx.

References aAutoCompleteText.

Referenced by MouseButtonDown().

const Color& ImpEditEngine::GetBackgroundColor ( ) const
inlineprivate

Definition at line 682 of file impedit.hxx.

References maBackgroundColor.

Referenced by GetAutoColor(), Paint(), and SeekCursor().

const Link<EditView*,void>& ImpEditEngine::GetBeginDropHdl ( ) const
inline

Definition at line 1039 of file impedit.hxx.

References maBeginDropHdl.

sal_Int32 ImpEditEngine::GetBigTextObjectStart ( ) const
inline

Definition at line 1007 of file impedit.hxx.

References nBigTextObjectStart.

sal_Int32 ImpEditEngine::GetChar ( const ParaPortion pParaPortion,
const EditLine pLine,
long  nX,
bool  bSmart = true 
)
private
void ImpEditEngine::GetCharAttribs ( sal_Int32  nPara,
std::vector< EECharAttrib > &  rLst 
) const
private

Definition at line 738 of file impedit5.cxx.

Referenced by CursorMoved(), and Paint().

void ImpEditEngine::GetCharStretching ( sal_uInt16 &  rX,
sal_uInt16 &  rY 
) const
inline

Definition at line 1165 of file impedit.hxx.

References nStretchX, and nStretchY.

const svtools::ColorConfig& ImpEditEngine::GetColorConfig ( ) const
inline

Definition at line 887 of file impedit.hxx.

References maColorConfig.

Referenced by GetAutoColor(), and Paint().

ConvInfo* ImpEditEngine::GetConvInfo ( ) const
inline
EEHorizontalTextDirection ImpEditEngine::GetDefaultHorizontalTextDirection ( ) const
inline

Definition at line 757 of file impedit.hxx.

References eDefaultHorizontalTextDirection.

Referenced by IsRightToLeft().

LanguageType ImpEditEngine::GetDefaultLanguage ( ) const
inline

Definition at line 940 of file impedit.hxx.

References eDefLanguage.

Referenced by GetI18NScriptType(), GetItemScriptType(), and InitScriptTypes().

tools::Rectangle ImpEditEngine::GetEditCursor ( ParaPortion pPortion,
sal_Int32  nIndex,
GetCursorFlags  nFlags = GetCursorFlags::NONE 
)

Definition at line 4206 of file impedit2.cxx.

Referenced by Command(), and CreateLines().

EditDoc& ImpEditEngine::GetEditDoc ( )
inlineprivate
const EditDoc& ImpEditEngine::GetEditDoc ( ) const
inlineprivate

Definition at line 722 of file impedit.hxx.

References aEditDoc.

EditEngine* ImpEditEngine::GetEditEnginePtr ( ) const
inline
SfxItemPool* ImpEditEngine::GetEditTextObjectPool ( ) const
inline

Definition at line 994 of file impedit.hxx.

References pTextObjectPool.

Referenced by CreateTextObject().

ViewsType& ImpEditEngine::GetEditViews ( )
inline

Definition at line 741 of file impedit.hxx.

References aEditViews.

const ViewsType& ImpEditEngine::GetEditViews ( ) const
inline

Definition at line 742 of file impedit.hxx.

References aEditViews.

const SfxItemSet & ImpEditEngine::GetEmptyItemSet ( )
std::unique_ptr< EditTextObject > ImpEditEngine::GetEmptyTextObject ( )
private
const Link<EditView*,void>& ImpEditEngine::GetEndDropHdl ( ) const
inline

Definition at line 1043 of file impedit.hxx.

References maEndDropHdl.

std::shared_ptr< SvxForbiddenCharactersTable > const & ImpEditEngine::GetForbiddenCharsTable ( )
static

Definition at line 4313 of file impedit2.cxx.

Referenced by ImpBreakLine().

const css::uno::Reference< css::linguistic2::XHyphenator >& ImpEditEngine::GetHyphenator ( ) const
inline

Definition at line 930 of file impedit.hxx.

References xHyphenator.

Referenced by ImpBreakLine().

sal_uInt16 ImpEditEngine::GetI18NScriptType ( const EditPaM rPaM,
sal_Int32 *  pEndPos = nullptr 
) const
private
Range ImpEditEngine::GetInvalidYOffsets ( ParaPortion pPortion)
private
SvtScriptType ImpEditEngine::GetItemScriptType ( const EditSelection rSel) const
private
SvxAdjust ImpEditEngine::GetJustification ( sal_Int32  nPara) const
SvxCellJustifyMethod ImpEditEngine::GetJustifyMethod ( sal_Int32  nPara) const

Definition at line 2066 of file impedit2.cxx.

References EE_PARA_JUST_METHOD, SfxEnumItem< class >::GetEnumValue(), and GetParaAttrib().

Referenced by CreateLines().

LanguageType ImpEditEngine::GetLanguage ( const EditPaM rPaM,
sal_Int32 *  pEndPos = nullptr 
) const
void ImpEditEngine::GetLineBoundaries ( sal_Int32 &  rStart,
sal_Int32 &  rEnd,
sal_Int32  nParagraph,
sal_Int32  nLine 
) const
sal_Int32 ImpEditEngine::GetLineCount ( sal_Int32  nParagraph) const
sal_uInt16 ImpEditEngine::GetLineHeight ( sal_Int32  nParagraph,
sal_Int32  nLine 
)
sal_Int32 ImpEditEngine::GetLineLen ( sal_Int32  nParagraph,
sal_Int32  nLine 
) const
sal_Int32 ImpEditEngine::GetLineNumberAtIndex ( sal_Int32  nPara,
sal_Int32  nIndex 
) const
Range ImpEditEngine::GetLineXPosStartEnd ( const ParaPortion pParaPortion,
const EditLine pLine 
) const
private

Definition at line 3863 of file impedit2.cxx.

css::lang::Locale ImpEditEngine::GetLocale ( const EditPaM rPaM) const
const SvxLRSpaceItem & ImpEditEngine::GetLRSpaceItem ( ContentNode pNode)
const Size& ImpEditEngine::GetMaxAutoPaperSize ( ) const
inline

Definition at line 771 of file impedit.hxx.

References aMaxAutoPaperSize.

Referenced by CheckPageOverflow().

const Size& ImpEditEngine::GetMinAutoPaperSize ( ) const
inline

Definition at line 768 of file impedit.hxx.

References aMinAutoPaperSize.

const Link<LinkParamNone*,void>& ImpEditEngine::GetModifyHdl ( ) const
inline

Definition at line 865 of file impedit.hxx.

References aModifyHdl.

ContentNode * ImpEditEngine::GetNextVisNode ( ContentNode const *  pCurNode)
private
const ParaPortion * ImpEditEngine::GetNextVisPortion ( const ParaPortion pCurPortion) const
private
const Link<EENotify&,void>& ImpEditEngine::GetNotifyHdl ( ) const
inline

Definition at line 882 of file impedit.hxx.

References aNotifyHdl.

Referenced by FormatAndUpdate(), ImpMoveParagraphs(), and TextModified().

const SvxNumberFormat * ImpEditEngine::GetNumberFormat ( const ContentNode pNode) const
sal_Int32 ImpEditEngine::GetOverflowingLineNum ( ) const
inline

Definition at line 1027 of file impedit.hxx.

References mnOverflowingLine.

sal_Int32 ImpEditEngine::GetOverflowingParaNum ( ) const
inline

Definition at line 1026 of file impedit.hxx.

References mnOverflowingPara.

EditPaM ImpEditEngine::GetPaM ( Point  aDocPos,
bool  bSmart = true 
)
private

Definition at line 3065 of file impedit2.cxx.

Referenced by PageDown(), and PageUp().

EditPaM ImpEditEngine::GetPaM ( ParaPortion pPortion,
Point  aPos,
bool  bSmart 
)
private
const Size& ImpEditEngine::GetPaperSize ( ) const
inline

Definition at line 744 of file impedit.hxx.

References aPaperSize.

Referenced by CheckAutoPageSize(), CreateLines(), DoOnlineSpelling(), Paint(), and ShowParagraph().

const SfxPoolItem & ImpEditEngine::GetParaAttrib ( sal_Int32  nPara,
sal_uInt16  nWhich 
) const
template<class T >
const T& ImpEditEngine::GetParaAttrib ( sal_Int32  nPara,
TypedWhichId< T >  nWhich 
) const
inline

Definition at line 854 of file impedit.hxx.

References GetParaAttrib().

const SfxItemSet & ImpEditEngine::GetParaAttribs ( sal_Int32  nPara) const

Definition at line 717 of file impedit5.cxx.

sal_uInt32 ImpEditEngine::GetParaHeight ( sal_Int32  nParagraph)
const ParaPortionList& ImpEditEngine::GetParaPortions ( ) const
inlineprivate
ParaPortionList& ImpEditEngine::GetParaPortions ( )
inlineprivate

Definition at line 725 of file impedit.hxx.

References aParaPortionList.

long ImpEditEngine::GetPortionXOffset ( const ParaPortion pParaPortion,
const EditLine pLine,
sal_Int32  nTextPortion 
) const
private

Definition at line 3883 of file impedit2.cxx.

Referenced by GetChar(), and Paint().

ContentNode * ImpEditEngine::GetPrevVisNode ( ContentNode const *  pCurNode)
private
const ParaPortion * ImpEditEngine::GetPrevVisPortion ( const ParaPortion pCurPortion) const
private
OutputDevice* ImpEditEngine::GetRefDevice ( ) const
inline
const MapMode& ImpEditEngine::GetRefMapMode ( ) const
inline

Definition at line 911 of file impedit.hxx.

References OutputDevice::GetMapMode().

Referenced by WriteItemAsRTF(), and WriteRTF().

sal_uInt8 ImpEditEngine::GetRightToLeft ( sal_Int32  nPara,
sal_Int32  nChar,
sal_Int32 *  pStart = nullptr,
sal_Int32 *  pEnd = nullptr 
)
OUString ImpEditEngine::GetSelected ( const EditSelection rSel) const
EditSelectionEngine& ImpEditEngine::GetSelEngine ( )
inline

Definition at line 786 of file impedit.hxx.

References aSelEngine.

Referenced by Command(), MouseButtonDown(), MouseButtonUp(), MouseMove(), and ReleaseMouse().

sal_Int32 ImpEditEngine::GetSpaceBeforeAndMinLabelWidth ( const ContentNode pNode,
sal_Int32 *  pnSpaceBefore = nullptr,
sal_Int32 *  pnMinLabelWidth = nullptr 
) const
Reference< XSpellChecker1 > const & ImpEditEngine::GetSpeller ( )

Definition at line 1402 of file impedit4.cxx.

References LinguMgr::GetSpellChecker(), and xSpeller.

SpellInfo* ImpEditEngine::GetSpellInfo ( ) const
inline
InternalEditStatus& ImpEditEngine::GetStatus ( )
inline
const Link<EditStatus&,void>& ImpEditEngine::GetStatusEventHdl ( ) const
inline

Definition at line 879 of file impedit.hxx.

References aStatusHdlLink.

const SfxStyleSheet * ImpEditEngine::GetStyleSheet ( sal_Int32  nPara) const
SfxStyleSheet * ImpEditEngine::GetStyleSheet ( sal_Int32  nPara)
SfxStyleSheetPool* ImpEditEngine::GetStyleSheetPool ( ) const
inline

Definition at line 898 of file impedit.hxx.

References pStylePool.

Referenced by InsertTextObject(), SetStyleSheet(), and WriteRTF().

sal_uInt32 ImpEditEngine::GetTextHeight ( ) const

Definition at line 3105 of file impedit2.cxx.

Referenced by CheckAutoPageSize(), ImpBreakLine(), and PageDown().

sal_uInt32 ImpEditEngine::GetTextHeightNTP ( ) const
TextRanger* ImpEditEngine::GetTextRanger ( ) const
inline
EditUndoManager & ImpEditEngine::GetUndoManager ( )
inline

Definition at line 1122 of file impedit.hxx.

References pEditEngine, pUndoManager, and EditUndoManager::SetEditEngine().

Referenced by SetText().

bool ImpEditEngine::GetUpdateMode ( ) const
inline
SvxCellVerJustify ImpEditEngine::GetVerJustification ( sal_Int32  nPara) const
VirtualDevice * ImpEditEngine::GetVirtualDevice ( const MapMode rMapMode,
DrawModeFlags  nDrawMode 
)
inlineprivate
long ImpEditEngine::GetXPos ( const ParaPortion pParaPortion,
const EditLine pLine,
sal_Int32  nIndex,
bool  bPreferPortionStart = false 
) const
private

Definition at line 3974 of file impedit2.cxx.

Referenced by CursorDown(), and CursorUp().

short ImpEditEngine::GetXValue ( short  nXValue) const
inlineprivate

Definition at line 1171 of file impedit.hxx.

References aStatus, InternalEditStatus::DoStretch(), and nStretchX.

Referenced by CreateAndInsertEmptyLine(), and CreateLines().

long ImpEditEngine::GetXValue ( long  nXValue) const
inlineprivate

Definition at line 1180 of file impedit.hxx.

References aStatus, InternalEditStatus::DoStretch(), and nStretchX.

short ImpEditEngine::GetYValue ( short  nYValue) const
inlineprivate
sal_uInt16 ImpEditEngine::GetYValue ( sal_uInt16  nYValue) const
inlineprivate

Definition at line 1196 of file impedit.hxx.

References aStatus, InternalEditStatus::DoStretch(), and nStretchY.

bool ImpEditEngine::HasConvertibleTextPortion ( LanguageType  nLang)
bool ImpEditEngine::HasDifferentRTLLevels ( const ContentNode pNode)
bool ImpEditEngine::HasParaAttrib ( sal_Int32  nPara,
sal_uInt16  nWhich 
) const

Definition at line 724 of file impedit5.cxx.

bool ImpEditEngine::HasScriptType ( sal_Int32  nPara,
sal_uInt16  nType 
) const
private
EESpellState ImpEditEngine::HasSpellErrors ( )
bool ImpEditEngine::HasText ( const SvxSearchItem rSearchItem)
bool ImpEditEngine::HasUndoManager ( ) const
inlineprivate

Definition at line 555 of file impedit.hxx.

Referenced by SetText().

void ImpEditEngine::IdleFormatAndUpdate ( EditView pCurView)
inline

Definition at line 1117 of file impedit.hxx.

References aIdleFormatter, and IdleFormattter::DoIdleFormat().

Referenced by FormatAndUpdate().

void ImpEditEngine::ImpAdjustBlocks ( ParaPortion pParaPortion,
EditLine pLine,
long  nRemainingSpace 
)
private
void ImpEditEngine::ImpBreakLine ( ParaPortion pParaPortion,
EditLine pLine,
TextPortion const *  pPortion,
sal_Int32  nPortionStart,
long  nRemainingWidth,
bool  bCanHyphenate 
)
private
bool ImpEditEngine::ImpCheckRefMapMode ( )
private
EditPaM ImpEditEngine::ImpConnectParagraphs ( ContentNode pLeft,
ContentNode pRight,
bool  bBackward = false 
)
private
void ImpEditEngine::ImpConvert ( OUString &  rConvTxt,
LanguageType rConvTxtLang,
EditView pEditView,
LanguageType  nSrcLang,
const ESelection rConvRange,
bool  bAllowImplicitChangesForNotConvertibleText,
LanguageType  nTargetLang,
const vcl::Font pTargetFont 
)

the list of portions may have changed compared to the previous call to this function (because of possibly changed language attribute!) But since we don't want to start in the already processed part we clip the start accordingly.

Now this especially includes all non convertible text e.g. spaces, empty paragraphs and western text.

Definition at line 1625 of file impedit4.cxx.

References LanguageTag::convertToLocale(), CreateEditPaM(), CreateEPaM(), DBG_ASSERT, EE_CHAR_FONTINFO_CJK, EE_CHAR_LANGUAGE_CJK, GetI18NScriptType(), EditPaM::GetIndex(), EditEngine::GetLanguage(), EditPaM::GetNode(), EditEngine::GetPortions(), GetSelected(), EditEngine::GetText(), ESelection::HasRange(), editeng::HangulHanjaConversion::IsChinese(), LANGUAGE_NONE, EditSelection::Max(), EditSelection::Min(), EPaM::nIndex, EPaM::nPara, nPos, pConvInfo, pEditEngine, EditView::pImpEditView, EditPaM::SetIndex(), SetLanguageAndFont(), EditView::ShowCursor(), and WordRight().

Referenced by TextConvWrapper::ConvContinue_impl().

EditPaM ImpEditEngine::ImpDeleteSelection ( const EditSelection rCurSel)
private
EditPaM ImpEditEngine::ImpFastInsertParagraph ( sal_Int32  nPara)
private

Definition at line 2907 of file impedit2.cxx.

Referenced by InsertTextObject().

EditPaM ImpEditEngine::ImpFastInsertText ( EditPaM  aPaM,
const OUString &  rStr 
)
private

Definition at line 2787 of file impedit2.cxx.

Referenced by InsertTextObject().

void ImpEditEngine::ImpFindKashidas ( ContentNode pNode,
sal_Int32  nStart,
sal_Int32  nEnd,
std::vector< sal_Int32 > &  rArray 
)
private
Reference< XSpellAlternatives > ImpEditEngine::ImpFindNextError ( EditSelection rSelection)
EditPaM ImpEditEngine::ImpInsertFeature ( const EditSelection rCurSel,
const SfxPoolItem rItem 
)
private

Definition at line 2809 of file impedit2.cxx.

EditPaM ImpEditEngine::ImpInsertParaBreak ( EditPaM rPaM,
bool  bKeepEndingAttribs = true 
)
private

Definition at line 2845 of file impedit2.cxx.

Referenced by InsertParagraph(), InsertTextObject(), ReadText(), and SplitContent().

EditPaM ImpEditEngine::ImpInsertParaBreak ( const EditSelection rEditSelection)
private

Definition at line 2834 of file impedit2.cxx.

EditPaM ImpEditEngine::ImpInsertText ( const EditSelection aCurEditSelection,
const OUString &  rStr 
)
private
bool ImpEditEngine::ImplCalcAsianCompression ( ContentNode pNode,
TextPortion pTextPortion,
sal_Int32  nStartPos,
long *  pDXArray,
sal_uInt16  n100thPercentFromMax,
bool  bManipulateDXArray 
)
private
LanguageType ImpEditEngine::ImplCalcDigitLang ( LanguageType  eCurLang) const
private
void ImpEditEngine::ImplExpandCompressedPortions ( EditLine pLine,
ParaPortion pParaPortion,
long  nRemainingWidth 
)
private
Reference< i18n::XBreakIterator > const & ImpEditEngine::ImplGetBreakIterator ( ) const
private
Reference< i18n::XExtendedInputSequenceChecker > const & ImpEditEngine::ImplGetInputSequenceChecker ( ) const
private

Definition at line 4421 of file impedit3.cxx.

References comphelper::getProcessComponentContext(), and xISC.

bool ImpEditEngine::ImplHasText ( ) const
private

Definition at line 3048 of file impedit4.cxx.

References Count, and GetEditDoc().

Referenced by SetAddExtLeading(), SetAsianCompressionMode(), and SetKernAsianPunctuation().

void ImpEditEngine::ImplInitDigitMode ( OutputDevice pOutDev,
LanguageType  eLang 
)
private
void ImpEditEngine::ImplInitLayoutMode ( OutputDevice pOutDev,
sal_Int32  nPara,
sal_Int32  nIndex 
)
private
void ImpEditEngine::ImplUpdateOverflowingLineNum ( sal_uInt32  nPaperHeight,
sal_uInt32  nOverflowingPara,
sal_uInt32  nHeightBeforeOverflowingPara 
)
private
void ImpEditEngine::ImplUpdateOverflowingParaNum ( sal_uInt32  nPaperHeight)
private
EditSelection ImpEditEngine::ImpMoveParagraphs ( Range  aParagraphs,
sal_Int32  nNewPos 
)
private
void ImpEditEngine::ImpRemoveChars ( const EditPaM rPaM,
sal_Int32  nChars 
)
private
void ImpEditEngine::ImpRemoveParagraph ( sal_Int32  nPara)
private

Definition at line 2478 of file impedit2.cxx.

bool ImpEditEngine::ImpSearch ( const SvxSearchItem rSearchItem,
const EditSelection rSearchSelection,
const EditPaM rStartPos,
EditSelection rFoundSel 
)
Reference< XSpellAlternatives > ImpEditEngine::ImpSpell ( EditView pEditView)
void ImpEditEngine::InitDoc ( bool  bKeepParaAttribs)
private
void ImpEditEngine::InitScriptTypes ( sal_Int32  nPara)
private
void ImpEditEngine::InitWritingDirections ( sal_Int32  nPara)
void ImpEditEngine::InsertContent ( ContentNode pNode,
sal_Int32  nPos 
)
private
EditPaM ImpEditEngine::InsertField ( const EditSelection rCurSel,
const SvxFieldItem rFld 
)

Definition at line 2965 of file impedit2.cxx.

EditPaM ImpEditEngine::InsertLineBreak ( const EditSelection aEditSelection)

Definition at line 3029 of file impedit2.cxx.

EditPaM ImpEditEngine::InsertParaBreak ( const EditSelection rEditSelection)

Definition at line 2936 of file impedit2.cxx.

EditPaM ImpEditEngine::InsertParagraph ( sal_Int32  nPara)
EditPaM ImpEditEngine::InsertTab ( const EditSelection rEditSelection)

Definition at line 2959 of file impedit2.cxx.

EditPaM ImpEditEngine::InsertText ( const EditSelection aCurEditSelection,
const OUString &  rStr 
)

Definition at line 632 of file impedit2.cxx.

References ImpInsertText().

Referenced by SetText().

EditSelection ImpEditEngine::InsertText ( const EditTextObject rTextObject,
EditSelection  aSel 
)
EditSelection ImpEditEngine::InsertTextObject ( const EditTextObject rTextObject,
EditPaM  aPaM 
)
private

Definition at line 1160 of file impedit4.cxx.

References aEditDoc, XParaPortion::aLines, aPaperSize, aStatus, XParaPortion::aTextPortions, ParaPortion::bForceRepaint, SfxPoolItem::Clone(), WrongList::Clone(), EditLine::Clone(), ConvertAndPutItems(), ConvertItem(), SfxItemSet::Count(), CharAttribList::Count(), TextPortionList::Count(), EditLineList::Count(), ContentNode::CreateDefFont(), DBG_ASSERT, CharAttribList::DbgCheckAttribs(), EditSelection::DbgIsBuggy(), DEF_METRIC, DoOnlineSpelling(), EE_FEATURE_FIELD, SfxStyleSheetBasePool::Find(), FindParaPortion(), ContentInfo::GetCharAttribs(), ContentNode::GetCharAttribs(), CharAttribList::GetDefFont(), EditDoc::GetDefFont(), GetEmptyItemSet(), XEditAttribute::GetEnd(), ContentInfo::GetFamily(), EditPaM::GetIndex(), XEditAttribute::GetItem(), EditDoc::GetItemPool(), ParaPortion::GetLines(), OutputDevice::GetMapMode(), SfxItemPool::GetMetric(), EditPaM::GetNode(), ParaPortion::GetNode(), XParaPortionList::GetPaperWidth(), ContentInfo::GetParaAttribs(), GetParaPortions(), EditDoc::GetPos(), GetRefDevice(), XParaPortionList::GetRefDevPtr(), XParaPortionList::GetRefMapMode(), XEditAttribute::GetStart(), GetStatus(), XParaPortionList::GetStretchX(), XParaPortionList::GetStretchY(), ContentInfo::GetStyle(), GetStyleSheetPool(), ContentInfo::GetText(), ParaPortion::GetTextPortions(), ContentInfo::GetWrongList(), ImpFastInsertParagraph(), ImpFastInsertText(), ImpInsertParaBreak(), TextPortionList::Insert(), EditLineList::Insert(), CharAttribList::InsertAttrib(), EditDoc::InsertAttrib(), XEditAttribute::IsFeature(), OutputDevice::IsVirtual(), ContentNode::Len(), MakeCharAttrib(), EditSelection::Max(), EditTextObject::mpImpl, XParaPortion::nFirstLineOffset, ParaPortion::nFirstLineOffset, XParaPortion::nHeight, ParaPortion::nHeight, nStretchX, nStretchY, XParaPortionList::RefDevIsVirtual(), TextPortionList::Reset(), EditLineList::Reset(), SAL_WARN_IF, EditLine::SetInvalid(), SetParaAttribs(), SetStyleSheet(), ParaPortion::SetValid(), ContentNode::SetWrongList(), UpdateFields(), InternalEditStatus::UseCharAttribs(), and Size::Width().

Referenced by InsertText().

EditPaM ImpEditEngine::InsertTextUserInput ( const EditSelection rCurEditSelection,
sal_Unicode  c,
bool  bOverwrite 
)

Definition at line 2585 of file impedit2.cxx.

void ImpEditEngine::InsertUndo ( std::unique_ptr< EditUndo pUndo,
bool  bTryMerge = false 
)
private
void ImpEditEngine::InvalidateFromParagraph ( sal_Int32  nFirstInvPara)
bool ImpEditEngine::IsAddExtLeading ( ) const
inline

Definition at line 1032 of file impedit.hxx.

References bAddExtLeading.

Referenced by RecalcFormatterFontMetrics(), and SetAddExtLeading().

bool ImpEditEngine::IsAutoColorEnabled ( ) const
inlineprivate

Definition at line 688 of file impedit.hxx.

References bUseAutoColor.

Referenced by Paint(), and SeekCursor().

bool ImpEditEngine::IsCallParaInsertedOrDeleted ( ) const
inline

Definition at line 799 of file impedit.hxx.

References bCallParaInsertedOrDeleted.

Referenced by FormatDoc(), ImpConnectParagraphs(), InitDoc(), and InsertContent().

bool ImpEditEngine::IsFirstWordCapitalization ( ) const
inline

Definition at line 1047 of file impedit.hxx.

References bFirstWordCapitalization.

bool ImpEditEngine::IsFixedCellHeight ( ) const
inline
bool ImpEditEngine::IsForceAutoColor ( ) const
inlineprivate

Definition at line 690 of file impedit.hxx.

References bForceAutoColor.

Referenced by SeekCursor().

bool ImpEditEngine::IsFormatted ( ) const
inline
bool ImpEditEngine::IsFormatting ( ) const
inline

Definition at line 802 of file impedit.hxx.

References bIsFormatting.

Referenced by FormatDoc(), GetTextHeightNTP(), and UpdateViews().

bool ImpEditEngine::IsInputSequenceCheckingRequired ( sal_Unicode  nChar,
const EditSelection rCurSel 
) const
bool ImpEditEngine::IsInSelectionMode ( ) const
inline

Definition at line 867 of file impedit.hxx.

References bInSelection.

bool ImpEditEngine::IsInUndo ( ) const
inline
bool ImpEditEngine::IsKernAsianPunctuation ( ) const
inline

Definition at line 1024 of file impedit.hxx.

References bKernAsianPunctuation.

Referenced by SeekCursor().

bool ImpEditEngine::IsModified ( ) const
inline

Definition at line 862 of file impedit.hxx.

References EditDoc::IsModified().

bool ImpEditEngine::IsNbspRunNext ( ) const
inline

Whether last AutoCorrect inserted a NO-BREAK SPACE that may need to be removed again.

Definition at line 1055 of file impedit.hxx.

References mbNbspRunNext.

bool ImpEditEngine::IsPageOverflow ( ) const

Definition at line 352 of file impedit3.cxx.

References mbNeedsChainingHandling.

bool ImpEditEngine::IsReplaceLeadingSingleQuotationMark ( ) const
inline

Definition at line 1052 of file impedit.hxx.

References mbReplaceLeadingSingleQuotationMark.

bool ImpEditEngine::IsRightToLeft ( sal_Int32  nPara) const
bool ImpEditEngine::IsScriptChange ( const EditPaM rPaM) const
private
bool ImpEditEngine::IsTopToBottom ( ) const
inline
bool ImpEditEngine::IsUndoEnabled ( ) const
inline
bool ImpEditEngine::IsVertical ( ) const
inline
bool ImpEditEngine::IsVisualCursorTravelingEnabled ( )

Definition at line 4323 of file impedit2.cxx.

sal_Int32 ImpEditEngine::LogicToTwips ( sal_Int32  n)
private

Definition at line 3053 of file impedit4.cxx.

References OutputDevice::LogicToLogic(), pRefDev, and Size::Width().

Referenced by WriteItemAsRTF().

bool ImpEditEngine::MouseButtonDown ( const MouseEvent rMouseEvent,
EditView pView 
)
bool ImpEditEngine::MouseButtonUp ( const MouseEvent rMouseEvent,
EditView pView 
)
bool ImpEditEngine::MouseMove ( const MouseEvent rMouseEvent,
EditView pView 
)
EditSelection const & ImpEditEngine::MoveCursor ( const KeyEvent rKeyEvent,
EditView pEditView 
)
EditSelection ImpEditEngine::MoveParagraphs ( Range  aParagraphs,
sal_Int32  nNewPos,
EditView pCurView 
)
void ImpEditEngine::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
overrideprotectedvirtual
ImpEditEngine& ImpEditEngine::operator= ( const ImpEditEngine )
delete
EditPaM ImpEditEngine::PageDown ( const EditPaM rPaM,
EditView const *  pView 
)
private
EditPaM ImpEditEngine::PageUp ( const EditPaM rPaM,
EditView const *  pView 
)
private
void ImpEditEngine::Paint ( ImpEditView pView,
const tools::Rectangle rRect,
OutputDevice pTargetDevice 
)
void ImpEditEngine::Paint ( OutputDevice pOutDev,
tools::Rectangle  aClipRect,
Point  aStartPos,
bool  bStripOnly = false,
short  nOrientation = 0 
)

Definition at line 2933 of file impedit3.cxx.

References aBuf, GDIMetaFile::AddAction(), Point::AdjustX(), Point::AdjustY(), aStatus, tools::Rectangle::Bottom(), CalcVertLineSpacing(), CH_HYPH, COL_AUTO(), COL_LIGHTCYAN(), COL_LIGHTGRAY(), convertDigits(), Count, TextPortionList::Count(), EditLineList::Count(), ParaPortionList::Count(), SvxFieldData::createBeginComment(), SvxFieldData::createEndComment(), DBG_ASSERT, InternalEditStatus::DoOnlineSpelling(), DoOnlineSpelling(), EditEngine::DrawingTab(), EditEngine::DrawingText(), OutputDevice::DrawRect(), OutputDevice::DrawStretchText(), EE_CHAR_ESCAPEMENT, EE_PARA_BULLETSTATE, EE_PARA_SBL, EE_PARA_ULSPACE, WrongList::empty(), F_PI1800, FIELD, CharAttribList::FindAttrib(), CharAttribList::FindFeature(), Fix, FormatDoc(), GetAutoColor(), GetBackgroundColor(), ContentNode::GetCharAttribs(), GetCharAttribs(), EditLine::GetCharPosArray(), GetColorConfig(), OutputDevice::GetConnectMetaFile(), ContentNode::GetContentAttribs(), GetEditEnginePtr(), EditCharAttrib::GetEnd(), EditLine::GetEndPortion(), OutputDevice::GetExtOutDevData(), SvxFieldItem::GetField(), ParaPortion::GetFirstLineOffset(), OutputDevice::GetFont(), EditLine::GetHeight(), ParaPortion::GetHeight(), GetI18NScriptType(), SvxLineSpacingItem::GetInterLineSpace(), SvxLineSpacingItem::GetInterLineSpaceRule(), EditCharAttrib::GetItem(), ContentAttribs::GetItem(), OutputDevice::GetLineColor(), ParaPortion::GetLines(), GetLocale(), SvxULSpaceItem::GetLower(), OutputDevice::GetMapMode(), EditLine::GetMaxAscent(), GetNode(), ParaPortion::GetNode(), MapMode::GetOrigin(), OutputDevice::GetOutDevType(), OutputDevice::GetOverlineColor(), EditEngine::GetParaAttrib(), GetParaPortions(), GetPortionXOffset(), GetRefDevice(), EditCharAttrib::GetStart(), EditLine::GetStart(), EditLine::GetStartPortion(), EditLine::GetStartPosX(), GetStatus(), ContentNode::GetString(), OutputDevice::GetTextLineColor(), ParaPortion::GetTextPortions(), vcl::Font::GetUnderline(), GetUpdateMode(), SfxBoolItem::GetValue(), ContentNode::GetWrongList(), GetYValue(), HYPHENATOR, ImplCalcDigitLang(), ImplInitDigitMode(), ImplInitLayoutMode(), IsAutoColorEnabled(), Color::IsDark(), IsFormatted(), ParaPortion::IsInvalid(), InternalEditStatus::IsOutliner(), IsTopToBottom(), IsVertical(), ParaPortion::IsVisible(), lcl_DrawRedLines(), lcl_ImplCalcRotatedPos(), tools::Rectangle::Left(), ContentNode::Len(), LINEBREAK, ExtraPortionInfo::lineBreaksList, LINESTYLE_NONE, InternalEditStatus::MarkNonUrlFields(), WrongList::NextWrong(), vcl::PDFExtOutDevBookmarkEntry::nLinkId, OUTDEV_PRINTER, pActiveView, comphelper::string::padToLength(), EditEngine::PaintingFirstLine(), vcl::PDFWriter::Paragraph, pEditEngine, OutputDevice::Pop(), OutputDevice::Push(), tools::Rectangle::Right(), sal_False, SeekCursor(), OutputDevice::SetFillColor(), OutputDevice::SetLineColor(), Point::setX(), Point::setY(), svtools::SPELL, TAB, TEXT, tools::Rectangle::Top(), Size::Width(), Point::X(), and Point::Y().

tools::Rectangle ImpEditEngine::PaMtoEditCursor ( EditPaM  aPaM,
GetCursorFlags  nFlags = GetCursorFlags::NONE 
)

Definition at line 3038 of file impedit2.cxx.

Referenced by Command(), DoOnlineSpelling(), PageDown(), and PageUp().

void ImpEditEngine::ParaAttribsChanged ( ContentNode const *  pNode,
bool  bIgnoreUndoCheck = false 
)
private
void ImpEditEngine::ParaAttribsToCharAttribs ( ContentNode pNode)
private

Definition at line 758 of file impedit5.cxx.

EditSelection ImpEditEngine::PasteText ( css::uno::Reference< css::datatransfer::XTransferable > const &  rxDataObj,
const OUString &  rBaseURL,
const EditPaM rPaM,
bool  bUseSpecial 
)
private
void ImpEditEngine::PutSpellingToSentenceStart ( EditView const &  rEditView)

Definition at line 2177 of file impedit4.cxx.

References EditView::pImpEditView, and pSpellInfo.

EditPaM ImpEditEngine::Read ( SvStream rInput,
const OUString &  rBaseURL,
EETextFormat  eFormat,
const EditSelection rSel,
SvKeyValueIterator pHTTPHeaderAttrs = nullptr 
)

Definition at line 86 of file impedit4.cxx.

References FormatFullDoc(), GetUpdateMode(), Html, ReadHTML(), ReadRTF(), ReadText(), ReadXML(), Rtf, SetUpdateMode(), Text, and Xml.

Referenced by PasteText().

EditPaM ImpEditEngine::ReadHTML ( SvStream rInput,
const OUString &  rBaseURL,
EditSelection  aSel,
SvKeyValueIterator pHTTPHeaderAttrs 
)
private
EditPaM ImpEditEngine::ReadRTF ( SvStream rInput,
EditSelection  aSel 
)
private
EditPaM ImpEditEngine::ReadText ( SvStream rInput,
EditSelection  aSel 
)
private
EditPaM ImpEditEngine::ReadXML ( SvStream rInput,
EditSelection  aSel 
)
private

Definition at line 131 of file impedit4.cxx.

References CreateESel(), GetEditEnginePtr(), EditSelection::HasRange(), ImpDeleteSelection(), and SvxReadXML().

Referenced by Read().

void ImpEditEngine::RecalcFormatterFontMetrics ( FormatterFontMetric rCurMetrics,
SvxFont rFont 
)
private
void ImpEditEngine::RecalcTextPortion ( ParaPortion pParaPortion,
sal_Int32  nStartPos,
sal_Int32  nNewChars 
)
private
void ImpEditEngine::Redo ( EditView pView)

Definition at line 301 of file impedit5.cxx.

void ImpEditEngine::ReleaseMouse ( )

Definition at line 619 of file impedit2.cxx.

References GetSelEngine(), and SelectionEngine::ReleaseMouse().

void ImpEditEngine::RemoveCharAttribs ( EditSelection  aSel,
bool  bRemoveParaAttribs,
sal_uInt16  nWhich 
)

Definition at line 583 of file impedit5.cxx.

void ImpEditEngine::RemoveCharAttribs ( sal_Int32  nPara,
sal_uInt16  nWhich = 0,
bool  bRemoveFeatures = false 
)

Definition at line 645 of file impedit5.cxx.

void ImpEditEngine::RemoveStyleFromParagraphs ( SfxStyleSheet const *  pStyle)
EditPaM ImpEditEngine::RemoveText ( )
private

Definition at line 657 of file impedit2.cxx.

References aEditDoc, aEditViews, EditDoc::GetStartPaM(), InitDoc(), and ResetUndoManager().

Referenced by SetText().

short ImpEditEngine::ReplaceTextOnly ( ContentNode pNode,
sal_Int32  nCurrentStart,
const OUString &  rText,
const css::uno::Sequence< sal_Int32 > &  rOffsets 
)
void ImpEditEngine::ResetUndoManager ( )
private

Definition at line 277 of file impedit5.cxx.

Referenced by Clear(), RemoveText(), and SetText().

bool ImpEditEngine::Search ( const SvxSearchItem rSearchItem,
EditView pView 
)
void ImpEditEngine::SeekCursor ( ContentNode pNode,
sal_Int32  nPos,
SvxFont rFont,
OutputDevice pOut = nullptr 
)
private

Definition at line 2639 of file impedit3.cxx.

References aStatus, COL_AUTO(), COL_BLACK(), COL_LIGHTGRAY(), COL_RED(), COL_TRANSPARENT(), COL_WHITE(), DBG_ASSERT, InternalEditStatus::DoNotUseColors(), InternalEditStatus::DoStretch(), EE_CHAR_COLOR, EE_CHAR_FONTHEIGHT, EE_CHAR_FONTINFO, EE_CHAR_FONTWIDTH, EE_CHAR_ITALIC, EE_CHAR_LANGUAGE, EE_CHAR_LANGUAGE_CJK, EE_CHAR_OVERLINE, EE_CHAR_START, EE_CHAR_UNDERLINE, EE_CHAR_WEIGHT, EE_FEATURE_END, EE_FEATURE_FIELD, CharAttribList::FindAttrib(), SvtLanguageOptions::FromI18NToSvtScriptType(), GetAttrib(), CharAttribList::GetAttribs(), GetAutoColor(), GetBackgroundColor(), ContentNode::GetCharAttribs(), SvxFontItem::GetCharSet(), vcl::Font::GetColor(), SvxTextLineItem::GetColor(), ContentNode::GetContentAttribs(), CharAttribList::GetDefFont(), EditCharAttrib::GetEnd(), SvxFontItem::GetFamily(), SvxFontItem::GetFamilyName(), SvxFont::GetFixKerning(), OutputDevice::GetFontMetric(), vcl::Font::GetFontSize(), StyleSettings::GetHighlightColor(), StyleSettings::GetHighlightTextColor(), GetI18NScriptType(), EditCharAttrib::GetItem(), ContentAttribs::GetItem(), vcl::Font::GetKerning(), SvxLanguageItem::GetLanguage(), GetLanguage(), OutputDevice::GetOutDevType(), SvxFontItem::GetPitch(), GetRefDevice(), GetScriptItemId(), Application::GetSettings(), EditCharAttrib::GetStart(), AllSettings::GetStyleSettings(), GetValue, IsAutoColorEnabled(), IsForceAutoColor(), IsKernAsianPunctuation(), IsScriptItemValid(), ContentNode::Len(), LINESTYLE_BOLD, LINESTYLE_DOTTED, LINESTYLE_SINGLE, LINESTYLE_WAVE, mpIMEInfos, nStretchX, nStretchY, OUTDEV_PDF, OUTDEV_PRINTER, vcl::Font::SetCharSet(), vcl::Font::SetCJKContextLanguage(), vcl::Font::SetColor(), vcl::Font::SetFamily(), vcl::Font::SetFamilyName(), vcl::Font::SetFillColor(), SvxFont::SetFixKerning(), EditCharAttrib::SetFont(), vcl::Font::SetFontSize(), Size::setHeight(), vcl::Font::SetItalic(), vcl::Font::SetKerning(), vcl::Font::SetLanguage(), OutputDevice::SetOverlineColor(), SvxFont::SetPhysFont(), vcl::Font::SetPitch(), SvxFont::SetPropr(), OutputDevice::SetTextLineColor(), vcl::Font::SetTransparent(), vcl::Font::SetUnderline(), vcl::Font::SetWeight(), InternalEditStatus::UseCharAttribs(), and EditCharAttrib::Which().

Referenced by CreateAndInsertEmptyLine(), CreateLines(), ImpBreakLine(), Paint(), SplitTextPortion(), and WriteItemAsRTF().

std::unique_ptr< EditSelection > ImpEditEngine::SelectParagraph ( sal_Int32  nPara)

Definition at line 4188 of file impedit3.cxx.

References GetEditDoc(), EditDoc::GetObject(), ContentNode::Len(), and SAL_WARN_IF.

EditSelection ImpEditEngine::SelectSentence ( const EditSelection rCurSel) const
private
EditSelection ImpEditEngine::SelectWord ( const EditSelection rCurSelection,
sal_Int16  nWordType = css::i18n::WordType::ANYWORD_IGNOREWHITESPACES,
bool  bAcceptStartOfWord = true 
)
private
void ImpEditEngine::SetActiveView ( EditView pView)

Definition at line 3460 of file impedit2.cxx.

References EditView::HasSelection(), mpIMEInfos, pActiveView, and EditView::pImpEditView.

Referenced by Command(), and MouseButtonDown().

void ImpEditEngine::SetAddExtLeading ( bool  b)
void ImpEditEngine::SetAllMisspellRanges ( const std::vector< editeng::MisspellRanges > &  rRanges)
void ImpEditEngine::SetAsianCompressionMode ( CharCompressType  n)

Definition at line 3008 of file impedit4.cxx.

References FormatFullDoc(), ImplHasText(), nAsianCompressionMode, and UpdateViews().

void ImpEditEngine::SetAttribs ( EditSelection  aSel,
const SfxItemSet rSet,
SetAttribsMode  nSpecial = SetAttribsMode::NONE 
)

Definition at line 489 of file impedit5.cxx.

Referenced by ApplyChangedSentence().

void ImpEditEngine::SetAutoCompleteText ( const OUString &  rStr,
bool  bUpdateTipWindow 
)

Definition at line 2636 of file impedit4.cxx.

References aAutoCompleteText, EditView::GetWindow(), pActiveView, and Help::ShowQuickHelp().

Referenced by MouseButtonDown().

void ImpEditEngine::SetBackgroundColor ( const Color rColor)
inlineprivate

Definition at line 681 of file impedit.hxx.

void ImpEditEngine::SetBeginDropHdl ( const Link< EditView *, void > &  rLink)
inline

sets a link that is called at the beginning of a drag operation at an edit view

Definition at line 1038 of file impedit.hxx.

void ImpEditEngine::SetCallParaInsertedOrDeleted ( bool  b)
inline

Definition at line 798 of file impedit.hxx.

References bCallParaInsertedOrDeleted.

void ImpEditEngine::SetCharStretching ( sal_uInt16  nX,
sal_uInt16  nY 
)
void ImpEditEngine::SetDefaultHorizontalTextDirection ( EEHorizontalTextDirection  eHTextDir)
inline

Definition at line 756 of file impedit.hxx.

void ImpEditEngine::SetDefaultLanguage ( LanguageType  eLang)
inline

Definition at line 939 of file impedit.hxx.

void ImpEditEngine::SetEditTextObjectPool ( SfxItemPool pP)
inline

Definition at line 993 of file impedit.hxx.

void ImpEditEngine::SetEndDropHdl ( const Link< EditView *, void > &  rLink)
inline

sets a link that is called at the end of a drag operation at an edit view

Definition at line 1042 of file impedit.hxx.

void ImpEditEngine::SetFirstWordCapitalization ( bool  bCapitalize)
inline

specifies if auto-correction should capitalize the first word or not (default is on)

Definition at line 1046 of file impedit.hxx.

References bFirstWordCapitalization.

void ImpEditEngine::SetFixedCellHeight ( bool  bUseFixedCellHeight)
void ImpEditEngine::SetFlatMode ( bool  bFlat)
void ImpEditEngine::SetForbiddenCharsTable ( const std::shared_ptr< SvxForbiddenCharactersTable > &  xForbiddenChars)
static

Definition at line 4318 of file impedit2.cxx.

Referenced by EditEngine::SetForbiddenCharsTable().

void ImpEditEngine::SetHyphenator ( css::uno::Reference< css::linguistic2::XHyphenator > const &  xHyph)
inline

Definition at line 931 of file impedit.hxx.

void ImpEditEngine::SetKernAsianPunctuation ( bool  b)

Definition at line 3021 of file impedit4.cxx.

References bKernAsianPunctuation, FormatFullDoc(), ImplHasText(), and UpdateViews().

void ImpEditEngine::SetLanguageAndFont ( const ESelection rESel,
LanguageType  nLang,
sal_uInt16  nLangWhichId,
const vcl::Font pFont,
sal_uInt16  nFontWhichId 
)
void ImpEditEngine::SetMaxAutoPaperSize ( const Size rSz)
inline

Definition at line 772 of file impedit.hxx.

void ImpEditEngine::SetMinAutoPaperSize ( const Size rSz)
inline

Definition at line 769 of file impedit.hxx.

void ImpEditEngine::SetModifyFlag ( bool  b)
inline

Definition at line 863 of file impedit.hxx.

References EditDoc::SetModified().

Referenced by TransliterateText().

void ImpEditEngine::SetModifyHdl ( const Link< LinkParamNone *, void > &  rLink)
inline

Definition at line 864 of file impedit.hxx.

void ImpEditEngine::SetNotifyHdl ( const Link< EENotify &, void > &  rLink)
inline

Definition at line 881 of file impedit.hxx.

void ImpEditEngine::SetPaperSize ( const Size rSz)
inline

Definition at line 745 of file impedit.hxx.

void ImpEditEngine::SetParaAttribs ( sal_Int32  nPara,
const SfxItemSet rSet 
)

Definition at line 678 of file impedit5.cxx.

Referenced by InsertTextObject().

void ImpEditEngine::SetRefDevice ( OutputDevice pRefDef)
void ImpEditEngine::SetRefMapMode ( const MapMode rMapMode)
void ImpEditEngine::SetReplaceLeadingSingleQuotationMark ( bool  bReplace)
inline

specifies if auto-correction should replace a leading single quotation mark (apostrophe) or not (default is on)

Definition at line 1051 of file impedit.hxx.

References mbReplaceLeadingSingleQuotationMark.

void ImpEditEngine::SetSpeller ( css::uno::Reference< css::linguistic2::XSpellChecker1 > const &  xSpl)
inline

Definition at line 927 of file impedit.hxx.

void ImpEditEngine::SetStatusEventHdl ( const Link< EditStatus &, void > &  rLink)
inline

Definition at line 878 of file impedit.hxx.

void ImpEditEngine::SetStyleSheet ( EditSelection  aSel,
SfxStyleSheet pStyle 
)
void ImpEditEngine::SetStyleSheet ( sal_Int32  nPara,
SfxStyleSheet pStyle 
)
void ImpEditEngine::SetStyleSheetPool ( SfxStyleSheetPool pSPool)

Definition at line 28 of file impedit5.cxx.

References pStylePool.

void ImpEditEngine::SetText ( const OUString &  rText)
void ImpEditEngine::SetText ( const EditTextObject rTextObject)
void ImpEditEngine::SetTextRanger ( std::unique_ptr< TextRanger pRanger)
SfxUndoManager * ImpEditEngine::SetUndoManager ( SfxUndoManager pNew)
inline

Definition at line 1132 of file impedit.hxx.

References pEditEngine, pUndoManager, and EditUndoManager::SetEditEngine().

void ImpEditEngine::SetUndoMode ( bool  b)
inline

Definition at line 795 of file impedit.hxx.

References bIsInUndo.

void ImpEditEngine::SetUpdateMode ( bool  bUp,
EditView pCurView = nullptr,
bool  bForceUpdate = false 
)

Definition at line 3929 of file impedit3.cxx.

References bUpdate, FormatAndUpdate(), and GetUpdateMode().

Referenced by Read(), SetStyleSheet(), SetText(), and ~ImpEditEngine().

void ImpEditEngine::SetValidPaperSize ( const Size rSz)
private

Definition at line 4291 of file impedit2.cxx.

Referenced by CheckAutoPageSize().

void ImpEditEngine::SetVertical ( bool  bVertical,
bool  bTopToBottom 
)
void ImpEditEngine::ShowParagraph ( sal_Int32  nParagraph,
bool  bShow 
)
private
EESpellState ImpEditEngine::Spell ( EditView pEditView,
bool  bMultipleDoc 
)
bool ImpEditEngine::SpellSentence ( EditView const &  rView,
svx::SpellPortions rToFill 
)
EditPaM ImpEditEngine::SplitContent ( sal_Int32  nNode,
sal_Int32  nSepPos 
)
private

Definition at line 3910 of file impedit3.cxx.

References aEditDoc, DBG_ASSERT, EditDoc::GetObject(), ImpInsertParaBreak(), and IsInUndo().

sal_Int32 ImpEditEngine::SplitTextPortion ( ParaPortion pParaPortion,
sal_Int32  nPos,
EditLine pCurLine = nullptr 
)
private
EditPaM ImpEditEngine::StartOfWord ( const EditPaM rPaM)
private
void ImpEditEngine::StartOnlineSpellTimer ( )
inline

Definition at line 1011 of file impedit.hxx.

References Timer::Start().

Referenced by FormatDoc().

sal_Int32 ImpEditEngine::StartSearchAndReplace ( EditView pEditView,
const SvxSearchItem rSearchItem 
)
EESpellState ImpEditEngine::StartThesaurus ( EditView pEditView)
void ImpEditEngine::StopOnlineSpellTimer ( )
inline

Definition at line 1012 of file impedit.hxx.

References Task::Stop().

void ImpEditEngine::TextModified ( )
private
EditSelection ImpEditEngine::TransliterateText ( const EditSelection rSelection,
TransliterationFlags  nTransliterationMode 
)
void ImpEditEngine::Undo ( EditView pView)

Definition at line 292 of file impedit5.cxx.

void ImpEditEngine::UndoActionEnd ( )
void ImpEditEngine::UndoActionStart ( sal_uInt16  nId)
void ImpEditEngine::UndoActionStart ( sal_uInt16  nId,
const ESelection rSel 
)

Definition at line 236 of file impedit5.cxx.

bool ImpEditEngine::UpdateFields ( )

Definition at line 2970 of file impedit2.cxx.

Referenced by InsertTextObject().

void ImpEditEngine::UpdateParagraphsWithStyleSheet ( SfxStyleSheet pStyle)
void ImpEditEngine::UpdateSelections ( )
void ImpEditEngine::UpdateViews ( EditView pCurView = nullptr)
EditPaM ImpEditEngine::WordLeft ( const EditPaM rPaM)
private
EditPaM ImpEditEngine::WordRight ( const EditPaM rPaM,
sal_Int16  nWordType = css::i18n::WordType::ANYWORD_IGNOREWHITESPACES 
)
private
void ImpEditEngine::Write ( SvStream rOutput,
EETextFormat  eFormat,
const EditSelection rSel 
)
void ImpEditEngine::WriteItemAsRTF ( const SfxPoolItem rItem,
SvStream rOutput,
sal_Int32  nPara,
sal_Int32  nPos,
std::vector< std::unique_ptr< SvxFontItem >> &  rFontTable,
SvxColorList rColorList 
)
private

Definition at line 655 of file impedit4.cxx.

References aEditDoc, Center, SvxTabStopItem::Count(), DFLT_ESC_AUTO_SUB, DFLT_ESC_AUTO_SUPER, EE_CHAR_COLOR, EE_CHAR_EMPHASISMARK, EE_CHAR_ESCAPEMENT, EE_CHAR_FONTHEIGHT, EE_CHAR_FONTHEIGHT_CJK, EE_CHAR_FONTHEIGHT_CTL, EE_CHAR_FONTINFO, EE_CHAR_FONTINFO_CJK, EE_CHAR_FONTINFO_CTL, EE_CHAR_ITALIC, EE_CHAR_ITALIC_CJK, EE_CHAR_ITALIC_CTL, EE_CHAR_KERNING, EE_CHAR_OUTLINE, EE_CHAR_OVERLINE, EE_CHAR_PAIRKERNING, EE_CHAR_RELIEF, EE_CHAR_SHADOW, EE_CHAR_STRIKEOUT, EE_CHAR_UNDERLINE, EE_CHAR_WEIGHT, EE_CHAR_WEIGHT_CJK, EE_CHAR_WEIGHT_CTL, EE_FEATURE_LINEBR, EE_FEATURE_TAB, EE_PARA_JUST, EE_PARA_LRSPACE, EE_PARA_OUTLLEVEL, EE_PARA_OUTLLRSPACE, EE_PARA_SBL, EE_PARA_TABS, EE_PARA_ULSPACE, EE_PARA_WRITINGDIR, vcl::Font::GetFontSize(), GetLineHeight(), EditDoc::GetObject(), GetRefDevice(), GetRefMapMode(), SvxTabStop::GetTabPos(), SfxEnumItem< class >::GetValue(), GetValue, Height, Horizontal_RL_TB, i, ITALIC_NONE, ITALIC_NORMAL, ITALIC_OBLIQUE, LINESTYLE_DOTTED, LINESTYLE_DOUBLE, LINESTYLE_NONE, LINESTYLE_SINGLE, OutputDevice::LogicToLogic(), LogicToTwips(), OOO_STRING_SVTOOLS_RTF_ACCCOMMA, OOO_STRING_SVTOOLS_RTF_ACCDOT, OOO_STRING_SVTOOLS_RTF_ACCNONE, OOO_STRING_SVTOOLS_RTF_B, OOO_STRING_SVTOOLS_RTF_CF, OOO_STRING_SVTOOLS_RTF_DN, OOO_STRING_SVTOOLS_RTF_EMBO, OOO_STRING_SVTOOLS_RTF_EXPNDTW, OOO_STRING_SVTOOLS_RTF_F, OOO_STRING_SVTOOLS_RTF_FI, OOO_STRING_SVTOOLS_RTF_FS, OOO_STRING_SVTOOLS_RTF_I, OOO_STRING_SVTOOLS_RTF_IMPR, OOO_STRING_SVTOOLS_RTF_KERNING, OOO_STRING_SVTOOLS_RTF_LI, OOO_STRING_SVTOOLS_RTF_OL, OOO_STRING_SVTOOLS_RTF_OLD, OOO_STRING_SVTOOLS_RTF_OLDB, OOO_STRING_SVTOOLS_RTF_OLNONE, OOO_STRING_SVTOOLS_RTF_OUTL, OOO_STRING_SVTOOLS_RTF_QC, OOO_STRING_SVTOOLS_RTF_QL, OOO_STRING_SVTOOLS_RTF_QR, OOO_STRING_SVTOOLS_RTF_RI, OOO_STRING_SVTOOLS_RTF_SA, OOO_STRING_SVTOOLS_RTF_SB, OOO_STRING_SVTOOLS_RTF_SHAD, OOO_STRING_SVTOOLS_RTF_SL, OOO_STRING_SVTOOLS_RTF_SLMULT, OOO_STRING_SVTOOLS_RTF_STRIKE, OOO_STRING_SVTOOLS_RTF_TAB, OOO_STRING_SVTOOLS_RTF_TX, OOO_STRING_SVTOOLS_RTF_UL, OOO_STRING_SVTOOLS_RTF_ULD, OOO_STRING_SVTOOLS_RTF_ULDB, OOO_STRING_SVTOOLS_RTF_ULNONE, OOO_STRING_SVTOOLS_RTF_UP, Prop, Right, SeekCursor(), STRIKEOUT_DOUBLE, STRIKEOUT_NONE, STRIKEOUT_SINGLE, WEIGHT_BOLD, SfxPoolItem::Which(), SvStream::WriteChar(), SvStream::WriteCharPtr(), SvStream::WriteInt32AsString(), SvStream::WriteOString(), and SvStream::WriteUInt32AsString().

Referenced by WriteItemListAsRTF(), and WriteRTF().

bool ImpEditEngine::WriteItemListAsRTF ( ItemList rLst,
SvStream rOutput,
sal_Int32  nPara,
sal_Int32  nPos,
std::vector< std::unique_ptr< SvxFontItem >> &  rFontTable,
SvxColorList rColorList 
)
private

Definition at line 243 of file impedit4.cxx.

References ItemList::Count(), ItemList::First(), ItemList::Next(), and WriteItemAsRTF().

Referenced by WriteRTF().

ErrCode ImpEditEngine::WriteRTF ( SvStream rOutput,
EditSelection  aSel 
)
private

Definition at line 279 of file impedit4.cxx.

References EditSelection::Adjust(), aEditDoc, CheckIdleFormatter(), ItemList::Clear(), COL_AUTO(), ItemList::Count(), TextPortionList::Count(), DBG_ASSERT, EE_CHAR_COLOR, EE_CHAR_END, EE_CHAR_FONTHEIGHT, EE_CHAR_FONTINFO, EE_CHAR_FONTINFO_CJK, EE_CHAR_FONTINFO_CTL, EE_CHAR_ITALIC, EE_CHAR_LANGUAGE, EE_CHAR_WEIGHT, EE_FEATURE_FIELD, EE_PARA_START, endl(), FAMILY_DECORATIVE, FAMILY_DONTKNOW, FAMILY_MODERN, FAMILY_ROMAN, FAMILY_SCRIPT, FAMILY_SWISS, SfxStyleSheetBasePool::Find(), CharAttribList::FindFeature(), FindParaPortion(), TextPortionList::FindPortion(), SvStream::Flush(), FormatDoc(), SvtLanguageOptions::FromI18NToSvtScriptType(), SfxItemSet::Get(), GetAttribs(), Color::GetBlue(), ContentNode::GetCharAttribs(), SvxFontItem::GetCharSet(), ContentNode::GetContentAttribs(), SfxItemPool::GetDefaultItem(), EditDoc::GetDefTab(), SvStream::GetError(), SvxFontItem::GetFamily(), SvxFontItem::GetFamilyName(), Color::GetGreen(), GetI18NScriptType(), EditPaM::GetIndex(), EditCharAttrib::GetItem(), EditDoc::GetItemPool(), ContentAttribs::GetItems(), SfxStyleSheetBase::GetItemSet(), SfxItemSet::GetItemState(), SfxItemPool::GetItemSurrogates(), TextPortion::GetLen(), EditPaM::GetNode(), EditDoc::GetObject(), EditDoc::GetParaAsString(), SvxFontItem::GetPitch(), EditDoc::GetPos(), Color::GetRed(), GetRefDevice(), GetRefMapMode(), GetScriptItemId(), EditCharAttrib::GetStart(), ContentNode::GetStyleSheet(), GetStyleSheetPool(), ParaPortion::GetTextPortions(), GetUpdateMode(), ItemList::Insert(), IsFormatted(), IsScriptChange(), lcl_FindValidAttribs(), ContentNode::Len(), OutputDevice::LogicToLogic(), EditSelection::Max(), EditSelection::Min(), nId, OOO_STRING_SVTOOLS_RTF_ANSI, OOO_STRING_SVTOOLS_RTF_BLUE, OOO_STRING_SVTOOLS_RTF_COLORTBL, OOO_STRING_SVTOOLS_RTF_DEFTAB, OOO_STRING_SVTOOLS_RTF_F, OOO_STRING_SVTOOLS_RTF_FCHARSET, OOO_STRING_SVTOOLS_RTF_FDECOR, OOO_STRING_SVTOOLS_RTF_FMODERN, OOO_STRING_SVTOOLS_RTF_FNIL, OOO_STRING_SVTOOLS_RTF_FONTTBL, OOO_STRING_SVTOOLS_RTF_FPRQ, OOO_STRING_SVTOOLS_RTF_FROMAN, OOO_STRING_SVTOOLS_RTF_FSCRIPT, OOO_STRING_SVTOOLS_RTF_FSWISS, OOO_STRING_SVTOOLS_RTF_GREEN, OOO_STRING_SVTOOLS_RTF_IGNORE, OOO_STRING_SVTOOLS_RTF_PAR, OOO_STRING_SVTOOLS_RTF_PARD, OOO_STRING_SVTOOLS_RTF_PLAIN, OOO_STRING_SVTOOLS_RTF_RED, OOO_STRING_SVTOOLS_RTF_RTF, OOO_STRING_SVTOOLS_RTF_S, OOO_STRING_SVTOOLS_RTF_SBASEDON, OOO_STRING_SVTOOLS_RTF_SNEXT, OOO_STRING_SVTOOLS_RTF_STYLESHEET, RTFOutFuncs::Out_String(), PITCH_FIXED, PITCH_VARIABLE, SfxPoolItem::Which(), SvStream::WriteChar(), SvStream::WriteCharPtr(), WriteItemAsRTF(), WriteItemListAsRTF(), SvStream::WriteUInt32AsString(), and X.

Referenced by CreateTransferable(), and Write().

ErrCode ImpEditEngine::WriteText ( SvStream rOutput,
EditSelection  aSel 
)
private
void ImpEditEngine::WriteXML ( SvStream rOutput,
const EditSelection rSel 
)
private

Definition at line 272 of file impedit4.cxx.

References CreateESel(), GetEditEnginePtr(), and SvxWriteXML().

Referenced by CreateTransferable(), and Write().

Friends And Related Function Documentation

friend class EditDbg
friend

Definition at line 423 of file impedit.hxx.

friend class EditEngine
friend

Definition at line 422 of file impedit.hxx.

Member Data Documentation

OUString ImpEditEngine::aAutoCompleteText
private

Definition at line 486 of file impedit.hxx.

Referenced by GetAutoCompleteText(), and SetAutoCompleteText().

Link<MoveParagraphsInfo&,void> ImpEditEngine::aBeginMovingParagraphsHdl
private

Definition at line 518 of file impedit.hxx.

Referenced by ImpMoveParagraphs().

Link<PasteOrDropInfos&,void> ImpEditEngine::aBeginPasteOrDropHdl
private

Definition at line 520 of file impedit.hxx.

std::vector<std::unique_ptr<DeletedNodeInfo> > ImpEditEngine::aDeletedNodes
private

Definition at line 496 of file impedit.hxx.

Referenced by ImpConnectParagraphs(), ShowParagraph(), and UpdateSelections().

EditDoc ImpEditEngine::aEditDoc
private