COOPY » Guide  version 0.6.5
Defines | Functions | Variables
/home/paulfitz/cvs/coopy_scm/coopy/src/libgnumeric/gnumeric_link.c File Reference
#include <stdio.h>
#include <glib/gi18n.h>
#include "gnumeric.h"
#include "position.h"
#include "parse-util.h"
#include "workbook.h"
#include "workbook-priv.h"
#include "workbook-control.h"
#include "sheet.h"
#include "dependent.h"
#include "expr-name.h"
#include "libgnumeric.h"
#include "gutils.h"
#include "gnm-plugin.h"
#include "command-context.h"
#include "command-context-stderr.h"
#include "workbook-view.h"
#include "cell.h"
#include "value.h"
#include <goffice/goffice.h>
#include <goffice/utils/go-file.h>
#include <goffice/app/io-context.h>
#include <gsf/gsf-utils.h>
#include <string.h>
#include "stf-parse.h"
#include "clipboard.h"
#include "mstyle.h"
#include "style.h"
#include "sheet-style.h"
#include "style-color.h"
#include "hlink.h"
#include "func.h"
#include "expr.h"
#include "expr-impl.h"
#include "coopy/gnumeric_link.h"

Go to the source code of this file.

Defines

#define OLD_GNUMERIC
#define GOIOContext   IOContext
#define GO_FILE_SAVE_WORKBOOK   FILE_SAVE_WORKBOOK
#define GOErrorInfo   ErrorInfo
#define GNM_VERSION_FULL   GNUMERIC_VERSION
#define go_get_file_savers   get_file_savers
#define go_get_file_openers   get_file_openers
#define go_io_context_new   gnumeric_io_context_new
#define wb_view_get_workbook   wb_view_workbook
#define sheet_cell_create   sheet_cell_new
#define PASTE_CONTENTS   PASTE_CONTENT
#define DO_UNDO   NULL, &tmp
#define BEGIN_UNDO   GnmRelocUndo tmp;
#define END_UNDO   dependents_unrelocate_free (tmp.exprs);

Functions

static void gnumeric_atexit (void)
int gnumeric_init ()
int gnumeric_fini ()
int gnumeric_free (GnumericWorkbookPtr workbook)
GnumericWorkbookPtr gnumeric_load (const char *fname)
GnumericWorkbookPtr gnumeric_create ()
int gnumeric_save (GnumericWorkbookPtr workbook, const char *fname, const char *format)
int gnumeric_overlay_csv (GnumericWorkbookPtr workbook, const char *start, const char *stop)
int gnumeric_get_sheet_count (GnumericWorkbookPtr workbook)
GnumericSheetPtr gnumeric_get_sheet (GnumericWorkbookPtr workbook, int index)
GnumericSheetPtr gnumeric_get_sheet_by_name (GnumericWorkbookPtr workbook, const char *name)
GnumericSheetPtr gnumeric_add_sheet (GnumericWorkbookPtr workbook, const char *name)
int gnumeric_sheet_get_size (GnumericSheetPtr sheet, int *w, int *h)
char * gnumeric_sheet_get_cell_as_string (GnumericSheetPtr sheet, int x, int y)
int gnumeric_sheet_get_cell (GnumericSheetPtr sheet, int x, int y, GSheetCellPtr cell)
int gnumeric_sheet_set_cell (GnumericSheetPtr sheet, int x, int y, GSheetCellPtr cell)
static void coopy_add_attr (PangoAttrList *attrs, PangoAttribute *attr)
int gnumeric_sheet_set_cell_as_string (GnumericSheetPtr sheet, int x, int y, const char *str)
int gnumeric_sheet_remove_cell (GnumericSheetPtr sheet, int x, int y)
const char * gnumeric_sheet_get_name (GnumericSheetPtr sheet)
void gnumeric_free_string (char *str)
int gnumeric_move_column (GnumericSheetPtr sheet, int src, int dest)
int gnumeric_move_row (GnumericSheetPtr sheet, int src, int dest)
int gnumeric_insert_column (GnumericSheetPtr sheet, int before)
int gnumeric_delete_column (GnumericSheetPtr sheet, int at)
int gnumeric_insert_row (GnumericSheetPtr sheet, int before)
int gnumeric_delete_row (GnumericSheetPtr sheet, int at)
int gnumeric_delete_rows (GnumericSheetPtr sheet, int first, int last)
int gnumeric_delete_data (GnumericSheetPtr sheet)
GnumericStylePtr gnumeric_sheet_get_style (GnumericSheetPtr sheet, int x, int y)
int gnumeric_sheet_set_style (GnumericSheetPtr sheet, GnumericStylePtr style, int x, int y)
int gnumeric_sheet_set_row_style (GnumericSheetPtr sheet, GnumericStylePtr style, int y)
int gnumeric_sheet_set_col_style (GnumericSheetPtr sheet, GnumericStylePtr style, int x)
int gnumeric_style_set_font_strike (GnumericStylePtr style, int flag)
int gnumeric_style_set_font_bold (GnumericStylePtr style, int flag)
int gnumeric_style_set_font_color (GnumericStylePtr style, int r16, int g16, int b16)
int gnumeric_style_set_back_color (GnumericStylePtr style, int r16, int g16, int b16)
void gnumeric_free_style (GnumericStylePtr style)
int gnumeric_sheet_get_cell_font_color (GnumericSheetPtr sheet, int x, int y, int *r16, int *g16, int *b16)
void gsheetcell_zero (GSheetCellPtr cell)
void gsheetcell_free (GSheetCellPtr cell)

Variables

static GOErrorInfo * plugin_errs = NULL
static GOCmdContext * cc = NULL
static int gnumeric_init_ct = 0
static int gnumeric_inited = 0

Define Documentation

#define BEGIN_UNDO   GnmRelocUndo tmp;
#define DO_UNDO   NULL, &tmp
#define END_UNDO   dependents_unrelocate_free (tmp.exprs);
#define GNM_VERSION_FULL   GNUMERIC_VERSION

Definition at line 51 of file gnumeric_link.c.

Referenced by main().

#define GO_FILE_SAVE_WORKBOOK   FILE_SAVE_WORKBOOK

Definition at line 49 of file gnumeric_link.c.

Referenced by convert(), and gnumeric_save().

#define go_get_file_openers   get_file_openers

Definition at line 53 of file gnumeric_link.c.

Referenced by main().

#define go_get_file_savers   get_file_savers

Definition at line 52 of file gnumeric_link.c.

Referenced by main().

#define go_io_context_new   gnumeric_io_context_new

Definition at line 54 of file gnumeric_link.c.

Referenced by convert(), and gnumeric_load().

#define GOErrorInfo   ErrorInfo

Definition at line 50 of file gnumeric_link.c.

Referenced by main().

#define GOIOContext   IOContext

Definition at line 48 of file gnumeric_link.c.

Referenced by convert(), and gnumeric_load().

#define OLD_GNUMERIC

Definition at line 44 of file gnumeric_link.c.

#define PASTE_CONTENTS   PASTE_CONTENT

Definition at line 57 of file gnumeric_link.c.

Referenced by gnumeric_move_column(), and gnumeric_move_row().

#define sheet_cell_create   sheet_cell_new
#define wb_view_get_workbook   wb_view_workbook

Function Documentation

static void coopy_add_attr ( PangoAttrList *  attrs,
PangoAttribute *  attr 
) [static]

Definition at line 389 of file gnumeric_link.c.

GnumericSheetPtr gnumeric_add_sheet ( GnumericWorkbookPtr  workbook,
const char *  name 
)
static void gnumeric_atexit ( void  ) [static]

Definition at line 72 of file gnumeric_link.c.

References cc, and gnumeric_inited.

Referenced by gnumeric_init().

GnumericWorkbookPtr gnumeric_create ( )

Definition at line 134 of file gnumeric_link.c.

References NULL.

Referenced by coopy::store::gnumeric::GnumericTextBook::create(), and main_alt().

int gnumeric_delete_column ( GnumericSheetPtr  sheet,
int  at 
)

Definition at line 576 of file gnumeric_link.c.

References BEGIN_UNDO, cc, DO_UNDO, and END_UNDO.

Referenced by coopy::store::gnumeric::GnumericSheet::deleteColumn().

int gnumeric_delete_data ( GnumericSheetPtr  sheet)

Definition at line 608 of file gnumeric_link.c.

References BEGIN_UNDO, cc, DO_UNDO, END_UNDO, and gnumeric_sheet_get_size().

int gnumeric_delete_row ( GnumericSheetPtr  sheet,
int  at 
)

Definition at line 590 of file gnumeric_link.c.

References BEGIN_UNDO, cc, DO_UNDO, and END_UNDO.

Referenced by coopy::store::gnumeric::GnumericSheet::deleteRow().

int gnumeric_delete_rows ( GnumericSheetPtr  sheet,
int  first,
int  last 
)
int gnumeric_fini ( )
int gnumeric_free ( GnumericWorkbookPtr  workbook)

Definition at line 112 of file gnumeric_link.c.

References NULL, and wb_view_get_workbook.

Referenced by coopy::store::gnumeric::GnumericTextBook::clear(), main(), and main_alt().

void gnumeric_free_string ( char *  str)

Definition at line 446 of file gnumeric_link.c.

Referenced by main().

void gnumeric_free_style ( GnumericStylePtr  style)

Definition at line 681 of file gnumeric_link.c.

GnumericSheetPtr gnumeric_get_sheet ( GnumericWorkbookPtr  workbook,
int  index 
)
GnumericSheetPtr gnumeric_get_sheet_by_name ( GnumericWorkbookPtr  workbook,
const char *  name 
)
int gnumeric_get_sheet_count ( GnumericWorkbookPtr  workbook)

Definition at line 199 of file gnumeric_link.c.

References wb_view_get_workbook.

Referenced by gnumeric_add_sheet(), and main().

int gnumeric_init ( )
int gnumeric_insert_column ( GnumericSheetPtr  sheet,
int  before 
)

Definition at line 568 of file gnumeric_link.c.

References BEGIN_UNDO, cc, DO_UNDO, and END_UNDO.

Referenced by coopy::store::gnumeric::GnumericSheet::insertColumn().

int gnumeric_insert_row ( GnumericSheetPtr  sheet,
int  before 
)

Definition at line 583 of file gnumeric_link.c.

References BEGIN_UNDO, cc, DO_UNDO, and END_UNDO.

Referenced by coopy::store::gnumeric::GnumericSheet::insertRow().

GnumericWorkbookPtr gnumeric_load ( const char *  fname)

Definition at line 121 of file gnumeric_link.c.

References cc, go_io_context_new, GOIOContext, and NULL.

Referenced by coopy::store::gnumeric::GnumericTextBook::load(), and main().

int gnumeric_move_column ( GnumericSheetPtr  sheet,
int  src,
int  dest 
)
int gnumeric_move_row ( GnumericSheetPtr  sheet,
int  src,
int  dest 
)
int gnumeric_overlay_csv ( GnumericWorkbookPtr  workbook,
const char *  start,
const char *  stop 
)

Definition at line 185 of file gnumeric_link.c.

References NULL.

Referenced by main().

int gnumeric_save ( GnumericWorkbookPtr  workbook,
const char *  fname,
const char *  format 
)

Definition at line 140 of file gnumeric_link.c.

References _, cc, GO_FILE_SAVE_WORKBOOK, and NULL.

Referenced by main(), main_alt(), and coopy::store::gnumeric::GnumericTextBook::save().

int gnumeric_sheet_get_cell ( GnumericSheetPtr  sheet,
int  x,
int  y,
GSheetCellPtr  cell 
)
char* gnumeric_sheet_get_cell_as_string ( GnumericSheetPtr  sheet,
int  x,
int  y 
)

Definition at line 257 of file gnumeric_link.c.

References NULL.

Referenced by main().

int gnumeric_sheet_get_cell_font_color ( GnumericSheetPtr  sheet,
int  x,
int  y,
int *  r16,
int *  g16,
int *  b16 
)

Definition at line 685 of file gnumeric_link.c.

References NULL.

Referenced by main().

const char* gnumeric_sheet_get_name ( GnumericSheetPtr  sheet)

Definition at line 441 of file gnumeric_link.c.

Referenced by main().

int gnumeric_sheet_get_size ( GnumericSheetPtr  sheet,
int *  w,
int *  h 
)
GnumericStylePtr gnumeric_sheet_get_style ( GnumericSheetPtr  sheet,
int  x,
int  y 
)

Definition at line 620 of file gnumeric_link.c.

References NULL.

Referenced by main_alt().

int gnumeric_sheet_remove_cell ( GnumericSheetPtr  sheet,
int  x,
int  y 
)

Definition at line 431 of file gnumeric_link.c.

References NULL.

Referenced by coopy::store::gnumeric::GnumericSheet::cellSummary(), and gnumeric_sheet_set_cell().

int gnumeric_sheet_set_cell ( GnumericSheetPtr  sheet,
int  x,
int  y,
GSheetCellPtr  cell 
)
int gnumeric_sheet_set_cell_as_string ( GnumericSheetPtr  sheet,
int  x,
int  y,
const char *  str 
)
int gnumeric_sheet_set_col_style ( GnumericSheetPtr  sheet,
GnumericStylePtr  style,
int  x 
)

Definition at line 646 of file gnumeric_link.c.

int gnumeric_sheet_set_row_style ( GnumericSheetPtr  sheet,
GnumericStylePtr  style,
int  y 
)

Definition at line 639 of file gnumeric_link.c.

int gnumeric_sheet_set_style ( GnumericSheetPtr  sheet,
GnumericStylePtr  style,
int  x,
int  y 
)

Definition at line 627 of file gnumeric_link.c.

Referenced by main_alt().

int gnumeric_style_set_back_color ( GnumericStylePtr  style,
int  r16,
int  g16,
int  b16 
)

Definition at line 672 of file gnumeric_link.c.

int gnumeric_style_set_font_bold ( GnumericStylePtr  style,
int  flag 
)

Definition at line 660 of file gnumeric_link.c.

Referenced by main_alt().

int gnumeric_style_set_font_color ( GnumericStylePtr  style,
int  r16,
int  g16,
int  b16 
)

Definition at line 665 of file gnumeric_link.c.

int gnumeric_style_set_font_strike ( GnumericStylePtr  style,
int  flag 
)

Definition at line 655 of file gnumeric_link.c.

void gsheetcell_free ( GSheetCellPtr  cell)
void gsheetcell_zero ( GSheetCellPtr  cell)

Variable Documentation

GOCmdContext* cc = NULL [static]
int gnumeric_init_ct = 0 [static]

Definition at line 69 of file gnumeric_link.c.

Referenced by gnumeric_init().

int gnumeric_inited = 0 [static]

Definition at line 70 of file gnumeric_link.c.

Referenced by gnumeric_atexit().

GOErrorInfo* plugin_errs = NULL [static]

Definition at line 67 of file gnumeric_link.c.

Referenced by gnumeric_init(), and main().

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines