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
|
/************************************************************************/
/* */
/* A group of widgets to manipulate page margins. */
/* */
/************************************************************************/
# ifndef APP_MARGIN_TOOL_H
# define APP_MARGIN_TOOL_H
# include <stdlib.h>
# include <stdio.h>
# include <appGuiBase.h>
# include <utilPropMask.h>
# include <appUnit.h>
# include <appGeo.h>
# include <appGeoString.h>
typedef struct AppMarginTool
{
APP_WIDGET amtLeftColumn;
APP_WIDGET amtRightColumn;
APP_WIDGET amtInsideWidget;
APP_WIDGET amtMarginFrame;
APP_WIDGET amtLeftMarginText;
APP_WIDGET amtTopMarginText;
APP_WIDGET amtRightMarginText;
APP_WIDGET amtBottomMarginText;
} AppMarginTool;
typedef struct MarginToolResources
{
char * mtrTitleText;
char * mtrLeftMarginText;
char * mtrTopMarginText;
char * mtrRightMarginText;
char * mtrBottomMarginText;
} MarginToolResources;
/************************************************************************/
/* */
/* Routine declarations. */
/* */
/************************************************************************/
extern void appMarginToolShowMargins( AppMarginTool * amt,
int unitInt,
const DocumentGeometry * dg );
extern int appMarginToolGetMargins( PropertyMask * pUpdMask,
const PropertyMask * chgMask,
int unitType,
AppMarginTool * amt,
DocumentGeometry * dg );
extern int appMarginToolCheckMargins( const DocumentGeometry * dg );
extern void appMakeMarginToolWidgets( APP_WIDGET parent,
const MarginToolResources * mtr,
AppMarginTool * amt,
APP_TEXT_ACTIVATE_CALLBACK changed,
void * through );
# endif /* APP_MARGIN_TOOL_H */
|