LibreOffice Module svx (master)  1
SpellDialogChildWindow.cxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 
21 
22 #include <svx/svxdlg.hxx>
23 #include <osl/diagnose.h>
24 
25 namespace svx {
26 
27 
29  vcl::Window* _pParent,
30  sal_uInt16 nId,
31  SfxBindings* pBindings)
32  : SfxChildWindow (_pParent, nId)
33 {
36  pBindings,
37  this );
39  SetHideNotDelete(true);
40 }
41 
43 {
45 }
46 
48 {
51 }
52 
54 {
55  OSL_ASSERT (m_xAbstractSpellDialog);
58 }
59 
61 {
62  return false;
63 }
64 
66  const OUString& /*rOld*/,
67  const OUString& /*rNew*/,
68  LanguageType /*eLanguage*/)
69 {
70  OSL_FAIL("AutoCorrection should have been overridden - if available");
71 }
72 
74 {
75  return false;
76 }
77 
79 {
80  OSL_FAIL("Grammar checking should have been overridden - if available");
81  return false;
82 }
83 
85 {
86  OSL_FAIL("Grammar checking should have been overridden - if available");
87 }
88 } // end of namespace ::svx
89 
90 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual bool IsGrammarChecking()
determines if grammar checking is switched on
virtual bool HasGrammarChecking()
Return the sfx bindings for this child window.
static SvxAbstractDialogFactory * Create()
Definition: svxdlg.cxx:23
void disposeAndClear()
void InvalidateSpellDialog()
Set the spell dialog into the 'resume' state.
virtual VclPtr< AbstractSpellDialog > CreateSvxSpellDialog(weld::Window *pParent, SfxBindings *pBindings, svx::SpellDialogChildWindow *pSpellChildWindow)=0
virtual std::shared_ptr< SfxDialogController > GetController()=0
virtual bool HasAutoCorrection()
This methods determines whether the application supports AutoCorrection.
virtual void AddAutoCorrection(const OUString &rOld, const OUString &rNew, LanguageType eLanguage)
This method adds a word pair to the AutoCorrection - if available.
weld::Window * GetFrameWeld() const
const BorderLinePrimitive2D *pCandidateB assert(pCandidateA)
void SetHideNotDelete(bool bOn)
virtual ~SpellDialogChildWindow() override
VclPtr< AbstractSpellDialog > m_xAbstractSpellDialog
virtual void InvalidateDialog()=0
virtual void SetGrammarChecking(bool bOn)
switches grammar checking on/off
SfxBindings & GetBindings() const
virtual SfxBindings & GetBindings()=0
void SetController(std::shared_ptr< SfxDialogController > controller)
SpellDialogChildWindow(vcl::Window *pParent, sal_uInt16 nId, SfxBindings *pBindings)