GnuCash 2.4.99
Data Structures | Defines | Typedefs | Enumerations | Functions
dialog-print-check.c File Reference

Print Checks Dialog. More...

#include "config.h"
#include <gtk/gtk.h>
#include <glib/gi18n.h>
#include <stdio.h>
#include <libguile.h>
#include <locale.h>
#include <math.h>
#include "qof.h"
#include "gnc-date.h"
#include "gnc-gconf-utils.h"
#include "gnc-numeric.h"
#include "gnc-plugin-page-register.h"
#include "dialog-print-check.h"
#include "dialog-utils.h"
#include "print-session.h"
#include "gnc-ui.h"
#include "gnc-date-format.h"
#include "gnc-ui-util.h"
#include "gnc-path.h"
#include "gnc-filepath-utils.h"
#include "gnc-gkeyfile-utils.h"
#include "gnc-engine.h"
#include "Split.h"
#include "Transaction.h"

Go to the source code of this file.

Data Structures

struct  _check_item
struct  _check_format
struct  _print_check_dialog

Defines

#define G_LOG_DOMAIN   "gnc.printing.checks"
#define GCONF_SECTION   "dialogs/print_checks"
#define KEY_CHECK_FORMAT_GUID   "check_format_guid"
#define KEY_CHECK_FORMAT   "check_format"
#define KEY_CHECK_POSITION   "check_position"
#define KEY_FIRST_PAGE_COUNT   "first_page_count"
#define KEY_DATE_FORMAT_USER   "date_format_custom"
#define KEY_CUSTOM_PAYEE   "custom_payee"
#define KEY_CUSTOM_DATE   "custom_date"
#define KEY_CUSTOM_WORDS   "custom_amount_words"
#define KEY_CUSTOM_NUMBER   "custom_amount_number"
#define KEY_CUSTOM_ADDRESS   "custom_address"
#define KEY_CUSTOM_NOTES   "custom_memo"
#define KEY_CUSTOM_MEMO   "custom_memo2"
#define KEY_CUSTOM_TRANSLATION   "custom_translation"
#define KEY_CUSTOM_ROTATION   "custom_rotation"
#define KEY_CUSTOM_UNITS   "custom_units"
#define KEY_PRINT_DATE_FMT   "print_date_format"
#define KEY_DEFAULT_FONT   "default_font"
#define KEY_BLOCKING_CHARS   "blocking_chars"
#define KEY_SPLITS_AMOUNT   "splits_amount"
#define KEY_SPLITS_MEMO   "splits_memo"
#define KEY_SPLITS_ACCOUNT   "splits_account"
#define DEFAULT_FONT   "sans 12"
#define CHECK_FMT_DIR   "checks"
#define CHECK_NAME_EXTENSION   ".chk"
#define DEGREES_TO_RADIANS   (G_PI / 180.0)
#define BLOCKING_CHAR_OFF   0
#define BLOCKING_CHAR_ON   1
#define KF_GROUP_TOP   "Top"
#define KF_GROUP_POS   "Check Positions"
#define KF_GROUP_ITEMS   "Check Items"
#define KF_KEY_GUID   "Guid"
#define KF_KEY_TITLE   "Title"
#define KF_KEY_ROTATION   "Rotation"
#define KF_KEY_TRANSLATION   "Translation"
#define KF_KEY_FONT   "Font"
#define KF_KEY_ALIGN   "Align"
#define KF_KEY_BLOCKING   "Blocking_Chars"
#define KF_KEY_SHOW_GRID   "Show_Grid"
#define KF_KEY_SHOW_BOXES   "Show_Boxes"
#define KF_KEY_NAMES   "Names"
#define KF_KEY_HEIGHT   "Height"
#define KF_KEY_TYPE   "Type"
#define KF_KEY_COORDS   "Coords"
#define KF_KEY_TEXT   "Text"
#define KF_KEY_FILENAME   "Filename"
#define KF_KEY_DATE_FORMAT   "DateFormat"
#define KF_KEY_SPLITS_AMOUNT   "SplitsAmount"
#define KF_KEY_SPLITS_MEMO   "SplitsMemo"
#define KF_KEY_SPLITS_ACCOUNT   "SplitsAccount"
#define GncPrintContext   GtkPrintContext
#define ENUM_CHECK_ITEM_TYPE(_)
#define DATE_FMT_HEIGHT   8
#define DATE_FMT_SLOP   2

Typedefs

typedef enum format_combo_col_t format_combo_col
typedef struct _check_item check_item_t
typedef struct _check_format check_format_t

Enumerations

enum  format_combo_col_t { COL_NAME = 0, COL_DATA, COL_SEP }

Functions

void gnc_ui_print_check_response_cb (GtkDialog *dialog, gint response, PrintCheckDialog *pcd)
void gnc_print_check_format_changed (GtkComboBox *widget, PrintCheckDialog *pcd)
void gnc_print_check_position_changed (GtkComboBox *widget, PrintCheckDialog *pcd)
void gnc_print_check_save_button_clicked (GtkButton *button, PrintCheckDialog *pcd)
void gnc_check_format_title_changed (GtkEditable *editable, GtkWidget *ok_button)
gchar * get_check_address (PrintCheckDialog *pcd)
void gnc_ui_print_check_dialog_create (GncPluginPageRegister *plugin_page, GList *splits)
Split printing functions
gchar * get_check_splits_amount (PrintCheckDialog *pcd)
gchar * get_check_splits_memo (PrintCheckDialog *pcd)
gchar * get_check_splits_account (PrintCheckDialog *pcd)

Detailed Description

Print Checks Dialog.

Author:
Copyright (C) 2000 Bill Gribble <grib@billgribble.com>
Copyright (C) 2006,2007 David Hampton <hampton@employees.org>

Definition in file dialog-print-check.c.


Define Documentation

#define ENUM_CHECK_ITEM_TYPE (   _)
Value:
_(NONE,) \
        _(PAYEE,) \
        _(DATE,) \
        _(NOTES,) \
        _(CHECK_NUMBER,) \
                  \
        _(MEMO,) \
        _(ACTION,) \
        _(AMOUNT_NUMBER,) \
        _(AMOUNT_WORDS,) \
                         \
        _(TEXT,) \
        _(ADDRESS,) \
        _(DATE_FORMAT,) \
        _(SPLITS_AMOUNT,) \
        _(SPLITS_MEMO,) \
        _(SPLITS_ACCOUNT,) \
        _(PICTURE,)

Definition at line 156 of file dialog-print-check.c.


Enumeration Type Documentation

Enumerator:
COL_NAME 

This column holds a copy of the check format name and is what is displayed to the user in the combobox. It is NULL for separator lines.

COL_DATA 

This column holds a pointer to the check format data read in from a file. It is NULL for the custom check format and for separator lines.

COL_SEP 

This column contains the value TRUE if this enry specifies a separator line.

Definition at line 122 of file dialog-print-check.c.

{
    COL_NAME = 0,               
    COL_DATA,                   
    COL_SEP,                    
} format_combo_col;
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines