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 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 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 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
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 ( )

Definition at line 1122 of file SpellDialog.cxx.

SentenceEditWindow_Impl::~SentenceEditWindow_Impl ( )

Definition at line 1141 of file SpellDialog.cxx.

Member Function Documentation

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

Definition at line 58 of file SpellDialog.hxx.

Referenced by KeyInput().

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

Definition at line 97 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 1793 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 1774 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 2022 of file SpellDialog.cxx.

References WeldEditView::m_xEditEngine.

Referenced by Undo().

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

Definition at line 1515 of file SpellDialog.cxx.

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

bool svx::SentenceEditWindow_Impl::IsModified ( ) const

Definition at line 99 of file SpellDialog.hxx.

References WeldEditView::m_xEditEngine.

Referenced by MarkNextError().

bool svx::SentenceEditWindow_Impl::IsUndoEditMode ( ) const

Definition at line 101 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 ( tools::Long  nOffset)

Definition at line 2037 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 115 of file SpellDialog.hxx.

void svx::SentenceEditWindow_Impl::ResetModified ( )

Definition at line 98 of file SpellDialog.hxx.

References ClearModifyFlag().

void SentenceEditWindow_Impl::ResetUndo ( )

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

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

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 76 of file SpellDialog.hxx.

References WeldEditView::m_xEditEngine.

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

Definition at line 72 of file SpellDialog.hxx.

void SentenceEditWindow_Impl::SetText ( const OUString &  rStr)

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

References WeldEditView::m_xEditEngine.

void SentenceEditWindow_Impl::UndoActionStart ( sal_uInt16  nId)

Definition at line 2027 of file SpellDialog.cxx.

References WeldEditView::m_xEditEngine.

Member Data Documentation

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

Definition at line 49 of file SpellDialog.hxx.

Referenced by CreateSpellPortions(), and MarkNextError().

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

Definition at line 56 of file SpellDialog.hxx.

bool svx::SentenceEditWindow_Impl::m_bIsUndoEditMode

Definition at line 54 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 50 of file SpellDialog.hxx.

Referenced by GetSpellDialog().

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: