Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : :
29 : : #include <svx/SpellDialogChildWindow.hxx>
30 : :
31 : : #include <svx/svxdlg.hxx>
32 : :
33 : : namespace svx {
34 : :
35 : :
36 : 0 : SpellDialogChildWindow::SpellDialogChildWindow (
37 : : Window* _pParent,
38 : : sal_uInt16 nId,
39 : : SfxBindings* pBindings,
40 : : SfxChildWinInfo* /*pInfo*/)
41 : 0 : : SfxChildWindow (_pParent, nId)
42 : :
43 : : {
44 : :
45 [ # # ]: 0 : SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
46 : : DBG_ASSERT(pFact, "SvxAbstractDialogFactory::Create() failed");
47 : : m_pAbstractSpellDialog = pFact->CreateSvxSpellDialog(_pParent,
48 : : pBindings,
49 [ # # ]: 0 : this );
50 [ # # ]: 0 : pWindow = m_pAbstractSpellDialog->GetWindow();
51 : 0 : eChildAlignment = SFX_ALIGN_NOALIGNMENT;
52 [ # # ]: 0 : SetHideNotDelete (sal_True);
53 : 0 : }
54 : :
55 : 0 : SpellDialogChildWindow::~SpellDialogChildWindow (void)
56 : : {
57 [ # # ]: 0 : }
58 : :
59 : 0 : SfxBindings& SpellDialogChildWindow::GetBindings (void) const
60 : : {
61 : : OSL_ASSERT (m_pAbstractSpellDialog != NULL);
62 : 0 : return m_pAbstractSpellDialog->GetBindings();
63 : : }
64 : :
65 : 0 : void SpellDialogChildWindow::InvalidateSpellDialog()
66 : : {
67 : : OSL_ASSERT (m_pAbstractSpellDialog != NULL);
68 [ # # ]: 0 : if(m_pAbstractSpellDialog)
69 : 0 : m_pAbstractSpellDialog->Invalidate();
70 : 0 : }
71 : :
72 : 0 : bool SpellDialogChildWindow::HasAutoCorrection()
73 : : {
74 : 0 : return false;
75 : : }
76 : :
77 : 0 : void SpellDialogChildWindow::AddAutoCorrection(
78 : : const String& /*rOld*/,
79 : : const String& /*rNew*/,
80 : : LanguageType /*eLanguage*/)
81 : : {
82 : : OSL_FAIL("AutoCorrection should have been overloaded - if available");
83 : 0 : }
84 : :
85 : 0 : bool SpellDialogChildWindow::HasGrammarChecking()
86 : : {
87 : 0 : return false;
88 : : }
89 : :
90 : 0 : bool SpellDialogChildWindow::IsGrammarChecking()
91 : : {
92 : : OSL_FAIL("Grammar checking should have been overloaded - if available");
93 : 0 : return false;
94 : : }
95 : :
96 : 0 : void SpellDialogChildWindow::SetGrammarChecking(bool )
97 : : {
98 : : OSL_FAIL("Grammar checking should have been overloaded - if available");
99 : 0 : }
100 : : } // end of namespace ::svx
101 : :
102 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|