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

#include <editview.hxx>

Public Types

typedef std::vector< VclPtr< vcl::Window > > OutWindowSet
 

Public Member Functions

ImpEditViewGetImpEditView () const
 
ImpEditEngineGetImpEditEngine () const
 
 EditView (EditEngine *pEng, vcl::Window *pWindow)
 
 ~EditView ()
 
void setEditViewCallbacks (EditViewCallbacks *pEditViewCallbacks)
 
EditViewCallbacksgetEditViewCallbacks () const
 
void SetEditEngine (EditEngine *pEditEngine)
 
EditEngineGetEditEngine () const
 
void SetWindow (vcl::Window *pWin)
 
vcl::WindowGetWindow () const
 
OutputDeviceGetOutputDevice () const
 
LanguageType GetInputLanguage () const
 
bool HasOtherViewWindow (vcl::Window *pWin)
 
bool AddOtherViewWindow (vcl::Window *pWin)
 
bool RemoveOtherViewWindow (vcl::Window *pWin)
 
void Paint (const tools::Rectangle &rRect, OutputDevice *pTargetDevice=nullptr)
 
tools::Rectangle GetInvalidateRect () const
 
void InvalidateWindow (const tools::Rectangle &rClipRect)
 
void InvalidateOtherViewWindows (const tools::Rectangle &rInvRect)
 
void Invalidate ()
 
::Pair Scroll (tools::Long nHorzScroll, tools::Long nVertScroll, ScrollRangeCheck nRangeCheck=ScrollRangeCheck::NoNegative)
 
void SetBroadcastLOKViewCursor (bool bSet)
 
tools::Rectangle GetEditCursor () const
 
void ShowCursor (bool bGotoCursor=true, bool bForceVisCursor=true, bool bActivate=false)
 
void HideCursor (bool bDeactivate=false)
 
void SetSelectionMode (EESelectionMode eMode)
 
void SetReadOnly (bool bReadOnly)
 
bool IsReadOnly () const
 
bool HasSelection () const
 
ESelection GetSelection () const
 
void SetSelection (const ESelection &rNewSel)
 
bool IsSelectionAtPoint (const Point &rPointPixel)
 
void SelectCurrentWord (sal_Int16 nWordType=css::i18n::WordType::ANYWORD_IGNOREWHITESPACES)
 
void GetSelectionRectangles (std::vector< tools::Rectangle > &rLogicRects) const
 Returns the rectangles of the current selection in TWIPs. More...
 
bool IsInsertMode () const
 
void SetInsertMode (bool bInsert)
 
OUString GetSelected () const
 
void DeleteSelected ()
 
SvtScriptType GetSelectedScriptType () const
 
void SetOutputArea (const tools::Rectangle &rRect)
 
const tools::RectangleGetOutputArea () const
 
void SetVisArea (const tools::Rectangle &rRect)
 
tools::Rectangle GetVisArea () const
 
PointerStyle GetPointer () const
 
vcl::CursorGetCursor () const
 
void InsertText (const OUString &rNew, bool bSelect=false, bool bLOKShowSelect=true)
 
void InsertParaBreak ()
 
bool PostKeyEvent (const KeyEvent &rKeyEvent, vcl::Window const *pFrameWin=nullptr)
 
bool MouseButtonUp (const MouseEvent &rMouseEvent)
 
bool MouseButtonDown (const MouseEvent &rMouseEvent)
 
void ReleaseMouse ()
 
bool MouseMove (const MouseEvent &rMouseEvent)
 
bool Command (const CommandEvent &rCEvt)
 
void Cut ()
 
void Copy ()
 
void Paste ()
 
void PasteSpecial ()
 
void Undo ()
 
void Redo ()
 
Point GetWindowPosTopLeft (sal_Int32 nParagraph)
 
void MoveParagraphs (Range aParagraphs, sal_Int32 nNewPos)
 
void MoveParagraphs (tools::Long nDiff)
 
const SfxItemSetGetEmptyItemSet () const
 
SfxItemSet GetAttribs ()
 
void SetAttribs (const SfxItemSet &rSet)
 
void RemoveAttribs (bool bRemoveParaAttribs=false, sal_uInt16 nWhich=0)
 
void RemoveAttribs (EERemoveParaAttribsMode eMode, sal_uInt16 nWhich)
 
void RemoveCharAttribs (sal_Int32 nPara, sal_uInt16 nWhich)
 
void RemoveAttribsKeepLanguages (bool bRemoveParaAttribs)
 
ErrCode Read (SvStream &rInput, EETextFormat eFormat, SvKeyValueIterator *pHTTPHeaderAttrs)
 
void SetBackgroundColor (const Color &rColor)
 
Color const & GetBackgroundColor () const
 
void RegisterViewShell (OutlinerViewShell *pViewShell)
 Informs this edit view about which view shell contains it. More...
 
void RegisterOtherShell (OutlinerViewShell *pOtherShell)
 Informs this edit view about which other shell listens to it. More...
 
void SetControlWord (EVControlBits nWord)
 
EVControlBits GetControlWord () const
 
std::unique_ptr< EditTextObjectCreateTextObject ()
 
void InsertText (const EditTextObject &rTextObject)
 
void InsertText (css::uno::Reference< css::datatransfer::XTransferable > const &xDataObj, const OUString &rBaseURL, bool bUseSpecial)
 
