/* 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. */ /***************************************************/ /* Print Style dialogue component IDs */ #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 /* Print Style dialogue event codes */ #define EPSOK 0x02209 #define EPSCancel 0x0220a #define EPSToBeShown 0x023ff #define EPSOG1 0x023fe /* Raised by any of the option buttons in option group 1. */ /* 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); _kernel_oserror * printstyle_set_look (ObjectId source, ObjectId browser, int underline_links, int use_source_cols, int show_foreground, int show_background); int printstyle_show_none (void); int printstyle_show_in_tables_only (void); int printstyle_show_all (void); int printstyle_black_no_background (void); int printstyle_always_use_black (void); void printstyle_return_dialogue_info (ObjectId * window, ObjectId * ancestor);