22#include <com/sun/star/uno/Reference.hxx>
34namespace svx{
class SpellUndoAction_Impl;}
44struct SpellErrorDescription;
84 void SetText(
const OUString& rStr);
86 bool MarkNextError(
bool bIgnoreCurrentError,
const css::uno::Reference<css::linguistic2::XSpellChecker1>& );
88 void MoveErrorMarkTo(sal_Int32 nErrorStart, sal_Int32 nErrorEnd,
bool bGrammar);
93 const css::uno::Reference<css::linguistic2::XSpellAlternatives>& );
108 void AddUndoAction( std::unique_ptr<SfxUndoAction> pAction );
119class SpellDialogChildWindow;
139 std::unique_ptr<SpellDialog_Impl>
pImpl;
141 css::linguistic2::XSpellChecker1 >
xSpell;
192 void SpellContinue_Impl(std::unique_ptr<UndoChangeGroupGuard>* pGuard =
nullptr,
bool UseSavedSentence =
false,
bool bIgnoreCurrentError =
false );
201 bool GetNextSentence_Impl(std::unique_ptr<UndoChangeGroupGuard>* pGuard,
bool bUseSavedSentence,
bool bRecheck );
221 virtual void Close()
override;
std::unique_ptr< EditEngine > m_xEditEngine
SentenceEditWindow_Impl()
OUString GetErrorText() const
void ResetIgnoreErrorsAt()
bool IsUndoEditMode() const
bool GetAlternatives(SpellErrorDescription &rDesc)
SpellDialog * m_pSpellDialog
void MoveErrorMarkTo(sal_Int32 nErrorStart, sal_Int32 nErrorEnd, bool bGrammar)
size_t GetUndoActionCount() const
virtual bool KeyInput(const KeyEvent &rKEvt) override
DECL_LINK(ToolbarHdl, const OUString &, void)
void SetModifyHdl(const Link< LinkParamNone *, void > &rLink)
void Init(weld::Toolbar *pToolbar)
std::set< sal_Int32 > m_aIgnoreErrorsAt
void AddUndoAction(std::unique_ptr< SfxUndoAction > pAction)
void SetAlternatives(const css::uno::Reference< css::linguistic2::XSpellAlternatives > &)
SpellDialog * GetSpellDialog() const
void UndoActionStart(sal_uInt16 nId)
virtual void SetDrawingArea(weld::DrawingArea *pDrawingArea) override
void SetSpellDialog(SpellDialog *pDialog)
int ChangeMarkedWord(const OUString &rNewWord, LanguageType eLanguage)
void RestoreCurrentError()
void SetText(const OUString &rStr)
virtual ~SentenceEditWindow_Impl() override
weld::Toolbar * m_pToolbar
void MoveErrorEnd(tools::Long nOffset)
Link< LinkParamNone *, void > m_aModifyLink
svx::SpellPortions CreateSpellPortions() const
bool MarkNextError(bool bIgnoreCurrentError, const css::uno::Reference< css::linguistic2::XSpellChecker1 > &)
void SetUndoEditMode(bool bSet)
void SetAttrib(const SfxPoolItem &rItem, sal_Int32 nStart, sal_Int32 nEnd)
bool GetErrorDescription(SpellErrorDescription &rSpellErrorDescription, sal_Int32 nPosition)
std::unique_ptr< SvxLanguageBox > m_xLanguageLB
std::unique_ptr< weld::MenuButton > m_xAddToDictMB
std::unique_ptr< weld::CheckButton > m_xCheckGrammarCB
DECL_LINK(ChangeAllHdl, weld::Button &, void)
void ToplevelFocusChanged()
virtual void Deactivate() override
std::unique_ptr< weld::Label > m_xNoSuggestionsFT
void LockFocusChanges(bool bLock)
std::unique_ptr< weld::Button > m_xIgnoreRulePB
SpellDialog(svx::SpellDialogChildWindow *pChildWindow, weld::Window *pParent, SfxBindings *pBindings)
svx::SpellPortions m_aSavedSentence
DECL_LINK(DoubleClickChangeHdl, weld::TreeView &, bool)
DECL_LINK(AddToDictClickHdl, weld::Button &, void)
DECL_LINK(ExtClickHdl, weld::Button &, void)
std::unique_ptr< weld::CustomWeld > m_xSentenceEDWeld
DECL_LINK(InitHdl, void *, void)
void SpellContinue_Impl(std::unique_ptr< UndoChangeGroupGuard > *pGuard=nullptr, bool UseSavedSentence=false, bool bIgnoreCurrentError=false)
std::unique_ptr< weld::Button > m_xChangeAllPB
std::unique_ptr< SpellDialog_Impl > pImpl
std::unique_ptr< weld::Label > m_xResumeFT
std::unique_ptr< weld::Label > m_xExplainFT
Link< SpellUndoAction_Impl &, void > aDialogUndoLink
DECL_LINK(ModifyHdl, LinkParamNone *, void)
std::unique_ptr< weld::Button > m_xIgnorePB
DECL_LINK(IgnoreAllHdl, weld::Button &, void)
void StartSpellOptDlg_Impl()
DECL_LINK(IgnoreHdl, weld::Button &, void)
std::unique_ptr< weld::Button > m_xUndoPB
DECL_LINK(CheckGrammarHdl, weld::Toggleable &, void)
OUString m_sNoSuggestionsST
OUString m_sTitleSpellingGrammar
void Impl_Restore(bool bUseSavedSentence)
static bool ApplyChangeAllList_Impl(SpellPortions &rSentence, bool &bHasReplaced)
Corrects all errors that have been selected to be changed always.
ImplSVEvent * m_pInitHdlEvent
virtual void Close() override
css::uno::Reference< css::linguistic2::XSpellChecker1 > xSpell
virtual void Activate() override
DECL_LINK(ChangeHdl, weld::Button &, void)
void SetTitle_Impl(LanguageType nLang)
LanguageType GetSelectedLang_Impl() const
std::unique_ptr< SentenceEditWindow_Impl > m_xSentenceED
OUString m_sTitleSpelling
std::unique_ptr< weld::Button > m_xAddToDictPB
void UpdateBoxes_Impl(bool bCallFromSelectHdl=false)
std::unique_ptr< weld::Button > m_xChangePB
std::unique_ptr< weld::Label > m_xNotInDictFT
DECL_LINK(UndoHdl, weld::Button &, void)
virtual ~SpellDialog() override
DECL_LINK(CancelHdl, weld::Button &, void)
DECL_LINK(LanguageSelectHdl, weld::ComboBox &, void)
DECL_LINK(AddToDictSelectHdl, const OUString &, void)
std::shared_ptr< SfxSingleTabDialogController > m_xOptionsDlg
std::unique_ptr< weld::Label > m_xSuggestionFT
std::unique_ptr< weld::Button > m_xAutoCorrPB
std::unique_ptr< weld::LinkButton > m_xExplainLink
void AddToDictionaryExecute(const OUString &rItemId)
svx::SpellDialogChildWindow & rParent
std::unique_ptr< weld::Label > m_xLanguageFT
std::unique_ptr< weld::Label > m_xAltTitle
std::unique_ptr< weld::Button > m_xIgnoreAllPB
std::unique_ptr< weld::Button > m_xOptionsPB
DECL_LINK(DialogUndoHdl, SpellUndoAction_Impl &, void)
std::unique_ptr< weld::Button > m_xClosePB
std::unique_ptr< weld::TreeView > m_xSuggestionLB
std::unique_ptr< weld::Toolbar > m_xToolbar
OUString getReplacementString() const
bool GetNextSentence_Impl(std::unique_ptr< UndoChangeGroupGuard > *pGuard, bool bUseSavedSentence, bool bRecheck)
Retrieves the next sentence.
std::vector< SpellPortion > SpellPortions