css::uno::Reference< css::datatransfer::clipboard::XClipboard > GetClipboard () const
 
css::uno::Reference< css::datatransfer::XTransferable > GetTransferable () const
 
bool SetEditEngineUpdateLayout (bool bUpdate)
 
void ForceLayoutCalculation ()
 
const SfxStyleSheetGetStyleSheet () const
 
SfxStyleSheetGetStyleSheet ()
 
void SetAnchorMode (EEAnchorMode eMode)
 
EEAnchorMode GetAnchorMode () const
 
void CompleteAutoCorrect (vcl::Window const *pFrameWin=nullptr)
 
EESpellState StartSpeller (weld::Widget *pDialogParent, bool bMultipleDoc=false)
 
EESpellState StartThesaurus (weld::Widget *pDialogParent)
 
sal_Int32 StartSearchAndReplace (const SvxSearchItem &rSearchItem)
 
void StartTextConversion (weld::Widget *pDialogParent, LanguageType nSrcLang, LanguageType nDestLang, const vcl::Font *pDestFont, sal_Int32 nOptions, bool bIsInteractive, bool bMultipleDoc)
 
void TransliterateText (TransliterationFlags nTransliterationMode)
 
bool IsCursorAtWrongSpelledWord ()
 
bool IsWrongSpelledWordAtPos (const Point &rPosPixel, bool bMarkIfWrong=false)
 
bool ExecuteSpellPopup (const Point &rPosPixel, const Link< SpellCallbackInfo &, void > &rCallBack)
 
OUString SpellIgnoreWord ()
 
void InsertField (const SvxFieldItem &rFld)
 
const SvxFieldItemGetFieldUnderMousePointer () const
 
const SvxFieldItemGetFieldUnderMousePointer (sal_Int32 &nPara, sal_Int32 &nPos) const
 
const SvxFieldItemGetField (const Point &rPos, sal_Int32 *pnPara=nullptr, sal_Int32 *pnPos=nullptr) const
 
const SvxFieldItemGetFieldAtSelection () const
 
const SvxFieldDataGetFieldAtCursor () const
 Select and return the field at the current cursor position. More...
 
void SelectFieldAtCursor ()
 
sal_Int32 GetPosNoField (sal_Int32 nPara, sal_Int32 nPos) const
 Converts position in paragraph to logical position without unfolding fields. More...
 
sal_Int32 GetPosWithField (sal_Int32 nPara, sal_Int32 nPos) const
 Converts logical position in paragraph to position with unfolded fields. More...
 
void SetInvalidateMore (sal_uInt16 nPixel)
 
sal_uInt16 GetInvalidateMore () const
 
void ChangeFontSize (bool bGrow, const FontList *pList)
 
OUString GetSurroundingText () const
 
Selection GetSurroundingTextSelection () const
 
bool DeleteSurroundingText (const Selection &rRange)
 
void SetCursorLogicPosition (const Point &rPosition, bool bPoint, bool bClearMark)
 Allows adjusting the point or mark of the selection to a document coordinate. More...
 
void DrawSelectionXOR (OutlinerViewShell *pOtherShell)
 Trigger selection drawing callback in pOtherShell based on our shell's selection state. More...
 
void InitLOKSpecialPositioning (MapUnit eUnit, const tools::Rectangle &rOutputArea, const Point &rVisDocStartPos)
 This is meant for Calc(LOK), but there may be other use-cases. More...
 
void SetLOKSpecialOutputArea (const tools::Rectangle &rOutputArea)
 
const tools::RectangleGetLOKSpecialOutputArea () const
 
void SetLOKSpecialVisArea (const tools::Rectangle &rVisArea)
 
tools::Rectangle GetLOKSpecialVisArea () const
 
bool HasLOKSpecialPositioning () const
 
void SetLOKSpecialFlags (LOKSpecialFlags eFlags)
 
void SuppressLOKMessages (bool bSet)
 
bool IsSuppressLOKMessages () const
 
void SetNegativeX (bool bSet)
 To inform editeng that negated x document coordinates are in use. More...
 
bool IsNegativeX () const
 

Static Public Member Functions

static bool ChangeFontSize (bool bGrow, SfxItemSet &rSet, const FontList *pFontList)
 
static LanguageType CheckLanguage (const OUString &rText, const css::uno::Reference< css::linguistic2::XSpellChecker1 > &xSpell, const css::uno::Reference< css::linguistic2::XLanguageGuessing > &xLangGuess, bool bIsParaText)
 Tries to determine the language of 'rText', returning a matching known locale if possible, or a fallback, or LANGUAGE_NONE if nothing found or matched. More...
 

Private Member Functions

 EditView (const EditView &)=delete
 
EditViewoperator= (const EditView &)=delete
 
sal_Int32 countFieldsOffsetSum (sal_Int32 nPara, sal_Int32 nPo, bool bCanOverflow) const
 

Private Attributes

std::unique_ptr< ImpEditViewpImpEditView
 
OUString aDicNameSingle
 

Friends

class EditEngine
 
class ImpEditEngine
 
class EditSelFunctionSet
 

Detailed Description

Definition at line 152 of file editview.hxx.

Member Typedef Documentation

◆ OutWindowSet

typedef std::vector<VclPtr<vcl::Window> > EditView::OutWindowSet

