mirror of https://github.com/lianthony/NT4.0
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
2.4 KiB
73 lines
2.4 KiB
/*****************************************************************************
|
|
* *
|
|
* OUTTEXT.H *
|
|
* *
|
|
* Copyright (C) Microsoft Corporation 1990. *
|
|
* All Rights reserved. *
|
|
* *
|
|
******************************************************************************
|
|
* *
|
|
* Module Intent *
|
|
* *
|
|
* This file exports entries into the outtext module, which deals with *
|
|
* writing things out to the |TOPIC file. *
|
|
* *
|
|
*****************************************************************************/
|
|
|
|
/*****************************************************************************
|
|
* *
|
|
* Macros *
|
|
* *
|
|
*****************************************************************************/
|
|
|
|
// ----------- Defines used for character attribute state ------------------*/
|
|
|
|
#define fPlain 0x0000 // Plain/No attributes
|
|
#define FBOLD 0x0001 // Bold
|
|
#define fItalic 0x0002 // Italic
|
|
#define fUnderLine 0x0004 // Underline
|
|
#define fStrikethrough 0x0008 // Strikethrough
|
|
#define fDblUnderline 0x0010 // Double Underline
|
|
#define fSmallCaps 0x0020 // Small caps
|
|
#define fAttrHidden 0x0040 // Hidden text
|
|
#define fPosNormal 0x0100 // Normal position
|
|
#define fPosSuper 0x0200 // Superscript
|
|
#define fPosSub 0x0400 // Subscript
|
|
#define fAllCaps 0x0800 // All-caps
|
|
|
|
#define LTR_CHAR 0x1000 // LTR character in RTL paragraph
|
|
|
|
// Hotspot formats:
|
|
|
|
#define fAttrHotspotFormat (fUnderLine | fStrikethrough | fDblUnderline)
|
|
|
|
// Paragraph box states
|
|
|
|
#define fBottomBorder 1
|
|
#define fTopBorder 2
|
|
#define fLeftBorder 4
|
|
#define fRightBorder 8
|
|
|
|
/*****************************************************************************
|
|
* *
|
|
* Static Variables *
|
|
* *
|
|
*****************************************************************************/
|
|
|
|
extern CF cfPrev; // Previous character format
|
|
extern CF cfCur; // Current character format
|
|
|
|
extern PF pfPrev;
|
|
extern PF pfCur;
|
|
|
|
extern CF cfDefault;
|
|
extern PF pfDefault;
|
|
extern CF* qcfInt;
|
|
|
|
extern UINT wTabStackCur; // points to next empty slot
|
|
extern UINT wIntTabStackCur; // points to next empty slot
|
|
extern UINT wTabType; // Current tab type
|
|
|
|
extern CBuf* pbfText;
|
|
extern CBuf* pbfCommand;
|
|
extern UINT wTextBufChCount;
|