Class: Gnm::StyleConditions

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Constructor Details

#initialize(sheet) ⇒ Gnm::StyleConditions

Convenience tool to create a Gnm::StyleCondition. Straight g_object_new
will work too.

Parameters:

Instance Method Details

#delete(pos) ⇒ nil

Parameters:

  • pos (Integer)

Returns:

  • (nil)

#details ⇒ Array<Gnm::StyleCond>

Returns style details.

Returns:

  • (Array<Gnm::StyleCond>) —

    style details.

#dup ⇒ Gnm::StyleConditions

Returns the duplicated Gnm::StyleConditions.

Returns:

#dup_to(sheet) ⇒ Gnm::StyleConditions

Returns the duplicated Gnm::StyleConditions.

Parameters:

  • sheet (Gnm::Sheet) —

    Sheet that the duplicate should live on

Returns:

#equal(scb, relax_sheet) ⇒ Boolean

Returns true if the conditions are equal.

Parameters:

  • scb (Gnm::StyleConditions) —

    second Gnm::StyleConditions to compare.

  • relax_sheet (Boolean) —

    if true, ignore differences solely caused by being linked into different sheets.

Returns:

  • (Boolean) —

    true if the conditions are equal.

#eval(pos) ⇒ Integer

Returns the condition to use or -1 if none match.

Parameters:

  • pos (Gnm::EvalPos) —

    Gnm::EvalPos

Returns:

  • (Integer) —

    the condition to use or -1 if none match.

#hash ⇒ Integer

Returns:

  • (Integer)

#insert(cond, pos) ⇒ nil

Insert cond before pos (append if pos < 0).

Parameters:

  • cond (Gnm::StyleCond) —

    Gnm::StyleCond

  • pos (Integer) —

    position.

Returns:

  • (nil)

#overlay(base) ⇒ Array<Gnm::Style>

Returns an array of Gnm::Style.

Parameters:

  • base (Gnm::Style) —

    Gnm::Style

Returns:

  • (Array<Gnm::Style>) —

    an array of Gnm::Style.

#pos ⇒ Gnm::CellPos

addresses in the conditions will be evaluated. This may be nil if
no conditions require a position.

Returns:

  • (Gnm::CellPos) —

    The position at which relative

#pos=(pos) ⇒ nil

Sets the position of sc, i.e., the position at which relative addresses
in the conditions will be evaluated.

Parameters:

  • pos (Gnm::CellPos) —

    new position

Returns:

  • (nil)

#sheet ⇒ Gnm::Sheet

Returns the #Sheet.

Returns: