2010-10-14 08:30:41 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2011-03-31 10:05:04 +02:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2013-11-05 02:17:53 +01:00
|
|
|
#ifndef INCLUDED_SW_SOURCE_UI_INC_HYP_HXX
|
|
|
|
#define INCLUDED_SW_SOURCE_UI_INC_HYP_HXX
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
#include <tools/link.hxx>
|
2010-01-08 18:32:51 +01:00
|
|
|
#include <editeng/splwrap.hxx>
|
2000-10-27 11:17:04 +00:00
|
|
|
#include <com/sun/star/linguistic2/XHyphenator.hpp>
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
class SwView;
|
|
|
|
|
|
|
|
class SwHyphWrapper : public SvxSpellWrapper {
|
|
|
|
private:
|
|
|
|
SwView* pView;
|
|
|
|
::com::sun::star::uno::Reference<
|
2000-10-27 11:17:04 +00:00
|
|
|
::com::sun::star::linguistic2::XHyphenator > xHyph;
|
2000-09-18 16:15:01 +00:00
|
|
|
Link aOldLnk;
|
2011-04-21 18:12:29 +02:00
|
|
|
sal_uInt16 nPageCount; // page count for progress view
|
|
|
|
sal_uInt16 nPageStart; // 1st checked page
|
2013-05-15 10:42:04 +03:00
|
|
|
sal_Bool bInSelection : 1; // separating selected text
|
|
|
|
sal_Bool bAutomatic : 1; // insert separators without further inquiry
|
2002-01-16 11:07:56 +00:00
|
|
|
sal_Bool bInfoBox : 1; // display info-box when ending
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void SpellStart( SvxSpellArea eSpell );
|
|
|
|
virtual sal_Bool SpellContinue();
|
|
|
|
virtual void SpellEnd( );
|
|
|
|
virtual sal_Bool SpellMore();
|
2011-04-21 18:12:29 +02:00
|
|
|
virtual void InsertHyphen( const sal_uInt16 nPos ); // insert hyphen
|
2007-09-27 11:02:25 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
SwHyphWrapper( SwView* pVw,
|
|
|
|
::com::sun::star::uno::Reference<
|
|
|
|
::com::sun::star::linguistic2::XHyphenator > &rxHyph,
|
|
|
|
sal_Bool bStart, sal_Bool bOther, sal_Bool bSelect );
|
|
|
|
~SwHyphWrapper();
|
2000-09-18 16:15:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
2010-10-14 08:30:41 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|