/****************************************************************************
 * This source file was written by Acorn Computers Limited. It is part of   *
 * the RISCOS library for writing applications in C for RISC OS. It may be  *
 * used freely in the creation of programs for Archimedes. It should be     *
 * used with Acorn's C Compiler Release 3 or later.                         *
 *                                                                          *
 ***************************************************************************/

/*
 * Title:   txtopt.h
 * Purpose: setting/reading the name used for setting text editing options
 * 
 */

#ifndef __txtopt_h
#define __txtopt_h


/* ----------------------------- txtopt_set_name ---------------------------
 * Description:   Set the name used as a system variable for setting text
 *                editing options
 *
 * Parameters:    char *name -- the name to be prepended to $Options to form
 *                              the system variable name.
 * Returns:       void.
 * Other Info:    If this function is not called before using any of the
 *                txt and txtedit functions, the system variable name
 *                defaults to Edit$Options.
 *                eg. txtopt_set_name("MyEdit") sets the system variable name
 *                to MyEdit$Options
 *
 */

void txtopt_set_name(char *name);


/* ---------------------------- txtopt_get_name ----------------------------
 * Description:   Get a pointer to the name currently prepended to $Options
 *                to form a system variable for use in setting text editing
 *                options.
 *
 * Parameters:    void.
 * Returns:       pointer to name
 * Other Info:    If no name has been set, this will point to "Edit".
 *                eg. assuming option name is currently MyEdit$Options
 *                then txtopt_get_name will return a pointer to the string
 *                "MyEdit".
 *
 */

char *txtopt_get_name(void);

#endif
