textserv.h revision 4b9d6701570cb98fd36e209314239d104ec584d3
/*
* Copyright (C) 2005 Mike McCormack
*
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
/*
* Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
* other than GPL or LGPL is available it will apply instead, Oracle elects to use only
* the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
* a choice of LGPL license versions is made available with the language indicating
* that LGPLv2 or any later version may be used, or where a choice of which version
* of the LGPL is applied is otherwise unspecified.
*/
#ifndef _TEXTSERV_H
#define _TEXTSERV_H
#ifdef __cplusplus
extern "C" {
#endif
/*****************************************************************************
* ITextServices interface
*/
#define INTERFACE ITextServices
{
/*** IUnknown methods ***/
/*** ITextServices methods ***/
void* pvAspect,
void* pvAspect,
INT x,
void* pvAspect,
INT x,
INT y,
const SIZEL* psizelExtent,
};
#ifdef COBJMACROS
/*** IUnknown methods ***/
#endif
typedef enum _TXTBACKSTYLE {
TXTBACK_TRANSPARENT = 0,
} TXTBACKSTYLE;
enum TXTHITRESULT {
TXTHITRESULT_NOHIT = 0,
TXTHITRESULT_CLOSE = 2,
TXTHITRESULT_HIT = 3
};
enum TXTNATURALSIZE {
TXTNS_FITTOCONTENT = 1,
};
enum TXTVIEW {
TXTVIEW_ACTIVE = 0,
TXTVIEW_INACTIVE = 1
};
#define TXTBIT_RICHTEXT 0x000001
#define TXTBIT_MULTILINE 0x000002
#define TXTBIT_READONLY 0x000004
#define TXTBIT_SHOWACCELERATOR 0x000008
#define TXTBIT_USEPASSWORD 0x000010
#define TXTBIT_HIDESELECTION 0x000020
#define TXTBIT_SAVESELECTION 0x000040
#define TXTBIT_AUTOWORDSEL 0x000080
#define TXTBIT_VERTICAL 0x000100
#define TXTBIT_SELBARCHANGE 0x000200
#define TXTBIT_WORDWRAP 0x000400
#define TXTBIT_ALLOWBEEP 0x000800
#define TXTBIT_DISABLEDRAG 0x001000
#define TXTBIT_VIEWINSETCHANGE 0x002000
#define TXTBIT_BACKSTYLECHANGE 0x004000
#define TXTBIT_MAXLENGTHCHANGE 0x008000
#define TXTBIT_SCROLLBARCHANGE 0x010000
#define TXTBIT_CHARFORMATCHANGE 0x020000
#define TXTBIT_PARAFORMATCHANGE 0x040000
#define TXTBIT_EXTENTCHANGE 0x080000
#define TXTBIT_CLIENTRECTCHANGE 0x100000
#define TXTBIT_USECURRENTBKG 0x200000
/*****************************************************************************
* ITextHost interface
*/
{
/*** IUnknown methods ***/
/*** ITextHost methods ***/
) PURE;
INT x,
) PURE;
) PURE;
};
#ifdef COBJMACROS
/*** IUnknown methods ***/
#endif
#ifdef __cplusplus
}
#endif
#endif /* _TEXTSERV_H */