LibreOffice Module sw (master) 1
|
#include <SwSpellDialogChildWindow.hxx>
Public Member Functions | |
SwSpellDialogChildWindow (vcl::Window *pParent, sal_uInt16 nId, SfxBindings *pBindings, SfxChildWinInfo *pInfo) | |
virtual | ~SwSpellDialogChildWindow () override |
SFX_DECL_CHILDWINDOW_WITHID (SwSpellDialogChildWindow) | |
void | InvalidateSpellDialog () |
Public Member Functions inherited from svx::SpellDialogChildWindow | |
SpellDialogChildWindow (vcl::Window *pParent, sal_uInt16 nId, SfxBindings *pBindings) | |
virtual | ~SpellDialogChildWindow () override |
Private Member Functions | |
SwWrtShell * | GetWrtShell_Impl () |
void | MakeTextSelection_Impl (SwWrtShell &rSh, ShellMode eSelMode) |
bool | FindNextDrawTextError_Impl (SwWrtShell &rSh) |
bool | SpellDrawText_Impl (SwWrtShell &rSh, svx::SpellPortions &rPortions) |
void | LockFocusNotification (bool bLock) |
virtual svx::SpellPortions | GetNextWrongSentence (bool bRecheck) override |
virtual void | ApplyChangedSentence (const svx::SpellPortions &rChanged, bool bRecheck) override |
virtual void | AddAutoCorrection (const OUString &rOld, const OUString &rNew, LanguageType eLanguage) override |
virtual bool | HasAutoCorrection () override |
virtual bool | HasGrammarChecking () override |
virtual bool | IsGrammarChecking () override |
virtual void | SetGrammarChecking (bool bOn) override |
virtual void | GetFocus () override |
virtual void | LoseFocus () override |
Private Attributes | |
bool | m_bIsGrammarCheckingOn |
std::unique_ptr< SpellState > | m_pSpellState |
Additional Inherited Members | |
Protected Member Functions inherited from svx::SpellDialogChildWindow | |
virtual SpellPortions | GetNextWrongSentence (bool bRecheck)=0 |
virtual void | ApplyChangedSentence (const SpellPortions &rChanged, bool bRecheck)=0 |
virtual bool | HasAutoCorrection () |
virtual void | AddAutoCorrection (const OUString &rOld, const OUString &rNew, LanguageType eLanguage) |
virtual bool | HasGrammarChecking () |
virtual bool | IsGrammarChecking () |
virtual void | SetGrammarChecking (bool bOn) |
SfxBindings & | GetBindings () const |
void | InvalidateSpellDialog () |
virtual void | GetFocus ()=0 |
virtual void | LoseFocus ()=0 |
Definition at line 28 of file SwSpellDialogChildWindow.hxx.
SwSpellDialogChildWindow::SwSpellDialogChildWindow | ( | vcl::Window * | pParent, |
sal_uInt16 | nId, | ||
SfxBindings * | pBindings, | ||
SfxChildWinInfo * | pInfo | ||
) |
Definition at line 137 of file SwSpellDialogChildWindow.cxx.
References SvtLinguConfig::GetProperty(), m_bIsGrammarCheckingOn, nId, and UPN_IS_GRAMMAR_INTERACTIVE.
|
overridevirtual |
Definition at line 150 of file SwSpellDialogChildWindow.cxx.
References GetWrtShell_Impl(), m_pSpellState, and SwEditShell::SpellEnd().
|
overrideprivatevirtual |
Reimplemented from svx::SpellDialogChildWindow.
Definition at line 454 of file SwSpellDialogChildWindow.cxx.
References SvxAutoCorrCfg::Get(), SvxAutoCorrCfg::GetAutoCorrect(), and SvxAutoCorrect::PutText().
|
overrideprivatevirtual |
Implements svx::SpellDialogChildWindow.
Definition at line 424 of file SwSpellDialogChildWindow.cxx.
References SwEditShell::ApplyChangedSentence(), DrawText, SwViewShell::GetDrawView(), OutlinerView::GetEditView(), SwView::GetShellMode(), SdrObjEditView::GetTextEditOutliner(), SdrObjEditView::GetTextEditOutlinerView(), SwWrtShell::GetView(), GetWrtShell_Impl(), SwEditShell::HasLastSentenceGotGrammarChecked(), ListText, m_pSpellState, TableListText, TableText, and Text.
|
private |
Definition at line 712 of file SwSpellDialogChildWindow.cxx.
References SwView::BeginTextEdit(), DynCastSdrTextObj(), SwDocShell::GetDoc(), SwView::GetDocShell(), IDocumentDrawModelAccess::GetDrawModel(), SwViewShell::GetDrawView(), SwView::GetEditWin(), SwDoc::getIDocumentDeviceAccess(), SwViewShell::getIDocumentDeviceAccess(), SwDoc::getIDocumentDrawModelAccess(), SdrTextObj::GetLogicRect(), SdrMarkList::GetMark(), SdrMarkList::GetMarkCount(), SdrMarkView::GetMarkedObjectList(), SdrMark::GetMarkedSdrObj(), OutlinerView::GetOutliner(), SdrTextObj::GetOutlinerParaObject(), IDocumentDeviceAccess::getPrinter(), SdrPaintView::GetSdrPageView(), tools::Rectangle::GetSize(), GetSpellChecker(), SwDrawContact::GetTextObjectsFromFormat(), SwWrtShell::GetView(), m_pSpellState, SwViewShell::MakeVisible(), SdrObjEditView::SdrEndTextEdit(), SwFEShell::SelectObj(), OutlinerView::SetOutputArea(), and Outliner::SetRefDevice().
Referenced by GetNextWrongSentence(), and MakeTextSelection_Impl().
|
overrideprivatevirtual |
Implements svx::SpellDialogChildWindow.
Definition at line 509 of file SwSpellDialogChildWindow.cxx.
References DrawText, SwPosition::GetContentIndex(), SwCursorShell::GetCursor(), SwViewShell::GetDrawView(), SwPaM::GetMark(), SwPaM::GetMarkNode(), SwPaM::GetPoint(), SwPaM::GetPointNode(), OutlinerView::GetSelection(), SwView::GetShellMode(), SdrObjEditView::GetTextEditOutliner(), SdrObjEditView::GetTextEditOutlinerView(), SwWrtShell::GetView(), GetWrtShell_Impl(), InvalidateSpellDialog(), ListText, m_pSpellState, TableListText, TableText, and Text.
|
overrideprivatevirtual |
Implements svx::SpellDialogChildWindow.
Definition at line 165 of file SwSpellDialogChildWindow.cxx.
References BODY, Application::CreateMessageDialog(), SwDoc::CreateUnoCursor(), SwXTextRange::CreateXTextRange(), Curr, DrawObjectEditMode, DrawText, End, SwCursorShell::ExpandToSentenceBorders(), FindNextDrawTextError_Impl(), GetController(), SwCursorShell::GetCursor(), SwViewShell::GetDoc(), SwViewShell::GetDrawView(), SwFEShell::GetFrameType(), SdrMarkList::GetMark(), SdrMarkView::GetMarkedObjectList(), SdrMark::GetMarkedSdrObj(), SwPaM::GetPoint(), SwWrtShell::GetSelectionType(), SwView::GetShellMode(), SdrObjEditView::GetTextEditOutlinerView(), SwWrtShell::GetView(), GetWrtShell_Impl(), SwCursorShell::GoStartSentence(), SwEditShell::HasOtherCnt(), SwWrtShell::HasSelection(), SwDoc::IsDictionaryMissing(), SwCursorShell::IsStartOfDoc(), lcl_LeaveDrawText(), ListText, LockFocusNotification(), LoseFocus(), m_bIsGrammarCheckingOn, m_pSpellState, MakeTextSelection_Impl(), SwEditShell::MoveContinuationPosToEndOfCheckedSentence(), OtherEnd, OtherStart, RET_YES, OutlinerView::SetSelection(), SwCursorShell::SetSelection(), SpellDrawText_Impl(), SwEditShell::SpellEnd(), SwEditShell::SpellSentence(), SwEditShell::SpellStart(), Start, SwPaM::Start(), SwResId(), TableListText, TableText, Text, and sw::XTextRangeToSwPaM().
|
private |
Definition at line 627 of file SwSpellDialogChildWindow.cxx.
References svx::SpellDialogChildWindow::GetBindings(), SfxBindings::GetDispatcher(), SfxDispatcher::GetShell(), and SwView::GetWrtShellPtr().
Referenced by ApplyChangedSentence(), GetFocus(), GetNextWrongSentence(), InvalidateSpellDialog(), LoseFocus(), SetGrammarChecking(), and ~SwSpellDialogChildWindow().
|
overrideprivatevirtual |
Reimplemented from svx::SpellDialogChildWindow.
Definition at line 461 of file SwSpellDialogChildWindow.cxx.
|
overrideprivatevirtual |
Reimplemented from svx::SpellDialogChildWindow.
Definition at line 466 of file SwSpellDialogChildWindow.cxx.
References SvtLinguConfig::HasGrammarChecker().
void SwSpellDialogChildWindow::InvalidateSpellDialog | ( | ) |
Definition at line 618 of file SwSpellDialogChildWindow.cxx.
References GetWrtShell_Impl(), svx::SpellDialogChildWindow::InvalidateSpellDialog(), m_pSpellState, and SwEditShell::SpellEnd().
Referenced by GetFocus().
|
overrideprivatevirtual |
Reimplemented from svx::SpellDialogChildWindow.
Definition at line 471 of file SwSpellDialogChildWindow.cxx.
References m_bIsGrammarCheckingOn.
|
private |
Definition at line 822 of file SwSpellDialogChildWindow.cxx.
References m_pSpellState.
Referenced by GetNextWrongSentence().
|
overrideprivatevirtual |
Implements svx::SpellDialogChildWindow.
Definition at line 568 of file SwSpellDialogChildWindow.cxx.
References DrawText, SwPosition::GetContentIndex(), SwCursorShell::GetCursor(), SwViewShell::GetDrawView(), SwPaM::GetMark(), SwPaM::GetMarkNode(), SwPaM::GetPoint(), SwPaM::GetPointNode(), OutlinerView::GetSelection(), SwView::GetShellMode(), SdrObjEditView::GetTextEditOutliner(), SdrObjEditView::GetTextEditOutlinerView(), SwWrtShell::GetView(), GetWrtShell_Impl(), ListText, m_pSpellState, Object, TableListText, TableText, and Text.
Referenced by GetNextWrongSentence().
|
private |
Definition at line 647 of file SwSpellDialogChildWindow.cxx.
References SdrMarkView::AreObjectsMarked(), Bezier, SwDrawBase::BreakCreate(), Draw, DrawForm, DrawText, SwWrtShell::EnterStdMode(), FindNextDrawTextError_Impl(), Frame, SfxViewFrame::GetBindings(), SwView::GetDrawFuncPtr(), SwViewShell::GetDrawView(), SdrHdlList::GetFocusHdl(), SdrMarkView::GetHdlList(), SwWrtShell::GetView(), SfxViewShell::GetViewFrame(), Graphic, SwWrtShell::HasSelection(), SfxBindings::Invalidate(), SwFEShell::IsDrawCreate(), SwView::IsDrawMode(), SwView::LeaveDrawCreate(), SwWrtShell::LeaveSelFrameMode(), ListText, Object, SwFEShell::SelectObj(), SW_LEAVE_FRAME, TableListText, TableText, Text, and SwWrtShell::UnSelectFrame().
Referenced by GetNextWrongSentence().
|
overrideprivatevirtual |
Reimplemented from svx::SpellDialogChildWindow.
Definition at line 476 of file SwSpellDialogChildWindow.cxx.
References DrawText, SwViewShell::GetDrawView(), OutlinerView::GetEditView(), SwView::GetShellMode(), SdrObjEditView::GetTextEditOutliner(), SdrObjEditView::GetTextEditOutlinerView(), SwWrtShell::GetView(), GetWrtShell_Impl(), ListText, m_bIsGrammarCheckingOn, SwEditShell::PutSpellingToSentenceStart(), SvtLinguConfig::SetProperty(), TableListText, TableText, Text, and UPN_IS_GRAMMAR_INTERACTIVE.
SwSpellDialogChildWindow::SFX_DECL_CHILDWINDOW_WITHID | ( | SwSpellDialogChildWindow | ) |
|
private |
Definition at line 795 of file SwSpellDialogChildWindow.cxx.
References SwViewShell::GetDrawView(), OutlinerView::GetEditView(), OutlinerView::GetSelection(), SdrObjEditView::GetTextEditOutliner(), SdrObjEditView::GetTextEditOutlinerView(), m_pSpellState, ESelection::nEndPara, and ESelection::nEndPos.
Referenced by GetNextWrongSentence().
|
private |
Definition at line 31 of file SwSpellDialogChildWindow.hxx.
Referenced by GetNextWrongSentence(), IsGrammarChecking(), SetGrammarChecking(), and SwSpellDialogChildWindow().
|
private |
Definition at line 32 of file SwSpellDialogChildWindow.hxx.
Referenced by ApplyChangedSentence(), FindNextDrawTextError_Impl(), GetFocus(), GetNextWrongSentence(), InvalidateSpellDialog(), LockFocusNotification(), LoseFocus(), SpellDrawText_Impl(), and ~SwSpellDialogChildWindow().