33
33
/*------------------------------------------------------------------------*/
34
34
int set_x_location_property(void* _pvCtx, char* pobjUID, size_t stackPointer, int valueType, int nbRow, int nbCol )
39
if ( !isParameterStringMatrix( valueType ) )
41
Scierror(999, _("Wrong type for '%s' property: String expected.\n"), "x_location");
42
return SET_PROPERTY_ERROR;
45
if ( isStringParamEqual( stackPointer, "bottom" ) )
49
else if ( isStringParamEqual( stackPointer, "top" ) )
53
else if ( isStringParamEqual( stackPointer, "middle" ) )
57
else if ( isStringParamEqual( stackPointer, "origin" ) )
63
Scierror(999, _("Wrong value for '%s' property: Must be in the set {%s}.\n"), "x_location", "bottom, top, middle, origin");
64
return SET_PROPERTY_ERROR ;
67
status = setGraphicObjectProperty(pobjUID, __GO_X_AXIS_LOCATION__, &axisLocation, jni_int, 1);
71
return SET_PROPERTY_SUCCEED ;
75
Scierror(999, _("'%s' property does not exist for this handle.\n"),"x_location");
76
return SET_PROPERTY_ERROR;
39
if ( !( valueType == sci_strings ) )
41
Scierror(999, _("Wrong type for '%s' property: String expected.\n"), "x_location");
42
return SET_PROPERTY_ERROR;
45
if ( isStringParamEqual( stackPointer, "bottom" ) )
49
else if ( isStringParamEqual( stackPointer, "top" ) )
53
else if ( isStringParamEqual( stackPointer, "middle" ) )
57
else if ( isStringParamEqual( stackPointer, "origin" ) )
63
Scierror(999, _("Wrong value for '%s' property: Must be in the set {%s}.\n"), "x_location", "bottom, top, middle, origin");
64
return SET_PROPERTY_ERROR ;
67
status = setGraphicObjectProperty(pobjUID, __GO_X_AXIS_LOCATION__, &axisLocation, jni_int, 1);
71
return SET_PROPERTY_SUCCEED ;
75
Scierror(999, _("'%s' property does not exist for this handle.\n"), "x_location");
76
return SET_PROPERTY_ERROR;
79
79
/*------------------------------------------------------------------------*/