Orcus
Public Member Functions | List of all members
orcus::spreadsheet::import_factory Class Reference
Inheritance diagram for orcus::spreadsheet::import_factory:
orcus::spreadsheet::iface::import_factory

Public Member Functions

 import_factory (document &doc, row_t row_size=1048576, col_t col_size=1024)
 
virtual iface::import_global_settingsget_global_settings ()
 
virtual iface::import_shared_stringsget_shared_strings ()
 
virtual iface::import_stylesget_styles ()
 
virtual iface::import_sheetappend_sheet (const char *sheet_name, size_t sheet_name_length)
 
virtual iface::import_sheetget_sheet (const char *sheet_name, size_t sheet_name_length)
 
virtual iface::import_sheetget_sheet (sheet_t sheet_index)
 
virtual void finalize ()
 

Member Function Documentation

virtual iface::import_sheet* orcus::spreadsheet::import_factory::append_sheet ( const char *  sheet_name,
size_t  sheet_name_length 
)
virtual
Returns
pointer to the sheet instance. It may return NULL if the client app fails to append new sheet.

Implements orcus::spreadsheet::iface::import_factory.

virtual void orcus::spreadsheet::import_factory::finalize ( )
virtual

This method is called at the end of import, to give the implementor a chance to perform post-processing if necessary.

Implements orcus::spreadsheet::iface::import_factory.

virtual iface::import_shared_strings* orcus::spreadsheet::import_factory::get_shared_strings ( )
virtual
Returns
pointer to the shared strings instance. It may return NULL if the client app doesn't support shared strings.

Reimplemented from orcus::spreadsheet::iface::import_factory.

virtual iface::import_sheet* orcus::spreadsheet::import_factory::get_sheet ( const char *  sheet_name,
size_t  sheet_name_length 
)
virtual
Returns
pointer to the sheet instance whose name matches the name passed to this method. It returns NULL if no sheet instance exists by the specified name.

Implements orcus::spreadsheet::iface::import_factory.

virtual iface::import_sheet* orcus::spreadsheet::import_factory::get_sheet ( sheet_t  sheet_index)
virtual

Retrieve sheet instance by specified numerical sheet index.

Parameters
sheet_indexsheet index
Returns
pointer to the sheet instance, or NULL if no sheet instance exists at specified sheet index position.

Implements orcus::spreadsheet::iface::import_factory.

virtual iface::import_styles* orcus::spreadsheet::import_factory::get_styles ( )
virtual
Returns
pointer to the styles instance. It may return NULL if the client app doesn't support styles.

Reimplemented from orcus::spreadsheet::iface::import_factory.