LCOV - code coverage report
Current view: top level - cui/source/inc - hyphen.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 1 0.0 %
Date: 2015-06-13 12:38:46 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 INCLUDED_CUI_SOURCE_INC_HYPHEN_HXX
      20             : #define INCLUDED_CUI_SOURCE_INC_HYPHEN_HXX
      21             : 
      22             : #include <memory>
      23             : 
      24             : #include <vcl/edit.hxx>
      25             : #include <vcl/button.hxx>
      26             : #include <vcl/fixed.hxx>
      27             : #include <sfx2/basedlgs.hxx>
      28             : #include <com/sun/star/uno/Reference.hxx>
      29             : #include <com/sun/star/linguistic2/XHyphenator.hpp>
      30             : #include <com/sun/star/linguistic2/XPossibleHyphens.hpp>
      31             : 
      32             : class SvxSpellWrapper;
      33             : 
      34           0 : class HyphenEdit : public Edit
      35             : {
      36             : public:
      37             :     HyphenEdit(vcl::Window* pParent);
      38             : 
      39             : protected:
      40             :     virtual void KeyInput(const KeyEvent &rKEvt) SAL_OVERRIDE;
      41             : };
      42             : 
      43             : class SvxHyphenWordDialog : public SfxModalDialog
      44             : {
      45             :     VclPtr<HyphenEdit>         m_pWordEdit;
      46             :     VclPtr<PushButton>         m_pLeftBtn;
      47             :     VclPtr<PushButton>         m_pRightBtn;
      48             :     VclPtr<PushButton>         m_pOkBtn;
      49             :     VclPtr<PushButton>         m_pContBtn;
      50             :     VclPtr<PushButton>         m_pDelBtn;
      51             :     VclPtr<PushButton>         m_pHyphAll;
      52             :     VclPtr<CloseButton>        m_pCloseBtn;
      53             :     OUString            m_aLabel;
      54             :     SvxSpellWrapper     *const m_pHyphWrapper;
      55             :     css::uno::Reference< css::linguistic2::XHyphenator >        m_xHyphenator;
      56             :     css::uno::Reference< css::linguistic2::XPossibleHyphens >   m_xPossHyph;
      57             :     OUString            m_aEditWord;      // aEditWord and aWordEdit.GetText() differ only by the character for the current selected hyphenation position
      58             :     OUString            m_aActWord;           // actual word to be hyphenated
      59             :     LanguageType        m_nActLanguage;       // and its language
      60             :     sal_Int16           m_nMaxHyphenationPos; // right most valid hyphenation pos
      61             :     sal_uInt16          m_nHyphPos;
      62             :     sal_Int32           m_nOldPos;
      63             :     sal_Int32           m_nHyphenationPositionsOffset;
      64             :     bool                m_bBusy;
      65             : 
      66             :     void            EnableLRBtn_Impl();
      67             :     OUString        EraseUnusableHyphens_Impl();
      68             : 
      69             :     void            InitControls_Impl();
      70             :     void            ContinueHyph_Impl( sal_Int32 nInsPos = -1 ); // continue by default
      71             :     sal_uInt16      GetHyphIndex_Impl();
      72             : 
      73             :     DECL_LINK(Left_Impl, void *);
      74             :     DECL_LINK(Right_Impl, void *);
      75             :     DECL_LINK(CutHdl_Impl, void *);
      76             :     DECL_LINK(ContinueHdl_Impl, void *);
      77             :     DECL_LINK(DeleteHdl_Impl, void *);
      78             :     DECL_LINK( HyphenateAllHdl_Impl, Button* );
      79             :     DECL_LINK(CancelHdl_Impl, void *);
      80             :     DECL_LINK(GetFocusHdl_Impl, void *);
      81             : 
      82             : public:
      83             :     SvxHyphenWordDialog( const OUString &rWord, LanguageType nLang,
      84             :                          vcl::Window* pParent,
      85             :                          css::uno::Reference< css::linguistic2::XHyphenator >  &xHyphen,
      86             :                          SvxSpellWrapper* pWrapper );
      87             :     virtual ~SvxHyphenWordDialog();
      88             :     virtual void    dispose() SAL_OVERRIDE;
      89             : 
      90             :     void            SetWindowTitle( LanguageType nLang );
      91             :     void            SelLeft();
      92             :     void            SelRight();
      93             : };
      94             : 
      95             : 
      96             : #endif
      97             : 
      98             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11