Class: Gnm::HLink

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

Direct Known Subclasses

HLinkCurWB, HLinkExternal, HLinkURL

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(typ, sheet) ⇒ Gnm::HLink

Parameters:

Class Method Details

.init_nil

Returns:

  • (nil)

Instance Method Details

#activate(wbcg) ⇒ Boolean

Returns true if the link successfully activated.

Parameters:

  • wbcg (Gnm::WBCGtk)

    the wbcg that activated the link

Returns:

  • (Boolean)

    true if the link successfully activated.

#dup_to(sheet) ⇒ Gnm::HLink

Returns A duplicate link.

Parameters:

Returns:

#equal(b, relax_sheet) ⇒ Boolean

Returns true, if links are equal.

Parameters:

  • b (Gnm::HLink)

    a Gnm::HLink

  • relax_sheet (Boolean)

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

Returns:

  • (Boolean)

    true, if links are equal

#get_range_target(sr) ⇒ Boolean

This function determines the location that a link points to. It will resolve names.

Parameters:

  • sr (Gnm::SheetRange)

    location to store link target range

Returns:

  • (Boolean)

    true, if the link refers to a range.

#sheetGnm::Sheet

Returns the sheet.

Returns:

#sheet=(sheet) ⇒ Gnm::Sheet

Returns sheet.

Parameters:

Returns:

#targetString

Returns lnk's target.

Returns:

  • (String)

    lnk's target.

#target=(url) ⇒ nil

Parameters:

  • url (String)

Returns:

  • (nil)

#target_exprGnm::ExprTop

This function determines the location that a link points to.

Returns:

  • (Gnm::ExprTop)

    A Gnm::ExprTop describing the target.

#tipString

Returns lnk's tooltip.

Returns:

  • (String)

    lnk's tooltip.

#tip=(tip) ⇒ nil

Parameters:

  • tip (String)

Returns:

  • (nil)