/****************************************************************************1* Copyright (c) 1998 Free Software Foundation, Inc. *2* *3* Permission is hereby granted, free of charge, to any person obtaining a *4* copy of this software and associated documentation files (the *5* "Software"), to deal in the Software without restriction, including *6* without limitation the rights to use, copy, modify, merge, publish, *7* distribute, distribute with modifications, sublicense, and/or sell *8* copies of the Software, and to permit persons to whom the Software is *9* furnished to do so, subject to the following conditions: *10* *11* The above copyright notice and this permission notice shall be included *12* in all copies or substantial portions of the Software. *13* *14* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *15* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *16* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *17* IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *18* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *19* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *20* THE USE OR OTHER DEALINGS IN THE SOFTWARE. *21* *22* Except as contained in this notice, the name(s) of the above copyright *23* holders shall not be used in advertising or otherwise to promote the *24* sale, use or other dealings in this Software without prior written *25* authorization. *26****************************************************************************/2728/****************************************************************************29* Author: Juergen Pfeifer <[email protected]> 1995,1997 *30****************************************************************************/3132#include "form.priv.h"3334MODULE_ID("$Id$")3536/*---------------------------------------------------------------------------37| Facility : libnform38| Function : int set_new_page(FIELD *field, bool new_page_flag)39|40| Description : Marks the field as the beginning of a new page of41| the form.42|43| Return Values : E_OK - success44| E_CONNECTED - field is connected45+--------------------------------------------------------------------------*/46int set_new_page(FIELD * field, bool new_page_flag)47{48Normalize_Field(field);49if (field->form)50RETURN(E_CONNECTED);5152if (new_page_flag)53field->status |= _NEWPAGE;54else55field->status &= ~_NEWPAGE;5657RETURN(E_OK);58}5960/*---------------------------------------------------------------------------61| Facility : libnform62| Function : bool new_page(const FIELD *field)63|64| Description : Retrieve the info whether or not the field starts a65| new page on the form.66|67| Return Values : TRUE - field starts a new page68| FALSE - field doesn't start a new page69+--------------------------------------------------------------------------*/70bool new_page(const FIELD * field)71{72return (Normalize_Field(field)->status & _NEWPAGE) ? TRUE : FALSE;73}7475/* fld_page.c ends here */767778