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 (long nOffset)
void ResetIgnoreErrorsAt ()
- Public Member Functions inherited from WeldEditView
 WeldEditView ()
void SetText (const OUString &rStr)
OUString GetText () const
void SetModifyHdl (const Link< LinkParamNone *, void > &rLink)
EditEngineGetEditEngine ()
virtual ~WeldEditView () override

Protected Member Functions

virtual bool KeyInput (const KeyEvent &rKEvt) override
- Protected Member Functions inherited from WeldEditView
virtual void makeEditEngine ()
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 Command (const CommandEvent &rCEvt) override
virtual void GetFocus () override
virtual void LoseFocus () override
virtual void Resize () override
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible () override
virtual void EditViewInvalidate (const tools::Rectangle &rRect) const override
virtual void EditViewSelectionChange () const override
virtual OutputDeviceEditViewOutputDevice () const override

Private Member Functions

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

Private Attributes

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

Additional Inherited Members

- Protected Attributes inherited from WeldEditView
std::unique_ptr< EditEnginem_xEditEngine
std::unique_ptr< EditViewm_xEditView
rtl::Reference< WeldEditAccessiblem_xAccessible

Detailed Description

Definition at line 47 of file SpellDialog.hxx.

Constructor & Destructor Documentation

SentenceEditWindow_Impl::SentenceEditWindow_Impl ( )

Definition at line 1117 of file SpellDialog.cxx.

SentenceEditWindow_Impl::~SentenceEditWindow_Impl ( )

Definition at line 1136 of file SpellDialog.cxx.

Member Function Documentation

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

Definition at line 59 of file SpellDialog.hxx.

Referenced by KeyInput().

int SentenceEditWindow_Impl::ChangeMarkedWord ( const OUString &  rNewWord,
LanguageType  eLanguage 
void svx::SentenceEditWindow_Impl::ClearModifyFlag ( )

Definition at line 98 of file SpellDialog.hxx.

References WeldEditView::m_xEditEngine.

Referenced by MarkNextError(), and ResetModified().

svx::SpellPortions SentenceEditWindow_Impl::CreateSpellPortions ( ) const
svx::SentenceEditWindow_Impl::DECL_LINK ( ToolbarHdl  ,
const OString &  ,
bool SentenceEditWindow_Impl::GetAlternatives ( SpellErrorDescription rDesc)

Definition at line 1779 of file SpellDialog.cxx.

References GetErrorDescription(), and m_nErrorStart.

bool SentenceEditWindow_Impl::GetErrorDescription ( SpellErrorDescription rSpellErrorDescription,
sal_Int32  nPosition 
OUString SentenceEditWindow_Impl::GetErrorText ( ) const

Definition at line 1760 of file SpellDialog.cxx.

References m_nErrorEnd, m_nErrorStart, and WeldEditView::m_xEditEngine.

Referenced by MarkNextError(), and RestoreCurrentError().

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

Definition at line 2008 of file SpellDialog.cxx.

References WeldEditView::m_xEditEngine.

Referenced by Undo().

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

Definition at line 1510 of file SpellDialog.cxx.

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

bool svx::SentenceEditWindow_Impl::IsModified ( ) const

Definition at line 100 of file SpellDialog.hxx.

References WeldEditView::m_xEditEngine.

Referenced by MarkNextError().

bool svx::SentenceEditWindow_Impl::IsUndoEditMode ( ) const

Definition at line 102 of file SpellDialog.hxx.

References m_bIsUndoEditMode.

Referenced by KeyInput(), and Undo().

bool SentenceEditWindow_Impl::KeyInput ( const KeyEvent rKEvt)
bool SentenceEditWindow_Impl::MarkNextError ( bool  bIgnoreCurrentError,
const css::uno::Reference< css::linguistic2::XSpellChecker1 > &  xSpell 
void SentenceEditWindow_Impl::MoveErrorEnd ( long  nOffset)

Definition at line 2023 of file SpellDialog.cxx.

References m_nErrorEnd.

void SentenceEditWindow_Impl::MoveErrorMarkTo ( sal_Int32  nErrorStart,
sal_Int32  nErrorEnd,
bool  bGrammar 
void svx::SentenceEditWindow_Impl::ResetIgnoreErrorsAt ( )

Definition at line 116 of file SpellDialog.hxx.

void svx::SentenceEditWindow_Impl::ResetModified ( )

Definition at line 99 of file SpellDialog.hxx.

References ClearModifyFlag().

void SentenceEditWindow_Impl::ResetUndo ( )

Definition at line 1995 of file SpellDialog.cxx.

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

void SentenceEditWindow_Impl::RestoreCurrentError ( )
void SentenceEditWindow_Impl::SetAlternatives ( const css::uno::Reference< css::linguistic2::XSpellAlternatives > &  )
void SentenceEditWindow_Impl::SetAttrib ( const SfxPoolItem rItem,
sal_Int32  nStart,
sal_Int32  nEnd 

Definition at line 1811 of file SpellDialog.cxx.

References WeldEditView::m_xEditEngine.

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

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

Definition at line 77 of file SpellDialog.hxx.

References WeldEditView::m_xEditEngine.

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

Definition at line 73 of file SpellDialog.hxx.

void SentenceEditWindow_Impl::SetText ( const OUString &  rStr)

Definition at line 1819 of file SpellDialog.cxx.

References m_nErrorEnd, m_nErrorStart, and WeldEditView::m_xEditEngine.

void SentenceEditWindow_Impl::SetUndoEditMode ( bool  bSet)
void SentenceEditWindow_Impl::Undo ( )
void SentenceEditWindow_Impl::UndoActionEnd ( )

Definition at line 2018 of file SpellDialog.cxx.

References WeldEditView::m_xEditEngine.

void SentenceEditWindow_Impl::UndoActionStart ( sal_uInt16  nId)

Definition at line 2013 of file SpellDialog.cxx.

References WeldEditView::m_xEditEngine.

Member Data Documentation

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

Definition at line 50 of file SpellDialog.hxx.

Referenced by CreateSpellPortions(), and MarkNextError().

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

Definition at line 57 of file SpellDialog.hxx.

bool svx::SentenceEditWindow_Impl::m_bIsUndoEditMode

Definition at line 55 of file SpellDialog.hxx.

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

sal_Int32 svx::SentenceEditWindow_Impl::m_nErrorEnd
sal_Int32 svx::SentenceEditWindow_Impl::m_nErrorStart
SpellDialog* svx::SentenceEditWindow_Impl::m_pSpellDialog

Definition at line 51 of file SpellDialog.hxx.

Referenced by GetSpellDialog().

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

Definition at line 52 of file SpellDialog.hxx.

Referenced by Init().

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