Definition at line 159 of file editview.hxx.

Constructor & Destructor Documentation

◆ EditView() [1/2]

EditView::EditView ( const EditView )
privatedelete

◆ EditView() [2/2]

EditView::EditView ( EditEngine pEng,
vcl::Window pWindow 
)

Definition at line 154 of file editview.cxx.

References pImpEditView.

◆ ~EditView()

EditView::~EditView ( )

Definition at line 159 of file editview.cxx.

Member Function Documentation

◆ AddOtherViewWindow()

bool EditView::AddOtherViewWindow ( vcl::Window pWin)

Definition at line 382 of file editview.cxx.

References HasOtherViewWindow(), and pImpEditView.

◆ ChangeFontSize() [1/2]

void EditView::ChangeFontSize ( bool  bGrow,
const FontList pList 
)

◆ ChangeFontSize() [2/2]

bool EditView::ChangeFontSize ( bool  bGrow,
SfxItemSet rSet,
const FontList pFontList 
)
static

◆ CheckLanguage()

LanguageType EditView::CheckLanguage ( const OUString &  rText,
const css::uno::Reference< css::linguistic2::XSpellChecker1 > &  xSpell,
const css::uno::Reference< css::linguistic2::XLanguageGuessing > &  xLangGuess,
bool  bIsParaText 
)
static

Tries to determine the language of 'rText', returning a matching known locale if possible, or a fallback, or LANGUAGE_NONE if nothing found or matched.

Parameters
bIsParaTextIf TRUE, rText is a paragraph and the language is obtained by passing the text to xLangGuess. IF FALSE, a language match is tried for, in order,
  1. the default document language (non-CTL, non-CJK, aka LATIN)
  2. the UI language (Tools->Options->LanguageSettings->Languages User Interface)
  3. the locale (Tools->Options->LanguageSettings->Languages Locale)
  4. en-US If nothing matched, LANGUAGE_NONE is returned.

Definition at line 74 of file editview.cxx.

References LanguageTag::convertToLocale(), LanguageTag::getCountry(), LanguageTag::getLanguage(), AllSettings::GetLanguageTag(), LanguageTag::getLanguageType(), SvtLinguConfig::GetOptions(), Application::GetSettings(), AllSettings::GetUILanguageTag(), LANGUAGE_DONTKNOW, LANGUAGE_ENGLISH_US, LANGUAGE_NONE, LANGUAGE_SYSTEM, LanguageTag::makeFallback(), SvtLinguOptions::nDefaultLanguage, and MsLangId::resolveSystemLanguageByScriptType().

Referenced by ExecuteSpellPopup().

◆ Command()

bool EditView::Command ( const CommandEvent rCEvt)

Definition at line 493 of file editview.cxx.

References pImpEditView.

◆ CompleteAutoCorrect()

void EditView::CompleteAutoCorrect ( vcl::Window const *  pFrameWin = nullptr)

Definition at line 848 of file editview.cxx.

References HasSelection(), IsInsertMode(), EditSelection::Max(), and pImpEditView.

◆ Copy()

void EditView::Copy ( )

Definition at line 666 of file editview.cxx.

References GetClipboard(), and pImpEditView.

◆ countFieldsOffsetSum()

sal_Int32 EditView::countFieldsOffsetSum ( sal_Int32  nPara,
sal_Int32  nPo,
bool  bCanOverflow 
) const
private

◆ CreateTextObject()

std::unique_ptr< EditTextObject > EditView::CreateTextObject ( )

Definition at line 750 of file editview.cxx.

References pImpEditView.

◆ Cut()

void EditView::Cut ( )

Definition at line 648 of file editview.cxx.

References GetClipboard(), and pImpEditView.

◆ DeleteSelected()

void EditView::DeleteSelected ( )

Definition at line 324 of file editview.cxx.

References pImpEditView.

Referenced by ImpEditEngine::Command(), and DeleteSurroundingText().

◆ DeleteSurroundingText()

bool EditView::DeleteSurroundingText ( const Selection rRange)

◆ DrawSelectionXOR()

void EditView::DrawSelectionXOR ( OutlinerViewShell pOtherShell)

Trigger selection drawing callback in pOtherShell based on our shell's selection state.

Definition at line 1691 of file editview.cxx.

References pImpEditView.

◆ ExecuteSpellPopup()

bool EditView::ExecuteSpellPopup ( const Point rPosPixel,
const Link< SpellCallbackInfo &, void > &  rCallBack 
)

◆ ForceLayoutCalculation()

void EditView::ForceLayoutCalculation ( )

Definition at line 788 of file editview.cxx.

References pImpEditView.

◆ GetAnchorMode()

EEAnchorMode EditView::GetAnchorMode ( ) const

Definition at line 831 of file editview.cxx.

References pImpEditView.

◆ GetAttribs()

SfxItemSet EditView::GetAttribs ( )

◆ GetBackgroundColor()

Color const & EditView::GetBackgroundColor ( ) const

Definition at line 725 of file editview.cxx.

References pImpEditView.

◆ GetClipboard()

Reference< css::datatransfer::clipboard::XClipboard > EditView::GetClipboard ( ) const

Definition at line 654 of file editview.cxx.

References pImpEditView.

Referenced by Copy(), Cut(), Paste(), and PasteSpecial().

