diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-09-27 19:57:02 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-09-28 13:06:57 +0200 |
commit | 4fca2ef76a6dfe6c74ada71ab4806dc4ad568b82 (patch) | |
tree | 6278e8ab78a8039d87e9e2bd355fa30af10c61ec /cui/source/inc/SpellDialog.hxx | |
parent | 6266e83d306ed6e739491b3def2dc453556b14ed (diff) |
Use sal_Int32 to stick with other SetAttrib methods
+ use size_t GetUndoActionCount like other existing ones
Change-Id: Ibfae20e7fd75df980f395e055063f0bdba1047f7
Reviewed-on: https://gerrit.libreoffice.org/42873
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Muhammet Kara <muhammet.kara@pardus.org.tr>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'cui/source/inc/SpellDialog.hxx')
-rw-r--r-- | cui/source/inc/SpellDialog.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cui/source/inc/SpellDialog.hxx b/cui/source/inc/SpellDialog.hxx index 06b7f4623205..41d68d99ba68 100644 --- a/cui/source/inc/SpellDialog.hxx +++ b/cui/source/inc/SpellDialog.hxx @@ -61,10 +61,10 @@ class SentenceEditWindow_Impl : public VclMultiLineEdit using VclMultiLineEdit::SetText; private: - std::set< sal_uInt16 > m_aIgnoreErrorsAt; + std::set< sal_Int32 > m_aIgnoreErrorsAt; VclPtr<ToolBox> m_xToolbar; - sal_uInt16 m_nErrorStart; - sal_uInt16 m_nErrorEnd; + sal_Int32 m_nErrorStart; + sal_Int32 m_nErrorEnd; bool m_bIsUndoEditMode; Link<Edit&,void> m_aModifyLink; @@ -84,12 +84,12 @@ public: void Init(VclPtr<ToolBox> const &rToolbar); void SetModifyHdl(const Link<Edit&,void>& rLink) override { m_aModifyLink = rLink;} - void SetAttrib( const TextAttrib& rAttr, sal_uInt32 nPara, sal_uInt16 nStart, sal_uInt16 nEnd ); + void SetAttrib( const TextAttrib& rAttr, sal_uInt32 nPara, sal_Int32 nStart, sal_Int32 nEnd ); void SetText( const OUString& rStr ) override; bool MarkNextError( bool bIgnoreCurrentError, const css::uno::Reference<css::linguistic2::XSpellChecker1>& ); void ChangeMarkedWord(const OUString& rNewWord, LanguageType eLanguage); - void MoveErrorMarkTo(sal_uInt16 nErrorStart, sal_uInt16 nErrorEnd, bool bGrammar); + void MoveErrorMarkTo(sal_Int32 nErrorStart, sal_Int32 nErrorEnd, bool bGrammar); OUString GetErrorText() const; void RestoreCurrentError(); @@ -111,7 +111,7 @@ public: void ResetUndo(); void Undo(); void AddUndoAction( SfxUndoAction *pAction ); - sal_uInt16 GetUndoActionCount(); + size_t GetUndoActionCount(); void UndoActionStart( sal_uInt16 nId ); void UndoActionEnd(); |