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 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
|
# ifndef APP_PAPER_CHOOSER_H
# define APP_PAPER_CHOOSER_H
# include <appFrame.h>
# include <utilPropMask.h>
/************************************************************************/
/* */
/* A paper chooser to be embedded in another window. */
/* */
/************************************************************************/
typedef struct PaperChooser
{
APP_WIDGET pcFrame;
APP_WIDGET pcVerticalColumn;
AppOptionmenu pcOptionmenu;
APP_WIDGET pcSizeText;
APP_WIDGET pcOrientationRow;
APP_WIDGET pcPortraitRadio;
APP_WIDGET pcLandscapeRadio;
int pcCustomPaperSize;
int pcSizeChosen;
int pcSizeSet;
int pcLandscapeChosen;
int pcLandscapeSet;
int pcSizeOptionCount;
APP_WIDGET * pcSizeOptions;
} PaperChooser;
# define appPaperChooserRetreshMenuWidth( pc ) \
appOptionmenuRefreshWidth( &((pc)->pcOptionmenu) )
/************************************************************************/
/* */
/* Routine declarations. */
/* */
/************************************************************************/
extern void appPaperChooserShowWidthHeight( PaperChooser * pc,
const DocumentGeometry * dg,
int unitInt );
extern void appPaperChooserShowSize( PaperChooser * pc,
int sizeChosen );
extern int appPaperChooserGetSize( PropertyMask * pUpdMask,
PaperChooser * pc,
int unitInt,
DocumentGeometry * dg );
extern void appPaperChooserFillMenu( PaperChooser * pc,
const char * customLabel,
APP_BUTTON_CALLBACK callback,
void * through );
extern void appPaperChooserAdaptToGeometry( PaperChooser * pc,
int unitType,
const DocumentGeometry * dg,
int set );
extern void appPaperSizeChosen( APP_WIDGET w,
PaperChooser * pc,
DocumentGeometry * dg,
int unitType );
extern void appPaperSizeChanged( PaperChooser * pc,
DocumentGeometry * dg,
int unitType );
extern void appMakePaperChooserWidgets( APP_WIDGET parent,
const char * title,
PaperChooser * pc,
APP_TEXT_ACTIVATE_CALLBACK
changedCallback,
void * through );
extern void appPaperChooserAddOrientationToggles( PaperChooser * pc,
const char * portrait,
const char * landscape,
APP_TOGGLE_CALLBACK callback,
void * through );
extern void appPageToolShowOrientation( PaperChooser * pc );
extern void appPaperOrientationChosen( APP_WIDGET w,
void * voidtbcs,
int * pChanged,
PaperChooser * pc,
int unitType,
DocumentGeometry * dg );
extern void appInitPaperChooser( PaperChooser * pc );
extern void appCleanPaperChooser( PaperChooser * pc );
# endif /* APP_PAPER_CHOOSER_H */
|