LibreOffice Module cui (master) 1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
svx::SentenceEditWindow_Impl Class Reference

#include <SpellDialog.hxx>

Inheritance diagram for svx::SentenceEditWindow_Impl:
Collaboration diagram for svx::SentenceEditWindow_Impl:

Public Member Functions

 SentenceEditWindow_Impl ()
virtual void SetDrawingArea (weld::DrawingArea *pDrawingArea) override
void SetSpellDialog (SpellDialog *pDialog)
virtual ~SentenceEditWindow_Impl () override
void Init (weld::Toolbar *pToolbar)
void SetModifyHdl (const Link< LinkParamNone *, void > &rLink)
void SetAttrib (const SfxPoolItem &rItem, sal_Int32 nStart, sal_Int32 nEnd)
void SetText (const OUString &rStr)
bool MarkNextError (bool bIgnoreCurrentError, const css::uno::Reference< css::linguistic2::XSpellChecker1 > &)
int ChangeMarkedWord (const OUString &rNewWord, LanguageType eLanguage)
void MoveErrorMarkTo (sal_Int32 nErrorStart, sal_Int32 nErrorEnd, bool bGrammar)
OUString GetErrorText () const
void RestoreCurrentError ()
void SetAlternatives (const css::uno::Reference< css::linguistic2::XSpellAlternatives > &)
bool GetAlternatives (SpellErrorDescription &rDesc)
void ClearModifyFlag ()
void ResetModified ()
bool IsModified () const
bool IsUndoEditMode () const
void SetUndoEditMode (bool bSet)
svx::SpellPortions CreateSpellPortions () const
void ResetUndo ()
void Undo ()
void AddUndoAction (std::unique_ptr< SfxUndoAction > pAction)
size_t GetUndoActionCount () const
void UndoActionStart (sal_uInt16 nId)
void UndoActionEnd ()
void MoveErrorEnd (tools::Long nOffset)
void ResetIgnoreErrorsAt ()
- Public Member Functions inherited from WeldEditView
 WeldEditView ()
virtual void SetDrawingArea (weld::DrawingArea *pDrawingArea) override
virtual int GetSurroundingText (OUString &rSurrounding) override
virtual bool DeleteSurroundingText (const Selection &rRange) override
void SetText (const OUString &rStr)
OUString GetText () const
virtual FactoryFunction GetUITestFactory () const override
void SetModifyHdl (const Link< LinkParamNone *, void > &rLink)
virtual EditViewGetEditView () const
virtual EditEngineGetEditEngine () const
bool HasSelection () const
void Delete ()
void Cut ()
void Copy ()
void Paste ()
virtual ~WeldEditView () override
virtual void Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
virtual bool MouseMove (const MouseEvent &rMEvt) override
virtual bool MouseButtonDown (const MouseEvent &rMEvt) override
virtual bool MouseButtonUp (const MouseEvent &rMEvt) override
virtual bool KeyInput (const KeyEvent &rKEvt) override
virtual bool Command (const CommandEvent &rCEvt) override
virtual bool CanFocus () const
virtual void GetFocus () override
virtual void LoseFocus () override
virtual void Resize () override
virtual css::uno::Reference< css::datatransfer::clipboard::XClipboard > GetClipboard () const override
virtual css::uno::Reference< css::datatransfer::dnd::XDropTarget > GetDropTarget () override
bool GetAcceptsTab () const
void SetAcceptsTab (bool bAcceptsTab)

Protected Member Functions

virtual bool KeyInput (const KeyEvent &rKEvt) override
- Protected Member Functions inherited from WeldEditView
virtual void makeEditEngine ()
void InitAccessible ()
void DoPaint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible () override
virtual void EditViewInvalidate (const tools::Rectangle &rRect) override
virtual void EditViewSelectionChange () override
virtual OutputDeviceEditViewOutputDevice () const override
virtual Point EditViewPointerPosPixel () const override
virtual void EditViewInputContext (const InputContext &rInputContext) override
virtual void EditViewCursorRect (const tools::Rectangle &rRect, int nExtTextInputWidth) override
virtual weld::WidgetEditViewPopupParent () const override

Private Member Functions

void CallModifyLink ()
SpellDialogGetSpellDialog () const
bool GetErrorDescription (SpellErrorDescription &rSpellErrorDescription, sal_Int32 nPosition)
 DECL_LINK (ToolbarHdl, const OUString &, void)

Private Attributes

std::set< sal_Int32 > m_aIgnoreErrorsAt
sal_Int32 m_nErrorStart
sal_Int32 m_nErrorEnd
bool m_bIsUndoEditMode
Link< LinkParamNone *, void > m_aModifyLink

Additional Inherited Members

- Protected Attributes inherited from WeldEditView
bool m_bAcceptsTab
css::uno::Reference< css::datatransfer::dnd::XDropTarget > m_xDropTarget
std::unique_ptr< EditEnginem_xEditEngine
std::unique_ptr< EditViewm_xEditView
rtl::Reference< WeldEditAccessiblem_xAccessible

Detailed Description

Definition at line 46 of file SpellDialog.hxx.

Constructor & Destructor Documentation

◆ SentenceEditWindow_Impl()

SentenceEditWindow_Impl::SentenceEditWindow_Impl ( )

Definition at line 1132 of file SpellDialog.cxx.

◆ ~SentenceEditWindow_Impl()

SentenceEditWindow_Impl::~SentenceEditWindow_Impl ( )

Definition at line 1158 of file SpellDialog.cxx.

Member Function Documentation

◆ AddUndoAction()

void SentenceEditWindow_Impl::AddUndoAction ( std::unique_ptr< SfxUndoAction pAction)

◆ CallModifyLink()

void svx::SentenceEditWindow_Impl::CallModifyLink ( )

Definition at line 58 of file SpellDialog.hxx.

References Link< typename Arg, typename Ret >::Call(), and m_aModifyLink.

Referenced by KeyInput().

◆ ChangeMarkedWord()

