home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-09-17 | 6.6 KB | 229 lines | [TEXT/MPS ] |
- //========================================================================================
- //
- // File: SLGConst.k
- // Release Version: $ ODF 2 $
- //
- // Copyright: (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
- //
- //========================================================================================
-
- #ifndef SLGCONST_K
- #define SLGCONST_K
-
- //========================================================================================
- // Inks
- //========================================================================================
-
- enum FW_EStandardInks
- {
- FW_kNormalInk,
- FW_kNormalTextInk,
- FW_kInvertInk,
- FW_kWhiteEraseInk
- };
-
- //========================================================================================
- // Style dash kinds
- //========================================================================================
-
- enum FW_EStyleDash
- {
- FW_kSolidLine,
-
- FW_kDash,
- FW_kDot,
- FW_kDashDot,
- FW_kDashDotDot,
-
- FW_kOpaque = 0x100,
-
- FW_kDashOpaque = FW_kDash + FW_kOpaque,
- FW_kDotOpaque = FW_kDot + FW_kOpaque,
- FW_kDashDotOpaque = FW_kDashDot + FW_kOpaque,
- FW_kDashDotDotOpaque = FW_kDashDotDot + FW_kOpaque
- };
-
- //========================================================================================
- // Styles
- //========================================================================================
-
- enum FW_EStandardStyles
- {
- FW_kNormalStyle,
- FW_kDashStyle,
- FW_kDotStyle,
- FW_kDashDotStyle,
- FW_kDashDotDotStyle
- };
-
- //========================================================================================
- // Fonts
- //========================================================================================
-
- enum FW_EStandardFonts
- {
- FW_kNormalFont,
- FW_kSystemFont,
- FW_kHelvetica12,
- FW_kTimes12,
- FW_kCourier12,
- FW_kPalatino12
- };
-
- //========================================================================================
- // Font Style
- //========================================================================================
-
- typedef unsigned short FW_FontStyle;
-
- enum FW_EFontStyles
- {
- FW_kPlain = 0x0000,
- FW_kBold = 0x0001,
- FW_kItalic = 0x0002,
- FW_kUnderline = 0x0004,
- FW_kOutline = 0x0008,
- FW_kShadow = 0x0010,
- FW_kCondensed = 0x0020,
- FW_kExtended = 0x0040,
- FW_kStrikeOut = 0x0080
- };
-
- //========================================================================================
- // Transfer Modes
- //========================================================================================
-
- typedef unsigned long FW_TransferModes;
-
- #define FW_kCopy 0xFFFF0000L
- #define FW_kNotCopy 0xFFFF0001L
- #define FW_kOr 0xFFFF0002L
- #define FW_kNotOr 0xFFFF0003L
- #define FW_kXOr 0xFFFF0004L
- #define FW_kNotXOr 0xFFFF0005L
- #define FW_kClear 0xFFFF0006L
- #define FW_kNotClear 0xFFFF0007L
- #define FW_kHilite 0xFFFF0008L
-
- #define FW_kErase 0xFFFF0009L // 'Special' Transfer Mode
- #define FW_kInvert 0xFFFF000AL // 'Special' Transfer Mode
- #define FW_kSystemHilite 0xFFFF000BL
-
- #define FW_kPrivLastTransferMode FW_kSystemHilite
-
- //========================================================================================
- // Rendering Verbs
- //========================================================================================
-
- enum FW_ERenderVerbs
- {
- FW_kNoRendering,
- FW_kFrame,
- FW_kFill
- };
-
- //========================================================================================
- // Single-line Text Alignment Options
- //========================================================================================
-
- typedef unsigned short FW_TextAlignment;
-
- enum
- {
- // Horizontal alignment
- FW_kTextAlignLeft = 0, // default
- FW_kTextAlignRight = 0x0001,
- FW_kTextAlignHCenter = 0x0002,
-
- FW_kPrivTextAlignHorzAlignMask = 0x000F,
-
- // Vertical alignment
- FW_kTextAlignTop = 0, // default
- FW_kTextAlignBottom = 0x0010,
- FW_kTextAlignBaseLine = 0x0020,
- FW_kTextAlignVCenter = 0x0040,
-
- FW_kPrivTextAlignVertAlignMask = 0x00F0,
-
- // Position to use
- FW_kTextAlignUseSpecifiedPos = 0, // default
- FW_kTextAlignUseCurrentPos = 0x0100,
-
- FW_kPrivTextAlignUsePosMask = 0x0F00
- };
-
- //========================================================================================
- // Text Box Alignment Options
- //========================================================================================
-
- typedef unsigned short FW_TextBoxOptions;
-
- enum
- {
- // Horizontal justification
- FW_kTextBoxJustifyLeft = 0, // default
- FW_kTextBoxJustifyRight = 0x0001,
- FW_kTextBoxJustifyHCenter = 0x0002,
-
- FW_kPrivTextBoxHorzJusificationMask = 0x000F,
-
- // Vertical jusitification
- FW_kTextBoxJustifyTop = 0, // default
- FW_kTextBoxJustifyBottom = 0x0010,
- FW_kTextBoxJustifyVCenter = 0x0020,
-
- FW_kPrivTextBoxVertJusificationMask = 0x00F0,
-
- // Should the text be clipped to the box? If not, make sure the box is large enough
- FW_kTextBoxNoClipToBox = 0,
- FW_kTextBoxClipToBox = 0x0100, // default
-
- // The options below apply only if the following flag is not set
- FW_kTextBoxSingleLine = 0x0200,
-
- // Word wrapping and breaking options
- FW_kTextBoxWordWrap = 0x0400,
- FW_kTextBoxWordBreak = 0x0800
- };
-
-
- //========================================================================================
- // Icon drawing
- //========================================================================================
- // [HLX] I can't use <Icons.h> because of ODFrc
-
- typedef unsigned short FW_RenderIconAlignment;
-
- enum
- {
- FW_kIconAlignNone = 0x0,
- FW_kIconAlignVCenter = 0x1,
- FW_kIconAlignTop = 0x2,
- FW_kIconAlignBottom = 0x3,
- FW_kIconAlignCenter = 0x4,
- FW_kIconAlignAbsoluteCenter = FW_kIconAlignVCenter | FW_kIconAlignCenter,
- FW_kIconAlignCenterTop = FW_kIconAlignTop | FW_kIconAlignCenter,
- FW_kIconAlignCenterBottom = FW_kIconAlignBottom | FW_kIconAlignCenter,
- FW_kIconAlignLeft = 0x8,
- FW_kIconAlignCenterLeft = FW_kIconAlignVCenter | FW_kIconAlignLeft,
- FW_kIconAlignTopLeft = FW_kIconAlignTop | FW_kIconAlignLeft,
- FW_kIconAlignBottomLeft = FW_kIconAlignBottom | FW_kIconAlignLeft,
- FW_kIconAlignRight = 0xC,
- FW_kIconAlignCenterRight = FW_kIconAlignVCenter | FW_kIconAlignRight,
- FW_kIconAlignTopRight = FW_kIconAlignTop | FW_kIconAlignRight,
- FW_kIconAlignBottomRight = FW_kIconAlignBottom | FW_kIconAlignRight
- };
-
- typedef unsigned short FW_RenderIconTransform;
-
- enum
- {
- FW_kIconTransformNone = 0x0000, // kTransformNone,
- FW_kIconTransformDisabled = 0x0001, // kTransformDisabled,
- FW_kIconTransformOffline = 0x0002, // kTransformOffline,
- FW_kIconTransformOpen = 0x0003, // kTransformOpen,
- FW_kIconTransformSelected = 0x4000 // kTransformSelected
- };
-
- #endif // SLGCONST_H
-