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