int SentenceEditWindow_Impl::ChangeMarkedWord ( const OUString &  rNewWord,
LanguageType  eLanguage 

◆ ClearModifyFlag()

void svx::SentenceEditWindow_Impl::ClearModifyFlag ( )

Definition at line 97 of file SpellDialog.hxx.

References WeldEditView::m_xEditEngine.

Referenced by MarkNextError(), and ResetModified().

◆ CreateSpellPortions()

svx::SpellPortions SentenceEditWindow_Impl::CreateSpellPortions ( ) const


svx::SentenceEditWindow_Impl::DECL_LINK ( ToolbarHdl  ,
const OUString &  ,

◆ GetAlternatives()

bool SentenceEditWindow_Impl::GetAlternatives ( SpellErrorDescription rDesc)

Definition at line 1814 of file SpellDialog.cxx.

References GetErrorDescription(), and m_nErrorStart.

◆ GetErrorDescription()

bool SentenceEditWindow_Impl::GetErrorDescription ( SpellErrorDescription rSpellErrorDescription,
sal_Int32  nPosition 

◆ GetErrorText()

OUString SentenceEditWindow_Impl::GetErrorText ( ) const

Definition at line 1795 of file SpellDialog.cxx.

References m_nErrorEnd, m_nErrorStart, and WeldEditView::m_xEditEngine.

Referenced by MarkNextError(), and RestoreCurrentError().

◆ GetSpellDialog()

SpellDialog * svx::SentenceEditWindow_Impl::GetSpellDialog ( ) const

◆ GetUndoActionCount()

size_t SentenceEditWindow_Impl::GetUndoActionCount ( ) const

Definition at line 2043 of file SpellDialog.cxx.

References WeldEditView::m_xEditEngine.

Referenced by Undo().

◆ Init()

void SentenceEditWindow_Impl::Init ( weld::Toolbar pToolbar)

Definition at line 1532 of file SpellDialog.cxx.

References weld::Toolbar::connect_clicked(), LINK, and m_pToolbar.

◆ IsModified()

bool svx::SentenceEditWindow_Impl::IsModified ( ) const

Definition at line 99 of file SpellDialog.hxx.

References WeldEditView::m_xEditEngine.

Referenced by MarkNextError().

◆ IsUndoEditMode()

bool svx::SentenceEditWindow_Impl::IsUndoEditMode ( ) const

Definition at line 101 of file SpellDialog.hxx.

References m_bIsUndoEditMode.

Referenced by KeyInput(), and Undo().

◆ KeyInput()

bool SentenceEditWindow_Impl::KeyInput ( const KeyEvent rKEvt)

◆ MarkNextError()

bool SentenceEditWindow_Impl::MarkNextError ( bool  bIgnoreCurrentError,
const css::uno::Reference< css::linguistic2::XSpellChecker1 > &  xSpell 

◆ MoveErrorEnd()

void SentenceEditWindow_Impl::MoveErrorEnd ( tools::Long  nOffset)

Definition at line 2058 of file SpellDialog.cxx.

References m_nErrorEnd.

◆ MoveErrorMarkTo()

void SentenceEditWindow_Impl::MoveErrorMarkTo ( sal_Int32  nErrorStart,
sal_Int32  nErrorEnd,
bool  bGrammar 

◆ ResetIgnoreErrorsAt()

void svx::SentenceEditWindow_Impl::ResetIgnoreErrorsAt ( )

Definition at line 115 of file SpellDialog.hxx.

References m_aIgnoreErrorsAt.

◆ ResetModified()

void svx::SentenceEditWindow_Impl::ResetModified ( )

Definition at line 98 of file SpellDialog.hxx.

References ClearModifyFlag(), and m_bIsUndoEditMode.

◆ ResetUndo()

void SentenceEditWindow_Impl::ResetUndo ( )

Definition at line 2030 of file SpellDialog.cxx.

References SfxUndoManager::Clear(), and WeldEditView::m_xEditEngine.

◆ RestoreCurrentError()

void SentenceEditWindow_Impl::RestoreCurrentError ( )

◆ SetAlternatives()

void SentenceEditWindow_Impl::SetAlternatives ( const css::uno::Reference< css::linguistic2::XSpellAlternatives > &  )

◆ SetAttrib()

void SentenceEditWindow_Impl::SetAttrib ( const SfxPoolItem rItem,
sal_Int32  nStart,
sal_Int32  nEnd 

Definition at line 1846 of file SpellDialog.cxx.

References WeldEditView::m_xEditEngine, and SfxItemSet::Put().

Referenced by ChangeMarkedWord(), KeyInput(), and SetAlternatives().

◆ SetDrawingArea()

void SentenceEditWindow_Impl::SetDrawingArea ( weld::DrawingArea pDrawingArea)

◆ SetModifyHdl()

void svx::SentenceEditWindow_Impl::SetModifyHdl ( const Link< LinkParamNone *, void > &  rLink)

Definition at line 76 of file SpellDialog.hxx.

References m_aModifyLink, and WeldEditView::m_xEditEngine.

◆ SetSpellDialog()

void svx::SentenceEditWindow_Impl::SetSpellDialog ( SpellDialog pDialog)

Definition at line 72 of file SpellDialog.hxx.

References m_pSpellDialog.

◆ SetText()

void SentenceEditWindow_Impl::SetText ( const OUString &  rStr)

Definition at line 1854 of file SpellDialog.cxx.

References m_nErrorEnd, m_nErrorStart, and WeldEditView::m_xEditEngine.

◆ SetUndoEditMode()

void SentenceEditWindow_Impl::SetUndoEditMode ( bool  bSet)

◆ Undo()

void SentenceEditWindow_Impl::Undo ( )

◆ UndoActionEnd()

void SentenceEditWindow_Impl::UndoActionEnd ( )

Definition at line 2053 of file SpellDialog.cxx.

References WeldEditView::m_xEditEngine.

◆ UndoActionStart()

void SentenceEditWindow_Impl::UndoActionStart ( sal_uInt16  nId)

Definition at line 2048 of file SpellDialog.cxx.

References WeldEditView::m_xEditEngine, and nId.

Member Data Documentation

◆ m_aIgnoreErrorsAt

std::set<sal_Int32> svx::SentenceEditWindow_Impl::m_aIgnoreErrorsAt

Definition at line 49 of file SpellDialog.hxx.

Referenced by CreateSpellPortions(), MarkNextError(), and ResetIgnoreErrorsAt().

◆ m_aModifyLink

Link<LinkParamNone*,void> svx::SentenceEditWindow_Impl::m_aModifyLink

Definition at line 56 of file SpellDialog.hxx.

Referenced by CallModifyLink(), and SetModifyHdl().

◆ m_bIsUndoEditMode

bool svx::SentenceEditWindow_Impl::m_bIsUndoEditMode

Definition at line 54 of file SpellDialog.hxx.

Referenced by IsUndoEditMode(), KeyInput(), ResetModified(), and SetUndoEditMode().

◆ m_nErrorEnd

sal_Int32 svx::SentenceEditWindow_Impl::m_nErrorEnd

◆ m_nErrorStart

sal_Int32 svx::SentenceEditWindow_Impl::m_nErrorStart

◆ m_pSpellDialog

SpellDialog* svx::SentenceEditWindow_Impl::m_pSpellDialog

Definition at line 50 of file SpellDialog.hxx.

Referenced by GetSpellDialog(), and SetSpellDialog().

◆ m_pToolbar

weld::Toolbar* svx::SentenceEditWindow_Impl::m_pToolbar

Definition at line 51 of file SpellDialog.hxx.

Referenced by Init().

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