📄 fsods.h
字号:
#if defined(OS400) && (__OS400_TGTVRM__ >= 510)
#pragma datamodel(P128)
#endif
/*********************************************************************/
/* */
/* Licensed Materials - Property of IBM */
/* */
/* L-GHUS-5VMPGW, L-GHUS-5S3PEE */
/* (C) Copyright IBM Corp. 1998, 2002 All Rights Reserved */
/* */
/* US Government Users Restricted Rights - Use, duplication or */
/* disclosure restricted by GSA ADP Schedule Contract with */
/* IBM Corp. */
/* */
/*********************************************************************/
#ifdef __cplusplus
extern "C" {
#endif
/* This file contains all definitions and data structures relavent to
On-Disk storage of $FRAMESET items.
*/
#ifndef FSODS_DEFS
#define FSODS_DEFS
#ifndef ODS_DEFS
#include "ods.h"
#endif
#ifndef COLORODS_DEFS
#include "colorods.h"
#endif
/* FRAMESETLENGTH structure used to specify the ROWS or COLS attributes for
a frameset element. One structure for each row or column */
typedef struct
{
#define PIXELS_LengthType 1 /* Attribute is expressed as pixels */
#define PERCENTAGE_LengthType 2 /* Attribute is expressed as a percentage */
#define RELATIVE_LengthType 3 /* Attribute is expressed as relative */
WORD Type; /* Must be PIXELS_LengthType, PERCENTAGE_LengthType, or RELATIVE_LengthType */
WORD Value; /* The value of the ROWS or COLS attribute */
} FRAMESETLENGTH;
/* Frameset version is currently 2. Version 1 was in the 5.0 code stream
and has known problems with the signed fields and signature being incorrect
The version is checked currently in \edit\d\dcreate.c when a digest error is foun
if it is version 1 then we ignore the error*/
#define FRAMESETHEADER_VERSION 2
typedef struct
{
WSIG Header;
WORD Version;
WORD RecCount; /* Total number of CDFRAMESET and CDFRAME recs that follow */
DWORD Reserved[4]; /* Reserved for future use, must be 0 */
} CDFRAMESETHEADER;
/* On-Disk CDFRAMESET structure used to specify an HTML FRAMESET element */
typedef struct
{
WSIG Header;
DWORD Flags; /* fFSxxxxxxx as defined below. Unused bits must be set to 0 */
#define fFSBorderEnable 0x00000001 /* Set if BorderEnable is specified */
#define fFSFrameBorderDims 0x00000004 /* Set if FrameBorderWidth is specified */
#define fFSFrameSpacingDims 0x00000008 /* Set if FrameSpacingWidth is specified */
#define fFSFrameBorderColor 0x00000040 /* Set if FrameBorderColor is specified */
BYTE BorderEnable; /* Specifies the HTML FRAMEBORDER attribute for this frameset element */
BYTE byAvail1; /* Reserved for future use, must be 0 */
WORD Reserved1; /* Reserved for future use, must be 0 */
WORD Reserved2; /* Reserved for future use, must be 0 */
WORD FrameBorderWidth; /* Specifies the HTML BORDER attribute for this frameset element */
WORD Reserved3; /* Reserved for future use, must be 0 */
WORD FrameSpacingWidth; /* Specifies the HTML FRAMESPACING attribute for this frameset element */
WORD Reserved4; /* Reserved for future use, must be 0 */
COLOR_VALUE ReservedColor1; /* Reserved for future use, must be 0 */
COLOR_VALUE ReservedColor2; /* Reserved for future use, must be 0 */
/* RowQty and ColQty specify the number of FRAMESETLENGTH structures that follow
* in the variable length data area. Only one of these values can be non-zero,
* meaning that a frameset will consist of all rows or all columns but never both. */
WORD RowQty;
WORD ColQty;
WORD Reserved5; /* Reserved for future use, must be 0 */
WORD Reserved6; /* Reserved for future use, must be 0 */
COLOR_VALUE FrameBorderColor; /* Used to specify the BORDERCOLOR attribute for this frameset element */
BYTE Reserved7[2]; /* Reserved for future use, must be 0 */
/* Variable length data follows (strings not null terminated)
* - Row FRAMESETLENGTH structures (count equals RowQty)
* - Col FRAMESETLENGTH structures (count equals ColQty) */
} CDFRAMESET;
/* On-Disk CDFRAME structure used to specify an HTML FRAME element */
typedef struct
{
WSIG Header;
DWORD Flags; /* fsFRxxxxx as defined below, unused bits must be set to 0 */
#define fFRBorderEnable 0x00000001 /* Set if BorderEnable is specified */
#define fFRMarginWidth 0x00000002 /* Set if MarginWidth is specified */
#define fFRMarginHeight 0x00000004 /* Set if MarginHeight is specified */
#define fFRFrameBorderColor 0x00000008 /* Set if FrameBorderColor is specified */
#define fFRScrolling 0x00000010 /* Set if ScrollBarStyle is specified */
#define fFRNotesOnlyBorder 0x00000020 /* Set if this frame has a notes only border*/
#define fFRNotesOnlyArrows 0x00000040 /* Set if this fram want arrows shown in Notes*/
#define fFRNotesOpenPercent 0x00000080 /* Open value specified for Border caption is in percent.*/
#define fFRNotesInitialFocus 0x00000100 /* if set, set initial focus to this frame */
#define fFRNotesReadingOrder 0x00000200 /* Set if this fram caption reading order is Right-To-Left*/
/* In R6 this word is used to signify variable data follows the frame */
/* the data is in the order of the bits, i.e. 0x8000 is the first chunck of data*/
/* the first word of each set of data is the size then the data*/
WORD DataFlags;
#define fFRNotesBorder 0x8000
#define fFRNotesBorderFontAndColor 0x4000
#define fFRNotesBorderCaption 0x2000
#define fFRNotesCaptionFontName 0x1000
BYTE BorderEnable; /* Specifies the FRAMEBORDER attribute for this Frame element */
BYTE NoResize; /* Specifies the NORESIZE attribute for this Frame element */
#define ALWAYS_ScrollStyle 1 /* SCROLLING = ALWAYS */
#define NEVER_ScrollStyle 2 /* SCROLLING = NEVER */
#define AUTO_ScrollStyle 3 /* SCROLLING = AUTO */
WORD ScrollBarStyle; /* Specifies the SCROLLING attribute for this
* frame element. Must be ALWAYS_ScrollStyle,
* NEVER_ScrollStyle or AUTO_ScrollStyle */
WORD MarginWidth; /* Specifies the MARGINWIDTH attribute for this frame element */
WORD MarginHeight; /* Specifies the MARGINHEIGHT attribute for this frame element */
DWORD dwReserved; /* Reserved for future use, must be 0 */
WORD FrameNameLength; /* Length of FrameName string that follows.
* Set to 0 if not specified. */
WORD Reserved1;
WORD FrameTargetLength; /* Length of default target frame name. Set to 0 if not specified */
COLOR_VALUE FrameBorderColor; /* Specifies the BORDERCOLOR attribute for this frame element */
WORD wReserved; /* Reserved for future use, must be 0 */
/* Variable length data follows (strings not null terminated)
* - Frame Name string (Specifies the NAME attribute for this frame element */
/* - Frame Target string */
/*This is where the data assoiciated with the Dataflags word above begins*/
} CDFRAME;
/* FRAMEVIEWPOSITION structure is used only in the bookmarks database. It contains
one entry per FRAME/FRAMSET. Each entry contains the undi of the currently
selected outline entry. It is null if no outline in this frame/frameset*/
#define MAXUNIDSTRING 32
/* At the end of all the frame info in the bookmark ONLY database is a set of
these structures which contain the UNID ( as a string) for the current position
in the outline for that frame if there is one. If not the unid is null*/
typedef struct
{
char posunid[MAXUNIDSTRING+1];
} FRAMEVIEWPOSITION;
#endif /* FSODS_DEFS */
#ifdef __cplusplus
}
#endif
#if defined(OS400) && (__OS400_TGTVRM__ >= 510)
#pragma datamodel(pop)
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -