1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
|
/************************************************************************/
/* */
/* Text attributes without a reference to palettes or font lists. */
/* */
/************************************************************************/
# ifndef DOC_EXPANDED_TEXT_ATTRIBUTE_H
# define DOC_EXPANDED_TEXT_ATTRIBUTE_H
# include <utilTextAttribute.h>
# include <utilDocFont.h>
# include <psFont.h>
# include <bmcolor.h>
typedef struct ExpandedTextAttribute
{
int etaFontNumber;
int etaFontSizeHalfPoints;
int etaTextStyleNumber;
RGB8Color etaTextColor;
int etaTextColorExplicit;
unsigned int etaFontIsBold;
unsigned int etaFontIsSlanted;
unsigned int etaTextIsUnderlined;
unsigned int etaSmallCaps;
unsigned int etaHasStrikethrough;
unsigned int etaCapitals;
unsigned int etaSuperSub;
} ExpandedTextAttribute;
/************************************************************************/
/* */
/* Routine declarations */
/* */
/************************************************************************/
extern void docInitExpandedTextAttribute( ExpandedTextAttribute * eta );
extern void docCleanExpandedTextAttribute( ExpandedTextAttribute * eta );
extern void docUpdateExpandedTextAttribute(
PropertyMask * pDoneMask,
ExpandedTextAttribute * etaTo,
const ExpandedTextAttribute * etaFrom,
const PropertyMask * setMask );
extern int docCopyExpandedTextAttribute(
ExpandedTextAttribute * etaTo,
const ExpandedTextAttribute * etaFrom );
extern void docExpandTextAttribute(
PropertyMask * pDoneMask,
ExpandedTextAttribute * etaTo,
const TextAttribute * taFrom,
const PropertyMask * setMask,
const DocumentFontList * dfl,
const RGB8Color * colors,
int colorCount );
extern void docIndirectTextAttribute(
PropertyMask * pDoneMask,
TextAttribute * taTo,
const ExpandedTextAttribute * etaFrom,
const PropertyMask * setMask,
RGB8Color ** pColors,
int * pColorCount );
extern void docExpandedAttributeToString(
char * target,
const PropertyMask * updMask,
const DocumentFontList * dfl,
const ExpandedTextAttribute * etaNew );
extern int docExpandedAttributeFromString(
PropertyMask * pSetMask,
ExpandedTextAttribute * pEtaSet,
DocumentFontList * dfl,
const char * attributeString );
# endif /* DOC_EXPANDED_TEXT_ATTRIBUTE_H */
|