Class: Gnm::WorkbookView

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

Instance Method Summary collapse

Constructor Details

#initialize(uri, file_opener, io_context, encoding) ⇒ Gnm::WorkbookView

Reads uri file using given file opener file_opener, or probes for a valid possibility if file_opener is nil. Reports problems to io_context. or nil on error.

Parameters:

  • uri (String)

    URI for file

  • file_opener (GOffice::FileOpener)

    GOFile::Opener

  • io_context (GOffice::IOContext)

    Context to display errors.

  • encoding (String)

    Encoding for file_opener that understands it

Instance Method Details

#auto_expr_descrString

Returns auto-expr-descr.

Returns:

  • (String)

    auto-expr-descr

#auto_expr_descr=(auto_expr_descr) ⇒ String

Parameters:

  • auto_expr_descr (String)

Returns:

  • (String)

    auto-expr-descr

  • (String)

    auto-expr-descr

#auto_expr_eval_pos=(auto_expr_eval_pos) ⇒ Gnm::EvalPos

Returns auto-expr-eval-pos.

Parameters:

  • auto_expr_eval_pos (Gnm::EvalPos)

Returns:

  • (Gnm::EvalPos)

    auto-expr-eval-pos

#auto_expr_funcGnm::Func

Returns auto-expr-func.

Returns:

#auto_expr_func=(auto_expr_func) ⇒ Gnm::Func

Parameters:

Returns:

#auto_expr_max_precision=(auto_expr_max_precision) ⇒ Boolean

Parameters:

  • auto_expr_max_precision (Boolean)

Returns:

  • (Boolean)

    auto-expr-max-precision

  • (Boolean)

    auto-expr-max-precision

#auto_expr_max_precision?Boolean

Returns auto-expr-max-precision.

Returns:

  • (Boolean)

    auto-expr-max-precision

#auto_expr_valueGnm::Value

Returns auto-expr-value.

Returns:

  • (Gnm::Value)

    auto-expr-value

#auto_expr_value=(auto_expr_value) ⇒ Gnm::Value

Parameters:

  • auto_expr_value (Gnm::Value)

Returns:

  • (Gnm::Value)

    auto-expr-value

  • (Gnm::Value)

    auto-expr-value

#do_auto_completion=(do_auto_completion) ⇒ Boolean

Parameters:

  • do_auto_completion (Boolean)

Returns:

  • (Boolean)

    do-auto-completion

  • (Boolean)

    do-auto-completion

#do_auto_completion?Boolean

Returns do-auto-completion.

Returns:

  • (Boolean)

    do-auto-completion

#preferred_heightInteger

Returns preferred-height.

Returns:

  • (Integer)

    preferred-height

#preferred_height=(preferred_height) ⇒ Integer

Parameters:

  • preferred_height (Integer)

Returns:

  • (Integer)

    preferred-height

  • (Integer)

    preferred-height

#preferred_widthInteger

Returns preferred-width.

Returns:

  • (Integer)

    preferred-width

#preferred_width=(preferred_width) ⇒ Integer

Parameters:

  • preferred_width (Integer)

Returns:

  • (Integer)

    preferred-width

  • (Integer)

    preferred-width

#protected=(protected) ⇒ Boolean

Parameters:

  • protected (Boolean)

Returns:

  • (Boolean)

    protected

  • (Boolean)

    protected

#protected?Boolean

Returns protected.

Returns:

  • (Boolean)

    protected

#save(cc) ⇒ Boolean

Saves wbv and workbook it's attached to into file assigned to the workbook using workbook's file saver. If the workbook has no file saver assigned to it, default file saver is used instead.

Parameters:

  • cc (GOffice::CmdContext)

    The GOCmd::Context that invoked the operation

Returns:

  • (Boolean)

    true if file was successfully saved and false otherwise.

#save_as(fs, uri, cc) ⇒ Boolean

Saves wbv and workbook it's attached to into uri file using fs file saver. If the format sufficiently advanced make it the saver and update the uri.

Parameters:

  • fs (GOffice::FileSaver)

    GOFileSaver object

  • uri (String)

    URI to save as.

  • cc (GOffice::CmdContext)

    The GOCmd::Context that invoked the operation

Returns:

  • (Boolean)

    true if file was successfully saved and false otherwise.

#save_to_output(fs, output, io_context) ⇒ nil

NOTE : Temporary api until we get the new output framework.

Parameters:

  • fs (GOffice::FileSaver)

    GOFile::Saver

  • output (Gsf::Output)

    Gsf::Output

  • io_context (GOffice::IOContext)

    #GOIOContext

Returns:

  • (nil)

#save_to_uri(fs, uri, io_context) ⇒ nil

Parameters:

  • fs (GOffice::FileSaver)

    GOFile::Saver

  • uri (String)

    destination URI

  • io_context (GOffice::IOContext)

    #GOIOContext

Returns:

  • (nil)

#show_extension_markers=(show_extension_markers) ⇒ Boolean

Parameters:

  • show_extension_markers (Boolean)

Returns:

  • (Boolean)

    show-extension-markers

  • (Boolean)

    show-extension-markers

#show_extension_markers?Boolean

Returns show-extension-markers.

Returns:

  • (Boolean)

    show-extension-markers

#show_function_cell_markers=(show_function_cell_markers) ⇒ Boolean

Parameters:

  • show_function_cell_markers (Boolean)

Returns:

  • (Boolean)

    show-function-cell-markers

  • (Boolean)

    show-function-cell-markers

#show_function_cell_markers?Boolean

Returns show-function-cell-markers.

Returns:

  • (Boolean)

    show-function-cell-markers

#show_horizontal_scrollbar=(show_horizontal_scrollbar) ⇒ Boolean

Parameters:

  • show_horizontal_scrollbar (Boolean)

Returns:

  • (Boolean)

    show-horizontal-scrollbar

  • (Boolean)

    show-horizontal-scrollbar

#show_horizontal_scrollbar?Boolean

Returns show-horizontal-scrollbar.

Returns:

  • (Boolean)

    show-horizontal-scrollbar

#show_notebook_tabs=(show_notebook_tabs) ⇒ Boolean

Parameters:

  • show_notebook_tabs (Boolean)

Returns:

  • (Boolean)

    show-notebook-tabs

  • (Boolean)

    show-notebook-tabs

#show_notebook_tabs?Boolean

Returns show-notebook-tabs.

Returns:

  • (Boolean)

    show-notebook-tabs

#show_vertical_scrollbar=(show_vertical_scrollbar) ⇒ Boolean

Parameters:

  • show_vertical_scrollbar (Boolean)

Returns:

  • (Boolean)

    show-vertical-scrollbar

  • (Boolean)

    show-vertical-scrollbar

#show_vertical_scrollbar?Boolean

Returns show-vertical-scrollbar.

Returns:

  • (Boolean)

    show-vertical-scrollbar

#workbookGnm::Workbook

Returns workbook.

Returns:

#workbook=(workbook) ⇒ Gnm::Workbook

Parameters:

Returns: