123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- #include "form.priv.h"
- MODULE_ID("$Id$")
- int set_field_just(FIELD * field, int just)
- {
- int res = E_BAD_ARGUMENT;
- if ((just==NO_JUSTIFICATION) ||
- (just==JUSTIFY_LEFT) ||
- (just==JUSTIFY_CENTER) ||
- (just==JUSTIFY_RIGHT) )
- {
- Normalize_Field( field );
- if (field->just != just)
- {
- field->just = just;
- res = _nc_Synchronize_Attributes( field );
- }
- else
- res = E_OK;
- }
- RETURN(res);
- }
- int field_just(const FIELD * field)
- {
- return Normalize_Field( field )->just;
- }
|