SaveObject 2.1 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
/* 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   : SaveObject.h                           */
/*                                                 */
/* Purpose: Handle the Save Object dialogue        */
/*          (actual object saving is done in       */
/*          Save.c).                               */
/*                                                 */
/* Author : A.D.Hodgkinson                         */
/*                                                 */
/* History: 03-Sep-97: Created.                    */
25 26 27 28 29
/*                                                 */
/*          05-Sep-97: Split so bulk became the    */
/*                     SaveFile source, and the    */
/*                     small fetch saving stayed   */
/*                     in here.                    */
30 31
/***************************************************/

32
/* Save Object dialogue component IDs */
33

34 35 36 37
#define SaveObjectDrag                  0x01400
#define SaveObjectWrit                  0x01401
#define SaveObjectCancel                0x01402
#define SaveObjectOK                    0x01403
38

39 40 41 42 43 44
/* Save Object dialogue event codes */

#define ESaveObjectOK                   0x01403
#define ESaveObjectCancel               0x01402

#define ESaveObjectToBeShown            0x015ff
45 46 47

/* Function prototypes */

48 49
_kernel_oserror * saveobject_open_for    (browser_data * b);
int               saveobject_to_be_shown (int eventcode, ToolboxEvent * event, IdBlock * idb, void * handle);
50

51
_kernel_oserror * saveobject_close       (browser_data * b);