LCOV - code coverage report
Current view: top level - libreoffice/sw/source/ui/inc - olmenu.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 1 0.0 %
Date: 2012-12-27 Functions: 0 2 0.0 %
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             : #ifndef _OLMENU_HXX
      20             : #define _OLMENU_HXX
      21             : 
      22             : #include <com/sun/star/linguistic2/XDictionary.hpp>
      23             : #include <com/sun/star/linguistic2/XSpellAlternatives.hpp>
      24             : #include <com/sun/star/linguistic2/ProofreadingResult.hpp>
      25             : #include <com/sun/star/uno/Sequence.h>
      26             : 
      27             : #include <rtl/ustring.hxx>
      28             : #include <vcl/image.hxx>
      29             : #include <vcl/menu.hxx>
      30             : 
      31             : #include <map>
      32             : #include <vector>
      33             : 
      34             : 
      35             : class SwWrtShell;
      36             : 
      37           0 : class SwSpellPopup : public PopupMenu
      38             : {
      39             :     SwWrtShell* pSh;
      40             :     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference<
      41             :         ::com::sun::star::linguistic2::XDictionary >  >     aDics;
      42             :     ::com::sun::star::uno::Reference<
      43             :         ::com::sun::star::linguistic2::XSpellAlternatives > xSpellAlt;
      44             : 
      45             :     ::com::sun::star::linguistic2::ProofreadingResult xGrammarResult;
      46             :     sal_Int32 nGrammarError;
      47             : 
      48             :     ::com::sun::star::uno::Sequence< rtl::OUString >  aSuggestions;
      49             :     rtl::OUString sExplanationLink;
      50             : 
      51             :     LanguageType                nCheckedLanguage;
      52             :     LanguageType                nGuessLangWord;
      53             :     LanguageType                nGuessLangPara;
      54             : 
      55             :     std::map< sal_Int16, ::rtl::OUString > aLangTable_Text;
      56             :     std::map< sal_Int16, ::rtl::OUString > aLangTable_Paragraph;
      57             : //    std::map< sal_Int16, ::rtl::OUString > aLangTable_Document;
      58             : 
      59             :     String  aDicNameSingle;
      60             :     bool    bGrammarResults;    // show grammar results? Or show spellcheck results?
      61             : 
      62             :     Image   aInfo16;
      63             : 
      64             :     void fillLangPopupMenu( PopupMenu *pPopupMenu, sal_uInt16 nLangStart,
      65             :             ::com::sun::star::uno::Sequence< ::rtl::OUString > aSeq, SwWrtShell* pWrtSh,
      66             :             std::map< sal_Int16, ::rtl::OUString > &rLangTable );
      67             : 
      68             :     using PopupMenu::Execute;
      69             : 
      70             : public:
      71             :     SwSpellPopup( SwWrtShell *pWrtSh,
      72             :             const ::com::sun::star::uno::Reference<
      73             :                 ::com::sun::star::linguistic2::XSpellAlternatives >  &xAlt,
      74             :             const String & rParaText );
      75             : 
      76             :     SwSpellPopup( SwWrtShell *pWrtSh,
      77             :             const ::com::sun::star::linguistic2::ProofreadingResult &rResult,
      78             :             sal_Int32 nErrorInResult,
      79             :             const ::com::sun::star::uno::Sequence< rtl::OUString > &rSuggestions,
      80             :             const String & rParaText );
      81             : 
      82             :     sal_uInt16  Execute( const Rectangle& rPopupPos, Window* pWin );
      83             :     void Execute( sal_uInt16 nId );
      84             : 
      85             : };
      86             : 
      87             : #endif
      88             : 
      89             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10