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:
[legend]
Collaboration diagram for svx::SentenceEditWindow_Impl:
[legend]

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
 
SpellDialogm_pSpellDialog
 
weld::Toolbarm_pToolbar
 
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 49 of file SpellDialog.hxx.

Constructor & Destructor Documentation

SentenceEditWindow_Impl::SentenceEditWindow_Impl ( )

Definition at line 1099 of file SpellDialog.cxx.

SentenceEditWindow_Impl::~SentenceEditWindow_Impl ( )
overridevirtual

Definition at line 1116 of file SpellDialog.cxx.

Member Function Documentation

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

Definition at line 61 of file SpellDialog.hxx.

Referenced by KeyInput().

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

Definition at line 100 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 &  ,
void   
)
private
bool SentenceEditWindow_Impl::GetAlternatives ( SpellErrorDescription rDesc)

Definition at line 1758 of file SpellDialog.cxx.

References GetErrorDescription(), and m_nErrorStart.

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

Definition at line 1739 of file SpellDialog.cxx.

References m_nErrorEnd, m_nErrorStart, and WeldEditView::m_xEditEngine.

Referenced by MarkNextError(), and RestoreCurrentError().

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

Definition at line 1986 of file SpellDialog.cxx.

References WeldEditView::m_xEditEngine.

Referenced by Undo().

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

Definition at line 1489 of file SpellDialog.cxx.

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

bool svx::SentenceEditWindow_Impl::IsModified ( ) const
inline

Definition at line 102 of file SpellDialog.hxx.

References WeldEditView::m_xEditEngine.

Referenced by MarkNextError().

bool svx::SentenceEditWindow_Impl::IsUndoEditMode ( ) const
inline

Definition at line 104 of file SpellDialog.hxx.

References m_bIsUndoEditMode.

Referenced by KeyInput(), and Undo().

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

Definition at line 2001 of file SpellDialog.cxx.

References m_nErrorEnd.

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

Definition at line 118 of file SpellDialog.hxx.

void svx::SentenceEditWindow_Impl::ResetModified ( )
inline

Definition at line 101 of file SpellDialog.hxx.

References ClearModifyFlag().

void SentenceEditWindow_Impl::ResetUndo ( )

Definition at line 1973 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 1794 of file SpellDialog.cxx.

References WeldEditView::m_xEditEngine.

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

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

Definition at line 79 of file SpellDialog.hxx.

References WeldEditView::m_xEditEngine.

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

Definition at line 75 of file SpellDialog.hxx.

void SentenceEditWindow_Impl::SetText ( const OUString &  rStr)

Definition at line 1802 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 1996 of file SpellDialog.cxx.

References WeldEditView::m_xEditEngine.

void SentenceEditWindow_Impl::UndoActionStart ( sal_uInt16  nId)

Definition at line 1991 of file SpellDialog.cxx.

References WeldEditView::m_xEditEngine.

Member Data Documentation

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

Definition at line 52 of file SpellDialog.hxx.

Referenced by CreateSpellPortions(), and MarkNextError().

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

Definition at line 59 of file SpellDialog.hxx.

bool svx::SentenceEditWindow_Impl::m_bIsUndoEditMode
private

Definition at line 57 of file SpellDialog.hxx.

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

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

Definition at line 53 of file SpellDialog.hxx.

Referenced by GetSpellDialog().

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

Definition at line 54 of file SpellDialog.hxx.

Referenced by Init().


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