LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/framework/inc/uielement - langselectionstatusbarcontroller.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 1 1 100.0 %
Date: 2013-07-09 Functions: 2 2 100.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             : 
      20             : #ifndef __FRAMEWORK_UIELEMENT_LANGSELECTIONSTATUSBARCONTROLLER_HXX_
      21             : #define __FRAMEWORK_UIELEMENT_LANGSELECTIONSTATUSBARCONTROLLER_HXX_
      22             : 
      23             : #include <macros/generic.hxx>
      24             : #include <macros/xinterface.hxx>
      25             : #include <macros/xtypeprovider.hxx>
      26             : #include <macros/xserviceinfo.hxx>
      27             : #include <stdtypes.h>
      28             : #include <com/sun/star/linguistic2/XLanguageGuessing.hpp>
      29             : #include <svtools/statusbarcontroller.hxx>
      30             : #include <rtl/ustring.hxx>
      31             : 
      32             : #include "helper/mischelper.hxx"
      33             : 
      34             : #include <set>
      35             : 
      36             : class SvtLanguageTable;
      37             : 
      38             : 
      39             : // component helper namespace
      40             : namespace framework {
      41             : 
      42             : class LangSelectionStatusbarController : public svt::StatusbarController
      43             : {
      44             :     public:
      45             :         explicit LangSelectionStatusbarController( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext );
      46             : 
      47             :         // XServiceInfo
      48             :         DECLARE_XSERVICEINFO
      49             : 
      50             :         // XInitialization
      51             :         virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
      52             : 
      53             :         // XStatusListener
      54             :         virtual void SAL_CALL statusChanged( const ::com::sun::star::frame::FeatureStateEvent& Event ) throw ( ::com::sun::star::uno::RuntimeException );
      55             : 
      56             :         // XStatusbarController
      57             :         virtual void SAL_CALL command( const ::com::sun::star::awt::Point& aPos,
      58             :                                        ::sal_Int32 nCommand,
      59             :                                        ::sal_Bool bMouseEvent,
      60             :                                        const ::com::sun::star::uno::Any& aData ) throw (::com::sun::star::uno::RuntimeException);
      61             :         virtual void SAL_CALL click( const ::com::sun::star::awt::Point& aPos ) throw (::com::sun::star::uno::RuntimeException);
      62             : 
      63             :     private:
      64         756 :         virtual ~LangSelectionStatusbarController() {}
      65             :         LangSelectionStatusbarController(LangSelectionStatusbarController &); // not defined
      66             :         void operator =(LangSelectionStatusbarController &); // not defined
      67             : 
      68             : 
      69             :         sal_Bool            m_bShowMenu;        // if the menu is to be displayed or not (depending on the selected object/text)
      70             :         sal_Int16           m_nScriptType;      // the flags for the different script types available in the selection, LATIN = 0x0001, ASIAN = 0x0002, COMPLEX = 0x0004
      71             :         OUString     m_aCurLang;         // the language of the current selection, "*" if there are more than one languages
      72             :         OUString     m_aKeyboardLang;    // the keyboard language
      73             :         OUString     m_aGuessedTextLang;     // the 'guessed' language for the selection, "" if none could be guessed
      74             :         LanguageGuessingHelper      m_aLangGuessHelper;
      75             : 
      76             :         void LangMenu( const ::com::sun::star::awt::Point& aPos ) throw (::com::sun::star::uno::RuntimeException);
      77             : };
      78             : 
      79             : } // framework namespace
      80             : 
      81             : #endif // __FRAMEWORK_UIELEMENT_LANGSELECTIONSTATUSBARCONTROLLER_HXX_
      82             : 
      83             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10