xref: /trunk/main/svx/source/dialog/SpellDialogChildWindow.cxx (revision 633aadc51c3c356307be76612d13fe02feb48058)
1f6e50924SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3f6e50924SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4f6e50924SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5f6e50924SAndrew Rist  * distributed with this work for additional information
6f6e50924SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7f6e50924SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8f6e50924SAndrew Rist  * "License"); you may not use this file except in compliance
9f6e50924SAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
11f6e50924SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
13f6e50924SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14f6e50924SAndrew Rist  * software distributed under the License is distributed on an
15f6e50924SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16f6e50924SAndrew Rist  * KIND, either express or implied.  See the License for the
17f6e50924SAndrew Rist  * specific language governing permissions and limitations
18f6e50924SAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
20f6e50924SAndrew Rist  *************************************************************/
21f6e50924SAndrew Rist 
22cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
23cdf0e10cSrcweir #include "precompiled_svx.hxx"
24cdf0e10cSrcweir #include <svx/SpellDialogChildWindow.hxx>
25cdf0e10cSrcweir 
26cdf0e10cSrcweir #include <svx/svxdlg.hxx>
27cdf0e10cSrcweir 
28cdf0e10cSrcweir namespace svx {
29cdf0e10cSrcweir 
30cdf0e10cSrcweir /*-------------------------------------------------------------------------
31cdf0e10cSrcweir 
32cdf0e10cSrcweir   -----------------------------------------------------------------------*/
SpellDialogChildWindow(Window * _pParent,sal_uInt16 nId,SfxBindings * pBindings,SfxChildWinInfo *)33cdf0e10cSrcweir SpellDialogChildWindow::SpellDialogChildWindow (
34cdf0e10cSrcweir     Window* _pParent,
35cdf0e10cSrcweir     sal_uInt16 nId,
36cdf0e10cSrcweir     SfxBindings* pBindings,
37cdf0e10cSrcweir     SfxChildWinInfo* /*pInfo*/)
38cdf0e10cSrcweir     : SfxChildWindow (_pParent, nId)
39cdf0e10cSrcweir 
40cdf0e10cSrcweir {
41cdf0e10cSrcweir 
42cdf0e10cSrcweir     SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
43cdf0e10cSrcweir     DBG_ASSERT(pFact, "SvxAbstractDialogFactory::Create() failed");
44cdf0e10cSrcweir     m_pAbstractSpellDialog = pFact->CreateSvxSpellDialog(_pParent,
45cdf0e10cSrcweir                                             pBindings,
46cdf0e10cSrcweir                                             this );
47cdf0e10cSrcweir     pWindow = m_pAbstractSpellDialog->GetWindow();
48cdf0e10cSrcweir     eChildAlignment = SFX_ALIGN_NOALIGNMENT;
49cdf0e10cSrcweir     SetHideNotDelete (sal_True);
50cdf0e10cSrcweir }
51cdf0e10cSrcweir /*-------------------------------------------------------------------------
52cdf0e10cSrcweir 
53cdf0e10cSrcweir   -----------------------------------------------------------------------*/
~SpellDialogChildWindow(void)54cdf0e10cSrcweir SpellDialogChildWindow::~SpellDialogChildWindow (void)
55cdf0e10cSrcweir {
56cdf0e10cSrcweir }
57cdf0e10cSrcweir /*-------------------------------------------------------------------------
58cdf0e10cSrcweir 
59cdf0e10cSrcweir   -----------------------------------------------------------------------*/
GetBindings(void) const60cdf0e10cSrcweir SfxBindings& SpellDialogChildWindow::GetBindings (void) const
61cdf0e10cSrcweir {
62cdf0e10cSrcweir     OSL_ASSERT (m_pAbstractSpellDialog != NULL);
63cdf0e10cSrcweir     return m_pAbstractSpellDialog->GetBindings();
64cdf0e10cSrcweir }
65cdf0e10cSrcweir /*-------------------------------------------------------------------------
66cdf0e10cSrcweir 
67cdf0e10cSrcweir   -----------------------------------------------------------------------*/
InvalidateSpellDialog()68cdf0e10cSrcweir void SpellDialogChildWindow::InvalidateSpellDialog()
69cdf0e10cSrcweir {
70cdf0e10cSrcweir     OSL_ASSERT (m_pAbstractSpellDialog != NULL);
71cdf0e10cSrcweir     if(m_pAbstractSpellDialog)
72cdf0e10cSrcweir         m_pAbstractSpellDialog->Invalidate();
73cdf0e10cSrcweir }
74cdf0e10cSrcweir /*-------------------------------------------------------------------------
75cdf0e10cSrcweir 
76cdf0e10cSrcweir   -----------------------------------------------------------------------*/
HasAutoCorrection()77cdf0e10cSrcweir bool SpellDialogChildWindow::HasAutoCorrection()
78cdf0e10cSrcweir {
79cdf0e10cSrcweir     return false;
80cdf0e10cSrcweir }
81cdf0e10cSrcweir /*-------------------------------------------------------------------------
82cdf0e10cSrcweir 
83cdf0e10cSrcweir   -----------------------------------------------------------------------*/
AddAutoCorrection(const String &,const String &,LanguageType)84cdf0e10cSrcweir void SpellDialogChildWindow::AddAutoCorrection(
85cdf0e10cSrcweir         const String& /*rOld*/,
86cdf0e10cSrcweir         const String& /*rNew*/,
87cdf0e10cSrcweir         LanguageType /*eLanguage*/)
88cdf0e10cSrcweir {
89cdf0e10cSrcweir     DBG_ERROR("AutoCorrection should have been overloaded - if available");
90cdf0e10cSrcweir }
91cdf0e10cSrcweir /*-- 16.06.2008 10:11:57---------------------------------------------------
92cdf0e10cSrcweir 
93cdf0e10cSrcweir   -----------------------------------------------------------------------*/
HasGrammarChecking()94cdf0e10cSrcweir bool SpellDialogChildWindow::HasGrammarChecking()
95cdf0e10cSrcweir {
96cdf0e10cSrcweir     return false;
97cdf0e10cSrcweir }
98cdf0e10cSrcweir /*-- 18.06.2008 12:26:35---------------------------------------------------
99cdf0e10cSrcweir 
100cdf0e10cSrcweir   -----------------------------------------------------------------------*/
IsGrammarChecking()101cdf0e10cSrcweir bool SpellDialogChildWindow::IsGrammarChecking()
102cdf0e10cSrcweir {
103cdf0e10cSrcweir     DBG_ERROR("Grammar checking should have been overloaded - if available");
104cdf0e10cSrcweir     return false;
105cdf0e10cSrcweir }
106cdf0e10cSrcweir /*-- 18.06.2008 12:26:35---------------------------------------------------
107cdf0e10cSrcweir 
108cdf0e10cSrcweir   -----------------------------------------------------------------------*/
SetGrammarChecking(bool)109cdf0e10cSrcweir void SpellDialogChildWindow::SetGrammarChecking(bool )
110cdf0e10cSrcweir {
111cdf0e10cSrcweir     DBG_ERROR("Grammar checking should have been overloaded - if available");
112cdf0e10cSrcweir }
113cdf0e10cSrcweir } // end of namespace ::svx
114*633aadc5Smseidel 
115*633aadc5Smseidel /* vim: set noet sw=4 ts=4: */
116