PrintStyle 3.26 KB
Newer Older
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
/* Copyright 1997 Acorn Computers Ltd
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/***************************************************/
/* File   : PrintStyle.h                           */
/*                                                 */
/* Purpose: Change print style options with the    */
/*          PrintStyle dialogue.                   */
/*                                                 */
/*          This source is fairly closely tied to  */
/*          Print.h, as the Print Style dialogue   */
/*          is typically opened from the Print     */
/*          dialogue.                              */
/*                                                 */
/* Author : A.D.Hodgkinson                         */
/*                                                 */
/* History: 24-Aug-97: Created.                    */
/***************************************************/

31
/* Print Style dialogue component IDs */
32

33 34 35 36 37 38 39 40 41 42 43 44 45
#define PSUnderlineLinks                0x02200
#define PSUseDocumentColours            0x02201
#define PSShowForegroundImages          0x02202
#define PSShowBackgroundImages          0x02203
#define PSAllBackgrounds                0x02204
#define PSTablesOnly                    0x02205
#define PSNoBackgrounds                 0x02206
#define PSBlackIfNoBackground           0x02207
#define PSAlwaysUseBlack                0x02208
#define PSOK                            0x02209
#define PSCancel                        0x0220a
#define PSGroupFrameOne                 0x0220b
#define PSGroupFrameTwo                 0x0220c
46

47
/* Print Style dialogue event codes */
48

49 50 51 52 53
#define EPSOK                           0x02209
#define EPSCancel                       0x0220a

#define EPSToBeShown                    0x023ff
#define EPSOG1                          0x023fe /* Raised by any of the option buttons in option group 1. */
54 55 56 57 58 59 60 61 62

/* Function prototypes */

int               printstyle_set_defaults         (void);

int               printstyle_to_be_shown          (int eventcode, ToolboxEvent * event, IdBlock * idb, void * handle);
int               printstyle_ok                   (int eventcode, ToolboxEvent * event, IdBlock * idb, void * handle);
_kernel_oserror * printstyle_close                (ObjectId ancestor, int do_not_close);

63
_kernel_oserror * printstyle_set_look             (ObjectId source, ObjectId browser, int underline_links, int use_source_cols, int show_foreground, int show_background);
64 65 66 67

int               printstyle_show_none            (void);
int               printstyle_show_in_tables_only  (void);
int               printstyle_show_all             (void);
68
int               printstyle_black_no_background  (void);
69 70 71
int               printstyle_always_use_black     (void);

void              printstyle_return_dialogue_info (ObjectId * window, ObjectId * ancestor);