GOffice.Data

g GObject.Object GObject.Object GOffice.Data GOffice.Data GObject.Object->GOffice.Data

Subclasses:

GOffice.DataMatrix, GOffice.DataScalar, GOffice.DataVector

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

date_conv ()

dup ()

emit_changed ()

eq (b)

get_bounds (minimum, maximum)

get_matrix_markup (row, column)

get_matrix_size (n_rows, n_columns)

get_matrix_string (row, column)

get_matrix_value (row, column)

get_n_dimensions ()

get_n_values ()

get_scalar_markup ()

get_scalar_string ()

get_scalar_value ()

get_values ()

get_vector_markup (column)

get_vector_size ()

get_vector_string (column)

get_vector_value (column)

has_value ()

is_decreasing ()

is_increasing ()

is_valid ()

is_varying_uniformly ()

preferred_fmt ()

serialize (user)

unserialize (str, user)

Virtual Methods

Inherited:

GObject.Object (7)

do_changed ()

do_date_conv ()

do_dup ()

do_emit_changed ()

do_eq (b)

do_get_bounds (minimum, maximum)

do_get_markup (coordinates)

do_get_n_dimensions ()

do_get_sizes (sizes)

do_get_string (coordinates)

do_get_value (coordinates)

do_get_values ()

do_is_valid ()

do_preferred_fmt ()

do_serialize (user)

do_unserialize (str, user)

Properties

None

Signals

Inherited:

GObject.Object (1)

Name

Short Description

changed

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

base

GObject.Object

r

flags

int

r

Class Details

class GOffice.Data(**kwargs)
Bases:

GObject.Object

Abstract:

Yes

Structure:

GOffice.DataClass

date_conv()
Returns:

the date conventions used by the data, or None if not determined.

Return type:

GOffice.DateConventions

dup()
Returns:

A deep copy of self.

Return type:

GOffice.Data

emit_changed()

protected utility to emit a ‘changed’ signal

eq(b)
Parameters:

b (GOffice.Data) – GOffice.Data

Returns:

True if self and b are the same

Return type:

bool

get_bounds(minimum, maximum)
Parameters:
get_matrix_markup(row, column)
Parameters:
  • row (int) –

  • column (int) –

Return type:

Pango.AttrList

get_matrix_size(n_rows, n_columns)
Parameters:
  • n_rows (int) –

  • n_columns (int) –

get_matrix_string(row, column)
Parameters:
  • row (int) –

  • column (int) –

Return type:

str

get_matrix_value(row, column)
Parameters:
  • row (int) –

  • column (int) –

Return type:

float

get_n_dimensions()
Return type:

int

get_n_values()
Return type:

int

get_scalar_markup()
Return type:

Pango.AttrList

get_scalar_string()
Return type:

str

get_scalar_value()
Return type:

float

get_values()
Return type:

float

get_vector_markup(column)
Parameters:

column (int) –

Return type:

Pango.AttrList

get_vector_size()
Return type:

int

get_vector_string(column)
Parameters:

column (int) –

Return type:

str

get_vector_value(column)
Parameters:

column (int) –

Return type:

float

has_value()
Return type:

bool

is_decreasing()
Return type:

bool

is_increasing()
Return type:

bool

is_valid()
Return type:

bool

is_varying_uniformly()
Return type:

bool

preferred_fmt()
Returns:

the fmt preferred by the data

Return type:

GOffice.Format

Caller is responsible for unrefing the result.

serialize(user)
Parameters:

user (object or None) – a object describing the context.

Returns:

a string representation of the data source that the caller is responsible for freeing

Return type:

str

NOTE : This is the _source_ not the content. (I.e., this refers to the expression, not its current GOffice.value.)

unserialize(str, user)
Parameters:
Returns:

False on error.

Return type:

bool

De-serializes the source information returned from GOffice.Data.serialize.

do_changed() virtual
do_date_conv() virtual
Returns:

the date conventions used by the data, or None if not determined.

Return type:

GOffice.DateConventions

do_dup() virtual
Returns:

A deep copy of src.

Return type:

GOffice.Data

do_emit_changed() virtual

protected utility to emit a ‘changed’ signal

do_eq(b) virtual
Parameters:

b (GOffice.Data) – GOffice.Data

Returns:

True if a and b are the same

Return type:

bool

do_get_bounds(minimum, maximum) virtual
Parameters:
do_get_markup(coordinates) virtual
Parameters:

coordinates (int) –

Return type:

Pango.AttrList

do_get_n_dimensions() virtual
Return type:

int

do_get_sizes(sizes) virtual
Parameters:

sizes (int) –

do_get_string(coordinates) virtual
Parameters:

coordinates (int) –

Return type:

str

do_get_value(coordinates) virtual
Parameters:

coordinates (int) –

Return type:

float

do_get_values() virtual
Return type:

float

do_is_valid() virtual
Return type:

bool

do_preferred_fmt() virtual
Returns:

the fmt preferred by the data

Return type:

GOffice.Format

Caller is responsible for unrefing the result.

do_serialize(user) virtual
Parameters:

user (object or None) – a object describing the context.

Returns:

a string representation of the data source that the caller is responsible for freeing

Return type:

str

NOTE : This is the _source_ not the content. (I.e., this refers to the expression, not its current GOffice.value.)

do_unserialize(str, user) virtual
Parameters:
Returns:

False on error.

Return type:

bool

De-serializes the source information returned from GOffice.Data.serialize.

Signal Details

GOffice.Data.signals.changed(data)
Signal Name:

changed

Flags:

RUN_LAST

Parameters:

data (GOffice.Data) – The object which received the signal