◆ GetControlWord()

EVControlBits EditView::GetControlWord ( ) const

Definition at line 745 of file editview.cxx.

References pImpEditView.

◆ GetCursor()

vcl::Cursor * EditView::GetCursor ( ) const

Definition at line 431 of file editview.cxx.

References pImpEditView.

◆ GetEditCursor()

tools::Rectangle EditView::GetEditCursor ( ) const

Definition at line 503 of file editview.cxx.

References pImpEditView.

◆ GetEditEngine()

EditEngine * EditView::GetEditEngine ( ) const

◆ getEditViewCallbacks()

EditViewCallbacks * EditView::getEditViewCallbacks ( ) const

Definition at line 168 of file editview.cxx.

References pImpEditView.

Referenced by ImpEditEngine::Command(), and ImpEditEngine::MouseButtonUp().

◆ GetEmptyItemSet()

const SfxItemSet & EditView::GetEmptyItemSet ( ) const

◆ GetField()

const SvxFieldItem * EditView::GetField ( const Point rPos,
sal_Int32 *  pnPara = nullptr,
sal_Int32 *  pnPos = nullptr 
) const

Definition at line 1320 of file editview.cxx.

References pImpEditView.

Referenced by GetFieldUnderMousePointer(), and ImpEditEngine::MouseButtonUp().

◆ GetFieldAtCursor()

const SvxFieldData * EditView::GetFieldAtCursor ( ) const

Select and return the field at the current cursor position.

Definition at line 1389 of file editview.cxx.

References SvxFieldItem::GetField(), GetFieldAtSelection(), and GetFieldUnderMousePointer().

Referenced by URLFieldHelper::IsCursorAtURLField(), and URLFieldHelper::RemoveURLField().

◆ GetFieldAtSelection()

const SvxFieldItem * EditView::GetFieldAtSelection ( ) const

◆ GetFieldUnderMousePointer() [1/2]

const SvxFieldItem * EditView::GetFieldUnderMousePointer ( ) const

Definition at line 1313 of file editview.cxx.

References GetFieldUnderMousePointer(), and nPos.

Referenced by GetFieldAtCursor(), and GetFieldUnderMousePointer().

◆ GetFieldUnderMousePointer() [2/2]

const SvxFieldItem * EditView::GetFieldUnderMousePointer ( sal_Int32 &  nPara,
sal_Int32 &  nPos 
) const

Definition at line 1325 of file editview.cxx.

References GetField(), nPos, pImpEditView, and OutputDevice::PixelToLogic().

◆ GetImpEditEngine()

ImpEditEngine * EditView::GetImpEditEngine ( ) const

◆ GetImpEditView()

ImpEditView * EditView::GetImpEditView ( ) const
inline

◆ GetInputLanguage()

LanguageType EditView::GetInputLanguage ( ) const

Definition at line 367 of file editview.cxx.

References GetWindow(), and LANGUAGE_DONTKNOW.

◆ GetInvalidateMore()

sal_uInt16 EditView::GetInvalidateMore ( ) const

Definition at line 1450 of file editview.cxx.

References pImpEditView.

◆ GetInvalidateRect()

tools::Rectangle EditView::GetInvalidateRect ( ) const

◆ GetLOKSpecialOutputArea()

const tools::Rectangle & EditView::GetLOKSpecialOutputArea ( ) const

Definition at line 1710 of file editview.cxx.

References pImpEditView.

◆ GetLOKSpecialVisArea()

tools::Rectangle EditView::GetLOKSpecialVisArea ( ) const

Definition at line 1720 of file editview.cxx.

References pImpEditView.

◆ GetOutputArea()

const tools::Rectangle & EditView::GetOutputArea ( ) const

Definition at line 421 of file editview.cxx.

References pImpEditView.

Referenced by EditEngine::DumpData(), and EditEngine::PostKeyEvent().

◆ GetOutputDevice()

OutputDevice & EditView::GetOutputDevice ( ) const

Definition at line 362 of file editview.cxx.

References pImpEditView.

◆ GetPointer()

PointerStyle EditView::GetPointer ( ) const

Definition at line 426 of file editview.cxx.

References pImpEditView.

◆ GetPosNoField()

sal_Int32 EditView::GetPosNoField ( sal_Int32  nPara,
sal_Int32  nPos 
) const

Converts position in paragraph to logical position without unfolding fields.

Definition at line 1432 of file editview.cxx.

References countFieldsOffsetSum(), and nPos.

◆ GetPosWithField()

sal_Int32 EditView::GetPosWithField ( sal_Int32  nPara,
sal_Int32  nPos 
) const

Converts logical position in paragraph to position with unfolded fields.

Definition at line 1439 of file editview.cxx.

References countFieldsOffsetSum(), and nPos.

◆ GetSelected()

OUString EditView::GetSelected ( ) const

Definition at line 695 of file editview.cxx.

References pImpEditView.

Referenced by ExecuteSpellPopup(), and TextConvWrapper::ReplaceUnit().

◆ GetSelectedScriptType()

SvtScriptType EditView::GetSelectedScriptType ( ) const

Definition at line 329 of file editview.cxx.

References pImpEditView.

◆ GetSelection()

ESelection EditView::GetSelection ( ) const

◆ GetSelectionRectangles()

void EditView::GetSelectionRectangles ( std::vector< tools::Rectangle > &  rLogicRects) const

Returns the rectangles of the current selection in TWIPs.

Definition at line 334 of file editview.cxx.

References pImpEditView.

◆ GetStyleSheet() [1/2]

SfxStyleSheet * EditView::GetStyleSheet ( )

◆ GetStyleSheet() [2/2]

const SfxStyleSheet * EditView::GetStyleSheet ( ) const

Definition at line 811 of file editview.cxx.

References GetStyleSheet().

Referenced by GetStyleSheet().

◆ GetSurroundingText()

OUString EditView::GetSurroundingText ( ) const

◆ GetSurroundingTextSelection()

Selection EditView::GetSurroundingTextSelection ( ) const

◆ GetTransferable()

css::uno::Reference< css::datatransfer::XTransferable > EditView::GetTransferable ( ) const

Definition at line 659 of file editview.cxx.

References EditEngine::CreateTransferable(), GetEditEngine(), and pImpEditView.

◆ GetVisArea()

tools::Rectangle EditView::GetVisArea ( ) const

Definition at line 405 of file editview.cxx.

References pImpEditView.

Referenced by EditEngine::DumpData(), ImpEditEngine::PageDown(), and ImpEditEngine::PageUp().

◆ GetWindow()

vcl::Window * EditView::GetWindow ( ) const

◆ GetWindowPosTopLeft()

Point EditView::GetWindowPosTopLeft ( sal_Int32  nParagraph)

Definition at line 684 of file editview.cxx.

References pImpEditView.

◆ HasLOKSpecialPositioning()

bool EditView::HasLOKSpecialPositioning ( ) const

Definition at line 1725 of file editview.cxx.

References pImpEditView.

◆ HasOtherViewWindow()

bool EditView::HasOtherViewWindow ( vcl::Window pWin)

Definition at line 375 of file editview.cxx.

References pImpEditView.

Referenced by AddOtherViewWindow().

◆ HasSelection()

bool EditView::HasSelection ( ) const

◆ HideCursor()

void EditView::HideCursor ( bool  bDeactivate = false)

Definition at line 532 of file editview.cxx.

References pImpEditView.

Referenced by ImpEditEngine::Command(), EditEngine::RemoveView(), and Outliner::RemoveView().

◆ InitLOKSpecialPositioning()

void EditView::InitLOKSpecialPositioning ( MapUnit  eUnit,
const tools::Rectangle rOutputArea,
const Point rVisDocStartPos 
)

This is meant for Calc(LOK), but there may be other use-cases.

In Calc, all logical positions are computed by doing independent pixel-alignment for each cell's size. The LOKSpecial methods can be used to set/get the output-area and visible-area in real logical units. This enables EditView to send cursor/selection messages in real logical units like it is done for Writer.

Definition at line 1698 of file editview.cxx.

References pImpEditView.

◆ InsertField()

void EditView::InsertField ( const SvxFieldItem rFld)

◆ InsertParaBreak()

void EditView::InsertParaBreak ( )

Definition at line 1289 of file editview.cxx.

References EDITUNDO_INSERT, and pImpEditView.

◆ InsertText() [1/3]

void EditView::InsertText ( const EditTextObject rTextObject)

◆ InsertText() [2/3]

void EditView::InsertText ( const OUString &  rNew,
bool  bSelect = false,
bool  bLOKShowSelect = true 
)

◆ InsertText() [3/3]

void EditView::InsertText ( css::uno::Reference< css::datatransfer::XTransferable > const &  xDataObj,
const OUString &  rBaseURL,
bool  bUseSpecial 
)

◆ Invalidate()

void EditView::Invalidate ( )

◆ InvalidateOtherViewWindows()

void EditView::InvalidateOtherViewWindows ( const tools::Rectangle rInvRect)

Definition at line 226 of file editview.cxx.

References comphelper::LibreOfficeKit::isActive(), IsNegativeX(), and pImpEditView.

Referenced by Invalidate().

◆ InvalidateWindow()

void EditView::InvalidateWindow ( const tools::Rectangle rClipRect)

Definition at line 208 of file editview.cxx.

References GetWindow(), vcl::Window::Invalidate(), IsNegativeX(), and pImpEditView.

◆ IsCursorAtWrongSpelledWord()

bool EditView::IsCursorAtWrongSpelledWord ( )

Definition at line 890 of file editview.cxx.

References HasSelection(), and pImpEditView.

◆ IsInsertMode()

bool EditView::IsInsertMode ( ) const

◆ IsNegativeX()

bool EditView::IsNegativeX ( ) const

Definition at line 1750 of file editview.cxx.

References pImpEditView.

Referenced by InvalidateOtherViewWindows(), and InvalidateWindow().

◆ IsReadOnly()

bool EditView::IsReadOnly ( ) const

Definition at line 251 of file editview.cxx.

References pImpEditView.

Referenced by EditEngine::PostKeyEvent().

◆ IsSelectionAtPoint()

bool EditView::IsSelectionAtPoint ( const Point rPointPixel)

Definition at line 319 of file editview.cxx.

References pImpEditView.

◆ IsSuppressLOKMessages()

bool EditView::IsSuppressLOKMessages ( ) const

Definition at line 1740 of file editview.cxx.

References pImpEditView.

◆ IsWrongSpelledWordAtPos()

bool EditView::IsWrongSpelledWordAtPos ( const Point rPosPixel,
bool  bMarkIfWrong = false 
)

Definition at line 901 of file editview.cxx.

References pImpEditView.

◆ MouseButtonDown()

bool EditView::MouseButtonDown ( const MouseEvent rMouseEvent)

Definition at line 483 of file editview.cxx.

References pImpEditView.

◆ MouseButtonUp()

bool EditView::MouseButtonUp ( const MouseEvent rMouseEvent)

Definition at line 473 of file editview.cxx.

References pImpEditView.

◆ MouseMove()

bool EditView::MouseMove ( const MouseEvent rMouseEvent)

Definition at line 488 of file editview.cxx.

References pImpEditView.

◆ MoveParagraphs() [1/2]

void EditView::MoveParagraphs ( Range  aParagraphs,
sal_Int32  nNewPos 
)

Definition at line 700 of file editview.cxx.

References EDITUNDO_MOVEPARAS, and pImpEditView.

Referenced by ImpEditView::drop(), and MoveParagraphs().

◆ MoveParagraphs() [2/2]

void EditView::MoveParagraphs ( tools::Long  nDiff)

◆ operator=()

EditView & EditView::operator= ( const EditView )
privatedelete

◆ Paint()

void EditView::Paint ( const tools::Rectangle rRect,
OutputDevice pTargetDevice = nullptr 
)

Definition at line 339 of file editview.cxx.

References pImpEditView.

◆ Paste()

void EditView::Paste ( )

Definition at line 672 of file editview.cxx.

References GetClipboard(), and pImpEditView.

◆ PasteSpecial()

void EditView::PasteSpecial ( )

Definition at line 678 of file editview.cxx.

References GetClipboard(), and pImpEditView.

◆ PostKeyEvent()

bool EditView::PostKeyEvent ( const KeyEvent rKeyEvent,
vcl::Window const *  pFrameWin = nullptr 
)

Definition at line 468 of file editview.cxx.

References pImpEditView.

◆ Read()

ErrCode EditView::Read ( SvStream rInput,
EETextFormat  eFormat,
SvKeyValueIterator pHTTPHeaderAttrs 
)

Definition at line 632 of file editview.cxx.

References EDITUNDO_READ, SvStream::GetError(), pImpEditView, and ShowCursor().

◆ Redo()

void EditView::Redo ( )

Definition at line 627 of file editview.cxx.

References pImpEditView.

Referenced by EditEngine::PostKeyEvent().

◆ RegisterOtherShell()

void EditView::RegisterOtherShell ( OutlinerViewShell pOtherShell)

Informs this edit view about which other shell listens to it.

Definition at line 735 of file editview.cxx.

References pImpEditView.

◆ RegisterViewShell()

void EditView::RegisterViewShell ( OutlinerViewShell pViewShell)

Informs this edit view about which view shell contains it.

Definition at line 730 of file editview.cxx.

References pImpEditView.

◆ ReleaseMouse()

void EditView::ReleaseMouse ( )

Definition at line 478 of file editview.cxx.

References pImpEditView.

◆ RemoveAttribs() [1/2]

void EditView::RemoveAttribs ( bool  bRemoveParaAttribs = false,
sal_uInt16  nWhich = 0 
)

Definition at line 591 of file editview.cxx.

References RemoveAll, RemoveAttribs(), and RemoveCharItems.

Referenced by TextConvWrapper::ChangeText_impl(), and RemoveAttribs().

◆ RemoveAttribs() [2/2]

void EditView::RemoveAttribs ( EERemoveParaAttribsMode  eMode,
sal_uInt16  nWhich 
)

Definition at line 597 of file editview.cxx.

References EDITUNDO_RESETATTRIBS, eMode, and pImpEditView.

◆ RemoveAttribsKeepLanguages()

void EditView::RemoveAttribsKeepLanguages ( bool  bRemoveParaAttribs)

◆ RemoveCharAttribs()

void EditView::RemoveCharAttribs ( sal_Int32  nPara,
sal_uInt16  nWhich 
)

Definition at line 607 of file editview.cxx.

References EDITUNDO_RESETATTRIBS, and pImpEditView.

◆ RemoveOtherViewWindow()

bool EditView::RemoveOtherViewWindow ( vcl::Window pWin)

Definition at line 390 of file editview.cxx.

References pImpEditView.

◆ Scroll()

Pair EditView::Scroll ( tools::Long  nHorzScroll,
tools::Long  nVertScroll,
ScrollRangeCheck  nRangeCheck = ScrollRangeCheck::NoNegative 
)

Definition at line 550 of file editview.cxx.

References pImpEditView.

◆ SelectCurrentWord()

void EditView::SelectCurrentWord ( sal_Int16  nWordType = css::i18n::WordType::ANYWORD_IGNOREWHITESPACES)

Definition at line 1279 of file editview.cxx.

References EditSelection::Max(), pImpEditView, and ShowCursor().

Referenced by ReplaceTextWithSynonym().

◆ SelectFieldAtCursor()

void EditView::SelectFieldAtCursor ( )

◆ SetAnchorMode()

void EditView::SetAnchorMode ( EEAnchorMode  eMode)

Definition at line 826 of file editview.cxx.

References eMode, and pImpEditView.

◆ SetAttribs()

void EditView::SetAttribs ( const SfxItemSet rSet)

◆ SetBackgroundColor()

void EditView::SetBackgroundColor ( const Color rColor)

Definition at line 719 of file editview.cxx.

References pImpEditView.

◆ SetBroadcastLOKViewCursor()

void EditView::SetBroadcastLOKViewCursor ( bool  bSet)

Definition at line 498 of file editview.cxx.

References pImpEditView.

◆ SetControlWord()

void EditView::SetControlWord ( EVControlBits  nWord)

Definition at line 740 of file editview.cxx.

References pImpEditView.

◆ SetCursorLogicPosition()

void EditView::SetCursorLogicPosition ( const Point rPosition,
bool  bPoint,
bool  bClearMark 
)

Allows adjusting the point or mark of the selection to a document coordinate.

Definition at line 1663 of file editview.cxx.

References EditSelection::Max(), EditSelection::Min(), pImpEditView, and ShowCursor().

◆ SetEditEngine()

void EditView::SetEditEngine ( EditEngine pEditEngine)

Definition at line 344 of file editview.cxx.

References pImpEditView.

◆ SetEditEngineUpdateLayout()

bool EditView::SetEditEngineUpdateLayout ( bool  bUpdate)

Definition at line 783 of file editview.cxx.

References pImpEditView.

◆ setEditViewCallbacks()

void EditView::setEditViewCallbacks ( EditViewCallbacks pEditViewCallbacks)

Definition at line 163 of file editview.cxx.

References pImpEditView.

◆ SetInsertMode()

void EditView::SetInsertMode ( bool  bInsert)

Definition at line 821 of file editview.cxx.

References pImpEditView.

Referenced by ImpEditEngine::Command(), and EditEngine::PostKeyEvent().

◆ SetInvalidateMore()

void EditView::SetInvalidateMore ( sal_uInt16  nPixel)

Definition at line 1445 of file editview.cxx.

References nPixel, and pImpEditView.

◆ SetLOKSpecialFlags()

void EditView::SetLOKSpecialFlags ( LOKSpecialFlags  eFlags)

Definition at line 1730 of file editview.cxx.

References pImpEditView.

◆ SetLOKSpecialOutputArea()

void EditView::SetLOKSpecialOutputArea ( const tools::Rectangle rOutputArea)

Definition at line 1705 of file editview.cxx.

References pImpEditView.

◆ SetLOKSpecialVisArea()

void EditView::SetLOKSpecialVisArea ( const tools::Rectangle rVisArea)

Definition at line 1715 of file editview.cxx.

References pImpEditView.

◆ SetNegativeX()

void EditView::SetNegativeX ( bool  bSet)

To inform editeng that negated x document coordinates are in use.

Definition at line 1745 of file editview.cxx.

References pImpEditView.

◆ SetOutputArea()

void EditView::SetOutputArea ( const tools::Rectangle rRect)

Definition at line 410 of file editview.cxx.

References pImpEditView.

◆ SetReadOnly()

void EditView::SetReadOnly ( bool  bReadOnly)

Definition at line 246 of file editview.cxx.

References bReadOnly, and pImpEditView.

◆ SetSelection()

void EditView::SetSelection ( const ESelection rNewSel)

◆ SetSelectionMode()

void EditView::SetSelectionMode ( EESelectionMode  eMode)

Definition at line 690 of file editview.cxx.

References eMode, and pImpEditView.

◆ SetVisArea()

void EditView::SetVisArea ( const tools::Rectangle rRect)

Definition at line 400 of file editview.cxx.

References pImpEditView, and tools::Rectangle::TopLeft().

◆ SetWindow()

void EditView::SetWindow ( vcl::Window pWin)

Definition at line 351 of file editview.cxx.

References pImpEditView.

◆ ShowCursor()

void EditView::ShowCursor ( bool  bGotoCursor = true,
bool  bForceVisCursor = true,
bool  bActivate = false 
)

◆ SpellIgnoreWord()

OUString EditView::SpellIgnoreWord ( )

Definition at line 1274 of file editview.cxx.

References pImpEditView.

◆ StartSearchAndReplace()

sal_Int32 EditView::StartSearchAndReplace ( const SvxSearchItem rSearchItem)

Definition at line 885 of file editview.cxx.

References pImpEditView.

◆ StartSpeller()

EESpellState EditView::StartSpeller ( weld::Widget pDialogParent,
bool  bMultipleDoc = false 
)

Definition at line 862 of file editview.cxx.

References NoSpeller, and pImpEditView.

◆ StartTextConversion()

void EditView::StartTextConversion ( weld::Widget pDialogParent,
LanguageType  nSrcLang,
LanguageType  nDestLang,
const vcl::Font pDestFont,
sal_Int32  nOptions,
bool  bIsInteractive,
bool  bMultipleDoc 
)

Definition at line 878 of file editview.cxx.

References pImpEditView.

◆ StartThesaurus()

EESpellState EditView::StartThesaurus ( weld::Widget pDialogParent)

Definition at line 870 of file editview.cxx.

References NoSpeller, and pImpEditView.

◆ SuppressLOKMessages()

void EditView::SuppressLOKMessages ( bool  bSet)

Definition at line 1735 of file editview.cxx.

References pImpEditView.

◆ TransliterateText()

