GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions
dialog-print-check2.c File Reference

Print Checks Dialog. More...

#include "config.h"
#include <gtk/gtk.h>
#include <glib/gi18n.h>
#include <stdio.h>
#include <locale.h>
#include <math.h>
#include <gnc-gdate-utils.h>
#include "qof.h"
#include "gnc-date.h"
#include "gnc-prefs.h"
#include "gnc-numeric.h"
#include "gnc-plugin-page-register2.h"
#include "dialog-print-check2.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 "engine-helpers.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
 

Macros

#define G_LOG_DOMAIN   "gnc.printing.checks"
 
#define GNC_PREFS_GROUP   "dialogs.checkprinting"
 
#define GNC_PREF_CHECK_FORMAT_GUID   "check-format-guid"
 
#define GNC_PREF_CHECK_POSITION   "check-position"
 
#define GNC_PREF_FIRST_PAGE_COUNT   "first-page-count"
 
#define GNC_PREF_DATE_FORMAT_USER   "date-format-custom"
 
#define GNC_PREF_CUSTOM_PAYEE   "custom-payee"
 
#define GNC_PREF_CUSTOM_DATE   "custom-date"
 
#define GNC_PREF_CUSTOM_WORDS   "custom-amount-words"
 
#define GNC_PREF_CUSTOM_NUMBER   "custom-amount-number"
 
#define GNC_PREF_CUSTOM_ADDRESS   "custom-address"
 
#define GNC_PREF_CUSTOM_NOTES   "custom-notes"
 
#define GNC_PREF_CUSTOM_MEMO   "custom-memo"
 
#define GNC_PREF_CUSTOM_TRANSLATION   "custom-translation"
 
#define GNC_PREF_CUSTOM_ROTATION   "custom-rotation"
 
#define GNC_PREF_CUSTOM_UNITS   "custom-units"
 
#define GNC_PREF_PRINT_DATE_FMT   "print-date-format"
 
#define GNC_PREF_DEFAULT_FONT   "default-font"
 
#define GNC_PREF_BLOCKING_CHARS   "blocking-chars"
 
#define GNC_PREF_SPLITS_AMOUNT   "splits-amount"
 
#define GNC_PREF_SPLITS_MEMO   "splits-memo"
 
#define GNC_PREF_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 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, COL_NAME = 0,
  COL_DATA, COL_SEP
}
 

Functions

void gnc_ui_print_check_response_cb2 (GtkDialog *dialog, gint response, PrintCheckDialog *pcd)
 
void gnc_print_check_format_changed2 (GtkComboBox *widget, PrintCheckDialog *pcd)
 
void gnc_print_check_position_changed2 (GtkComboBox *widget, PrintCheckDialog *pcd)
 
void gnc_print_check_save_button_clicked2 (GtkButton *button, PrintCheckDialog *pcd)
 
void gnc_check_format_title_changed2 (GtkEditable *editable, GtkWidget *ok_button)
 
gchar * get_check_address2 (PrintCheckDialog *pcd)
 
void gnc_ui_print_check_dialog_create2 (GncPluginPageRegister2 *plugin_page, GList *splits)
 
Split printing functions
gchar * get_check_splits_amount2 (PrintCheckDialog *pcd)
 
gchar * get_check_splits_memo2 (PrintCheckDialog *pcd)
 
gchar * get_check_splits_account2 (PrintCheckDialog *pcd)
 

Detailed Description

Print Checks Dialog.

Author
Copyright (C) 2000 Bill Gribble grib@.nosp@m.bill.nosp@m.gribb.nosp@m.le.c.nosp@m.om
Copyright (C) 2006,2007 David Hampton hampt.nosp@m.on@e.nosp@m.mploy.nosp@m.ees..nosp@m.org

Definition in file dialog-print-check2.c.

Macro Definition 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 155 of file dialog-print-check2.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 entry specifies a separator line.

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 entry specifies a separator line.

Definition at line 123 of file dialog-print-check2.c.

124 {
125  COL_NAME = 0,
129  COL_DATA,
133  COL_SEP,
135 } format_combo_col;