FoLengthCond

FoLengthCond

Functions

Properties

gboolean conditionality Read / Write / Construct Only
gdouble length Read / Write / Construct Only

Types and Values

Object Hierarchy

    GObject
    ╰── FoObject
        ╰── FoDatatype
            ╰── FoLengthCond

Description

Functions

fo_length_cond_new ()

FoDatatype *
fo_length_cond_new (void);

Creates a new FoLengthCond initialized to default value.

Returns

the new FoLengthCond


fo_length_cond_new_with_value ()

FoDatatype *
fo_length_cond_new_with_value (gdouble length,
                               gboolean condity);

Creates a new FoLengthCond set to length and condity

Parameters

length

Length component of the new FoLengthCond

 

condity

Conditionality component of the new FoLengthCond

 

Returns

The new FoLengthCond


fo_length_cond_new_from_length ()

FoDatatype *
fo_length_cond_new_from_length (FoDatatype *length);

Creates a new FoLengthCond with .length component set to length and .conditionality component set to default value.

Parameters

length

FoLength to use as initial value.

 

Returns

New FoLengthCond.


fo_length_cond_get_length ()

gdouble
fo_length_cond_get_length (FoDatatype *datatype);

Gets the .length component value of datatype

Parameters

datatype

FoLengthCond

 

Returns

The .length value of datatype


fo_length_cond_set_length ()

void
fo_length_cond_set_length (FoDatatype *datatype,
                           gdouble new_length);

Sets the .length component of datatype

Parameters

datatype

FoLengthCond

 

new_length

New .length value

 

fo_length_cond_get_condity ()

gboolean
fo_length_cond_get_condity (FoDatatype *datatype);

Gets the .conditionality component value of datatype

Parameters

datatype

FoLengthCond

 

Returns

The .conditionality component value of datatype


fo_length_cond_set_condity ()

void
fo_length_cond_set_condity (FoDatatype *datatype,
                            gboolean new_condity);

Sets the .condity component of datatype

Parameters

datatype

FoLengthCond

 

new_condity

New .condity value

 

fo_length_cond_get_length_cond_zero ()

FoDatatype *
fo_length_cond_get_length_cond_zero (void);

Get an FoLengthCond with the well-known value of 0pt/discard.

Returns

The FoLengthCond.


fo_length_cond_resolve ()

FoDatatype *
fo_length_cond_resolve (FoDatatype *shortform,
                        FoDatatype *length,
                        FoDatatype *condity,
                        GError **error);

Resolve the shortform and components of the length-conditional in accordance with Section 5.11, Datatypes, of the XSL 1.0 Recommendation.

Parameters

shortform

Single-value short form of the length-conditional, or NULL

 

length

.length component of the space, or NULL

 

condity

.conditionality component of the space, or NULL

 

error

GError used for reporting errors

 

Returns

Compound space datatype, or NULL if an error occurred

Types and Values

FoLengthCond

typedef struct _FoLengthCond FoLengthCond;


FoLengthCondClass

typedef struct _FoLengthCondClass FoLengthCondClass;

Property Details

The “conditionality” property

  “conditionality”           gboolean

Whether or not the space must always be retained.

Flags: Read / Write / Construct Only

Default value: FALSE


The “length” property

  “length”                   gdouble

Length_Cond length.

Flags: Read / Write / Construct Only

Default value: 0