void EditView::TransliterateText ( TransliterationFlags  nTransliterationMode)

Definition at line 836 of file editview.cxx.

References pImpEditView.

◆ Undo()

void EditView::Undo ( )

Definition at line 622 of file editview.cxx.

References pImpEditView.

Referenced by EditEngine::PostKeyEvent().

Friends And Related Function Documentation

◆ EditEngine

friend class EditEngine
friend

Definition at line 154 of file editview.hxx.

◆ EditSelFunctionSet

friend class EditSelFunctionSet
friend

Definition at line 156 of file editview.hxx.

◆ ImpEditEngine

friend class ImpEditEngine
friend

Definition at line 155 of file editview.hxx.

Member Data Documentation

◆ aDicNameSingle

OUString EditView::aDicNameSingle
private

Definition at line 168 of file editview.hxx.

Referenced by ExecuteSpellPopup().

◆ pImpEditView

std::unique_ptr<ImpEditView> EditView::pImpEditView
private

Definition at line 167 of file editview.hxx.

Referenced by AddOtherViewWindow(), ImpEditEngine::AddPortionIterated(), ImpEditEngine::ApplyChangedSentence(), ChangeFontSize(), ImpEditEngine::Clear(), Command(), ImpEditEngine::Command(), CompleteAutoCorrect(), ImpEditEngine::Convert(), Copy(), countFieldsOffsetSum(), EditSelFunctionSet::CreateAnchor(), CreateTextObject(), ImpEditEngine::CursorDown(), ImpEditEngine::CursorUp(), ImpEditEngine::CursorVisualLeftRight(), ImpEditEngine::CursorVisualStartEnd(), Cut(), DeleteSelected(), EditSelFunctionSet::DeselectAll(), ImpEditEngine::DoOnlineSpelling(), DrawSelectionXOR(), EditView(), ExecuteSpellPopup(), ForceLayoutCalculation(), GetAnchorMode(), GetAttribs(), GetBackgroundColor(), GetClipboard(), GetControlWord(), GetCursor(), GetEditCursor(), GetEditEngine(), getEditViewCallbacks(), GetEmptyItemSet(), GetField(), GetFieldAtSelection(), GetFieldUnderMousePointer(), GetImpEditEngine(), GetInvalidateMore(), GetInvalidateRect(), GetLOKSpecialOutputArea(), GetLOKSpecialVisArea(), GetOutputArea(), GetOutputDevice(), GetPointer(), GetSelected(), GetSelectedScriptType(), GetSelection(), GetSelectionRectangles(), GetStyleSheet(), GetSurroundingText(), GetSurroundingTextSelection(), GetTransferable(), GetVisArea(), GetWindow(), GetWindowPosTopLeft(), HasLOKSpecialPositioning(), HasOtherViewWindow(), HasSelection(), HideCursor(), ImpEditEngine::ImpConvert(), ImpEditEngine::ImpSpell(), InitLOKSpecialPositioning(), InsertField(), InsertParaBreak(), InsertText(), EditEngine::InsertView(), Invalidate(), InvalidateOtherViewWindows(), InvalidateWindow(), IsCursorAtWrongSpelledWord(), IsInsertMode(), IsNegativeX(), IsReadOnly(), IsSelectionAtPoint(), EditSelFunctionSet::IsSelectionAtPoint(), IsSuppressLOKMessages(), IsWrongSpelledWordAtPos(), MouseButtonDown(), ImpEditEngine::MouseButtonDown(), MouseButtonUp(), ImpEditEngine::MouseButtonUp(), MouseMove(), ImpEditEngine::MoveCursor(), MoveParagraphs(), Paint(), EditEngine::ParagraphHeightChanged(), Paste(), PasteSpecial(), EditEngine::PostKeyEvent(), PostKeyEvent(), ImpEditEngine::PutSpellingToSentenceStart(), Read(), Redo(), RegisterOtherShell(), RegisterViewShell(), ReleaseMouse(), RemoveAttribs(), RemoveAttribsKeepLanguages(), RemoveCharAttribs(), RemoveOtherViewWindow(), EditEngine::RemoveView(), Scroll(), ImpEditEngine::Search(), SelectCurrentWord(), ImpEditEngine::SetActiveView(), SetAnchorMode(), SetAttribs(), SetBackgroundColor(), SetBroadcastLOKViewCursor(), SetControlWord(), EditSelFunctionSet::SetCursorAtPoint(), SetCursorLogicPosition(), SetEditEngine(), SetEditEngineUpdateLayout(), setEditViewCallbacks(), SetInsertMode(), SetInvalidateMore(), SetLOKSpecialFlags(), SetLOKSpecialOutputArea(), SetLOKSpecialVisArea(), SetNegativeX(), SetOutputArea(), EditEngine::SetPaperSize(), SetReadOnly(), SetSelection(), SetSelectionMode(), SetVisArea(), SetWindow(), ShowCursor(), ImpEditEngine::Spell(), SpellIgnoreWord(), ImpEditEngine::SpellSentence(), StartSearchAndReplace(), ImpEditEngine::StartSearchAndReplace(), StartSpeller(), StartTextConversion(), ImpEditEngine::StartThesaurus(), StartThesaurus(), SuppressLOKMessages(), TransliterateText(), Undo(), and ImpEditEngine::UpdateViews().


The documentation for this class was generated from the following files: