LCOV - code coverage report
Current view: top level - svx/source/dialog - SpellDialogChildWindow.cxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 1 27 3.7 %
Date: 2014-11-03 Functions: 2 12 16.7 %
Legend: Lines: hit not hit

          Line data    Source code
       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             : 
      20             : #include <svx/SpellDialogChildWindow.hxx>
      21             : 
      22             : #include <svx/svxdlg.hxx>
      23             : 
      24             : namespace svx {
      25             : 
      26             : 
      27           0 : SpellDialogChildWindow::SpellDialogChildWindow (
      28             :     vcl::Window* _pParent,
      29             :     sal_uInt16 nId,
      30             :     SfxBindings* pBindings,
      31             :     SfxChildWinInfo* /*pInfo*/)
      32           0 :     : SfxChildWindow (_pParent, nId)
      33             : 
      34             : {
      35             : 
      36           0 :     SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
      37             :     DBG_ASSERT(pFact, "SvxAbstractDialogFactory::Create() failed");
      38             :     m_pAbstractSpellDialog = pFact->CreateSvxSpellDialog(_pParent,
      39             :                                             pBindings,
      40           0 :                                             this );
      41           0 :     pWindow = m_pAbstractSpellDialog->GetWindow();
      42           0 :     eChildAlignment = SFX_ALIGN_NOALIGNMENT;
      43           0 :     SetHideNotDelete(true);
      44           0 : }
      45             : 
      46           0 : SpellDialogChildWindow::~SpellDialogChildWindow (void)
      47             : {
      48           0 : }
      49             : 
      50           0 : SfxBindings& SpellDialogChildWindow::GetBindings (void) const
      51             : {
      52             :     OSL_ASSERT (m_pAbstractSpellDialog != NULL);
      53           0 :     return m_pAbstractSpellDialog->GetBindings();
      54             : }
      55             : 
      56           0 : void SpellDialogChildWindow::InvalidateSpellDialog()
      57             : {
      58             :     OSL_ASSERT (m_pAbstractSpellDialog != NULL);
      59           0 :     if(m_pAbstractSpellDialog)
      60           0 :         m_pAbstractSpellDialog->Invalidate();
      61           0 : }
      62             : 
      63           0 : bool SpellDialogChildWindow::HasAutoCorrection()
      64             : {
      65           0 :     return false;
      66             : }
      67             : 
      68           0 : void SpellDialogChildWindow::AddAutoCorrection(
      69             :         const OUString& /*rOld*/,
      70             :         const OUString& /*rNew*/,
      71             :         LanguageType /*eLanguage*/)
      72             : {
      73             :     OSL_FAIL("AutoCorrection should have been overloaded - if available");
      74           0 : }
      75             : 
      76           0 : bool SpellDialogChildWindow::HasGrammarChecking()
      77             : {
      78           0 :     return false;
      79             : }
      80             : 
      81           0 : bool SpellDialogChildWindow::IsGrammarChecking()
      82             : {
      83             :     OSL_FAIL("Grammar checking should have been overloaded - if available");
      84           0 :     return false;
      85             : }
      86             : 
      87           0 : void SpellDialogChildWindow::SetGrammarChecking(bool )
      88             : {
      89             :     OSL_FAIL("Grammar checking should have been overloaded - if available");
      90           0 : }
      91         594 : } // end of namespace ::svx
      92             : 
      93             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10